代码调整
This commit is contained in:
parent
6adcfd9f9b
commit
507e01ebe8
@ -258,6 +258,7 @@ export default {
|
|||||||
doShow(data, rowIndex, conditionKey) {
|
doShow(data, rowIndex, conditionKey) {
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
this.tabVisible = true;
|
this.tabVisible = true;
|
||||||
|
this.activeIndexPath = '';
|
||||||
if (data) {
|
if (data) {
|
||||||
this.tableData = [data];
|
this.tableData = [data];
|
||||||
} else {
|
} else {
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
<el-button :type="field == 'elementCode' ? 'danger' : 'primary'" size="mini" @click="hover('elementCode')">激活</el-button>
|
<el-button :type="field == 'elementCode' ? 'danger' : 'primary'" size="mini" @click="hover('elementCode')">激活</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="showDevice" label="属性" prop="filedName">
|
<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
|
<el-option
|
||||||
v-for="option in getAttributeList"
|
v-for="option in getAttributeList"
|
||||||
:key="option.name"
|
:key="option.name"
|
||||||
@ -286,6 +286,9 @@ export default {
|
|||||||
this.formModel.filedName = '';
|
this.formModel.filedName = '';
|
||||||
this.formModel.v = '';
|
this.formModel.v = '';
|
||||||
},
|
},
|
||||||
|
changeFiledName() {
|
||||||
|
this.formModel.v = '';
|
||||||
|
},
|
||||||
hover(field) {
|
hover(field) {
|
||||||
this.field = field == this.field ? '' : field;
|
this.field = field == this.field ? '' : field;
|
||||||
this.$emit('hover', field);
|
this.$emit('hover', field);
|
||||||
|
Loading…
Reference in New Issue
Block a user