From ebc552900444d25b1158bf53d07f24c9ee36cc75 Mon Sep 17 00:00:00 2001 From: liriming <1343021927@qq.com> Date: 星期一, 20 一月 2025 14:40:57 +0800 Subject: [PATCH] 预警配置 --- src/api/model/sche/model/index.ts | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/api/model/sche/model/index.ts b/src/api/model/sche/model/index.ts index b0bf106..8863d31 100644 --- a/src/api/model/sche/model/index.ts +++ b/src/api/model/sche/model/index.ts @@ -1,7 +1,9 @@ import request from '@/config/axios' import * as DataPointApi from '@/api/data/da/point' -import * as PredictItemApi from '@/api/model/pre/predict' +import * as PredictItemApi from '@/api/model/pre/item' +import * as PlanItemApi from '@/api/data/plan/item' import {CommonEnabled} from "@/utils/constants"; +import {getItemList, ItemVO} from "@/api/data/plan/item"; export interface ScheduleModelVO { id: string @@ -100,8 +102,25 @@ ) }) } + + const planItemList = ref([] as PlanItemApi.ItemVO) + planItemList.value = await PlanItemApi.getItemList({ + }) + const planList = [] + if (planItemList.value) { + planItemList.value.forEach(item => { + planList.push( + { + id: item.id, + name: item.itemName + } + ) + }) + } + return { 'DATAPOINT':pointList, - 'PREDICTITEM': itemList + 'PREDICTITEM': itemList, + 'PLAN': planList, } } -- Gitblit v1.9.3