From d3ee81e33f92f23ee579f3d72c26e011523e166b Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期四, 26 九月 2024 14:36:34 +0800 Subject: [PATCH] sche 测点配置 --- src/views/model/mcs/sche/model/ScheduleModelForm.vue | 30 +++++++++++++++++------------- 1 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/views/model/mcs/sche/model/ScheduleModelForm.vue b/src/views/model/mcs/sche/model/ScheduleModelForm.vue index 19518d5..84b1f3d 100644 --- a/src/views/model/mcs/sche/model/ScheduleModelForm.vue +++ b/src/views/model/mcs/sche/model/ScheduleModelForm.vue @@ -130,22 +130,21 @@ filterable placeholder="请选择"> <el-option - v-for="(item, index) in modelparamListMap['k']" + v-for="(item, index) in modelparamListMap[scope.row.modelparamtype]" :key="index" :label="item.name" - :value="item.id" - :disabled="!(item.type === scope.row.modelparamtype)"/> + :value="item.id"/> </el-select> </template> </el-table-column> <el-table-column prop="" label="参数长度" - width="120" + width="160" align="center"> <template #default="scope"> - <el-input size="mini" v-model="scope.row.datalength" maxlength="50" clearable - style="width:100%;hight:100%"/> + <el-input-number v-model="scope.row.datalength" :min="0" clearable controls-position="right" + style="width:100%;hight:100%"/> </template> </el-table-column> <el-table-column @@ -182,7 +181,7 @@ label="键" align="center"> <template #default="scope"> - <el-input size="mini" v-model="scope.row.key" maxlength="256" clearable + <el-input size="mini" v-model="scope.row.key" maxlength="20" clearable style="width:100%;hight:100%"/> </template> </el-table-column> @@ -191,7 +190,7 @@ label="名称" align="center"> <template #default="scope"> - <el-input size="mini" v-model="scope.row.name" maxlength="256" clearable + <el-input size="mini" v-model="scope.row.name" maxlength="20" clearable style="width:100%;hight:100%"/> </template> </el-table-column> @@ -200,8 +199,14 @@ label="类型" align="center"> <template #default="scope"> - <el-input size="mini" v-model="scope.row.valuetype" maxlength="256" clearable - style="width:100%;hight:100%"/> + <el-select v-model="scope.row.valuetype" placeholder="请选择"> + <el-option + v-for="dict in getStrDictOptions(DICT_TYPE.MODEL_METHOD_SETTING_VALUE_TYPE)" + :key="dict.value" + :label="dict.label" + :value="dict.value" + /> + </el-select> </template> </el-table-column> <el-table-column @@ -333,10 +338,9 @@ } finally { formLoading.value = false } - - // 加载数据源列表 - await ScheduleModelApi.getModelParamList(modelparamListMap) } + // 加载参数列表 + modelparamListMap.value = await ScheduleModelApi.getModelParamList() } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 -- Gitblit v1.9.3