identity.vue 23 KB

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