代码提交

This commit is contained in:
luoshiwen 2023-02-22 09:15:38 +08:00
parent 30bfca0a0d
commit e42ece6210
12 changed files with 40 additions and 39 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -125,13 +125,13 @@ export default {
}
},
mounted() {
this.xData = this.typeValue.type_data.map(ele => {
return ele.name;
});
this.yData = this.typeValue.type_data.map(ele => {
return ele.quantity;
});
this.drawBar();
// this.xData = this.typeValue.type_data.map(ele => {
// return ele.name;
// });
// this.yData = this.typeValue.type_data.map(ele => {
// return ele.quantity;
// });
// this.drawBar();
},
watch: {
typeValue: {

View File

@ -152,7 +152,7 @@ export default {
watch: {
list: {
handler(newVal) {
if ((newVal && this.status == '触发') || this.status == '周期时刻') {
if (newVal ) {
// x
this.xData = newVal.map(val => {
return val.time;

View File

@ -121,15 +121,15 @@ export default {
}
},
mounted() {
if (this.typeValue) {
this.typeValue.type_data.forEach(ele => {
this.seriesData.push({
name: ele.name,
value: ele.quantity
});
});
this.drawPie();
}
// if (this.typeValue) {
// this.typeValue.type_data.forEach(ele => {
// this.seriesData.push({
// name: ele.name,
// value: ele.quantity
// });
// });
// this.drawPie();
// }
},
watch: {
//

View File

@ -145,16 +145,16 @@ export default {
watch: {
list: {
handler(newVal) {
this.odData = []
console.log(newVal ,'1111111111');
if (newVal) {
newVal[newVal.length - 1].ob_data.forEach(ele => {
ele.forEach(item => {
this.odData.push([])
})
})
}
console.log(this.odData,'155');
// this.odData = []
// console.log(newVal ,'1111111111');
// if (newVal) {
// newVal[newVal.length - 1].ob_data.forEach(ele => {
// ele.forEach(item => {
// this.odData.push([])
// })
// })
// }
// console.log(this.odData,'155');
this.drawThermalChart();
},
// immediate:true

View File

@ -21,7 +21,7 @@
</div>
</div>
<el-card v-show="echartArr.includes('数值')" style="width: 150px; margin-bottom: 20px; text-align: center">
<div v-if="dataArr && dataArr.length != 0">
<div v-if="dataArr">
<div v-if="title == '类型'">
<span style="font-size: 15px;">类型数量总和</span><br />
<span style="font-size: 30px; font-weight: bold">
@ -42,15 +42,15 @@
<span style="font-size: 30px; font-weight: bold">{{ dataArr[0].headway}}</span>
</div>
<div style="font-size: 30px; font-weight: bold" v-if="title == '排队数'">
<span style="font-size: 15px;">排队数</span>
<span style="font-size: 15px;">排队数</span><br />
<span style="font-size: 30px; font-weight: bold">{{ dataArr[0].n_queue }}</span>
</div>
<div style="font-size: 30px; font-weight: bold" v-if="title == '检测数'">
<span style="font-size: 15px;">检测数</span>
<span style="font-size: 15px;">检测数</span><br />
<span style="font-size: 30px; font-weight: bold">{{ dataArr[0].n_stay }}</span>
</div>
<div style="font-size: 30px; font-weight: bold" v-if="title == '延误'">
<span style="font-size: 15px;">延误</span>
<span style="font-size: 15px;">延误</span><br />
<span style="font-size: 30px; font-weight: bold">{{ dataArr[0].ave_delay }}</span>
</div>
<div>
@ -65,7 +65,7 @@
</el-card>
</div>
<div v-show="echartArr.includes('表格')">
<div class="tableTitle">
<div class="tableTitle" v-if="dataArr">
<div>
<span
style="width: 10px;height:10px;border-radius: 50%;background-color: #3297ff;display: inline-block;vertical-align: middle;margin-right: 8px;"

View File

@ -443,7 +443,7 @@ export default {
handler(newVal) {
this.triggerList = newVal
//
console.log(newVal, 'triggerlistData');
// console.log(newVal, 'triggerlistData');
this.componentList.forEach(ele => {
if (ele.trigger == undefined && ele.timeMode == '触发') {
@ -466,6 +466,7 @@ export default {
}
})
})
console.log(this.sectionData,'触发的筛选数据');
},
immediate: true
},