|
@@ -9,10 +9,10 @@
|
|
<a-cascader
|
|
<a-cascader
|
|
v-model="model.interlockConditionData"
|
|
v-model="model.interlockConditionData"
|
|
:options="tagDataOptions"
|
|
:options="tagDataOptions"
|
|
- :display-render="displayRender"
|
|
|
|
:fieldNames="customFieldNames"
|
|
:fieldNames="customFieldNames"
|
|
expand-trigger="hover"
|
|
expand-trigger="hover"
|
|
placeholder="请选择点位"/>
|
|
placeholder="请选择点位"/>
|
|
|
|
+ <!-- :display-render="displayRender" -->
|
|
<!-- @change="dianwerChange" -->
|
|
<!-- @change="dianwerChange" -->
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
@@ -26,7 +26,6 @@
|
|
<a-cascader
|
|
<a-cascader
|
|
v-model="model.currentValueData"
|
|
v-model="model.currentValueData"
|
|
:options="tagDataOptions"
|
|
:options="tagDataOptions"
|
|
- :display-render="displayRender"
|
|
|
|
:fieldNames="customFieldNames"
|
|
:fieldNames="customFieldNames"
|
|
expand-trigger="hover"
|
|
expand-trigger="hover"
|
|
placeholder="请选择当前值"/>
|
|
placeholder="请选择当前值"/>
|
|
@@ -34,47 +33,37 @@
|
|
</a-col> -->
|
|
</a-col> -->
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
<a-form-model-item label="输入卡件状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="inputStatusData">
|
|
<a-form-model-item label="输入卡件状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="inputStatusData">
|
|
- <a-radio-group name="radioGroup" v-model="model.inputStatusRadio">
|
|
|
|
- <a-radio :value="'0'"> 默认值 </a-radio>
|
|
|
|
|
|
+ <a-radio-group name="radioGroup" v-model="model.inputStatusRadio" @change="statusRadioChange">
|
|
|
|
+ <a-radio :value="'0'"> 默认正常 </a-radio>
|
|
<a-radio :value="'1'"> 位号读取 </a-radio>
|
|
<a-radio :value="'1'"> 位号读取 </a-radio>
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
<template v-if="model.inputStatusRadio === '0'">
|
|
<template v-if="model.inputStatusRadio === '0'">
|
|
- <!-- <a-select v-model="model.bypassNo">
|
|
|
|
- <a-select-option value="0"> 0 </a-select-option>
|
|
|
|
- <a-select-option value="1"> 1 </a-select-option>
|
|
|
|
- </a-select> -->
|
|
|
|
<a-input v-model="model.inputStatusDefault" disabled></a-input>
|
|
<a-input v-model="model.inputStatusDefault" disabled></a-input>
|
|
</template>
|
|
</template>
|
|
<template v-if="model.inputStatusRadio === '1'">
|
|
<template v-if="model.inputStatusRadio === '1'">
|
|
<a-cascader
|
|
<a-cascader
|
|
v-model="model.inputStatusData"
|
|
v-model="model.inputStatusData"
|
|
:options="tagDataOptions"
|
|
:options="tagDataOptions"
|
|
- :display-render="displayRender"
|
|
|
|
:fieldNames="customFieldNames"
|
|
:fieldNames="customFieldNames"
|
|
expand-trigger="hover"
|
|
expand-trigger="hover"
|
|
placeholder="请选择输入卡件状态"
|
|
placeholder="请选择输入卡件状态"
|
|
- />
|
|
|
|
|
|
+ />
|
|
</template>
|
|
</template>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
<a-form-model-item label="输出卡件状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="outputStatusData">
|
|
<a-form-model-item label="输出卡件状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="outputStatusData">
|
|
- <a-radio-group name="radioGroup" v-model="model.outputStatusRadio">
|
|
|
|
- <a-radio :value="'0'"> 默认值 </a-radio>
|
|
|
|
|
|
+ <a-radio-group name="radioGroup" v-model="model.outputStatusRadio" @change="statusRadioChange">
|
|
|
|
+ <a-radio :value="'0'"> 默认正常 </a-radio>
|
|
<a-radio :value="'1'"> 位号读取 </a-radio>
|
|
<a-radio :value="'1'"> 位号读取 </a-radio>
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
<template v-if="model.outputStatusRadio === '0'">
|
|
<template v-if="model.outputStatusRadio === '0'">
|
|
- <!-- <a-select v-model="model.bypassNo">
|
|
|
|
- <a-select-option value="0"> 0 </a-select-option>
|
|
|
|
- <a-select-option value="1"> 1 </a-select-option>
|
|
|
|
- </a-select> -->
|
|
|
|
<a-input v-model="model.outputStatusDefault" disabled></a-input>
|
|
<a-input v-model="model.outputStatusDefault" disabled></a-input>
|
|
</template>
|
|
</template>
|
|
<template v-if="model.outputStatusRadio === '1'">
|
|
<template v-if="model.outputStatusRadio === '1'">
|
|
<a-cascader
|
|
<a-cascader
|
|
v-model="model.outputStatusData"
|
|
v-model="model.outputStatusData"
|
|
:options="tagDataOptions"
|
|
:options="tagDataOptions"
|
|
- :display-render="displayRender"
|
|
|
|
:fieldNames="customFieldNames"
|
|
:fieldNames="customFieldNames"
|
|
expand-trigger="hover"
|
|
expand-trigger="hover"
|
|
placeholder="请选择输出卡件状态"
|
|
placeholder="请选择输出卡件状态"
|
|
@@ -84,22 +73,17 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
<a-form-model-item label="MP状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mpStatusData">
|
|
<a-form-model-item label="MP状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mpStatusData">
|
|
- <a-radio-group name="radioGroup" v-model="model.mpStatusRadio">
|
|
|
|
- <a-radio :value="'0'"> 默认值 </a-radio>
|
|
|
|
|
|
+ <a-radio-group name="radioGroup" v-model="model.mpStatusRadio" @change="statusRadioChange">
|
|
|
|
+ <a-radio :value="'0'"> 默认正常 </a-radio>
|
|
<a-radio :value="'1'"> 位号读取 </a-radio>
|
|
<a-radio :value="'1'"> 位号读取 </a-radio>
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
<template v-if="model.mpStatusRadio === '0'">
|
|
<template v-if="model.mpStatusRadio === '0'">
|
|
- <!-- <a-select v-model="model.bypassNo">
|
|
|
|
- <a-select-option value="0"> 0 </a-select-option>
|
|
|
|
- <a-select-option value="1"> 1 </a-select-option>
|
|
|
|
- </a-select> -->
|
|
|
|
<a-input v-model="model.mpStatusDefault" disabled></a-input>
|
|
<a-input v-model="model.mpStatusDefault" disabled></a-input>
|
|
</template>
|
|
</template>
|
|
<template v-if="model.mpStatusRadio === '1'">
|
|
<template v-if="model.mpStatusRadio === '1'">
|
|
<a-cascader
|
|
<a-cascader
|
|
v-model="model.mpStatusData"
|
|
v-model="model.mpStatusData"
|
|
:options="tagDataOptions"
|
|
:options="tagDataOptions"
|
|
- :display-render="displayRender"
|
|
|
|
:fieldNames="customFieldNames"
|
|
:fieldNames="customFieldNames"
|
|
expand-trigger="hover"
|
|
expand-trigger="hover"
|
|
placeholder="请选择MP状态"
|
|
placeholder="请选择MP状态"
|
|
@@ -120,14 +104,13 @@
|
|
</a-col>
|
|
</a-col>
|
|
<template v-if="model.instrumentStatusJuge === '0'">
|
|
<template v-if="model.instrumentStatusJuge === '0'">
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
- <a-form-model-item label="仪表状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="instrumentStatusData">
|
|
|
|
|
|
+ <a-form-model-item label="仪表位号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="instrumentStatusData">
|
|
<a-cascader
|
|
<a-cascader
|
|
v-model="model.instrumentStatusData"
|
|
v-model="model.instrumentStatusData"
|
|
:options="tagDataOptions"
|
|
:options="tagDataOptions"
|
|
- :display-render="displayRender"
|
|
|
|
:fieldNames="customFieldNames"
|
|
:fieldNames="customFieldNames"
|
|
expand-trigger="hover"
|
|
expand-trigger="hover"
|
|
- placeholder="请选择仪表状态"/>
|
|
|
|
|
|
+ placeholder="请选择仪表位号"/>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
</template>
|
|
</template>
|
|
@@ -137,7 +120,6 @@
|
|
<a-cascader
|
|
<a-cascader
|
|
v-model="model.ysmnlData"
|
|
v-model="model.ysmnlData"
|
|
:options="tagDataOptions"
|
|
:options="tagDataOptions"
|
|
- :display-render="displayRender"
|
|
|
|
:fieldNames="customFieldNames"
|
|
:fieldNames="customFieldNames"
|
|
expand-trigger="hover"
|
|
expand-trigger="hover"
|
|
placeholder="请选择原始模拟量"
|
|
placeholder="请选择原始模拟量"
|
|
@@ -145,6 +127,14 @@
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
|
|
+ <a-form-model-item label="系统" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="instrumentGDXT">
|
|
|
|
+ <a-radio-group name="radioGroup" v-model="model.instrumentGDXT" @change="instrumentGDXTChange">
|
|
|
|
+ <a-radio value="Tricon"> Tricon </a-radio>
|
|
|
|
+ <a-radio value="TSxPlus"> TSxPlus </a-radio>
|
|
|
|
+ </a-radio-group>
|
|
|
|
+ </a-form-model-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :span="24">
|
|
<a-form-model-item label="高限值" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="upperLimit">
|
|
<a-form-model-item label="高限值" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="upperLimit">
|
|
<a-auto-complete :data-source="['4258', '61948']" v-model="model.upperLimit" placeholder="请输入高限"></a-auto-complete>
|
|
<a-auto-complete :data-source="['4258', '61948']" v-model="model.upperLimit" placeholder="请输入高限"></a-auto-complete>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
@@ -161,7 +151,6 @@
|
|
<a-cascader
|
|
<a-cascader
|
|
v-model="model.ysmnlData"
|
|
v-model="model.ysmnlData"
|
|
:options="tagDataOptions"
|
|
:options="tagDataOptions"
|
|
- :display-render="displayRender"
|
|
|
|
:fieldNames="customFieldNames"
|
|
:fieldNames="customFieldNames"
|
|
expand-trigger="hover"
|
|
expand-trigger="hover"
|
|
placeholder="请选择原始模拟量"
|
|
placeholder="请选择原始模拟量"
|
|
@@ -169,6 +158,14 @@
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
|
|
+ <a-form-model-item label="系统" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="instrumentTBXT">
|
|
|
|
+ <a-radio-group name="radioGroup" v-model="model.instrumentTBXT" @change="instrumentTBXTChange">
|
|
|
|
+ <a-radio value="Tricon"> Tricon </a-radio>
|
|
|
|
+ <a-radio value="TSxPlus"> TSxPlus </a-radio>
|
|
|
|
+ </a-radio-group>
|
|
|
|
+ </a-form-model-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :span="24">
|
|
<a-form-model-item label="突变判断公式" :labelCol="labelCol" :wrapperCol="wrapperCol" class="red-star-form-item">
|
|
<a-form-model-item label="突变判断公式" :labelCol="labelCol" :wrapperCol="wrapperCol" class="red-star-form-item">
|
|
<div style="display: flex;">
|
|
<div style="display: flex;">
|
|
<div style="width: 30px;text-align: center;">( </div>
|
|
<div style="width: 30px;text-align: center;">( </div>
|
|
@@ -181,7 +178,8 @@
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<div style="width: 60px;text-align: center;">)* </div>
|
|
<div style="width: 60px;text-align: center;">)* </div>
|
|
<a-form-model-item prop="thresholdValueN">
|
|
<a-form-model-item prop="thresholdValueN">
|
|
- <a-auto-complete :data-source="['1']" v-model="model.thresholdValueN" placeholder="请输入阈值"></a-auto-complete>
|
|
|
|
|
|
+ <a-input v-model="model.thresholdValueN" placeholder="请输入阈值"></a-input>
|
|
|
|
+ <!-- <a-auto-complete :data-source="['1']" v-model="model.thresholdValueN" placeholder="请输入阈值"></a-auto-complete> -->
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<div style="width: 30px;text-align: center;"> % </div>
|
|
<div style="width: 30px;text-align: center;"> % </div>
|
|
</div>
|
|
</div>
|
|
@@ -234,7 +232,6 @@
|
|
<a-cascader
|
|
<a-cascader
|
|
v-model="model.bypassData"
|
|
v-model="model.bypassData"
|
|
:options="tagDataOptions"
|
|
:options="tagDataOptions"
|
|
- :display-render="displayRender"
|
|
|
|
:fieldNames="customFieldNames"
|
|
:fieldNames="customFieldNames"
|
|
expand-trigger="hover"
|
|
expand-trigger="hover"
|
|
placeholder="请选择旁路"/>
|
|
placeholder="请选择旁路"/>
|
|
@@ -244,12 +241,12 @@
|
|
<template v-if="model.ifBypass === '0'">
|
|
<template v-if="model.ifBypass === '0'">
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
<a-form-model-item label="旁路状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bypassNo">
|
|
<a-form-model-item label="旁路状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bypassNo">
|
|
- <!-- <a-input v-model="model.bypassNo"></a-input> -->
|
|
|
|
|
|
+ <a-input v-model="model.bypassNo" disabled></a-input>
|
|
<!-- placeholder="无旁路" :default-value="bypassNo" -->
|
|
<!-- placeholder="无旁路" :default-value="bypassNo" -->
|
|
- <a-select v-model="model.bypassNo">
|
|
|
|
|
|
+ <!-- <a-select v-model="model.bypassNo">
|
|
<a-select-option value="0"> 0 </a-select-option>
|
|
<a-select-option value="0"> 0 </a-select-option>
|
|
<a-select-option value="1"> 1 </a-select-option>
|
|
<a-select-option value="1"> 1 </a-select-option>
|
|
- </a-select>
|
|
|
|
|
|
+ </a-select> -->
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
</template>
|
|
</template>
|
|
@@ -290,12 +287,14 @@
|
|
mpStatusRadio: '0', // MP状态单选默认-默认值
|
|
mpStatusRadio: '0', // MP状态单选默认-默认值
|
|
mpStatusDefault: null, // MP状态默认值默认参数
|
|
mpStatusDefault: null, // MP状态默认值默认参数
|
|
instrumentStatusJuge: '0', // 仪表判定依据-位号读取
|
|
instrumentStatusJuge: '0', // 仪表判定依据-位号读取
|
|
- instrumentStatus: null, // 仪表状态默认值默认参数
|
|
|
|
|
|
+ // instrumentStatus: null, // 仪表状态默认值默认参数
|
|
|
|
+ instrumentGDXT: 'Tricon',
|
|
|
|
+ instrumentTBXT: 'Tricon',
|
|
upperLimit: null,
|
|
upperLimit: null,
|
|
lowerLimit: null,
|
|
lowerLimit: null,
|
|
- thresholdValueN: null,
|
|
|
|
|
|
+ thresholdValueN: '1',
|
|
ifBypass: '1', // 是否有旁路-是
|
|
ifBypass: '1', // 是否有旁路-是
|
|
- bypassNo: '0', // 旁路默认值
|
|
|
|
|
|
+ bypassNo: null, // 旁路默认值
|
|
bypass: null, // MP状态默认值默认参数
|
|
bypass: null, // MP状态默认值默认参数
|
|
},
|
|
},
|
|
labelCol: {
|
|
labelCol: {
|
|
@@ -341,9 +340,6 @@
|
|
required: true, message: '请输入阈值!',
|
|
required: true, message: '请输入阈值!',
|
|
}],
|
|
}],
|
|
|
|
|
|
- description: [{
|
|
|
|
- required: true, message: '请输入描述!',
|
|
|
|
- }],
|
|
|
|
interlockSetValue: [{
|
|
interlockSetValue: [{
|
|
required: true, message: '请输入联锁设定值!',
|
|
required: true, message: '请输入联锁设定值!',
|
|
}],
|
|
}],
|
|
@@ -385,19 +381,25 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
- // 设置状态默认值
|
|
|
|
- this.setDefaultValue()
|
|
|
|
// this.getTagInfo()
|
|
// this.getTagInfo()
|
|
//备份model原始值
|
|
//备份model原始值
|
|
this.modelDefault = JSON.parse(JSON.stringify(this.model));
|
|
this.modelDefault = JSON.parse(JSON.stringify(this.model));
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ statusRadioChange(e){
|
|
|
|
+ // console.log(e)
|
|
|
|
+ // console.log(this.model.inputStatusRadio)
|
|
|
|
+ // this.$set(this.model, 'inputStatusRadio', e.target.value)
|
|
|
|
+ this.model = {...this.model}
|
|
|
|
+ },
|
|
// 设置状态默认值
|
|
// 设置状态默认值
|
|
setDefaultValue(){
|
|
setDefaultValue(){
|
|
- console.log(this.itSystemDefaultValue)
|
|
|
|
|
|
+ console.log('set',this.itSystemDefaultValue, this.model)
|
|
|
|
+ // this.$set(this.model, 'inputStatusDefault', this.itSystemDefaultValue.controlSystemStatusNormal)
|
|
this.model.inputStatusDefault = this.itSystemDefaultValue.controlSystemStatusNormal
|
|
this.model.inputStatusDefault = this.itSystemDefaultValue.controlSystemStatusNormal
|
|
this.model.outputStatusDefault = this.itSystemDefaultValue.controlSystemStatusNormal
|
|
this.model.outputStatusDefault = this.itSystemDefaultValue.controlSystemStatusNormal
|
|
this.model.mpStatusDefault = this.itSystemDefaultValue.controlSystemStatusNormal
|
|
this.model.mpStatusDefault = this.itSystemDefaultValue.controlSystemStatusNormal
|
|
|
|
+ this.model.bypassNo = this.itSystemDefaultValue.bypassYes
|
|
},
|
|
},
|
|
// 获取所有位号
|
|
// 获取所有位号
|
|
// getTagInfo(){
|
|
// getTagInfo(){
|
|
@@ -407,9 +409,10 @@
|
|
// this.confirmLoading = false
|
|
// this.confirmLoading = false
|
|
// })
|
|
// })
|
|
// },
|
|
// },
|
|
- displayRender({ labels }) {
|
|
|
|
- return labels[labels.length - 1];
|
|
|
|
- },
|
|
|
|
|
|
+ // displayRender({ labels }) {
|
|
|
|
+ // // 设置显示最有一位
|
|
|
|
+ // return labels[labels.length - 1];
|
|
|
|
+ // },
|
|
// 点位选择改变
|
|
// 点位选择改变
|
|
dianwerChange(e){
|
|
dianwerChange(e){
|
|
console.log(e)
|
|
console.log(e)
|
|
@@ -419,10 +422,31 @@
|
|
console.log(e)
|
|
console.log(e)
|
|
this.model.upperLimit = null
|
|
this.model.upperLimit = null
|
|
this.model.lowerLimit = null
|
|
this.model.lowerLimit = null
|
|
- this.model.thresholdValueN = null
|
|
|
|
},
|
|
},
|
|
- add () {
|
|
|
|
- // this.edit(this.modelDefault);
|
|
|
|
|
|
+ // 高低限判断系统参考改变
|
|
|
|
+ instrumentGDXTChange(e){
|
|
|
|
+ if(e.target.value === 'Tricon'){
|
|
|
|
+ this.model.upperLimit = '4258'
|
|
|
|
+ this.model.lowerLimit = '737'
|
|
|
|
+ }
|
|
|
|
+ if(e.target.value === 'TSxPlus'){
|
|
|
|
+ this.model.upperLimit = '61948'
|
|
|
|
+ this.model.lowerLimit = '10722'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ instrumentTBXTChange(e){
|
|
|
|
+ if(e.target.value === 'Tricon'){
|
|
|
|
+ this.model.upperLimit = '4095'
|
|
|
|
+ this.model.lowerLimit = '819'
|
|
|
|
+ }
|
|
|
|
+ if(e.target.value === 'TSxPlus'){
|
|
|
|
+ this.model.upperLimit = '59577'
|
|
|
|
+ this.model.lowerLimit = '11915'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ add () {
|
|
|
|
+ // 设置状态默认值
|
|
|
|
+ this.setDefaultValue()
|
|
},
|
|
},
|
|
edit (record) {
|
|
edit (record) {
|
|
console.log(record)
|
|
console.log(record)
|
|
@@ -455,15 +479,21 @@
|
|
}
|
|
}
|
|
// 输入卡件状态
|
|
// 输入卡件状态
|
|
this.model.inputStatusRadio = record.inputStatusTag ? '1' : '0'
|
|
this.model.inputStatusRadio = record.inputStatusTag ? '1' : '0'
|
|
- this.model.inputStatusData = [record.inputStatusDeviceId, record.inputStatusModuleName, record.inputStatusTag+'&'+record.inputStatus]
|
|
|
|
|
|
+ if(record.inputStatusTag){
|
|
|
|
+ this.model.inputStatusData = [record.inputStatusDeviceId, record.inputStatusModuleName, record.inputStatusTag+'&'+record.inputStatus]
|
|
|
|
+ }
|
|
// 输出卡件状态
|
|
// 输出卡件状态
|
|
this.model.outputStatusRadio = record.outputStatusTag ? '1' : '0'
|
|
this.model.outputStatusRadio = record.outputStatusTag ? '1' : '0'
|
|
- this.model.outputStatusData = [record.outputStatusDeviceId, record.outputStatusModuleName, record.outputStatusTag+'&'+record.outputStatus]
|
|
|
|
|
|
+ if(record.outputStatusTag){
|
|
|
|
+ this.model.outputStatusData = [record.outputStatusDeviceId, record.outputStatusModuleName, record.outputStatusTag+'&'+record.outputStatus]
|
|
|
|
+ }
|
|
// MP状态
|
|
// MP状态
|
|
this.model.mpStatusRadio = record.mpStatusTag ? '1' : '0'
|
|
this.model.mpStatusRadio = record.mpStatusTag ? '1' : '0'
|
|
- this.model.mpStatusData = [record.mpStatusDeviceId, record.mpStatusModuleName, record.mpStatusTag+'&'+record.mpStatus]
|
|
|
|
-
|
|
|
|
- this.visible = true;
|
|
|
|
|
|
+ if(record.mpStatusTag){
|
|
|
|
+ this.model.mpStatusRadio = '1'
|
|
|
|
+ this.model.mpStatusData = [record.mpStatusDeviceId, record.mpStatusModuleName, record.mpStatusTag+'&'+record.mpStatus]
|
|
|
|
+ }
|
|
|
|
+ this.setDefaultValue()
|
|
},
|
|
},
|
|
submitForm () {
|
|
submitForm () {
|
|
// const that = this;
|
|
// const that = this;
|
|
@@ -524,7 +554,6 @@
|
|
this.model.inputStatusTag = (this.model.inputStatusData[2].split('&'))[0]
|
|
this.model.inputStatusTag = (this.model.inputStatusData[2].split('&'))[0]
|
|
this.model.inputStatus = (this.model.inputStatusData[2].split('&'))[1]
|
|
this.model.inputStatus = (this.model.inputStatusData[2].split('&'))[1]
|
|
} else {
|
|
} else {
|
|
- console.log(11111111111111)
|
|
|
|
this.model.inputStatusDeviceId = null
|
|
this.model.inputStatusDeviceId = null
|
|
this.model.inputStatusModuleName = null
|
|
this.model.inputStatusModuleName = null
|
|
this.model.inputStatusTag = null
|
|
this.model.inputStatusTag = null
|
|
@@ -538,7 +567,6 @@
|
|
this.model.outputStatusTag = (this.model.outputStatusData[2].split('&'))[0]
|
|
this.model.outputStatusTag = (this.model.outputStatusData[2].split('&'))[0]
|
|
this.model.outputStatus = (this.model.outputStatusData[2].split('&'))[1]
|
|
this.model.outputStatus = (this.model.outputStatusData[2].split('&'))[1]
|
|
} else {
|
|
} else {
|
|
- console.log(1222222222)
|
|
|
|
this.model.outputStatusDeviceId = null
|
|
this.model.outputStatusDeviceId = null
|
|
this.model.outputStatusModuleName = null
|
|
this.model.outputStatusModuleName = null
|
|
this.model.outputStatusTag = null
|
|
this.model.outputStatusTag = null
|
|
@@ -552,7 +580,6 @@
|
|
this.model.mpStatusTag = (this.model.mpStatusData[2].split('&'))[0]
|
|
this.model.mpStatusTag = (this.model.mpStatusData[2].split('&'))[0]
|
|
this.model.mpStatus = (this.model.mpStatusData[2].split('&'))[1]
|
|
this.model.mpStatus = (this.model.mpStatusData[2].split('&'))[1]
|
|
} else {
|
|
} else {
|
|
- console.log(33333333)
|
|
|
|
this.model.mpStatusDeviceId = null
|
|
this.model.mpStatusDeviceId = null
|
|
this.model.mpStatusModuleName = null
|
|
this.model.mpStatusModuleName = null
|
|
this.model.mpStatusTag = null
|
|
this.model.mpStatusTag = null
|