From 2d44c32e5781a315d97752d7a4a43e2492635ae8 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期四, 05 十二月 2024 18:11:16 +0800 Subject: [PATCH] 0000 --- src/views/system/tijian/index.vue | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue index c6f3d7d..8c2fdc5 100644 --- a/src/views/system/tijian/index.vue +++ b/src/views/system/tijian/index.vue @@ -2316,7 +2316,7 @@ }; var jStr = JSON.stringify(jsonObj); this.websocket.send(jStr); - alert("璇锋斁韬唤璇佸啀鐐圭‘璁�"); + // alert("璇锋斁韬唤璇佸啀鐐圭‘璁�"); var jsonObj = { // name: "readCert", }; @@ -2382,7 +2382,9 @@ // 鏈�鏂颁娇鐢╳ebSocket閫氫俊 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 +2406,9 @@ "data:image/jpeg;base64," + resultObj.data.img; } - } else if (resultObj.resultFlag == "-1") { + } else { + this.$message.error(resultObj.msg) + }/* if (resultObj.resultFlag == "-1") { if (resultObj.errorMsg == "绔彛鎵撳紑澶辫触") { //alert("璇诲崱鍣ㄦ湭杩炴帴"); } else { @@ -2412,7 +2416,7 @@ } } else if (resultObj.resultFlag == "-2") { //alert(resultObj.errorMsg); - } + } */ }, // TODO 浠ヤ笅浠g爜鍙兘鏄尘宸濅娇鐢ㄧ殑 jingChuanHandlerWebSocketResult(resultObj) { -- Gitblit v1.8.0