From d6b1c3f862715fd2de5df6d4ccf940c336bade47 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期二, 03 十二月 2024 17:02:00 +0800 Subject: [PATCH] lkk 12.03 --- src/views/system/tijian/index.vue | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue index 96721e4..6f317e7 100644 --- a/src/views/system/tijian/index.vue +++ b/src/views/system/tijian/index.vue @@ -1619,10 +1619,11 @@ pacName: null, pacRemark: null, }, - valueUrl: "ws://127.0.0.1:18890", + // valueUrl: "ws://127.0.0.1:18890", + valueUrl: "ws://127.0.0.1:6789/websocket", valueUrls: "ws://127.0.0.1:6789/websocket", // valueUrls: "ws://"+getIp() +":6789/websocket", - WebSocket: null, + webSocket: null, // 韬唤璇侀渶瑕� // socket: null, // value: 1, @@ -2277,8 +2278,10 @@ // this.$message.error("姝ょ敤鎴蜂笉瀛樺湪"); // }); } else { + let configKey = "getInfoFromSqlData"; getconfigKey(configKey).then((res) => { + console.log(res); if (res.code == 200) { if (res.msg == "N") { var websocket = null; @@ -2305,16 +2308,17 @@ this.websocket = websocket; // 杩炴帴璁惧 var jsonObj = { - name: "connect", + // name: "connect", + type: "1", }; var jStr = JSON.stringify(jsonObj); this.websocket.send(jStr); alert("璇锋斁韬唤璇佸啀鐐圭‘璁�"); var jsonObj = { - name: "readCert", + // name: "readCert", }; - var jStr = JSON.stringify(jsonObj); - this.websocket.send(jStr); + // var jStr = JSON.stringify(jsonObj); + // this.websocket.send(jStr); this.dialogVisible = false; }; @@ -2322,6 +2326,7 @@ websocket.onmessage = function (event) { var resultObj = eval("(" + event.data + ")"); //resultFlag涓�0浠h〃璇诲崱鎴愬姛 + if ( resultObj.name == "readCard" || resultObj.name == "readCert" || -- Gitblit v1.8.0