From 67e80dd003afb30ab67ac8c4e63bee4abb34bb7a Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期三, 16 十月 2024 15:03:27 +0800 Subject: [PATCH] 修改保存的id和修改展示页面 --- src/api/model/sche/model/index.ts | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 43 insertions(+), 2 deletions(-) diff --git a/src/api/model/sche/model/index.ts b/src/api/model/sche/model/index.ts index cece2cf..ebc1603 100644 --- a/src/api/model/sche/model/index.ts +++ b/src/api/model/sche/model/index.ts @@ -1,4 +1,7 @@ import request from '@/config/axios' +import * as DataPointApi from '@/api/data/da/point' +import * as PredictItemApi from '@/api/model/pre/predict' +import {CommonEnabled} from "@/utils/constants"; export interface ScheduleModelVO { id: string @@ -23,6 +26,10 @@ modelparamtype: string modelparamid: string datalength: number +} + +export interface WorkPrecessParamVO { + processType: string } export interface ScheduleModelPageReqVO extends PageParam { @@ -61,6 +68,40 @@ } // 查询模型参数列表 -export const getModelParamList = (modelparamListMap) => { - modelparamListMap['point'] = [] +export const getModelParamList = async () => { + + const dataPointList = ref([] as DataPointApi.DaPointVO) + dataPointList.value = await DataPointApi.getPointList({}) + const pointList = [] + if (dataPointList.value) { + dataPointList.value.forEach(item => { + pointList.push( + { + id: item.pointNo, + name: item.pointName + } + ) + }) + } + + const predictItemList = ref([] as PredictItemApi.MmPredictItemVO) + predictItemList.value = await PredictItemApi.getMmPredictItemList({ + status: CommonEnabled.ENABLE, + itemtypename: 'NormalItem' + }) + const itemList = [] + if (predictItemList.value) { + predictItemList.value.forEach(item => { + itemList.push( + { + id: item.id, + name: item.itemname + } + ) + }) + } + return { + 'DATAPOINT':pointList, + 'PREDICTITEM': itemList + } } -- Gitblit v1.9.3