From 8a7e109e81db2078e49fa3e700c4469e04e71320 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 23 Nov 2021 09:38:51 +0800
Subject: [PATCH] +

---
 src/views/securityGuard/securityGuard.vue |   46 +++++++---------------------------------------
 1 files changed, 7 insertions(+), 39 deletions(-)

diff --git a/src/views/securityGuard/securityGuard.vue b/src/views/securityGuard/securityGuard.vue
index f74fc38..22cd3ed 100644
--- a/src/views/securityGuard/securityGuard.vue
+++ b/src/views/securityGuard/securityGuard.vue
@@ -509,6 +509,7 @@
       }
     };
     return {
+      nowCell: "1", //1为手动,2为身份证设备读取
       // 表格数据
       defaults: {},
       // 身份证设备数据
@@ -1757,6 +1758,8 @@
       }
       const userMap = {
         user: {
+          //是否是身份证自动识别进入
+          cell: this.nowCell,
           //指纹↓
           fingerprint: zhiwen.imgBMP, //图
           myPicture: zhiwen.featuredata, //特征
@@ -1828,6 +1831,8 @@
       }
       // console.log(row);
       // return;
+      //是否是身份证自动识别进入
+      row["cell"] = this.nowCell;
       update(row).then(
         () => {
           this.initFlag = false;
@@ -2114,45 +2119,7 @@
               that.form.sex = data.certType;
               //禁止编辑
               that.openClosegroup(true);
-              //赋值数据
-              // that.obj = {
-              //   name: data.partyName,
-              //   national: data.nation,
-              //   certAddress: data.certAddress,
-              //   sex:
-              //     data.certType == 0
-              //       ? "未知"
-              //       : data.certType == 1
-              //       ? "男"
-              //       : data.certType == 2
-              //       ? "女"
-              //       : data.certType == 9
-              //       ? "未说明"
-              //       : "未能识别",
-              //   imgs: "data:image/bmp;base64," + data.identityPic,
-              //   yxqend:
-              //     data.expDate.slice(0, 4) +
-              //     "-" +
-              //     data.expDate.slice(4, 6) +
-              //     "-" +
-              //     data.expDate.slice(6, 8),
-              //   yxqstart:
-              //     data.effDate.slice(0, 4) +
-              //     "-" +
-              //     data.effDate.slice(4, 6) +
-              //     "-" +
-              //     data.effDate.slice(6, 8),
-              //   birthday:
-              //     data.bornDay.slice(0, 4) +
-              //     "-" +
-              //     data.bornDay.slice(4, 6) +
-              //     "-" +
-              //     data.bornDay.slice(6, 8),
-              //   id: data.certNumber,
-              //   qfjg: data.certOrg,
-              // };
-              // that.$store.commit("setCardInfor", that.obj);
-              // that.$store.commit("setCardidState", true);
+              that.nowCell = "2";
             } else if (resultObj.resultFlag == "-1") {
               if (resultObj.errorMsg == "端口打开失败") {
                 console.log("读卡器未连接");
@@ -2209,6 +2176,7 @@
         //可以编辑
       }
       this.openClosegroup(false);
+      this.nowCell = "1";
     },
     beforeOpen(done, type) {
       var that = this;

--
Gitblit v1.9.3