From aee9896af5d7b9efd8935b19bf23531bb6eda174 Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期四, 28 十一月 2024 17:22:08 +0800
Subject: [PATCH] 新增大屏设计器goview页面配置

---
 src/api/model/sche/model/index.ts |   63 ++++++++++++++++++++++++++++---
 1 files changed, 57 insertions(+), 6 deletions(-)

diff --git a/src/api/model/sche/model/index.ts b/src/api/model/sche/model/index.ts
index 6fd6866..8863d31 100644
--- a/src/api/model/sche/model/index.ts
+++ b/src/api/model/sche/model/index.ts
@@ -1,4 +1,9 @@
 import request from '@/config/axios'
+import * as DataPointApi from '@/api/data/da/point'
+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
@@ -65,11 +70,57 @@
 }
 
 // 查询模型参数列表
-export const getModelParamList = (modelparamListMap) => {
-  modelparamListMap['point'] = []
-}
+export const getModelParamList = async () => {
 
-// 查询getScheduleWorkPrecessList列表
-export const getScheduleWorkPrecessList = (data: WorkPrecessParamVO) => {
-  return request.get({ url: '/model/sche/model/work-process/list/all'},data)
+  const dataPointList = ref([] as DataPointApi.DaPointVO)
+  dataPointList.value = await DataPointApi.getPointList({})
+  const pointList = []
+  if (dataPointList.value) {
+    dataPointList.value.forEach(item => {
+      pointList.push(
+        {
+          id: item.id,
+          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
+        }
+      )
+    })
+  }
+
+  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,
+    'PLAN': planList,
+  }
 }

--
Gitblit v1.9.3