设备控制提交

This commit is contained in:
fengerli
2025-08-26 16:20:35 +08:00
parent 8d92482de3
commit af736485e4
11 changed files with 660 additions and 168 deletions

View File

@ -40,9 +40,9 @@
<el-table v-loading="loading" border :data="deviceTypeList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="50" align="center" />
<el-table-column label="型号名称" align="center" prop="typeName" />
<el-table-column label="类型code" align="center" prop="modelDictionary">
<el-table-column label="类型code" align="center" prop="appModelDictionary">
<template #default="scope">
{{ modelDictionaryOptions.find(item => item.dictValue === String(scope.row.modelDictionary))?.dictLabel }}
{{ modelDictionaryOptions.find(item => item.dictValue === String(scope.row.appModelDictionary))?.dictLabel }}
</template>
</el-table-column>
<el-table-column label="是否支持蓝牙" align="center" prop="isSupportBle">
@ -97,7 +97,7 @@
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="类型code" prop="modelDictionary">
<el-form-item label="路由跳转" prop="modelDictionary">
<el-select v-model="form.modelDictionary" placeholder="请选择">
<el-option v-for="item in modelDictionaryOptions" :key="item.dictValue" :label="item.dictLabel"
:value="item.dictValue" />
@ -236,7 +236,11 @@ const getList = async () => {
total.value = res.total;
};
const getDict = async () => {
const res = await getDicts('model_dictionary');
const res = await getDicts('app_model_dictionary');
modelDictionaryOptions.value = res.data;
}
const pcgetDict = async () => {
const res = await getDicts('pc_model_dictionary');
modelDictionaryOptions.value = res.data;
}
/** 搜索按钮操作 */
@ -352,6 +356,7 @@ const resetForm = () => {
onMounted(() => {
getList(); // 初始化列表数据
getDict();
pcgetDict() //pc跳转
});
</script>