代码调整

This commit is contained in:
joylink_cuiweidong 2019-12-04 13:01:12 +08:00
parent d94bbff72f
commit 6f58a39b30

View File

@ -196,7 +196,7 @@ export default {
},
deviceSelect(selected) {
this.$refs.dataform.resetFields();
if (selected && selected._type.toUpperCase() === 'Switch'.toUpperCase()) {
if (this.field.toUpperCase() != 'relevanceSectionList'.toUpperCase() && selected && selected._type.toUpperCase() === 'Switch'.toUpperCase()) {
this.activeName = 'first';
this.editModel = deepAssign(this.editModel, selected);
} else if (selected && selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field.toUpperCase() === 'relevanceSectionList'.toUpperCase()) {