驾驶舱提测ui

This commit is contained in:
2024-01-11 13:44:38 +08:00
parent b1458827f1
commit 6c02990cb5
20 changed files with 441 additions and 254 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div style="flex: 1;">
<Container name="设备报警" size="small" style="">
<Container name="设备报警" size="middle" style="">
<div style="padding: 5px 10px;">
<dv-scroll-board :config="config" style="width:575px;height:380px" ref='eqScrollBoard'/>
</div>
@@ -19,10 +19,8 @@ export default {
},
data() {
return {
// config:{}
config: {
header: ['序号', '设备名称', '设备编码','设备状态','是否故障'],
// headerHeight: '17',
headerBGC: 'rgba(32, 55, 96, 0.8)',
oddRowBGC: 'rgba(32, 55, 96, 0.8)',
evenRowBGC: 'rgba(14, 32, 62, 0.8)',
@@ -46,20 +44,20 @@ export default {
},
mounted(){
},
watch:{
sjgEquipment: {
handler(newVal, oldVal) {
let outArr = this.sjgEquipment.map((item, index) => [
index+1,
item.name,
item.code,
item.status,
item.error? '是': '否'
]);
this.config.data = outArr
this.$refs['eqScrollBoard'].updateRows(outArr)
}
}
}
// watch:{
// sjgEquipment: {
// handler(newVal, oldVal) {
// let outArr = this.sjgEquipment.map((item, index) => [
// index+1,
// item.name,
// item.code,
// item.status,
// item.error? '是': '否'
// ]);
// this.config.data = outArr
// this.$refs['eqScrollBoard'].updateRows(outArr)
// }
// }
// }
}
</script>