From 413d6598687f262ec27b6c5521fab0922f8930c4 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 12 二月 2025 13:35:31 +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 d850247..51a9ce7 100644
--- a/src/api/model/sche/model/index.ts
+++ b/src/api/model/sche/model/index.ts
@@ -4,6 +4,8 @@
 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'
+import {getPointSimpleList} from "@/api/data/da/point";
 
 export interface ScheduleModelVO {
   id: string
@@ -20,6 +22,7 @@
   status: number,
   paramList: null,
   settingList: null
+  modelOut:null
 }
 
 export interface ModelParamVO {
@@ -73,14 +76,15 @@
 export const getModelParamList = async (id) => {
 
   const dataPointList = ref([] as DataPointApi.DaPointVO)
-  dataPointList.value = await DataPointApi.getPointList({})
+  dataPointList.value = await DataPointApi.getPointSimpleList({})
   const pointList = []
   if (dataPointList.value) {
     dataPointList.value.forEach(item => {
       pointList.push(
         {
           id: item.id,
-          name: item.pointName
+          name: item.pointName,
+          itemNo : item.pointNo
         }
       )
     })
@@ -141,10 +145,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