From 5a4d79d9765dfca8812638b57d5f5fe21f7a06ee Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期二, 16 七月 2024 17:05:25 +0800
Subject: [PATCH] 工单下发更新

---
 src/views/tigerprojects/system/lowcode/composition/index.vue |   64 ++++++++++++++++---------------
 1 files changed, 33 insertions(+), 31 deletions(-)

diff --git a/src/views/tigerprojects/system/lowcode/composition/index.vue b/src/views/tigerprojects/system/lowcode/composition/index.vue
index 5fa8386..2068333 100644
--- a/src/views/tigerprojects/system/lowcode/composition/index.vue
+++ b/src/views/tigerprojects/system/lowcode/composition/index.vue
@@ -4,7 +4,7 @@
  * @version: 
  * @Date: 2024-06-18 23:30:30
  * @LastEditors: Ben Lin
- * @LastEditTime: 2024-06-29 06:16:43
+ * @LastEditTime: 2024-07-15 22:22:58
 -->
 <template>
   <PageWrapper
@@ -25,8 +25,8 @@
           <template #[item] v-for="item in otherSlots" :key="item">
             <!-- 鑷畾涔夊唴瀹� -->
             <div class="h-full" style="height: 400px">
-              <FlowChartView :data="routeData" @init="init"
-            /></div>
+              <FlowChartView :data="routeData" @init="init" />
+            </div>
           </template>
         </CarGridNav>
         <Config v-if="showConfig" :configType="configType" @success="configSuccess" />
@@ -43,32 +43,35 @@
       </template>
     </BasicTable> -->
     <!-- <normalDrawer @register="registerDrawer" @success="handleSuccess" /> -->
-    <CustModal
-      @register="registerCust"
-      @success="custSuccess"
-      :type="cType"
-      :detailSlots="dtlSlots"
-    >
-      <!-- 鐢ㄦ彃妲借嚜瀹氫箟澶氳〃鍗� -->
-      <template #[item.name] v-for="item in dtlSlots" :key="item.name">
-        <BasicForm @register="useFormData[item.name][0]" v-if="useFormData[item.name]">
-          <!-- 鐢ㄦ彃妲借嚜瀹氫箟寮瑰嚭閫夋嫨妗� -->
-          <template #[name]="{ field }" v-for="name in item.slots" :key="name">
-            <a-button
-              class="mt-1 ml-1"
-              size="small"
-              @click="handleCustClick(field)"
-              :preIcon="item.preIcons[name]"
-            />
-            <GeneralModal
-              @register="useModalData[name][0]"
-              @success="(d, u) => handleEntSuccess(d, u, item.name)"
-            />
-          </template>
-        </BasicForm>
-        <!-- 鑷畾涔夊唴瀹� -->
-      </template>
-    </CustModal>
+    <Suspense>
+      <CustModal
+        @register="registerCust"
+        @success="custSuccess"
+        :type="cType"
+        :detailSlots="dtlSlots"
+        :entityName="entityName"
+      >
+        <!-- 鐢ㄦ彃妲借嚜瀹氫箟澶氳〃鍗� -->
+        <template #[item.name] v-for="item in dtlSlots" :key="item.name">
+          <BasicForm @register="useFormData[item.name][0]" v-if="useFormData[item.name]">
+            <!-- 鐢ㄦ彃妲借嚜瀹氫箟寮瑰嚭閫夋嫨妗� -->
+            <template #[name]="{ field }" v-for="name in item.slots" :key="name">
+              <a-button
+                class="mt-1 ml-1"
+                size="small"
+                @click="handleCustClick(field)"
+                :preIcon="item.preIcons[name]"
+              />
+              <GeneralModal
+                @register="useModalData[name][0]"
+                @success="(d, u) => handleEntSuccess(d, u, item.name)"
+              />
+            </template>
+          </BasicForm>
+          <!-- 鑷畾涔夊唴瀹� -->
+        </template>
+      </CustModal>
+    </Suspense>
   </PageWrapper>
 </template>
 <script lang="ts" setup>
@@ -88,7 +91,6 @@
   import { isNullOrUnDef } from '/@/utils/is';
   import { useGo } from '/@/hooks/web/usePage';
   import { useMessage } from '/@/hooks/web/useMessage';
-  import { getRouteData } from '/@/api/tigerapi/mes/router';
   import LogicFlow from '@logicflow/core';
 
   defineOptions({ name: 'DeptManagement' });
@@ -121,7 +123,7 @@
   const custImport = ref<any>(null);
   const [registerCust, { openModal: openCustomModal, closeModal }] = useModal();
   provide<Ref<any>>('objParams', objParams);
-  provide<Ref<any>>('selectedNodes', selectedNodes);
+  provide<Ref<any>>('selectedNodes', nodes);
   setTitle(objParams.value.Title); //璁剧疆鏍囩椤垫爣棰�
 
   /**

--
Gitblit v1.9.3