|
@@ -396,10 +396,11 @@
|
|
|
setDefaultValue(){
|
|
|
console.log('set',this.itSystemDefaultValue, this.model)
|
|
|
// this.$set(this.model, 'inputStatusDefault', this.itSystemDefaultValue.controlSystemStatusNormal)
|
|
|
- this.model.inputStatusDefault = this.itSystemDefaultValue.controlSystemStatusNormal
|
|
|
- this.model.outputStatusDefault = this.itSystemDefaultValue.controlSystemStatusNormal
|
|
|
- this.model.mpStatusDefault = this.itSystemDefaultValue.controlSystemStatusNormal
|
|
|
- this.model.bypassNo = this.itSystemDefaultValue.bypassYes
|
|
|
+ var instrumentStatusDefault = this.itSystemDefaultValue.instrumentStatusNormalName +'('+ this.itSystemDefaultValue.controlSystemStatusNormal+')'
|
|
|
+ this.model.inputStatusDefault = instrumentStatusDefault
|
|
|
+ this.model.outputStatusDefault = instrumentStatusDefault
|
|
|
+ this.model.mpStatusDefault = instrumentStatusDefault
|
|
|
+ this.model.bypassNo = this.itSystemDefaultValue.bypassYesName +'('+ this.itSystemDefaultValue.bypassYes +')'
|
|
|
},
|
|
|
// 获取所有位号
|
|
|
// getTagInfo(){
|
|
@@ -536,7 +537,8 @@
|
|
|
// 旁路位号
|
|
|
if(this.model.ifBypass === '0'){
|
|
|
// 否
|
|
|
- this.model.bypass = this.model.bypassNo
|
|
|
+ // this.model.bypass = this.model.bypassNo
|
|
|
+ this.model.bypass = this.itSystemDefaultValue.bypassYes
|
|
|
}
|
|
|
if(this.model.ifBypass === '1'){
|
|
|
// 是
|
|
@@ -557,7 +559,10 @@
|
|
|
this.model.inputStatusDeviceId = null
|
|
|
this.model.inputStatusModuleName = null
|
|
|
this.model.inputStatusTag = null
|
|
|
- this.model.inputStatus = this.model.inputStatusDefault
|
|
|
+ // 由于需要变成正常(0)的状态,且默认是正常,所以直接用系统的正常状态赋值
|
|
|
+ // 如果需要改成下拉选择,就得换个方式写了
|
|
|
+ // this.model.inputStatus = this.model.inputStatusDefault
|
|
|
+ this.model.inputStatus = this.itSystemDefaultValue.controlSystemStatusNormal
|
|
|
}
|
|
|
|
|
|
// 输出卡件状态
|
|
@@ -570,7 +575,7 @@
|
|
|
this.model.outputStatusDeviceId = null
|
|
|
this.model.outputStatusModuleName = null
|
|
|
this.model.outputStatusTag = null
|
|
|
- this.model.outputStatus = this.model.outputStatusDefault
|
|
|
+ this.model.outputStatus = this.itSystemDefaultValue.controlSystemStatusNormal
|
|
|
}
|
|
|
|
|
|
// MP状态
|
|
@@ -583,7 +588,7 @@
|
|
|
this.model.mpStatusDeviceId = null
|
|
|
this.model.mpStatusModuleName = null
|
|
|
this.model.mpStatusTag = null
|
|
|
- this.model.mpStatus = this.model.mpStatusDefault
|
|
|
+ this.model.mpStatus = this.itSystemDefaultValue.controlSystemStatusNormal
|
|
|
}
|
|
|
console.log(this.model)
|
|
|
this.$emit('ok', this.model)
|