ManageUser.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  1. <script setup>
  2. import { computed, onMounted, onUnmounted, watch, ref } from "vue";
  3. import { useRouter } from 'vue-router';
  4. import { Search } from '@element-plus/icons-vue';
  5. import { ElMessage } from 'element-plus';
  6. const router = useRouter();
  7. // let state = ref({
  8. // organizationList: [],
  9. // listParams: {
  10. // keyword: '',
  11. // page: 1,
  12. // limit: 5,
  13. // },
  14. // list: [],
  15. // total: 0,
  16. // showDialog: false,
  17. // ids: [],
  18. // showDel: false,
  19. // });
  20. let state = ref({
  21. // 全部班级列表
  22. "organizationList": [
  23. {
  24. "orgType": {
  25. "code": "class",
  26. "name": "专业班级"
  27. },
  28. "id": 656845035987013,
  29. "name": "2025级通讯班",
  30. "pid": 656843881177157,
  31. "code": null,
  32. "type": "class",
  33. "weigh": 0
  34. },
  35. {
  36. "orgType": {
  37. "code": "class",
  38. "name": "专业班级"
  39. },
  40. "id": 6568450359870132,
  41. "name": "2025级通讯班2",
  42. "pid": 6568438811771572,
  43. "code": null,
  44. "type": "class",
  45. "weigh": 0
  46. }
  47. ],
  48. // 用户提交分页查询数据
  49. "listParams": {
  50. // 搜索的内容
  51. "keyword": "",
  52. // 第几页
  53. "page": 1,
  54. // 每页显示多少数据
  55. "limit": 5
  56. },
  57. // 具体分页的数据
  58. "list": [
  59. {
  60. "id": 661434193309765,
  61. "level": 0,
  62. "orgName": "信息论与编码基础教研组",
  63. "zoneName": null,
  64. "rolesName": [
  65. "教师"
  66. ],
  67. "createTime": "2025-04-03 10:42:39",
  68. "name": "教师测试账号",
  69. "code": null,
  70. "username": "teacher",
  71. "phone": null,
  72. "duty": null,
  73. "photo": null,
  74. "orgId": 656844968038469,
  75. "roles": [
  76. 661429664665669
  77. ],
  78. "email": null,
  79. "status": 1,
  80. "type": 1
  81. },
  82. {
  83. "id": 668917601919045,
  84. "level": 0,
  85. "orgName": "2025级通讯班",
  86. "zoneName": null,
  87. "rolesName": [
  88. "学生"
  89. ],
  90. "createTime": "2025-04-24 14:12:43",
  91. "name": "刘瑾见",
  92. "code": "110220",
  93. "username": "14367845673",
  94. "phone": null,
  95. "duty": null,
  96. "photo": null,
  97. "orgId": 656845035987013,
  98. "roles": [
  99. 661441664479301
  100. ],
  101. "email": null,
  102. "status": 1,
  103. "type": 0
  104. },
  105. {
  106. "id": 668916601290821,
  107. "level": 0,
  108. "orgName": "2025级通讯班",
  109. "zoneName": null,
  110. "rolesName": [
  111. "学生"
  112. ],
  113. "createTime": "2025-04-24 14:08:39",
  114. "name": "王伟",
  115. "code": "1234525",
  116. "username": "13234367546",
  117. "phone": null,
  118. "duty": null,
  119. "photo": null,
  120. "orgId": 656845035987013,
  121. "roles": [
  122. 661441664479301
  123. ],
  124. "email": null,
  125. "status": 1,
  126. "type": 0
  127. },
  128. {
  129. "id": 668923933716550,
  130. "level": 0,
  131. "orgName": "2025级通讯班",
  132. "zoneName": null,
  133. "rolesName": [
  134. "学生"
  135. ],
  136. "createTime": "2025-04-24 14:38:29",
  137. "name": "威威",
  138. "code": "25242345",
  139. "username": "1431163",
  140. "phone": null,
  141. "duty": null,
  142. "photo": null,
  143. "orgId": 656845035987013,
  144. "roles": [
  145. 661441664479301
  146. ],
  147. "email": null,
  148. "status": 1,
  149. "type": 0
  150. },
  151. {
  152. "id": 661442553135174,
  153. "level": 0,
  154. "orgName": "2025级通讯班",
  155. "zoneName": null,
  156. "rolesName": [
  157. "学生"
  158. ],
  159. "createTime": "2025-04-03 11:16:40",
  160. "name": "学生测试账号",
  161. "code": null,
  162. "username": "student",
  163. "phone": null,
  164. "duty": null,
  165. "photo": {
  166. "name": "sl.jpg",
  167. "url": "/upload/Files/2025/04/28/0b326e2784ba73f56ef9f40aae86695c.jpg"
  168. },
  169. "orgId": 656845035987013,
  170. "roles": [
  171. 661441664479301
  172. ],
  173. "email": null,
  174. "status": 1,
  175. "type": 2
  176. }
  177. ],
  178. // 用户总数量
  179. "total": 6,
  180. // 是否弹出添加UI
  181. "showDialog": false,
  182. // 当前分页列表,多选的数据
  183. "ids": [],
  184. // 批量删除模态框
  185. "showDel": false,
  186. // 详情模态框
  187. "showDetails": false,
  188. });
  189. // 用于表单验证规则必须要的对象
  190. let ruleFormRef = ref();
  191. /**
  192. * 添加,最后提交的数据
  193. */
  194. let addParams = ref({
  195. name: '',
  196. username: '',
  197. password: '123456',
  198. orgId: '',
  199. roles: [],
  200. });
  201. /**
  202. * 添加,字段相关验证规则
  203. */
  204. let addRules = ref({
  205. name: [{ required: true, message: '请填写姓名', trigger: 'blur' }],
  206. username: [{ required: true, message: '请填写学号', trigger: 'blur' }],
  207. orgId: [
  208. {
  209. required: true,
  210. message: '请选择班级',
  211. trigger: 'change',
  212. },
  213. ],
  214. });
  215. /**
  216. * 详情数据
  217. */
  218. let detailsDb = ref({
  219. name: '',
  220. username: '',
  221. password: '123456',
  222. orgId: '',
  223. roles: [],
  224. });
  225. /**
  226. * 查找分页数据
  227. */
  228. const pageUpdateEvent = () => {
  229. console.log(
  230. "查找分页数据 pageUpdateEvent", state.value.listParams
  231. );
  232. }
  233. /**
  234. * 弹出添加UI
  235. */
  236. const btnAddStudent = (formEl) => {
  237. state.value.showDialog = true;
  238. if (!formEl) {
  239. return;
  240. }
  241. formEl.resetFields();
  242. }
  243. /**
  244. * 触发搜索逻辑
  245. */
  246. const btnSearchName = () => {
  247. pageUpdateEvent();
  248. }
  249. /**
  250. * 更新选中的班级逻辑
  251. * @param val
  252. */
  253. const classChange = (val) => {
  254. state.value.listParams.orgId = val;
  255. pageUpdateEvent();
  256. }
  257. /**
  258. * 上一页,下一页改变
  259. */
  260. const handleSizeChange = (val) => {
  261. // 重新查找分页数据
  262. pageUpdateEvent();
  263. }
  264. /**
  265. * 上一页,下一页改变
  266. */
  267. const handleCurrentChange = (val) => {
  268. // 重新查找分页数据
  269. pageUpdateEvent();
  270. }
  271. /**
  272. * 分页多选,更新多选的相关数据
  273. * @param res
  274. */
  275. const selectionChange = (res) => {
  276. state.value.ids = [];
  277. res.forEach((item) => {
  278. // state.value.ids.push(item.id);
  279. state.value.ids.push(item);
  280. });
  281. console.log("分页多选,更新多选的相关数据", state.value.ids);
  282. }
  283. /**
  284. * 添加的时候,选中的班级的时候
  285. * @param val
  286. */
  287. const selectClass = (val) => {
  288. addParams.value.orgId = val;
  289. }
  290. /**
  291. * 添加 点击提交
  292. * @param formEl
  293. */
  294. const submitForm = async (formEl) => {
  295. if (!formEl) return
  296. await formEl.validate((valid, fields) => {
  297. if (valid) {
  298. console.log(
  299. "addParams", addParams.value
  300. );
  301. // 接口请求完成,隐藏模态框
  302. state.value.showDialog = false;
  303. } else {
  304. // console.log('error submit!', fields)
  305. }
  306. })
  307. }
  308. /**
  309. * 删除选中分页的某个数据
  310. * @param res
  311. */
  312. const btnDel = (res) => {
  313. console.log(
  314. "删除选中分页的某个数据", res
  315. );
  316. ElMessage({
  317. type: 'success',
  318. message: '删除成功',
  319. });
  320. // 重新查找分页数据
  321. pageUpdateEvent();
  322. }
  323. /**
  324. * 弹出批量删除模态框逻辑
  325. */
  326. const btnShowDel = () => {
  327. if (state.value.ids && state.value.ids.length > 0) {
  328. state.value.showDel = true
  329. }
  330. }
  331. /**
  332. * 开始批量删除处理
  333. */
  334. const btnBatchDel = () => {
  335. console.log(
  336. "开始批量删除处理", state.value.ids
  337. );
  338. ElMessage({
  339. type: 'success',
  340. message: '删除成功',
  341. });
  342. // 重新查找分页数据
  343. pageUpdateEvent();
  344. // 批量选中的列表重置
  345. state.value.ids = [];
  346. // 隐藏模态框
  347. state.value.showDel = false;
  348. }
  349. /**
  350. * 弹出指定分页详情
  351. * @param res
  352. */
  353. const btnDetail = (res) => {
  354. console.log('弹出指定分页详情', res);
  355. detailsDb.value = {
  356. name: '名字',
  357. username: '账号',
  358. password: '123456',
  359. orgId: 6568450359870132,
  360. roles: [],
  361. }
  362. state.value.showDetails = true;
  363. }
  364. </script>
  365. <template>
  366. <div class="ManageUser">
  367. <div class="content commonsScrollbar">
  368. <div class="contentTitle">
  369. <div class="contentTitle-line"></div>
  370. <div class="contentTitle-text">账号管理</div>
  371. </div>
  372. <div class="contentRow">
  373. <div class="rowLeft">
  374. <div class="rowSelect">
  375. <el-select
  376. v-model="state.listParams.orgId"
  377. clearable
  378. placeholder="全部班级"
  379. size="large"
  380. style="width: 15rem"
  381. @change="classChange"
  382. >
  383. <el-option v-for="item in state.organizationList" :key="item.id" :label="item.name" :value="item.id" />
  384. </el-select>
  385. </div>
  386. <div class="rowBtn rowBtn1" @click="btnAddStudent(ruleFormRef)">
  387. <img src="./assets/img/manageUser/add.svg" alt="" />
  388. <span class="rowBtn-text rowBtn-text1">添加账号</span>
  389. </div>
  390. <!-- <div class="rowBtn rowBtn2">
  391. <img src="./assets/img/manageUser/download.svg" alt="" />
  392. <span class="rowBtn-text rowBtn-text2">模板下载</span>
  393. </div>
  394. <div class="rowBtn rowBtn1">
  395. <img src="./assets/img/manageUser/import.svg" alt="" />
  396. <span class="rowBtn-text rowBtn-text1">批量导入</span>
  397. </div>
  398. <div class="rowBtn rowBtn1">
  399. <img src="./assets/img/manageUser/export.svg" alt="" />
  400. <span class="rowBtn-text rowBtn-text1">批量导出</span>
  401. </div> -->
  402. <div class="rowBtn rowBtn3" @click="btnShowDel">
  403. <img src="./assets/img/manageUser/delete.svg" alt="" />
  404. <span class="rowBtn-text rowBtn-text3">批量删除</span>
  405. </div>
  406. </div>
  407. <div class="rowRight">
  408. <el-input
  409. v-model="state.listParams.keyword"
  410. :prefix-icon="Search"
  411. clearable
  412. style="width: 17rem; height: 3rem"
  413. placeholder="搜索账号/姓名"
  414. @clear="btnSearchName"
  415. />
  416. <div class="rowSearch" @click="btnSearchName">搜索</div>
  417. </div>
  418. </div>
  419. <div class="contentTable commonsScrollbar">
  420. <el-table :data="state.list" style="width: 100%" @selection-change="selectionChange">
  421. <el-table-column align="center" type="selection" width="110" />
  422. <el-table-column prop="name" label="账号" />
  423. <el-table-column prop="name" label="姓名" />
  424. <el-table-column prop="orgName" label="班级" />
  425. <el-table-column prop="orgName" label="状态" />
  426. <el-table-column label="操作">
  427. <template #default="scope">
  428. <el-button link type="primary" @click="btnDetail(scope.row)">详情</el-button>
  429. <el-popconfirm :title="`你确定删除${scope.row.name}吗?`" @confirm="btnDel(scope.row)">
  430. <template #reference>
  431. <el-button link type="danger" style="margin-left: 3rem">移除</el-button>
  432. </template>
  433. </el-popconfirm>
  434. </template>
  435. </el-table-column>
  436. </el-table>
  437. </div>
  438. <el-pagination
  439. class="classPagination"
  440. v-model:current-page="state.listParams.page"
  441. v-model:page-size="state.listParams.limit"
  442. :page-sizes="[10, 20, 50, 100]"
  443. background
  444. :layout="' ->, total,prev, pager, next, jumper'"
  445. :total="state.total"
  446. @size-change="handleSizeChange"
  447. @current-change="handleCurrentChange"
  448. >
  449. </el-pagination>
  450. </div>
  451. <!-- 添加模态框 -->
  452. <el-dialog v-model="state.showDialog" class="dialog">
  453. <template #header>
  454. <div class="dialog-title">添加账号</div>
  455. </template>
  456. <div class="dialogBody">
  457. <el-form ref="ruleFormRef" :model="addParams" :rules="addRules">
  458. <el-form-item label="姓名" prop="name">
  459. <el-input v-model="addParams.name" clearable placeholder="请填写姓名"></el-input>
  460. </el-form-item>
  461. <el-form-item label="学号" prop="username">
  462. <el-input v-model="addParams.username" type="number" clearable placeholder="请填写学号"></el-input>
  463. </el-form-item>
  464. <el-form-item label="学校" prop="orgId">
  465. <el-select v-model="addParams.orgId" clearable placeholder="请选择学校" @change="selectClass">
  466. <el-option v-for="item in state.organizationList" :key="item.id" :label="item.name" :value="item.id" />
  467. </el-select>
  468. </el-form-item>
  469. <el-form-item label="班级" prop="orgId">
  470. <el-select v-model="addParams.orgId" clearable placeholder="请选择班级" @change="selectClass">
  471. <el-option v-for="item in state.organizationList" :key="item.id" :label="item.name" :value="item.id" />
  472. </el-select>
  473. </el-form-item>
  474. </el-form>
  475. <div class="dialogFoot">
  476. <el-button color="#EAEAEA" @click="state.showDialog = false" style="margin-right: 0.6rem">取消</el-button>
  477. <el-button color="#2C68FF" @click="submitForm(ruleFormRef)">确认</el-button>
  478. </div>
  479. </div>
  480. </el-dialog>
  481. <!-- 详情模态框 -->
  482. <el-dialog v-model="state.showDetails" class="dialog">
  483. <template #header>
  484. <div class="dialog-title">账号详情</div>
  485. </template>
  486. <div class="dialogBody">
  487. <el-form :model="detailsDb">
  488. <el-form-item label="姓名" prop="name">
  489. <el-input v-model="detailsDb.name" clearable disabled ></el-input>
  490. </el-form-item>
  491. <el-form-item label="学号" prop="username">
  492. <el-input v-model="detailsDb.username" type="number" clearable disabled ></el-input>
  493. </el-form-item>
  494. <el-form-item label="学校" prop="orgId">
  495. <el-select v-model="detailsDb.orgId" clearable disabled >
  496. <el-option v-for="item in state.organizationList" :key="item.id" :label="item.name" :value="item.id" />
  497. </el-select>
  498. </el-form-item>
  499. <el-form-item label="班级" prop="orgId">
  500. <el-select v-model="detailsDb.orgId" clearable disabled >
  501. <el-option v-for="item in state.organizationList" :key="item.id" :label="item.name" :value="item.id" />
  502. </el-select>
  503. </el-form-item>
  504. </el-form>
  505. </div>
  506. </el-dialog>
  507. <!-- 用于批量删除模态框 -->
  508. <el-dialog v-model="state.showDel" width="600" class="del">
  509. <template #header>
  510. <div style="display: flex; align-items: center">
  511. <img class="del-img" src="./assets/img/manageUser/error-line.svg" alt="" />
  512. <div class="del-name">批量删除</div>
  513. </div>
  514. </template>
  515. <span class="delBody">是否确认删除学生信息?删除后不可恢复!</span>
  516. <template #footer>
  517. <div class="dialog-footer">
  518. <el-button @click="state.showDel = false">取消</el-button>
  519. <el-button type="primary" @click="btnBatchDel">删除</el-button>
  520. </div>
  521. </template>
  522. </el-dialog>
  523. </div>
  524. </template>
  525. <style lang="scss" scoped>
  526. @use './css/commonsScrollbar.scss';
  527. .ManageUser * {
  528. -moz-user-select: none;
  529. -webkit-user-select: none;
  530. -ms-user-select: none;
  531. -khtml-user-select: none;
  532. user-select: none;
  533. box-sizing:border-box;
  534. -moz-box-sizing:border-box; /* Firefox */
  535. -webkit-box-sizing:border-box; /* Safari */
  536. }
  537. .ManageUser {
  538. position: relative;
  539. z-index: 0;
  540. width: 100%;
  541. height: 100%;
  542. top: 0px;
  543. left: 0px;
  544. background-color: #ffffff;
  545. .content {
  546. position: relative;
  547. width: 100%;
  548. height: 100%;
  549. border-radius: 1rem;
  550. background: #ffffff;
  551. padding: 2rem 4rem 2rem 3rem;
  552. box-sizing: border-box;
  553. .contentTitle {
  554. padding: 0 0.5rem;
  555. box-sizing: border-box;
  556. display: flex;
  557. align-items: center;
  558. .contentTitle-line {
  559. width: 0.35rem;
  560. height: 2rem;
  561. background: #2c68ff;
  562. border-radius: 0.85rem;
  563. }
  564. .contentTitle-text {
  565. font-weight: bold;
  566. font-size: 1.8rem;
  567. color: #373737;
  568. margin-left: 1.4rem;
  569. }
  570. }
  571. .contentRow {
  572. margin-top: 2.8rem;
  573. padding: 0 1.5rem 0 1rem;
  574. box-sizing: border-box;
  575. display: flex;
  576. align-items: center;
  577. justify-content: space-between;
  578. .rowLeft {
  579. display: flex;
  580. align-items: center;
  581. .rowSelect {
  582. :deep(.el-select__wrapper) {
  583. height: 3rem;
  584. font-size: 1.1rem;
  585. min-height: 0;
  586. border-radius: 0.57rem;
  587. }
  588. }
  589. .rowBtn {
  590. cursor: pointer;
  591. width: 8.8rem;
  592. height: 3rem;
  593. border-radius: 0.57rem;
  594. display: flex;
  595. align-items: center;
  596. justify-content: center;
  597. margin-left: 2rem;
  598. img {
  599. width: 1.5rem;
  600. height: 1.5rem;
  601. }
  602. .rowBtn-text {
  603. font-size: 1.15rem;
  604. margin-left: 0.7rem;
  605. }
  606. .rowBtn-text1 {
  607. color: #3d7cff;
  608. }
  609. .rowBtn-text2 {
  610. color: #d8a216;
  611. }
  612. .rowBtn-text3 {
  613. color: #e84d4d;
  614. }
  615. }
  616. .rowBtn1 {
  617. background: #e5eeff;
  618. &:hover {
  619. background: #edf3ff;
  620. }
  621. }
  622. .rowBtn2 {
  623. background: rgba(214, 154, 1, 0.1);
  624. &:hover {
  625. background: #f4e5bd;
  626. }
  627. }
  628. .rowBtn3 {
  629. background: rgba(232, 77, 77, 0.05);
  630. &:hover {
  631. background: #fad4d4;
  632. }
  633. }
  634. }
  635. .rowRight {
  636. display: flex;
  637. :deep(.el-input__wrapper) {
  638. font-size: 1rem;
  639. border-radius: 0.57rem;
  640. }
  641. .rowSearch {
  642. cursor: pointer;
  643. width: 3.9rem;
  644. height: 3rem;
  645. background: #3d7cff;
  646. border-radius: 0.57rem;
  647. font-size: 1.1rem;
  648. color: #ffffff;
  649. display: flex;
  650. align-items: center;
  651. justify-content: center;
  652. margin-left: 0.7rem;
  653. &:hover {
  654. background: #77a3ff;
  655. }
  656. }
  657. }
  658. }
  659. .contentTable {
  660. margin-top: 2.3rem;
  661. height: 36rem;
  662. :deep(tr) {
  663. border-radius: 0.57rem;
  664. }
  665. :deep(th) {
  666. background: #f5f7fa;
  667. height: 5rem;
  668. font-size: 1.4rem;
  669. color: #333746;
  670. font-weight: 500;
  671. }
  672. :deep(td) {
  673. height: 5rem;
  674. font-size: 1.2rem;
  675. color: #333333;
  676. }
  677. :deep(.cell) {
  678. height: 2rem;
  679. }
  680. :deep(.el-checkbox) {
  681. --el-checkbox-input-height: 2rem;
  682. --el-checkbox-input-width: 2rem;
  683. --el-checkbox-border-radius: 0.28rem;
  684. // border: 1px solid #cad2d8;
  685. }
  686. :deep(.el-checkbox__inner:after) {
  687. height: 1.07rem;
  688. left: 0.64rem;
  689. top: 0.21rem;
  690. width: 0.5rem;
  691. }
  692. :deep(.el-checkbox__inner::before) {
  693. top: 0.85rem;
  694. }
  695. :deep(.el-button) {
  696. font-size: 1.2rem;
  697. }
  698. }
  699. :deep(.classPagination) {
  700. .el-pagination__rightwrapper {
  701. justify-content: center;
  702. .el-pagination__total {
  703. color: #000000;
  704. }
  705. .btn-prev,
  706. .btn-next {
  707. background: #f7f7f7;
  708. color: #000000;
  709. border-radius: 1rem;
  710. }
  711. .number {
  712. background: #f7f7f7;
  713. color: #000000;
  714. border-radius: 0.5rem;
  715. }
  716. .is-active {
  717. background: #2c68ff;
  718. color: #ffffff;
  719. }
  720. .el-pagination__jump {
  721. color: #000000;
  722. .el-pagination__editor.el-input {
  723. width: 4.57rem;
  724. .el-input__wrapper {
  725. border-radius: 1rem;
  726. }
  727. }
  728. }
  729. }
  730. }
  731. }
  732. :deep(.dialog) {
  733. width: 55rem;
  734. padding: 0;
  735. border-radius: 1.1rem;
  736. .el-dialog__header {
  737. padding: 0px;
  738. margin: 0px;
  739. }
  740. .dialog-title {
  741. // width: 55rem;
  742. width: 100%;
  743. height: 5.9rem;
  744. background: #2c68ff;
  745. font-size: 1.8rem;
  746. color: #ffffff;
  747. display: flex;
  748. align-items: center;
  749. border-radius: 1.1rem 1.1rem 0 0;
  750. padding-left: 4rem;
  751. box-sizing: border-box;
  752. }
  753. .el-dialog__headerbtn {
  754. font-size: 1.7rem;
  755. width: 3.57rem;
  756. height: 3.57rem;
  757. top: 1rem;
  758. right: 1rem;
  759. .el-dialog__close {
  760. color: #ffffff;
  761. font-size: 3.7rem;
  762. }
  763. }
  764. .dialogBody {
  765. padding: 0.8rem 8rem 3.5rem 6.7rem;
  766. box-sizing: border-box;
  767. .el-form-item {
  768. align-items: center;
  769. margin-bottom: 2rem;
  770. }
  771. .el-form-item__label {
  772. font-size: 1.2rem;
  773. color: #000000;
  774. padding-right: 2rem;
  775. }
  776. .el-input {
  777. height: 3.7rem;
  778. --el-input-bg-color: #efefef;
  779. font-size: 1.2rem;
  780. --el-input-border-radius: 0.57rem;
  781. --el-input-border-color: #efefef;
  782. --el-input-focus-border-color: #efefef;
  783. --el-input-hover-border-color: #efefef;
  784. .el-input__wrapper {
  785. padding: 0 2rem;
  786. }
  787. }
  788. .el-select {
  789. .el-select__wrapper {
  790. height: 3.7rem;
  791. background-color: #efefef;
  792. font-size: 1.2rem;
  793. border-radius: 0.57rem;
  794. // box-shadow: 0 0 0 1px #efefef inset;
  795. padding: 0 2rem;
  796. .el-select__caret {
  797. color: #555555;
  798. }
  799. }
  800. }
  801. .dialogFoot {
  802. display: flex;
  803. justify-content: end;
  804. margin-top: 4rem;
  805. .el-button {
  806. width: 8.5rem;
  807. height: 3.2rem;
  808. border-radius: 0.57rem;
  809. font-size: 1.2rem;
  810. }
  811. }
  812. }
  813. }
  814. :deep(.del) {
  815. .del-img {
  816. width: 1.5rem;
  817. height: 1.5rem;
  818. margin-right: 0.3rem;
  819. }
  820. .del-name {
  821. font-size: 1.2rem;
  822. color: #e84d4d;
  823. }
  824. .el-dialog__body {
  825. width: 100%;
  826. height: 10rem;
  827. display: flex;
  828. justify-content: center;
  829. padding-top: 3rem;
  830. color: #000000;
  831. box-sizing: border-box;
  832. font-size: 1.2rem;
  833. }
  834. }
  835. }
  836. </style>