fix: 设备详情-新增子设备表单添加[设备标签]属性。
This commit is contained in:
parent
9cf476e38c
commit
f729da1909
|
@ -210,6 +210,31 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item
|
||||||
|
label="设备标签:"
|
||||||
|
v-if="
|
||||||
|
form.deviceType !== 'VIDEO_CONTROLLER' &&
|
||||||
|
form.deviceType !== 'GATEWAY_CONTROLLER'
|
||||||
|
"
|
||||||
|
prop="deviceTag"
|
||||||
|
>
|
||||||
|
<el-select
|
||||||
|
v-model="form.deviceTag"
|
||||||
|
filterable
|
||||||
|
multiple
|
||||||
|
placeholder="请选择设备标签"
|
||||||
|
clearable
|
||||||
|
style="width: 100%"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in deviceTagList"
|
||||||
|
:key="dict.dictValue"
|
||||||
|
:label="dict.dictLabel"
|
||||||
|
:value="dict.dictValue"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="参数设置:">
|
<el-form-item label="参数设置:">
|
||||||
<span style="color: red; font-size: 12px"
|
<span style="color: red; font-size: 12px"
|
||||||
>*注意:锁定即参数不可修改;未锁则可以修改。</span
|
>*注意:锁定即参数不可修改;未锁则可以修改。</span
|
||||||
|
@ -344,6 +369,7 @@ export default {
|
||||||
deviceType: null,
|
deviceType: null,
|
||||||
parentId: "",
|
parentId: "",
|
||||||
},
|
},
|
||||||
|
deviceTagList: [],
|
||||||
open: false,
|
open: false,
|
||||||
title: "",
|
title: "",
|
||||||
showSearch: true,
|
showSearch: true,
|
||||||
|
@ -694,6 +720,9 @@ export default {
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.reset();
|
this.reset();
|
||||||
|
this.getDicts(" device_tag").then((response) => {
|
||||||
|
this.deviceTagList = response.data;
|
||||||
|
});
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "添加子设备";
|
this.title = "添加子设备";
|
||||||
},
|
},
|
||||||
|
@ -709,6 +738,9 @@ export default {
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
this.reset();
|
this.reset();
|
||||||
|
this.getDicts(" device_tag").then((response) => {
|
||||||
|
this.deviceTagList = response.data;
|
||||||
|
});
|
||||||
const _this = this;
|
const _this = this;
|
||||||
getDevice(row.deviceId).then((response) => {
|
getDevice(row.deviceId).then((response) => {
|
||||||
_this.form = response.data;
|
_this.form = response.data;
|
||||||
|
|
Loading…
Reference in New Issue