代码提交
This commit is contained in:
parent
1377494f02
commit
31fb608988
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
|
@ -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>
|
||||
|
|
|
@ -285,7 +285,6 @@ export default {
|
|||
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
|
||||
},
|
||||
typeValue: {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 == '触发') {
|
||||
|
|
Loading…
Reference in New Issue