From 3afa54cb5f7176fa52f6246127e19cc623d14767 Mon Sep 17 00:00:00 2001 From: lixuliang <lixuliang_hd@126.com> Date: 星期四, 12 十月 2023 17:59:22 +0800 Subject: [PATCH] Merge branch 'master' of http://183.162.245.49:82/GitServer/PM_YiZhuang_ZhengFuWuFuZhongXin_2haoPing_Web --- src/assets/js/mapMsg.js | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/assets/js/mapMsg.js b/src/assets/js/mapMsg.js index b8e2beb..c71bcf1 100644 --- a/src/assets/js/mapMsg.js +++ b/src/assets/js/mapMsg.js @@ -17,7 +17,7 @@ var that = this; window.addEventListener("message", res => { if (this.setTimeInterval) { - clearInterval(this.setTimeInterval); + clearInterval(this.setTimeInterval); this.setTimeInterval = null; } @@ -40,6 +40,8 @@ var rest = mapData.msgMach.rest; var rom = mapData.msgMach.lineRoam; var closeRomData = mapData.msgMach.closeRoam; + var acceptData =mapData.msgMach.acceptMsg; + console.log(result) var valRest = rest.filter((rs) => { if (param.indexOf(rs) > -1) { return rs; @@ -77,8 +79,23 @@ rpc.setCloseLineRomaing(); return } + var accept = acceptData.filter(res => { + if (param.indexOf(res) > -1) { + return res; + } + }) + if (accept.length > 0) { + rpc.getFuzzyQuery(result) + } + + + // else{ + // vueEvents.$emit("queryData", false); + // rpc.setClearAllMsg(); + // rpc.setMapRest(); + // } - rpc.getFuzzyQuery(result) + }, }; -- Gitblit v1.9.3