grades.vue 25 KB

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