update 设备状态时序图产线工段关联

This commit is contained in:
g7hoo 2022-09-22 13:25:41 +08:00
parent 399589bb3b
commit 31f496cc13

View File

@ -185,7 +185,7 @@ export default {
calcMaxHeight, calcMaxHeight,
timeType: 'range', timeType: 'range',
currentLine: null, currentLine: null,
rawTime: null, rawTime: new Date(),
dataForm: { dataForm: {
wsId: null, wsId: null,
productlines: [], productlines: [],
@ -263,10 +263,11 @@ export default {
/** set default */ /** set default */
if (this.wsList.length) { if (this.wsList.length) {
this.dataForm.wsId = this.wsList[0].id this.dataForm.wsId = this.wsList[0].id
} else {
this.dataForm.wsId = null
} }
} else { } else {
this.wsList.splice(0) this.wsList.splice(0)
this.dataForm.wsId = '' // <== ...
} }
}) })
}, },
@ -352,7 +353,6 @@ export default {
}) })
}, },
handleProductLineChange(val) { handleProductLineChange(val) {
console.log('handleProductLineChange', this.dataForm.productlines)
this.getWorksetionList() this.getWorksetionList()
}, },
// //