|
@@ -322,12 +322,16 @@
|
|
|
// this.getSystemValue()
|
|
|
this.modelDefault.pid=''
|
|
|
this.edit(Object.assign(this.modelDefault , obj));
|
|
|
- },
|
|
|
- edit (record) {
|
|
|
- // this.getInterlockTwoTree()
|
|
|
- this.getData('0', 'interlockTwoTree')
|
|
|
- // this.getSystemValue()
|
|
|
+ },
|
|
|
+ edit (record) {
|
|
|
+ // this.getInterlockTwoTree()
|
|
|
+ this.getData('0', 'interlockTwoTree')
|
|
|
+ // this.getSystemValue()
|
|
|
this.model = Object.assign({}, record);
|
|
|
+ this.model.controlSystemStatusAbnormal = this.model.controlSystemStatusNormal === '0' ? '1' : '0'
|
|
|
+ this.model.bypassNo = this.model.bypassYes === '0' ? '1' : '0'
|
|
|
+ this.model.instrumentStatusAbnormal = this.model.instrumentStatusNormal === '0' ? '1' : '0'
|
|
|
+ this.model.interlockStatusWty = this.model.interlockStatusTy === '0' ? '1' : '0'
|
|
|
this.visible = true;
|
|
|
},
|
|
|
close () {
|