| | |
| | | @click.stop="rowUps(row)" |
| | | >更新</el-button |
| | | > |
| | | <el-button |
| | | icon="icon-zhengjian" |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="heardrowUps(row)" |
| | | >手动签到</el-button |
| | | > |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | total: 0 |
| | | }, |
| | | query: {}, |
| | | data: [], |
| | |
| | | // } |
| | | // }, |
| | | labelWidth: "120", |
| | | menuWidth: 200, |
| | | menuWidth: 115, |
| | | align: "center", |
| | | menuWidth: 90, |
| | | refreshBtn: false, |
| | | columnBtn: false, |
| | | emptyBtnText: " ", |
| | |
| | | search: true, |
| | | searchSpan: 5, |
| | | searchLabelWidth: 45, |
| | | width: 70, |
| | | width: 70 |
| | | }, |
| | | { |
| | | label: "公司", |
| | | prop: "deptName", |
| | | search: true, |
| | | searchSpan: 6, |
| | | searchLabelWidth: 45, |
| | | searchLabelWidth: 45 |
| | | }, |
| | | { |
| | | label: "身份证号码", |
| | | prop: "idCardNo", |
| | | search: true, |
| | | searchSpan: 8, |
| | | searchLabelWidth: 80, |
| | | searchLabelWidth: 90, |
| | | // searchRange: true, |
| | | // searchValue: this.getuserid(), |
| | | width: 180, |
| | | }, |
| | | width: 180 |
| | | } |
| | | ], |
| | | delBtn: false, |
| | | editBtn: false, |
| | | addBtn: false, |
| | | }, |
| | | addBtn: false |
| | | } |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | "cardInfor", |
| | | "permission", |
| | | "haveCardid", |
| | | "useZhiWen", |
| | | ]), |
| | | "useZhiWen" |
| | | ]) |
| | | // permissionList() { |
| | | // return { |
| | | // addBtn: this.vaildData(this.permission.notice_add, false), |
| | |
| | | this.onLoad( |
| | | this.page, |
| | | { |
| | | idCardNo: this.cardInfor.id, |
| | | idCardNo: this.cardInfor.id |
| | | }, |
| | | "shibie" |
| | | ); |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | mounted() { |
| | | // let dom = document.getElementsByClassName("el-table--small"); |
| | |
| | | // console.log("不刷新"); |
| | | // } |
| | | let t = this; |
| | | window.addEventListener("resize", function () { |
| | | window.addEventListener("resize", function() { |
| | | t.resetHeight(); |
| | | }); |
| | | t.resetHeight(); |
| | | }, |
| | | methods: { |
| | | heardrowUps(row) { |
| | | //手动签到 |
| | | this.upDataMain(row); |
| | | }, |
| | | // getuserid() { |
| | | // console.log(12345); |
| | | // console.log(this.haveCardid); |
| | |
| | | }, |
| | | getZhiwen(row) { |
| | | let that = this; |
| | | getZhiwen(row.userId).then((res) => { |
| | | getZhiwen(row.userId).then(res => { |
| | | // console.log(res); |
| | | let zhiwen = { |
| | | featuredatas: res.data.data.myPicture, |
| | | imgBMP: res.data.data.fingerprint, |
| | | // url: row.fingerprint, |
| | | isoks: false, |
| | | isoks: false |
| | | }; |
| | | if ( |
| | | zhiwen.featuredatas != "" && |
| | |
| | | registered: row.registered, |
| | | fingerprint: row.fingerprint, |
| | | myPicture: row.myPicture, |
| | | candidateNo: row.candidateNo, |
| | | candidateNo: row.candidateNo |
| | | }; |
| | | upData(b).then((res) => { |
| | | upData(b).then(res => { |
| | | const data = res.data; |
| | | // console.log(data); |
| | | if (data.code == 200) { |
| | |
| | | this.$confirm("签到成功!", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "指纹采集", |
| | | type: "success", |
| | | type: "success" |
| | | }) |
| | | .then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "请继续放入身份证进行识别!", |
| | | message: "请继续放入身份证进行识别!" |
| | | }); |
| | | this.$store.commit("setIsClears", true); |
| | | // this.$store.commit("setCardidState", false); |
| | |
| | | // }); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "请采集指纹并点击更新进行签到!", |
| | | message: "请采集指纹并点击更新进行签到!" |
| | | }); |
| | | }); |
| | | } else { |
| | |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | msg: function (type, msg) { |
| | | msg: function(type, msg) { |
| | | this.$message({ |
| | | message: msg, |
| | | type: type, |
| | | type: type |
| | | }); |
| | | }, |
| | | onLoad(page, params = {}, shibie) { |
| | |
| | | this.page.total = 0; |
| | | return; |
| | | } |
| | | getList(page.currentPage, page.pageSize, values).then((res) => { |
| | | getList(page.currentPage, page.pageSize, values).then(res => { |
| | | // console.log(res); |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | |
| | | featuredatas: "", |
| | | imgBMP: "", |
| | | url: "", |
| | | isoks: false, |
| | | isoks: false |
| | | }; |
| | | this.useZhiWen("setZhiwenData", zhiwen); |
| | | } else if (data.total == 1) { |
| | |
| | | featuredatas: "", |
| | | imgBMP: "", |
| | | url: "", |
| | | isoks: false, |
| | | isoks: false |
| | | }; |
| | | this.useZhiWen("setZhiwenData", zhiwen); |
| | | this.msg("warning", "查询出多人,请选择对应人员更新!"); |
| | |
| | | } |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |