From b9576f3b1e8283f0f07fd4a16b3b85a67596da98 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 22 十二月 2025 10:47:09 +0800
Subject: [PATCH] feat: init

---
 .env.development                  |    2 +-
 src/views/System/ModuleManage.vue |   11 ++++++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/.env.development b/.env.development
index 92982fd..af586f4 100644
--- a/.env.development
+++ b/.env.development
@@ -1,5 +1,5 @@
 # 椤圭洰鏈湴杩愯绔彛鍙�
-VITE_PORT = 8188
+VITE_PORT = 8711
 
 # 寮�鍙戠幆澧冭鍙栭厤缃枃浠惰矾寰�
 VITE_PUBLIC_PATH = /
diff --git a/src/views/System/ModuleManage.vue b/src/views/System/ModuleManage.vue
index 145fbf4..126f218 100644
--- a/src/views/System/ModuleManage.vue
+++ b/src/views/System/ModuleManage.vue
@@ -409,7 +409,7 @@
     let params: API.SaveMenuCommand = {
       userType: state.userType,
       clientType: state.clientType,
-      enterpriseType: state.enterpriseType,
+      // enterpriseType: state.enterpriseType,
       code: editForm.enCode,
       name: editForm.name,
       type: editForm.isMenu ? EnumMenuType.Menu : EnumMenuType.Page,
@@ -419,6 +419,9 @@
       isDisabled: !editForm.enabledMark,
       sort: editForm.sortCode,
     };
+    if (state.userType === EnumUserType.Enterprise) {
+      params.enterpriseType = state.enterpriseType;
+    }
     if (editForm.showCacheSelect) {
       params.isCache = editForm.isCache;
     }
@@ -579,8 +582,9 @@
               group.fields = columnModuleList.map((c) => ({
                 code: c.enCode,
                 name: c.name,
-                width: c.width.toString(),
+                width: c.width ? c.width.toString() : '',
                 sort: c.sortCode,
+                id: c.id,
               }));
             }
             return group;
@@ -591,8 +595,9 @@
             fields: columnModuleList.map((c) => ({
               code: c.enCode,
               name: c.name,
-              width: c.width.toString(),
+              width: c.width ? c.width.toString() : '',
               sort: c.sortCode,
+              id: c.id,
             })),
           };
           groups.push(group);

--
Gitblit v1.10.0