From 76680b5a434415a718b23bc42283ee8d62c3eb88 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期一, 20 一月 2025 15:48:28 +0800 Subject: [PATCH] 预测项 指标数据下拉数据 --- src/api/model/sche/model/index.ts | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/api/model/sche/model/index.ts b/src/api/model/sche/model/index.ts index 0ac2b05..b2b130f 100644 --- a/src/api/model/sche/model/index.ts +++ b/src/api/model/sche/model/index.ts @@ -4,6 +4,7 @@ import * as PlanItemApi from '@/api/data/plan/item' import {CommonEnabled} from "@/utils/constants"; import {getItemList, ItemVO} from "@/api/data/plan/item"; +import * as ItemApi from '@/api/data/ind/item/item' export interface ScheduleModelVO { id: string @@ -143,10 +144,25 @@ }) } + // 指标数据 + const indItemList = await ItemApi.getItemList({}) + const indList = [] + if (indItemList) { + indItemList.forEach(item => { + indList.push( + { + id: item.id, + name: item.itemName + } + ) + }) + } + return { 'DATAPOINT':pointList, 'NormalItem': normalItemList, 'MergeItem': mergeItemList, 'PLAN': planList, + 'IND': indList, } } -- Gitblit v1.9.3