lkk
2024-12-05 470a98a975f0c95853dcecbce75d88763e66c191
src/views/system/tijian/index.vue
@@ -1620,7 +1620,8 @@
        pacRemark: null,
      },
      // valueUrl: "ws://127.0.0.1:18890",
      valueUrl: "ws://127.0.0.1::6789/websocket",
      // valueUrl: "ws://192.168.1.3:6789/websocket",
      valueUrl: "ws://127.0.0.1:6789/websocket",
      valueUrls: "ws://127.0.0.1:6789/websocket",
      // valueUrls: "ws://"+getIp() +":6789/websocket",
      webSocket: null,
@@ -2316,7 +2317,7 @@
                };
                var jStr = JSON.stringify(jsonObj);
                this.websocket.send(jStr);
                alert("请放身份证再点确认");
                // alert("请放身份证再点确认");
                var jsonObj = {
                  // name: "readCert",
                };
@@ -2382,7 +2383,9 @@
    // 最新使用webSocket通信
    readCardWebSocket(resultObj){
      let _this = this;
      if (resultObj.code === 200) {
      if (resultObj.code === 200 && resultObj.data.name != null) {
        console.log('213131');
          //回显相关数据
          _this.form.cusName = resultObj.data.name;
          _this.form.cusSex =
@@ -2404,7 +2407,9 @@
              "data:image/jpeg;base64," +
              resultObj.data.img;
          }
        } else if (resultObj.resultFlag == "-1") {
        } else {
          this.$message.warning('请放置身份证后再点击读取')
        }/* if (resultObj.resultFlag == "-1") {
          if (resultObj.errorMsg == "端口打开失败") {
            //alert("读卡器未连接");
          } else {
@@ -2412,7 +2417,7 @@
          }
        } else if (resultObj.resultFlag == "-2") {
          //alert(resultObj.errorMsg);
        }
        } */
    },
    // TODO 以下代码可能是泾川使用的
    jingChuanHandlerWebSocketResult(resultObj) {