identity.vue 24 KB

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