semester.vue 22 KB

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