| | |
| | | <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" |
| | |
| | | <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" |
| | |
| | | </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> |
| | |
| | | <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" |
| | |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <!--<el-table-column |
| | | <el-table-column |
| | | prop="" |
| | | label="参数名称" |
| | | align="center"> |
| | |
| | | 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="参数长度" |
| | |
| | | </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' |
| | | |
| | |
| | | modelPath: undefined, |
| | | resultStrId: undefined, |
| | | invocation: undefined, |
| | | status: undefined, |
| | | status: CommonStatusEnum.ENABLE, |
| | | paramList: [{ |
| | | modelparamportorder: '1', |
| | | modelparamorder: '1', |
| | |
| | | } |
| | | |
| | | // 加载数据源列表 |
| | | //modelparamListMap.value = await ScheduleModelApi.getModelParamList() |
| | | await ScheduleModelApi.getModelParamList(modelparamListMap) |
| | | } |
| | | } |
| | | defineExpose({ open }) // 提供 open 方法,用于打开弹窗 |