From 4fef2b8afba85d8f2f8be70b85ffc105cfc4deda Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期五, 13 三月 2026 11:49:12 +0800
Subject: [PATCH] 生产维护树形结构加载慢改成懒加载

---
 src/views/productionPlan/productionPlan/index.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/productionPlan/productionPlan/index.vue b/src/views/productionPlan/productionPlan/index.vue
index 33dbeb0..88aedf3 100644
--- a/src/views/productionPlan/productionPlan/index.vue
+++ b/src/views/productionPlan/productionPlan/index.vue
@@ -349,7 +349,11 @@
     productionPlanCombine,
   } from "@/api/productionPlan/productionPlan.js";
   import PIMTable from "./components/PIMTable.vue";
-  import { modelListPage, productTreeList } from "@/api/basicData/newProduct.js";
+  import {
+    modelListPage,
+    productTreeList,
+    productTreeListQuery,
+  } from "@/api/basicData/newProduct.js";
 
   const { proxy } = getCurrentInstance();
 
@@ -645,7 +649,7 @@
   };
 
   const fetchProductOptions = () => {
-    return productTreeList().then(res => {
+    return productTreeList({ type: 2 }).then(res => {
       productOptions.value = convertIdToValue(res.data);
       return res;
     });

--
Gitblit v1.9.3