This commit is contained in:
2024-04-26 08:50:32 +08:00
parent 82f63dc4ff
commit 54425859b5
3 changed files with 49 additions and 37 deletions

View File

@@ -32,11 +32,11 @@ export default {
return {
timestr: '',
config: {
header: ['序号', '设备名称', '产线名', '设备状态'],
header: ['序号', '产线名', '设备名称', '设备状态'],
headerBGC: 'rgba(32, 55, 96, 0.8)',
oddRowBGC: 'rgba(32, 55, 96, 0.8)',
evenRowBGC: 'rgba(14, 32, 62, 0.8)',
columnWidth: [60, 280, 120],
columnWidth: [60, 120, 280],
align: ['center'],
data: [],
// data: [
@@ -63,8 +63,8 @@ export default {
handler(newVal, oldVal) {
let outArr = this.sjgEquipment.map((item, index) => [
index + 1,
`<span title=${item.name || ''}>${item.name || ''}</span>`,
`<span title=${item.lineName || ''}>${item.lineName || ''}</span>`,
`<span title=${item.name || ''}>${item.name || ''}</span>`,
`<span><div style="${
item.status == '运行'
? 'box-shadow: 0px 0px 2px 1px #2760FF;width:6px;height:6px;border-radius: 50%;background-color: #2760FF;float:left;margin:13px 10px 0 0 '