From 912df10c968d01457d15bcfa0b10acc7d7d4b7aa Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期五, 27 九月 2024 08:56:02 +0800 Subject: [PATCH] 修改前端第一次启动是报uno.css的错误bug --- src/api/model/sche/model/index.ts | 53 +++++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 41 insertions(+), 12 deletions(-) diff --git a/src/api/model/sche/model/index.ts b/src/api/model/sche/model/index.ts index 7d7d9d0..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,18 +68,40 @@ } // 查询模型参数列表 -export const getModelParamList = () => { - // let modelparamListMap = [ - // { - // modelparamportorder: '', - // modelparamorder: '', - // modelparamtype: '', - // modelparamid: '', - // datalength: 0 - // } - // ] +export const getModelParamList = async () => { - //let modelparamListMap = {} + 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 + } + ) + }) + } - return {} + 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