subject.vue 23 KB

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