bug修改

This commit is contained in:
Hobart 2023-02-22 15:24:54 +08:00
parent f246d6e7f8
commit 81c9816066
2 changed files with 9 additions and 7 deletions

View File

@ -14,7 +14,7 @@
</div>
<div>
<div>
{{ typeValue.time }}
{{ typeValue.time ? typeValue.time : '' }}
</div>
</div>
</el-card>
@ -55,7 +55,7 @@
</div>
<div>
<div>
{{ dataArr[0].time }}
{{ dataArr[0].time ? dataArr[0].time : '' }}
</div>
</div>
</div>
@ -70,10 +70,10 @@
<span
style="width: 10px;height:10px;border-radius: 50%;background-color: #3297ff;display: inline-block;vertical-align: middle;margin-right: 8px;"
></span>
<span style="font-size:18px;">{{ this.chartName + '-' + this.componentName + '-' + '表格'+'-'+triggerType }}</span>
<span style="font-size:18px;">{{ this.chartName + '-' + this.componentName + '-' + '表格' + '-' + triggerType }}</span>
</div>
<div class="tableTime">
{{ dataArr[0].time }}
{{ dataArr[0].time ? dataArr[0].time : '' }}
</div>
</div>
<div v-if="pageType == '断面'" style="margin-bottom: 20px; border: 1px solid #e4e7ed">
@ -180,7 +180,7 @@ export default {
//
dataArr: {
handler(newVal) {
console.log("dataArr",newVal)
console.log('dataArr', newVal);
},
immediate: true

View File

@ -20,7 +20,7 @@
</p>
<span class="downPull1" data-num="1" @click="sectionHandle(i)"></span>
</div>
<el-collapse v-model="s.children[0].analogAreaComponentId">
<el-collapse v-model="acticveName">
<div v-for="o in s.children" :key="o.analogAreaComponentId">
<el-collapse-item :title=o.componentName :name="o.analogAreaComponentId" >
<OD
@ -130,7 +130,7 @@ export default {
},
data() {
return {
acticveName: '1',
acticveName: [],
title1: '01断面',
title2: '01区域',
dialogVisible: false,
@ -391,10 +391,12 @@ export default {
});
this.sectionData = this.sectionArr.map(item => {
item = { title: item, children: [] };
this.acticveName=[]
this.componentList.forEach(val => {
if (item.title == val.combinationName) {
item.children.push(val);
}
this.acticveName.push(val.analogAreaComponentId)
});
return item;
});