From fa3d2503f8c34049159058a19e941192e47fb89e Mon Sep 17 00:00:00 2001 From: dongyukun <1208714201@qq.com> Date: 星期四, 02 一月 2025 14:19:28 +0800 Subject: [PATCH] 调度模型下发数据类型字典 --- src/utils/dict.ts | 2 +- src/views/model/sche/model/ScheduleModelForm.vue | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 23b41c0..0795004 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -165,7 +165,7 @@ MODEL_METHOD_SETTING_VALUE_TYPE = 'model_method_setting_value_type', PRED_GRANULARITY = 'pred_granularity', ITEM_RUN_STATUS = 'item_run_status', - + RESULT_TYPE = 'result_type', // ========== DATA - 数据平台模块 ========== DATA_FIELD_TYPE = 'data_field_type', TAG_DATA_TYPE = 'tag_data_type', diff --git a/src/views/model/sche/model/ScheduleModelForm.vue b/src/views/model/sche/model/ScheduleModelForm.vue index d09e47a..d24e286 100644 --- a/src/views/model/sche/model/ScheduleModelForm.vue +++ b/src/views/model/sche/model/ScheduleModelForm.vue @@ -282,14 +282,21 @@ :data="formData.modelOut" border style="width: 100%; margin-top: 5px;"> - <el-table-column prop="resultKey`" label="输出key" align="center" min-width="100"> + <el-table-column prop="resultKey" label="输出key" align="center" min-width="100"> <template #default="scope"> <el-input size="mini" v-model="scope.row.resultKey" style="width:100%;height:100%"/> </template> </el-table-column> - <el-table-column prop="resultType`" label="数据类型" align="center" min-width="100"> + <el-table-column prop="resultType" label="数据类型" align="center" min-width="150"> <template #default="scope"> - <el-input size="mini" v-model="scope.row.resultType" style="width:100%;height:100%"/> + <el-select v-model="scope.row.resultType" placeholder="请选择"> + <el-option + v-for="dict in getStrDictOptions(DICT_TYPE.RESULT_TYPE)" + :key="dict.value" + :label="dict.label" + :value="dict.value" + /> + </el-select> </template> </el-table-column> <el-table-column prop="resultPort" label="角标1" align="center" min-width="100"> -- Gitblit v1.9.3