修复回显问题

master
elliott 2 years ago
parent 580bf92fd4
commit 6fb2b7a027

@ -366,7 +366,7 @@
</el-row> </el-row>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item v-if="form.instrumentType == 2 && form.isCustomMode == 1" label="模式组合" required label-width="120px"> <el-form-item v-if="form.instrumentType == 2 && form.modeType == 'MaskCustom' && form.instrumentModel=='WL200'" label="模式组合" required label-width="120px">
<el-button type="primary" @click="addCombine"></el-button> <el-button type="primary" @click="addCombine"></el-button>
<div v-for="(item,index) of combineData"> <div v-for="(item,index) of combineData">
<el-divider content-position="left">组合{{index+1}}</el-divider> <el-divider content-position="left">组合{{index+1}}</el-divider>
@ -426,7 +426,7 @@
<div style="position: relative; left: 30px"> <div style="position: relative; left: 30px">
<i class="little-red-heart2 el-icon-star-on"></i> <i class="little-red-heart2 el-icon-star-on"></i>
</div> </div>
<el-select v-model="form.technologyArrayMode" placeholder="请选择技术" clearable multiple style="width: 240px"> <el-select v-model="form.technologyArrayMode" placeholder="请选择技术" @change="technologyUpdata" clearable multiple style="width: 240px">
<el-option <el-option
v-for="dict in dict.type.instrument_technology" v-for="dict in dict.type.instrument_technology"
:key="dict.value" :key="dict.value"
@ -481,7 +481,7 @@ export default {
instrumentType: 2, instrumentType: 2,
instrumentModel: 'WL200', instrumentModel: 'WL200',
modeName: null, modeName: null,
isCustomMode:0, isCustomMode:1,
modeType: null, modeType: null,
modeClass: null, modeClass: null,
status: null, status: null,
@ -607,6 +607,9 @@ export default {
} }
return false return false
}, },
technologyUpdata(){
this.$forceUpdate()
},
getCombineList(){ getCombineList(){
listModeAll(this.combineModeQueryParams).then(response => { listModeAll(this.combineModeQueryParams).then(response => {
this.combineModeList = response.data; this.combineModeList = response.data;
@ -668,7 +671,7 @@ export default {
updateBy: null, updateBy: null,
updateTime: null, updateTime: null,
remark: null, remark: null,
technologyArrayMode: null, technologyArrayMode: [],
technologyInfo: null, technologyInfo: null,
effectContent: null, effectContent: null,
}; };
@ -735,7 +738,6 @@ export default {
this.combineData = this.form.combineData; this.combineData = this.form.combineData;
// //
this.combineModeList = this.combineModeList.filter(x => x.id != id); this.combineModeList = this.combineModeList.filter(x => x.id != id);
console.log('组合数据=>',this.combineModeList)
// 使 // 使
if(this.form.technologyInfo) { if(this.form.technologyInfo) {
this.form.technologyArrayMode = this.form.technologyInfo.split(","); this.form.technologyArrayMode = this.form.technologyInfo.split(",");
@ -845,7 +847,7 @@ export default {
} }
} }
// 使 // 使
if(this.form.technologyArray.length > 0) { if(this.form.technologyArrayMode.length > 0) {
this.form.technologyInfo = this.form.technologyArrayMode.join(","); this.form.technologyInfo = this.form.technologyArrayMode.join(",");
} }
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {

Loading…
Cancel
Save