From 8736042f4116942b2253d6eb4e782645125c40e2 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期一, 24 二月 2025 20:13:11 +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..1336ae7 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: "ASSEMBLY_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