From 13c97d76348b5451381320aa54efa0706f38ecb6 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期四, 31 十月 2024 08:49:52 +0800 Subject: [PATCH] 测点列表.xlsx --- src/views/model/pre/item/MmPredictItemForm.vue | 27 ++++++++++++++++++++++----- 1 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/views/model/pre/item/MmPredictItemForm.vue b/src/views/model/pre/item/MmPredictItemForm.vue index 11d9120..4990942 100644 --- a/src/views/model/pre/item/MmPredictItemForm.vue +++ b/src/views/model/pre/item/MmPredictItemForm.vue @@ -5,7 +5,7 @@ v-loading="formLoading" :model="dataForm" :rules="formRules" - label-width="120px" + label-width="100px" > <el-divider content-position="left">基本信息</el-divider> <el-row> @@ -157,8 +157,8 @@ </el-upload> </el-col> </el-row> - <el-row :gutter="8" v-if="dataForm.itemtypename === 'NormalItem'"> - <el-col :span="12"> + <el-row v-if="dataForm.itemtypename === 'NormalItem'"> + <el-col :span="8"> <el-form-item label="结果"> <el-select v-model="dataForm.mmPredictModel.resultstrid" placeholder="请选择"> <el-option @@ -169,7 +169,18 @@ </el-select> </el-form-item> </el-col> - <el-col :span="12"> + <el-col :span="8"> + <el-form-item label="关联模型"> + <el-select v-model="dataForm.mmPredictModel.mpkprojectid" placeholder="请选择"> + <el-option + v-for="item in mpkProjectList" + :key="item.id" + :label="item.projectName" + :value="item.id"/> + </el-select> + </el-form-item> + </el-col> + <el-col :span="8"> <el-form-item label="编号"> <el-input v-model="dataForm.mmPredictModel.modelno" placeholder="编号" maxlength="30" readonly @@ -362,6 +373,7 @@ import * as MmItemType from '@/api/model/pre/item' import * as DmModule from '@/api/model/pre/dm' import * as MmResultTable from '@/api/model/pre/result' +import * as ProjectApi from '@/api/model/mpk/project' import * as DaPoint from '@/api/data/da/point' import {useUpload} from '@/api/model/pre/predict' import * as ScheduleModelApi from '@/api/model/sche/model' @@ -380,6 +392,7 @@ const itemTypeMap = ref({}) const moduleList = ref([]) const resultstridList = ref([]) +const mpkProjectList = ref([]) const pointNoList = ref([]) const pointList = ref([]) const pointMap = ref({}) @@ -448,7 +461,8 @@ methodname: undefined, modelparamstructure: undefined, resultstrid: undefined, - settingmap: undefined + settingmap: undefined, + mpkprojectid: undefined }, mmPredictMergeItem: { id: undefined, @@ -518,6 +532,9 @@ // 获取结果字符串列表 resultstridList.value = await MmResultTable.getResultstridList() + // 获取mpk项目列表 + mpkProjectList.value = await ProjectApi.list() + // 获取数据点列表 pointNoList.value = await DaPoint.getPointList(queryParams) if (pointNoList.value.length > 0) { -- Gitblit v1.9.3