提交: 设备列表,网关设备类型外其他类型设备 可以选择标签
This commit is contained in:
parent
b859b0768e
commit
307026501a
|
@ -140,6 +140,13 @@
|
||||||
width="120px"
|
width="120px"
|
||||||
prop="deviceTypeName"
|
prop="deviceTypeName"
|
||||||
/>
|
/>
|
||||||
|
<!-- <el-table-column
|
||||||
|
label="设备标签"
|
||||||
|
align="left"
|
||||||
|
width="120px"
|
||||||
|
:formatter="statusFormat"
|
||||||
|
prop="deviceTag"
|
||||||
|
/> -->
|
||||||
<!-- <el-table-column label="父设备" align="left" prop="parentName" /> -->
|
<!-- <el-table-column label="父设备" align="left" prop="parentName" /> -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="设备状态"
|
label="设备状态"
|
||||||
|
@ -312,6 +319,24 @@
|
||||||
/>
|
/>
|
||||||
</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
|
||||||
|
@ -481,8 +506,12 @@ export default {
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
deviceTag: [
|
||||||
|
{ required: true, message: "设备标签不能为空", trigger: "change" },
|
||||||
|
]
|
||||||
},
|
},
|
||||||
deviceTypeList: {},
|
deviceTypeList: {},
|
||||||
|
deviceTagList: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -490,10 +519,17 @@ export default {
|
||||||
this.init();
|
this.init();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 字典状态字典翻译
|
||||||
|
statusFormat(row, column) {
|
||||||
|
return this.selectDictLabel(this.deviceTagList, row.deviceTag);
|
||||||
|
},
|
||||||
init() {
|
init() {
|
||||||
if (this.$route.query["deviceId"]) {
|
if (this.$route.query["deviceId"]) {
|
||||||
this.handleDetails(this.$route.query);
|
this.handleDetails(this.$route.query);
|
||||||
}
|
}
|
||||||
|
this.getDicts(" device_tag").then((response) => {
|
||||||
|
this.deviceTagList = response.data;
|
||||||
|
});
|
||||||
this.getDeviceTypeList();
|
this.getDeviceTypeList();
|
||||||
this.initGetModelList();
|
this.initGetModelList();
|
||||||
this.getList();
|
this.getList();
|
||||||
|
@ -869,6 +905,7 @@ export default {
|
||||||
paramList: [],
|
paramList: [],
|
||||||
deviceKey: "",
|
deviceKey: "",
|
||||||
lineType: undefined,
|
lineType: undefined,
|
||||||
|
deviceTag: '',
|
||||||
};
|
};
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue