+
liuyg
2021-11-23 8a7e109e81db2078e49fa3e700c4469e04e71320
+
1 files modified
46 ■■■■ changed files
src/views/securityGuard/securityGuard.vue 46 ●●●● patch | view | raw | blame | history
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;