22
This commit is contained in:
@@ -38,14 +38,15 @@
|
|||||||
<div class="grid-container">
|
<div class="grid-container">
|
||||||
<h2 :title="girdName2">{{ girdName2 }}</h2>
|
<h2 :title="girdName2">{{ girdName2 }}</h2>
|
||||||
<div class="grid-list">
|
<div class="grid-list">
|
||||||
<div
|
<div @click.stop="onGrid2Click(girdId1, girdName2)">{{ girdName2 }}</div>
|
||||||
|
<!-- <div
|
||||||
:class="[currIndex2 === index ? 'grid-active' : '']"
|
:class="[currIndex2 === index ? 'grid-active' : '']"
|
||||||
v-for="(item, index) in girdInfoList2"
|
v-for="(item, index) in girdInfoList2"
|
||||||
:key="index"
|
:key="index"
|
||||||
:title="item.girdName"
|
:title="item.girdName"
|
||||||
@click.stop="onGrid2Click(item, index)">
|
@click.stop="onGrid2Click(item, index)">
|
||||||
{{ item.girdName }}
|
{{ item.girdName }}
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -120,6 +121,7 @@
|
|||||||
isShowGrid4: false,
|
isShowGrid4: false,
|
||||||
isShowGrid5: false,
|
isShowGrid5: false,
|
||||||
currIndex2: 0,
|
currIndex2: 0,
|
||||||
|
girdId1: '',
|
||||||
currIndex3: 0,
|
currIndex3: 0,
|
||||||
currIndex4: 0,
|
currIndex4: 0,
|
||||||
currIndex5: 0,
|
currIndex5: 0,
|
||||||
@@ -134,7 +136,8 @@
|
|||||||
girdNum3: 0,
|
girdNum3: 0,
|
||||||
girdNum4: 0,
|
girdNum4: 0,
|
||||||
girdNum5: 0,
|
girdNum5: 0,
|
||||||
currGird: ''
|
currGird: '',
|
||||||
|
girdName1: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -159,9 +162,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onGrid2Click (item, index) {
|
onGrid2Click (id, name) {
|
||||||
this.currIndex2 = index
|
// this.currIndex2 = index
|
||||||
this.girdName2 = item.girdName
|
// this.girdName2 = item.girdName
|
||||||
this.currIndex3 = -1
|
this.currIndex3 = -1
|
||||||
this.currIndex4 = -1
|
this.currIndex4 = -1
|
||||||
this.currIndex5 = -1
|
this.currIndex5 = -1
|
||||||
@@ -169,10 +172,10 @@
|
|||||||
this.girdInfoList3 = []
|
this.girdInfoList3 = []
|
||||||
this.girdInfoList4 = []
|
this.girdInfoList4 = []
|
||||||
this.girdInfoList5 = []
|
this.girdInfoList5 = []
|
||||||
this.$emit('nodeClick', item.id)
|
this.$emit('nodeClick', id)
|
||||||
|
|
||||||
this.currGird = item.girdName
|
this.currGird = name
|
||||||
this.getInfo(item.id)
|
this.getInfo(id)
|
||||||
},
|
},
|
||||||
|
|
||||||
onGrid3Click (item, index) {
|
onGrid3Click (item, index) {
|
||||||
@@ -234,6 +237,11 @@
|
|||||||
res.data.girdName3 && (this.girdName4 = res.data.girdName3)
|
res.data.girdName3 && (this.girdName4 = res.data.girdName3)
|
||||||
res.data.girdName4 && (this.girdName5 = res.data.girdName4)
|
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.girdNum2 != null && (this.girdNum3 = res.data.girdNum2)
|
||||||
res.data.girdNum3 != null && (this.girdNum4 = res.data.girdNum3)
|
res.data.girdNum3 != null && (this.girdNum4 = res.data.girdNum3)
|
||||||
res.data.girdNum4 != null && (this.girdNum5 = res.data.girdNum4)
|
res.data.girdNum4 != null && (this.girdNum5 = res.data.girdNum4)
|
||||||
|
|||||||
Reference in New Issue
Block a user