代码调整
This commit is contained in:
parent
6adcfd9f9b
commit
507e01ebe8
@ -258,6 +258,7 @@ export default {
|
||||
doShow(data, rowIndex, conditionKey) {
|
||||
this.dialogVisible = true;
|
||||
this.tabVisible = true;
|
||||
this.activeIndexPath = '';
|
||||
if (data) {
|
||||
this.tableData = [data];
|
||||
} else {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user