From 9f9ae3e0253f2d657b6b337d62d269394d04ee09 Mon Sep 17 00:00:00 2001 From: surprise <15810472099@163.com> Date: 星期五, 17 十一月 2023 14:29:08 +0800 Subject: [PATCH] 版本更新 --- src/views/plotting/plottingInquire.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/plotting/plottingInquire.vue b/src/views/plotting/plottingInquire.vue index e320d13..8dad568 100644 --- a/src/views/plotting/plottingInquire.vue +++ b/src/views/plotting/plottingInquire.vue @@ -154,7 +154,7 @@ <div class="table_tr" v-for="(e, i) in resultList" :key="i"> <div class="table_td">{{ i + 1 }}</div> <div class="table_td"> - <span>{{ e.layerName }}</span> + <span>{{ e.layerName }}锛堢背锛�</span> <span>{{ e.avg }}</span> </div> </div> @@ -560,10 +560,11 @@ } }; const setOptionStart = () => { + resultList.value = []; layerArr.value = []; - layeroptions.value = []; + layerValue.value = ''; }; const setWebSocketStart = () => { // if (Window.ws) { @@ -581,6 +582,7 @@ if (val.analysisForPost && val.analysisForPost.token == token) { var data = val.analysisForPost; + console.log(data) switch (wktType.value) { case "Point": setWebSocketPoint(data); @@ -622,8 +624,9 @@ watch( () => store.state.plottingInquireData, (nVal, oVal) => { - if (!nVal) return; setOptionStart(); + setCloseWebSocket(); + if (!nVal) return; if (nVal.entitiesData.name != inquireData.value.name) { isShow.value = nVal.isshow; inquireData.value = nVal.entitiesData; -- Gitblit v1.9.3