Browse Source

土地现状查不到

zpf 9 months ago
parent
commit
4ba2af0147
1 changed files with 20 additions and 19 deletions
  1. 20 19
      src/components/Query/clickQuery/MultiLevelQuery.vue

+ 20 - 19
src/components/Query/clickQuery/MultiLevelQuery.vue

@@ -323,6 +323,8 @@ export default {
             const that = this;
             store.state.query_pick_last_pane = null;
             store.state.query_pick_pane = [];
+            this.tableData = [];
+            this.tableData_qwnership = [];
 
             this.remove_query_click_by_iserver();
 
@@ -388,7 +390,6 @@ export default {
 
                 for (let index = 0; index < data.data.length; index++) {
                     const element = data.data[index];
-                    console.log('element: ', element);
                     let tableId = element.tableId;
                     let pane_obj = {
                         sourcePointWkt: wkt,
@@ -415,6 +416,7 @@ export default {
 
                     } else {
                         let res = await GetTabsPane(pane_obj);
+
                         if (element.defaultType == "0") {
                             // store.state.query_pick_pane.push({
                             //     name: element.name,
@@ -482,28 +484,27 @@ export default {
             return secondArray;
         },
         handleClick(tab, event) {
+            console.log('tab: ', tab);
             let index = Number(tab.index) - 1
 
             if (tab.name == '权属') {
                 this.qwnershipTabsFun();
             } else {
-                if (tab.closable == true) {
-                    store.state.query_pick_pane.forEach((res) => {
-                        if (res.name == tab.name) {
-                            let data = [];
-
-                            this.active_tabs_table = res.value.data.data;
-                            this.rawData = res.value.data.data
-                            res.value.data.datalist.forEach((res) => {
-                                data.push({
-                                    name: res.groupvalue,
-                                    value: res.sumvalue
-                                })
+                store.state.query_pick_pane.forEach((res) => {
+                    if (res.name == tab.name) {
+                        let data = [];
+
+                        this.active_tabs_table = res.value.data.data;
+                        this.rawData = res.value.data.data
+                        res.value.data.datalist.forEach((res) => {
+                            data.push({
+                                name: res.groupvalue,
+                                value: res.sumvalue
                             })
-                            this.setEchart(data, "vertical", index);
-                        }
-                    })
-                }
+                        })
+                        this.setEchart(data, "vertical", index);
+                    }
+                })
             }
 
 
@@ -547,8 +548,8 @@ export default {
         },
         setEchart(data, type, index) {
             this.$nextTick(() => {
-                let max = index == 0 ? 3 : 10
-                let legend_right = index == 0 ? "2%" : "10%"
+                let max = 5
+                let legend_right = "10%"
                 this.$refs.echartRef[index].setOptions({ data, type, max, legend_right });
             });
         },