post.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954
  1. <template>
  2. <div class="content-box">
  3. <div class="left">
  4. <!-- <el-icon :size="23" class="camera"><VideoCameraFilled /></el-icon> -->
  5. <span class="cameratxt">职务管理</span>
  6. </div>
  7. <div class="scrollId">
  8. <div class="middle">
  9. <div class="filter">
  10. <div class="condition">
  11. <span>职务名称:&nbsp;&nbsp;</span>
  12. <el-input
  13. :clearable="true"
  14. @clear="searchBtn"
  15. v-model="searchInput.keyWord"
  16. class="w-50 m-2"
  17. placeholder="请输入职务名称"
  18. />
  19. </div>
  20. <!-- <div class="condition">
  21. <span>创建时间&nbsp;&nbsp;</span>
  22. <el-date-picker
  23. v-model="searchInput.createTime"
  24. type="daterange"
  25. range-separator="-"
  26. start-placeholder="起始时间"
  27. end-placeholder="结束时间"
  28. format="YYYY-MM-DD"
  29. value-format="YYYY-MM-DD"
  30. :prefix-icon="Calendar"
  31. placeholder="请选择日期"
  32. />
  33. </div> -->
  34. <el-button
  35. color="rgba(0, 97, 255, 1)"
  36. type="primary"
  37. class="search"
  38. @click="searchBtn"
  39. ><el-icon>
  40. <Search />
  41. </el-icon>
  42. <span>查询</span></el-button
  43. >
  44. </div>
  45. <!-- 按钮列表 -->
  46. <div class="gongneng">
  47. <el-button
  48. type="primary"
  49. color="rgba(0, 97, 255, 1)"
  50. @click="addClick"
  51. plain
  52. >新增职务</el-button
  53. >
  54. <!-- <el-button type="primary" color="rgba(0, 97, 255, 1)" @click="addlist"
  55. ><span>导出</span></el-button
  56. > -->
  57. </div>
  58. </div>
  59. <div class="footer" v-loading="loading">
  60. <el-table
  61. :row-class-name="tableRowClassName"
  62. :data="tableData.list"
  63. @selection-change="handleSelectionChange"
  64. style="width: 100%"
  65. :header-cell-style="{
  66. background: 'rgba(240, 243, 247, 1)',
  67. height: '50px',
  68. border: 0,
  69. }"
  70. >
  71. <!-- <el-table-column align="center" type="selection" width="80" /> -->
  72. <el-table-column
  73. width="150"
  74. align="center "
  75. type="index"
  76. label="序号"
  77. />
  78. <el-table-column align="center" prop="name" label="职务" />
  79. <el-table-column align="center" prop="categoryId" label="类别">
  80. <template #default="scope">
  81. <span v-if="scope.row.categoryId == 1">学生</span>
  82. <span v-if="scope.row.categoryId == 2">老师</span>
  83. </template>
  84. </el-table-column>
  85. <el-table-column align="center" prop="createTime" label="创建时间">
  86. <template #default="{row}">
  87. <span>{{ dayjs(row.createTime).format('YYYY-MM-DD HH:mm:ss') }}</span>
  88. </template>
  89. </el-table-column>
  90. <el-table-column align="center" label="操作" width="200">
  91. <template #default="scope">
  92. <div class="edit">
  93. <div class="look" @click="editClick(scope.row)">编辑</div>
  94. <el-popconfirm
  95. width="220"
  96. confirm-button-text="确认"
  97. cancel-button-text="取消"
  98. :icon="InfoFilled"
  99. icon-color="#f89626"
  100. title="是否删除此身份?"
  101. @confirm="del(scope.row)"
  102. @cancel="cancelEvent"
  103. >
  104. <template #reference>
  105. <div class="del">删除</div>
  106. </template>
  107. </el-popconfirm>
  108. </div>
  109. </template>
  110. </el-table-column>
  111. </el-table>
  112. </div>
  113. <!-- 分页组件 -->
  114. <div class="pageSize">
  115. <span></span>
  116. <el-pagination
  117. background
  118. :current-page="currentPage"
  119. :page-size="pageSize"
  120. layout="total, prev, pager, next, jumper, slot"
  121. :total="total"
  122. @update:current-page="handleCurrentChange"
  123. />
  124. </div>
  125. <!-- 编辑按钮 -->
  126. <el-dialog
  127. class="editDialog"
  128. v-model="editVisible"
  129. :close-on-click-modal="false"
  130. :close-on-press-escape="false"
  131. :title="titleDialog"
  132. align-center
  133. width="600"
  134. :before-close="cancelEdit"
  135. >
  136. <el-form
  137. ref="editRef"
  138. :model="editRuleForm"
  139. :rules="editRules"
  140. label-width="90px"
  141. class="demo-ruleForm"
  142. :size="formSize"
  143. label-position="left"
  144. status-icon
  145. >
  146. <el-form-item label="职务 :" prop="identity">
  147. <el-input
  148. v-model="editRuleForm.identity"
  149. placeholder="请输入职务名称"
  150. clearable
  151. style="width: 500px"
  152. />
  153. </el-form-item>
  154. <el-form-item label="类型 :" prop="apply">
  155. <el-select
  156. v-model="editRuleForm.apply"
  157. placeholder="请选择类型"
  158. style="width: 500px"
  159. >
  160. <el-option label="学生" :value="1" />
  161. <el-option label="老师" :value="2" />
  162. </el-select>
  163. </el-form-item>
  164. <!-- <el-form-item label="用户角色 :" prop="userRoles">
  165. <el-select
  166. v-model="editRuleForm.userRoles"
  167. class="m-2"
  168. placeholder="请选择用户角色"
  169. style="width: 500px"
  170. >
  171. <el-option label="清洁工" value="1" />
  172. <el-option label="洗碗工" value="2" />
  173. </el-select>
  174. </el-form-item>
  175. <el-form-item label="微校卡号 :" prop="schoolCard">
  176. <el-input
  177. v-model="editRuleForm.schoolCard"
  178. placeholder="请输入微校卡号"
  179. clearable
  180. style="width: 500px"
  181. />
  182. </el-form-item>
  183. <el-form-item label="身份证号 :" prop="idNumber">
  184. <el-input
  185. v-model="editRuleForm.idNumber"
  186. placeholder="请输入身份证号"
  187. style="width: 500px"
  188. >
  189. <template #append>
  190. <div @click="readCard">读卡</div>
  191. </template>
  192. </el-input>
  193. </el-form-item>
  194. <el-form-item label="指纹 :" prop="fingerprint">
  195. <el-input
  196. v-model="editRuleForm.fingerprint"
  197. placeholder="请输入指纹"
  198. style="width: 500px"
  199. >
  200. <template #append>
  201. <div @click="entering">录入</div>
  202. </template>
  203. </el-input>
  204. </el-form-item> -->
  205. <el-form-item class="options">
  206. <el-button
  207. color="rgba(41, 109, 227, 1)"
  208. class="queding"
  209. type="primary"
  210. @click="confirmEdit(editRef)"
  211. >
  212. 确认
  213. </el-button>
  214. <el-button @click="cancelEdit(editRef)">取消</el-button>
  215. </el-form-item>
  216. </el-form>
  217. </el-dialog>
  218. </div>
  219. <div class="bgImg" v-if="bgImg">
  220. <el-carousel
  221. @click="bgImg = false"
  222. ref="bgImgs"
  223. indicator-position
  224. arrow="always"
  225. :autoplay="false"
  226. trigger
  227. >
  228. <el-carousel-item v-for="item in bgImgList" :key="item.id">
  229. <img :src="item.url" alt="" />
  230. </el-carousel-item>
  231. </el-carousel>
  232. </div>
  233. </div>
  234. </template>
  235. <script setup>
  236. import {
  237. ref,
  238. reactive,
  239. watch,
  240. nextTick,
  241. onBeforeMount,
  242. onUnmounted,
  243. } from "vue";
  244. import { useRouter } from "vue-router";
  245. import { ElMessage, ElMessageBox } from "element-plus";
  246. import { Calendar } from "@element-plus/icons-vue";
  247. import vidiconsApi from "@/api/vidicons.js";
  248. import { dayjs } from "element-plus";
  249. import eds from "@/utils/eds.js";
  250. import lodash from "lodash";
  251. import axios from "axios";
  252. import { useStore } from "vuex";
  253. const store = useStore();
  254. const api = ref("");
  255. const router = useRouter();
  256. // 表格数据
  257. const loading = ref(false);
  258. const tableData = reactive({
  259. list: [
  260. {
  261. userName: "张三",
  262. userPhone: 15,
  263. teamName: 12,
  264. },
  265. ],
  266. });
  267. const searchInput = reactive({
  268. keyWord: "",
  269. createTime: "",
  270. }); // 搜索按钮数据
  271. const currentPage = ref(1); // 当前页
  272. const pageSize = ref(10);
  273. const total = ref(5); // 当前总数
  274. // 编辑功能
  275. const titleDialog = ref("");
  276. const editVisible = ref(false);
  277. const editRef = ref();
  278. const editRuleForm = reactive({
  279. identity: "", // 职务
  280. apply: "", // 类型
  281. id: "",
  282. });
  283. const applyData = ref(); // 应用管理数据
  284. // 表单验证
  285. const editRules = reactive({
  286. identity: [{ required: true, message: "职务不能为空", trigger: "blur" }],
  287. apply: [
  288. {
  289. required: true,
  290. message: "类型不能为空",
  291. trigger: "blur",
  292. },
  293. ],
  294. });
  295. // 身份分页列表
  296. const getList = async () => {
  297. loading.value = true;
  298. let data = {
  299. currentPage: currentPage.value,
  300. pageCount: pageSize.value,
  301. name: searchInput.keyWord, // 关键字名称
  302. };
  303. let res = await axios({
  304. method: "get",
  305. url: api.value + "/wanzai/api/smartDuties/queryPageSmartDuties",
  306. headers: {
  307. // token: sessionStorage.getItem("token"),
  308. // user_head: sessionStorage.getItem("userhead"),
  309. },
  310. params: data,
  311. });
  312. console.log(res, JSON.parse(eds.decryptDes(res.data.data)), "职务分页数据");
  313. if (res.data.code == 200) {
  314. loading.value = false;
  315. tableData.list = JSON.parse(eds.decryptDes(res.data.data)).list;
  316. total.value = JSON.parse(eds.decryptDes(res.data.data)).totalCount;
  317. // ElMessage({
  318. // type: "success",
  319. // showClose: true,
  320. // message: res.data.message,
  321. // center: true,
  322. // });
  323. } else {
  324. loading.value = false;
  325. ElMessage({
  326. type: "error",
  327. showClose: true,
  328. message: res.data.message,
  329. center: true,
  330. });
  331. }
  332. };
  333. // 获取应用列表
  334. const applyList = async () => {
  335. let data = {
  336. currentPage: 1,
  337. pageCount: 100,
  338. // managerId: sessionStorage.getItem("token"),
  339. };
  340. let res = await axios({
  341. method: "get",
  342. url: api.value + "/wanzai/api/smartApply/queryPageSmartApply",
  343. headers: {
  344. // token: sessionStorage.getItem("token"),
  345. // user_head: sessionStorage.getItem("userhead"),
  346. },
  347. params: data,
  348. });
  349. console.log(
  350. res,
  351. JSON.parse(eds.decryptDes(res.data.data)),
  352. "应用管理分页数据"
  353. );
  354. applyData.value = JSON.parse(eds.decryptDes(res.data.data)).list;
  355. };
  356. // 搜索功能
  357. const searchBtn = lodash.debounce(async () => {
  358. getList();
  359. }, 300);
  360. // 添加按钮 (-------------------------------------------)
  361. const addClick = async () => {
  362. titleDialog.value = "新增";
  363. editVisible.value = true;
  364. editRuleForm.identity = "";
  365. editRuleForm.apply = "";
  366. editRuleForm.id = "";
  367. };
  368. //编辑按钮 (-------------------------------------------)
  369. const editClick = async (row) => {
  370. titleDialog.value = "编辑";
  371. editVisible.value = true;
  372. console.log(row);
  373. editRuleForm.identity = row.name;
  374. editRuleForm.apply = row.categoryId;
  375. editRuleForm.id = row.id;
  376. };
  377. const cancelEdit = () => {
  378. editVisible.value = false;
  379. editRef.value.resetFields();
  380. editRuleForm.identity = "";
  381. editRuleForm.apply = "";
  382. editRuleForm.id = "";
  383. };
  384. // 确定编辑
  385. const confirmEdit = (formEl) => {
  386. if (!formEl) return;
  387. formEl.validate(async (valid, fields) => {
  388. if (valid) {
  389. let data = {
  390. name: editRuleForm.identity,
  391. categoryId: editRuleForm.apply,
  392. };
  393. let res = "";
  394. // 根据id判断是编辑还是添加
  395. if (editRuleForm.id) {
  396. data.id = editRuleForm.id;
  397. res = await axios({
  398. method: "post",
  399. url: api.value + "/wanzai/api/smartDuties/updateSmartDutiesById",
  400. headers: {},
  401. data: data,
  402. });
  403. } else {
  404. res = await axios({
  405. method: "post",
  406. url: api.value + "/wanzai/api/smartDuties/insertSmartDuties",
  407. headers: {},
  408. data: data,
  409. });
  410. }
  411. console.log(res, "添加成功");
  412. if (res.data.code == 200) {
  413. editVisible.value = false;
  414. getList();
  415. editRef.value.resetFields();
  416. ElMessage({
  417. type: "success",
  418. showClose: true,
  419. message: res.data.message,
  420. center: true,
  421. });
  422. } else {
  423. ElMessage({
  424. type: "error",
  425. showClose: true,
  426. message: res.data.message,
  427. center: true,
  428. });
  429. }
  430. }
  431. });
  432. };
  433. //删除按钮
  434. const del = async (row) => {
  435. let data = {
  436. id: row.id,
  437. };
  438. let res = await axios({
  439. method: "get",
  440. url: api.value + "/wanzai/api/smartDuties/deleteSmartDutiesById",
  441. headers: {
  442. // token: sessionStorage.getItem("token"),
  443. // user_head: sessionStorage.getItem("userhead"),
  444. },
  445. params: data,
  446. });
  447. if (res.data.code == 200) {
  448. if (tableData.list.length == 1 && currentPage.value != 1) {
  449. currentPage.value = currentPage.value - 1;
  450. }
  451. getList();
  452. ElMessage({
  453. type: "success",
  454. showClose: true,
  455. message: res.data.message,
  456. center: true,
  457. });
  458. } else {
  459. ElMessage({
  460. type: "error",
  461. showClose: true,
  462. message: res.data.message,
  463. center: true,
  464. });
  465. }
  466. // console.log(res);
  467. };
  468. // 多选框功能
  469. const handleSelectionChange = (val) => {
  470. console.log(val);
  471. selectData.list = val;
  472. };
  473. //导出功能
  474. // const importExcel = async () => {
  475. // if (searchInput.createTime == null) {
  476. // searchInput.createTime = "";
  477. // }
  478. // let data = new FormData();
  479. // data.set("car_number", searchInput.carnumber);
  480. // data.set("create_time", searchInput.createTime);
  481. // let res = await axios({
  482. // method: "post",
  483. // url: api.value + "/carBook/cinfotoExcel.action",
  484. // headers: {
  485. // token: sessionStorage.getItem("token"),
  486. // },
  487. // data: data,
  488. // });
  489. // // console.log(res, "导出账号");
  490. // if (res.data.code == 200) {
  491. // // const elt = document.createElement("a");
  492. // // elt.setAttribute(
  493. // // "href",
  494. // // "https://chtech.ncjti.edu.cn/carstop" + res.data.downurl
  495. // // );
  496. // // elt.setAttribute("download", "file.png");
  497. // // elt.style.display = "none";
  498. // // document.body.appendChild(elt);
  499. // // elt.click();
  500. // var downloadPath = "https://chtech.ncjti.edu.cn/carstop" + res.data.downurl;
  501. // console.log("获得地址数据:", downloadPath);
  502. // var downloadLink = document.createElement("a");
  503. // downloadLink.style.display = "none"; // 使其隐藏
  504. // downloadLink.href = downloadPath;
  505. // downloadLink.download = "";
  506. // downloadLink.click();
  507. // document.body.appendChild(downloadLink);
  508. // document.body.removeChild(downloadLink);
  509. // ElMessage({
  510. // type: "success",
  511. // showClose: true,
  512. // message: res.data.message,
  513. // center: true,
  514. // });
  515. // } else {
  516. // ElMessage({
  517. // type: "error",
  518. // showClose: true,
  519. // message: res.data.message,
  520. // center: true,
  521. // });
  522. // }
  523. // };
  524. // 表格斑马纹颜色修改
  525. const tableRowClassName = ({ row, rowIndex }) => {
  526. if (rowIndex % 2 === 0) {
  527. return "even";
  528. } else if (rowIndex % 2 !== 0) {
  529. return "odd";
  530. }
  531. return "";
  532. };
  533. // 分页
  534. const handleCurrentChange = (value) => {
  535. // console.log(value);
  536. currentPage.value = value;
  537. getList();
  538. };
  539. onBeforeMount(async () => {
  540. api.value = store.state.user.api;
  541. getList();
  542. // applyList(); // 应用列表
  543. });
  544. onUnmounted(() => {
  545. // document.removeEventListener("keyup", Enters);
  546. });
  547. </script>
  548. <style scoped lang="scss">
  549. .content-box {
  550. min-width: 600px;
  551. width: calc(100vw - 260px);
  552. height: calc(100vh - 105px);
  553. margin: 20px auto;
  554. border-radius: 8px;
  555. background-color: #fff;
  556. color: #fff;
  557. display: flex;
  558. flex-direction: column;
  559. box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
  560. .left {
  561. // width: calc(100wh - 40px);
  562. display: flex;
  563. align-items: center;
  564. margin: 0 30px;
  565. border-bottom: 1px solid #ccc;
  566. color: rgb(0, 0, 0);
  567. font-size: 18px;
  568. font-weight: 600;
  569. span {
  570. display: block;
  571. height: 60px;
  572. line-height: 60px;
  573. margin-right: 20px;
  574. }
  575. .is_active {
  576. color: rgba(111, 182, 184, 1);
  577. }
  578. }
  579. .scrollId {
  580. overflow: auto;
  581. height: calc(100% - 61px);
  582. }
  583. .middle {
  584. width: 96%;
  585. margin: 0 auto;
  586. color: #000;
  587. // border-bottom: 1px solid rgb(231, 231, 231);
  588. .filter {
  589. display: flex;
  590. flex-wrap: wrap;
  591. align-items: center;
  592. margin: 10px 0 0 0;
  593. .search {
  594. color: #fff;
  595. }
  596. .condition {
  597. display: flex;
  598. align-items: center;
  599. margin: 10px 30px 10px 0;
  600. :deep(.el-input .el-input__inner) {
  601. font-size: 14px;
  602. }
  603. span {
  604. margin: 0 10px 0 0;
  605. }
  606. }
  607. }
  608. .gongneng {
  609. margin: 10px 0 20px 0;
  610. span {
  611. color: #fff;
  612. }
  613. .el-button {
  614. margin-right: 10px;
  615. }
  616. }
  617. :deep(.cont) {
  618. width: 60%;
  619. margin: 20px auto;
  620. }
  621. :deep(.download) {
  622. display: flex;
  623. align-items: center;
  624. margin: 10px;
  625. }
  626. :deep(.download span) {
  627. font-size: 16px;
  628. margin-left: 20px;
  629. }
  630. :deep(.cont .el-button) {
  631. margin-left: 60px;
  632. margin-bottom: 30px;
  633. }
  634. :deep(.cont .accomplish) {
  635. width: 100%;
  636. display: flex;
  637. justify-content: center;
  638. }
  639. :deep(.cont .accomplish .el-button) {
  640. width: 50%;
  641. margin: 0;
  642. }
  643. }
  644. .footer {
  645. width: 96%;
  646. height: calc(100% - 210px);
  647. margin: 10px auto 30px;
  648. min-height: 300px;
  649. .el-table--fit {
  650. height: 100% !important;
  651. :deep(.el-table__header-wrapper) {
  652. background-color: #000;
  653. font-size: 14px;
  654. tr {
  655. // color: #000;
  656. }
  657. }
  658. :deep(.el-table__row) {
  659. height: 50px;
  660. font-size: 14px;
  661. // color: #000;
  662. &:hover {
  663. td {
  664. background-color: rgba(223, 236, 254, 1);
  665. }
  666. }
  667. }
  668. :deep(.el-table__row):nth-child(2n) {
  669. .el-table-fixed-column--right {
  670. background-color: rgba(240, 243, 247, 1);
  671. }
  672. }
  673. :deep(.el-table__row td) {
  674. padding: 0;
  675. border: 0;
  676. }
  677. .el-button--primary {
  678. margin-left: 5px;
  679. }
  680. :deep(.el-table__body .even) {
  681. background-color: #fff;
  682. }
  683. :deep(.el-table__body .odd) {
  684. background-color: rgba(240, 243, 247, 1);
  685. }
  686. :deep(.edit) {
  687. display: flex;
  688. align-items: center;
  689. justify-content: center;
  690. color: rgba(111, 182, 184, 1);
  691. }
  692. :deep(.look) {
  693. padding: 0 10px;
  694. cursor: pointer;
  695. color: rgba(30, 125, 251, 1);
  696. }
  697. .del {
  698. padding: 0 10px;
  699. color: rgba(212, 48, 48, 1);
  700. cursor: pointer;
  701. }
  702. // :deep(.look):hover {
  703. // color: red;
  704. // }
  705. // :deep(.del):hover {
  706. // color: red;
  707. // }
  708. }
  709. }
  710. // 编辑按钮
  711. :deep(.editDialog) {
  712. // height: 420px;
  713. border-radius: 11px;
  714. .el-dialog__header {
  715. border-radius: 11px 11px 0 0;
  716. background: rgba(237, 241, 245, 1);
  717. font-weight: 600;
  718. margin: 0;
  719. .el-dialog__headerbtn {
  720. outline: none;
  721. }
  722. }
  723. .el-dialog__body {
  724. padding: 30px 30px 10px 30px;
  725. .el-form-item__content {
  726. width: 200px;
  727. .el-input-group__append {
  728. background-color: rgba(222, 234, 252, 1);
  729. color: rgba(0, 97, 255, 1);
  730. cursor: pointer;
  731. user-select: none;
  732. }
  733. }
  734. .options {
  735. margin: 50px 20px 20px 0;
  736. width: 100%;
  737. .el-form-item__content {
  738. display: flex;
  739. flex-direction: row-reverse;
  740. }
  741. .queding {
  742. color: #fff;
  743. margin-left: 15px;
  744. }
  745. }
  746. }
  747. }
  748. // 指纹弹窗
  749. :deep(.fingerprint) {
  750. width: 611px;
  751. height: 486px;
  752. border-radius: 11px;
  753. .el-dialog__header {
  754. border-radius: 11px 11px 0 0;
  755. background: rgba(237, 241, 245, 1);
  756. font-weight: 600;
  757. margin: 0;
  758. .el-dialog__headerbtn {
  759. outline: none;
  760. }
  761. }
  762. .el-dialog__body {
  763. padding: 0;
  764. .elbody {
  765. display: flex;
  766. justify-content: space-between;
  767. align-items: center;
  768. padding: 20px 20px;
  769. font-size: 18px;
  770. color: #000;
  771. border-bottom: 0.5px solid #ccc;
  772. i {
  773. cursor: pointer;
  774. }
  775. }
  776. }
  777. .el-dialog__footer {
  778. .el-button--primary {
  779. background: rgba(41, 109, 227, 1);
  780. }
  781. }
  782. }
  783. // 身份证读取
  784. :deep(.addIdentityCard) {
  785. // height: 420px;
  786. border-radius: 11px;
  787. .el-dialog__header {
  788. border-radius: 11px 11px 0 0;
  789. background: rgba(237, 241, 245, 1);
  790. font-weight: 600;
  791. margin: 0;
  792. .el-dialog__headerbtn {
  793. outline: none;
  794. }
  795. }
  796. .el-dialog__body {
  797. padding: 30px 20px 10px 20px;
  798. height: 330px;
  799. font-size: 16px;
  800. font-weight: 600;
  801. color: #000;
  802. .el-steps {
  803. width: 600px;
  804. transform: translateX(90px);
  805. margin: 0 0 40px 0;
  806. }
  807. .title {
  808. text-align: center;
  809. }
  810. .icons {
  811. display: flex;
  812. justify-content: center;
  813. img {
  814. width: 70px;
  815. margin: 40px 0;
  816. }
  817. .loading {
  818. animation: move 3s linear;
  819. }
  820. @keyframes move {
  821. 0% {
  822. transform: rotate(0);
  823. }
  824. 100% {
  825. transform: rotate(360deg);
  826. }
  827. }
  828. }
  829. .retry {
  830. text-align: center;
  831. span {
  832. color: red;
  833. padding: 0 8px;
  834. cursor: pointer;
  835. }
  836. }
  837. }
  838. }
  839. .pageSize {
  840. display: flex;
  841. align-items: center;
  842. justify-content: space-between;
  843. margin: 0 30px;
  844. span {
  845. color: #000;
  846. }
  847. .el-pagination {
  848. // width: 1600px;
  849. :deep(.el-pagination__total) {
  850. color: #000;
  851. }
  852. :deep(.el-pagination__goto) {
  853. color: #000;
  854. }
  855. :deep(.el-pagination__classifier) {
  856. color: #000;
  857. }
  858. :deep(.el-input__wrapper) {
  859. border: 1px solid rgba(0, 0, 0, 1);
  860. border-radius: 5px;
  861. box-shadow: none;
  862. }
  863. :deep(.el-pager li) {
  864. margin: 0 5px;
  865. border: 1px solid rgba(0, 0, 0, 1);
  866. border-radius: 5px;
  867. background-color: transparent;
  868. }
  869. :deep(.el-pager li.is-active) {
  870. // background-color: rgba(0, 97, 255, 0.8);
  871. border: 1px solid rgba(0, 97, 255, 1);
  872. color: rgba(0, 97, 255, 1);
  873. }
  874. :deep(.btn-prev) {
  875. margin-right: 5px;
  876. border: 1px solid rgba(0, 0, 0, 1);
  877. border-radius: 5px;
  878. background-color: transparent;
  879. }
  880. :deep(.btn-next) {
  881. margin-left: 5px;
  882. border: 1px solid rgba(0, 0, 0, 1);
  883. border-radius: 5px;
  884. background-color: transparent;
  885. }
  886. }
  887. }
  888. }
  889. .el-input {
  890. width: 192px;
  891. }
  892. </style>