代码调整

This commit is contained in:
dong 2022-09-15 09:56:51 +08:00
parent 6adcfd9f9b
commit 507e01ebe8
2 changed files with 5 additions and 1 deletions

View File

@ -258,6 +258,7 @@ export default {
doShow(data, rowIndex, conditionKey) {
this.dialogVisible = true;
this.tabVisible = true;
this.activeIndexPath = '';
if (data) {
this.tableData = [data];
} else {

View File

@ -44,7 +44,7 @@
<el-button :type="field == 'elementCode' ? 'danger' : 'primary'" size="mini" @click="hover('elementCode')">激活</el-button>
</el-form-item>
<el-form-item v-if="showDevice" label="属性" prop="filedName">
<el-select v-model="formModel.filedName" clearable placeholder="请选择设备属性" size="mini">
<el-select v-model="formModel.filedName" clearable placeholder="请选择设备属性" size="mini" @change="changeFiledName">
<el-option
v-for="option in getAttributeList"
:key="option.name"
@ -286,6 +286,9 @@ export default {
this.formModel.filedName = '';
this.formModel.v = '';
},
changeFiledName() {
this.formModel.v = '';
},
hover(field) {
this.field = field == this.field ? '' : field;
this.$emit('hover', field);