From c609695d14564f0bf4a2b119718400b2a2be037e Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期五, 03 三月 2023 19:02:44 +0800 Subject: [PATCH] 属性查询高级查询修改,数据查询工点表属性查询 --- src/components/MapView/mapMenuTop.vue | 30 ++++++++---------------------- 1 files changed, 8 insertions(+), 22 deletions(-) diff --git a/src/components/MapView/mapMenuTop.vue b/src/components/MapView/mapMenuTop.vue index b5d17dc..2355a02 100644 --- a/src/components/MapView/mapMenuTop.vue +++ b/src/components/MapView/mapMenuTop.vue @@ -294,13 +294,13 @@ if (data.code != 200) { this.$message.error("鍒楄〃璋冪敤澶辫触") } - - var val = data.result.filter(res => { - if (res.rows != 0) { - return res - } - }) - + debugger + // var val = data.result.filter(res => { + // if (res.rows != 0) { + // return res + // } + // }) + var val = data.result var std = []; val.filter((item) => { if (std.indexOf(item.bak) == -1) { @@ -308,7 +308,7 @@ this.layerData.push( { val: item.bak, - label: item.tabDesc, + label: item.bak, children: [], } ) @@ -324,20 +324,6 @@ }) }) - - - - - // for (var i in option) { - // var val_Data = option[i] - // val_Data.id = "1" + i - // val_Data.label = val_Data.tabDesc - // if (option[i].ns == "bd") { - // this.layerData[0].children.push(val_Data) - // } else { - // this.layerData[1].children.push(val_Data) - // } - // } }, //鑾峰彇閫夋嫨鏍戠殑鑺傜偣 getCheckedNodes() { -- Gitblit v1.9.3