From 6a7257f9d8f659c508cf826726126c0fa4363eef Mon Sep 17 00:00:00 2001
From: YangYuGang <1378265336@qq.com>
Date: 星期一, 14 四月 2025 17:04:39 +0800
Subject: [PATCH] 盘点单没有数据时一直加载中

---
 src/views/tigerprojects/system/lowcode/setting/index.vue |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/src/views/tigerprojects/system/lowcode/setting/index.vue b/src/views/tigerprojects/system/lowcode/setting/index.vue
index 6c2c1e5..387ae49 100644
--- a/src/views/tigerprojects/system/lowcode/setting/index.vue
+++ b/src/views/tigerprojects/system/lowcode/setting/index.vue
@@ -39,13 +39,14 @@
 <script lang="ts" setup>
   import { onMounted, ref, unref } from 'vue';
   import { BasicTable, useTable, TableAction, BasicColumn, FormSchema } from '/@/components/Table';
-  import { DeleteEntity, fetchJson, getListByPage } from '/@/api/tigerapi/system';
+  import { DeleteEntity, fetchJson, getEntity, getListByPage } from '/@/api/tigerapi/system';
   import { useGlobSetting } from '/@/hooks/setting';
   import { useGo } from '/@/hooks/web/usePage';
   import { buildUUID } from '/@/utils/uuid';
   import { useRouter } from 'vue-router';
   import { afterFetchFn, SearchInfoFn } from '../data';
   import { useQueryStore } from '/@/store/modules/queryInpage';
+import { isNullOrEmpty } from '/@/utils/is';
 
   const go = useGo();
   const globSetting = useGlobSetting();
@@ -126,11 +127,19 @@
   }
 
   onMounted(async () => {
-    _searchFormSchema.value = await fetchJson(
-      `${globSetting.downloadUrl}/LowCode/SYS_LOW_CODE/SYS_LOW_CODE_Searchform.json`,
-    );
-    _columns.value = await fetchJson(
-      `${globSetting.downloadUrl}/LowCode/SYS_LOW_CODE/SYS_LOW_CODE_Baseform.json`,
-    );
+    // _searchFormSchema.value = await fetchJson(
+    //   `${globSetting.downloadUrl}/LowCode/SYS_LOW_CODE/SYS_LOW_CODE_Searchform.json`,
+    // );
+    // _columns.value = await fetchJson(
+    //   `${globSetting.downloadUrl}/LowCode/SYS_LOW_CODE/SYS_LOW_CODE_Baseform.json`,
+    // );
+    const data = await getEntity({
+      sqlcmd: "CODE_NAME ='SYS_LOW_CODE'",
+      entityName: 'SYS_LOW_CODE',
+      order: '',
+    });
+    const searchForms = JSON.parse(data.Data.Items[0].SEARCH_FORM_JSON);
+    _searchFormSchema.value = isNullOrEmpty(searchForms.search) ? searchForms : searchForms.fields;
+    _columns.value = JSON.parse(data.Data.Items[0].BASE_FORM_JSON);
   });
 </script>

--
Gitblit v1.9.3