From 0b6b336181875f53092a0086b9d55b5d264e5c5b Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 22 十二月 2025 10:45:51 +0800
Subject: [PATCH] fix: bug

---
 src/views/System/ModuleManage.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

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