From 81fb3a84f364d3957d5ef1db25bc6d05d08f34b7 Mon Sep 17 00:00:00 2001
From: dongyukun <1208714201@qq.com>
Date: 星期三, 11 六月 2025 17:06:27 +0800
Subject: [PATCH] 快照配置分页

---
 src/api/model/sche/model/index.ts |   36 ++++++++++++++++++++++++++++++++----
 1 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/src/api/model/sche/model/index.ts b/src/api/model/sche/model/index.ts
index 51a9ce7..7a2609b 100644
--- a/src/api/model/sche/model/index.ts
+++ b/src/api/model/sche/model/index.ts
@@ -94,8 +94,32 @@
   predictItemList.value = await PredictItemApi.getMmPredictItemList({
     status: CommonEnabled.ENABLE
   })
+  predictItemList.value = predictItemList.value.filter(e => e.outPuts && e.outPuts.length > 0);
+
+  const allPredictItemList = []
+  const predictAllItemList = predictItemList.value;
+  if (predictAllItemList && predictAllItemList.length > 0) {
+    // 过滤掉本身
+    predictAllItemList.filter(e => e.id !== id).forEach(item => {
+      allPredictItemList.push(
+        {
+          value: item.id,
+          label:  item.itemname,
+          predictlength: item.predictlength,
+          moduleid: item.moduleid,
+          children: item.outPuts?.map(e => {
+            return {
+              value: e.id,
+              label: e.resultName
+            }
+          })
+        }
+      )
+    })
+  }
+
   const normalItemList = []
-  const predictNormalItemList = predictItemList.value.filter(e => e.itemtypename === 'NormalItem' && e.outPuts && e.outPuts.length > 0);
+  const predictNormalItemList = predictItemList.value.filter(e => e.itemtypename === 'NormalItem');
   if (predictNormalItemList && predictNormalItemList.length > 0) {
     // 过滤掉本身
     predictNormalItemList.filter(e => e.id !== id).forEach(item => {
@@ -125,13 +149,14 @@
       planList.push(
         {
           id: item.id,
-          name:  item.itemName
+          name:  item.itemName,
+          itemNo:  item.itemNo
         }
       )
     })
   }
 
-  const predictMergeItemList = predictItemList.value.filter(e => e.itemtypename === 'MergeItem' && e.outPuts && e.outPuts.length > 0);
+  const predictMergeItemList = predictItemList.value.filter(e => e.itemtypename === 'MergeItem');
   const mergeItemList = []
   if (predictMergeItemList && predictMergeItemList.length > 0) {
     // 过滤掉本身
@@ -153,7 +178,8 @@
       indList.push(
         {
           id: item.id,
-          name: item.itemName
+          name: item.itemName,
+          itemNo: item.itemNo
         }
       )
     })
@@ -163,7 +189,9 @@
     'DATAPOINT':pointList,
     'NormalItem': normalItemList,
     'MergeItem': mergeItemList,
+    'allPredictItemList': allPredictItemList,
     'PLAN': planList,
     'IND': indList,
+    'IND_ASCII': indList,
   }
 }

--
Gitblit v1.9.3