From 552c91eb2325126198a3361d3a2e9483913a8717 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 19 Sep 2022 11:38:24 +0800 Subject: [PATCH] 22 --- packages/bigscreen/dv/components/XyGrid.vue | 26 ++++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/packages/bigscreen/dv/components/XyGrid.vue b/packages/bigscreen/dv/components/XyGrid.vue index 2ecc5293..4b7dc04e 100644 --- a/packages/bigscreen/dv/components/XyGrid.vue +++ b/packages/bigscreen/dv/components/XyGrid.vue @@ -38,14 +38,15 @@

{{ girdName2 }}

-
{{ girdName2 }}
+
@@ -120,6 +121,7 @@ isShowGrid4: false, isShowGrid5: false, currIndex2: 0, + girdId1: '', currIndex3: 0, currIndex4: 0, currIndex5: 0, @@ -134,7 +136,8 @@ girdNum3: 0, girdNum4: 0, girdNum5: 0, - currGird: '' + currGird: '', + girdName1: '' } }, @@ -159,9 +162,9 @@ } }, - onGrid2Click (item, index) { - this.currIndex2 = index - this.girdName2 = item.girdName + onGrid2Click (id, name) { + // this.currIndex2 = index + // this.girdName2 = item.girdName this.currIndex3 = -1 this.currIndex4 = -1 this.currIndex5 = -1 @@ -169,10 +172,10 @@ this.girdInfoList3 = [] this.girdInfoList4 = [] this.girdInfoList5 = [] - this.$emit('nodeClick', item.id) + this.$emit('nodeClick', id) - this.currGird = item.girdName - this.getInfo(item.id) + this.currGird = name + this.getInfo(id) }, onGrid3Click (item, index) { @@ -234,6 +237,11 @@ res.data.girdName3 && (this.girdName4 = res.data.girdName3) res.data.girdName4 && (this.girdName5 = res.data.girdName4) + if (this.girdId1) { + this.girdName2 = res.data.girdName1 + this.girdId1 = res.data.girdId1 + } + res.data.girdNum2 != null && (this.girdNum3 = res.data.girdNum2) res.data.girdNum3 != null && (this.girdNum4 = res.data.girdNum3) res.data.girdNum4 != null && (this.girdNum5 = res.data.girdNum4)