From c7735db135f9c3c99224d8b5d2157926efde0977 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 09 May 2022 09:56:10 +0800
Subject: [PATCH] 登录用户名提示修改为姓名

---
 src/views/qiandao/tables.vue |   69 ++++++++++++++++++++--------------
 1 files changed, 40 insertions(+), 29 deletions(-)

diff --git a/src/views/qiandao/tables.vue b/src/views/qiandao/tables.vue
index 7be1a98..e7017f7 100644
--- a/src/views/qiandao/tables.vue
+++ b/src/views/qiandao/tables.vue
@@ -32,6 +32,14 @@
           @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>
@@ -47,7 +55,7 @@
       page: {
         pageSize: 10,
         currentPage: 1,
-        total: 0,
+        total: 0
       },
       query: {},
       data: [],
@@ -69,9 +77,8 @@
         //   }
         // },
         labelWidth: "120",
-        menuWidth: 200,
+        menuWidth: 115,
         align: "center",
-        menuWidth: 90,
         refreshBtn: false,
         columnBtn: false,
         emptyBtnText: " ",
@@ -86,30 +93,30 @@
             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: {
@@ -118,8 +125,8 @@
       "cardInfor",
       "permission",
       "haveCardid",
-      "useZhiWen",
-    ]),
+      "useZhiWen"
+    ])
     // permissionList() {
     //   return {
     //     addBtn: this.vaildData(this.permission.notice_add, false),
@@ -139,12 +146,12 @@
         this.onLoad(
           this.page,
           {
-            idCardNo: this.cardInfor.id,
+            idCardNo: this.cardInfor.id
           },
           "shibie"
         );
       }
-    },
+    }
   },
   mounted() {
     // let dom = document.getElementsByClassName("el-table--small");
@@ -160,12 +167,16 @@
     //   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);
@@ -253,13 +264,13 @@
     },
     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 != "" &&
@@ -289,9 +300,9 @@
         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) {
@@ -299,12 +310,12 @@
           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);
@@ -324,7 +335,7 @@
               // });
               this.$message({
                 type: "success",
-                message: "请采集指纹并点击更新进行签到!",
+                message: "请采集指纹并点击更新进行签到!"
               });
             });
         } else {
@@ -428,10 +439,10 @@
     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) {
@@ -449,7 +460,7 @@
         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;
@@ -462,7 +473,7 @@
               featuredatas: "",
               imgBMP: "",
               url: "",
-              isoks: false,
+              isoks: false
             };
             this.useZhiWen("setZhiwenData", zhiwen);
           } else if (data.total == 1) {
@@ -475,7 +486,7 @@
               featuredatas: "",
               imgBMP: "",
               url: "",
-              isoks: false,
+              isoks: false
             };
             this.useZhiWen("setZhiwenData", zhiwen);
             this.msg("warning", "查询出多人,请选择对应人员更新!");
@@ -483,8 +494,8 @@
         }
         this.loading = false;
       });
-    },
-  },
+    }
+  }
 };
 </script>
 

--
Gitblit v1.9.3