From 36730eac964e814a4fc9a0879c499e326fc00ac8 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期六, 14 九月 2024 11:41:07 +0800 Subject: [PATCH] 预测项配置 --- src/views/model/mcs/sche/model/ScheduleModelForm.vue | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/model/mcs/sche/model/ScheduleModelForm.vue b/src/views/model/mcs/sche/model/ScheduleModelForm.vue index 50d2727..19518d5 100644 --- a/src/views/model/mcs/sche/model/ScheduleModelForm.vue +++ b/src/views/model/mcs/sche/model/ScheduleModelForm.vue @@ -24,7 +24,7 @@ <el-form-item label="模型类型" prop="modelType"> <el-select v-model="formData.modelType" placeholder="请选择"> <el-option - v-for="dict in getIntDictOptions(DICT_TYPE.SCHE_MODEL_TYPE)" + v-for="dict in getStrDictOptions(DICT_TYPE.SCHE_MODEL_TYPE)" :key="dict.value" :label="dict.label" :value="dict.value" @@ -36,7 +36,7 @@ <el-form-item label="调用方式" prop="invocation"> <el-select v-model="formData.invocation" placeholder="请选择"> <el-option - v-for="dict in getIntDictOptions(DICT_TYPE.SCHE_MODEL_INVOCATION)" + v-for="dict in getStrDictOptions(DICT_TYPE.SCHE_MODEL_INVOCATION)" :key="dict.value" :label="dict.label" :value="dict.value" @@ -60,7 +60,7 @@ </el-col> <el-col :span="12"> <el-form-item label="参数数量" prop="portLength"> - <el-input-number v-model="formData.sort" :min="0" controls-position="right" /> + <el-input-number v-model="formData.portLength" :min="0" controls-position="right" /> </el-form-item> </el-col> </el-row> @@ -111,7 +111,7 @@ <template #default="scope"> <el-select v-model="scope.row.modelparamtype" placeholder="请选择"> <el-option - v-for="dict in getIntDictOptions(DICT_TYPE.MODEL_PARAM_TYPE)" + v-for="dict in getStrDictOptions(DICT_TYPE.MODEL_PARAM_TYPE)" :key="dict.value" :label="dict.label" :value="dict.value" @@ -119,7 +119,7 @@ </el-select> </template> </el-table-column> - <!--<el-table-column + <el-table-column prop="" label="参数名称" align="center"> @@ -130,14 +130,14 @@ filterable placeholder="请选择"> <el-option - v-for="(item, index) in modelparamListMap.[scope.row.modelparamtype]" + v-for="(item, index) in modelparamListMap['k']" :key="index" :label="item.name" :value="item.id" :disabled="!(item.type === scope.row.modelparamtype)"/> </el-select> </template> - </el-table-column>--> + </el-table-column> <el-table-column prop="" label="参数长度" @@ -244,7 +244,7 @@ </Dialog> </template> <script lang="ts" setup> - import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' + import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' import * as ScheduleModelApi from '@/api/model/sche/model' import { CommonStatusEnum } from '@/utils/constants' @@ -268,7 +268,7 @@ modelPath: undefined, resultStrId: undefined, invocation: undefined, - status: undefined, + status: CommonStatusEnum.ENABLE, paramList: [{ modelparamportorder: '1', modelparamorder: '1', @@ -335,7 +335,7 @@ } // 加载数据源列表 - //modelparamListMap.value = await ScheduleModelApi.getModelParamList() + await ScheduleModelApi.getModelParamList(modelparamListMap) } } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 -- Gitblit v1.9.3