代码提交

This commit is contained in:
luoshiwen 2023-02-21 10:58:26 +08:00
parent 1377494f02
commit 31fb608988
9 changed files with 29 additions and 25 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

View File

@ -6,9 +6,14 @@
export default {
name: 'barChart', //
props: {
list: Array,
default() {
return [];
list: {
type: Array,
default() {
return [];
},
},
typeValue: {
type:Object,
}
},
data() {
@ -93,7 +98,7 @@ export default {
itemStyle: {
color: '#DF8414'
},
data: [arr[arr.length-1].avg],
data: [10],
zlevel: 11
},
{
@ -116,7 +121,7 @@ export default {
itemStyle: {
color: '#0E76AF'
},
data: [arr[arr.length-1].med],
data: [30],
zlevel: 11
},
{
@ -124,7 +129,7 @@ export default {
type: 'bar',
barWidth: 150,
barGap: '-100%',
data: [arr[arr.length-1].min],
data: [20],
label: {
show: true,
position: 'bottom',
@ -147,7 +152,7 @@ export default {
type: 'bar',
barWidth: 150,
barGap: '-100%',
data:[arr[arr.length-1].max],
data: [200],
label: {
show: true,
position: 'top',
@ -175,16 +180,16 @@ export default {
}
},
mounted() {
this.drawBar()
},
watch:{
list:{
handler(newVal){
if(newVal){
this.drawBar(newVal);
}
}
}
watch: {
// typeValue: {
// handler(newVal) {
// if (newVal) {
// this.drawBar(newVal);
// }
// }
// }
}
};
</script>

View File

@ -285,7 +285,6 @@ export default {
}
},
immediate: true,
},
typeValue: {

View File

@ -74,9 +74,9 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="val3">
<!-- <el-form-item label="val3">
<el-input v-model="msg[0].val3"></el-input>
</el-form-item>
</el-form-item> -->
<el-form-item label="val4">
<el-checkbox-group v-model="checkList">
<el-checkbox label="数值"></el-checkbox>

View File

@ -422,7 +422,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 == '触发') {