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/menu/index.vue |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/views/tigerprojects/system/menu/index.vue b/src/views/tigerprojects/system/menu/index.vue
index 2b178b9..6b29a8f 100644
--- a/src/views/tigerprojects/system/menu/index.vue
+++ b/src/views/tigerprojects/system/menu/index.vue
@@ -15,14 +15,15 @@
             @expanded-rows-change="onExpandedRChg"
           >
             <template #toolbar>
-              <a-button type="primary" @click="handleCreate('BS 鑿滃崟')"> 鏂板鑿滃崟 </a-button>
+              <a-button type="primary" @click="handleCreate('BS')"> 鏂板鑿滃崟 </a-button>
             </template>
             <template #action="{ record }">
               <TableAction
                 :actions="[
                   {
                     icon: 'clarity:note-edit-line',
-                    onClick: handleEdit.bind(null, record, 'BS 鑿滃崟'),
+                    onClick: handleEdit.bind(null, record, 'BS'),
+                    name: '',
                   },
                   {
                     icon: 'ant-design:delete-outlined',
@@ -32,6 +33,7 @@
                       placement: 'left',
                       confirm: handleDelete.bind(null, record),
                     },
+                    name: '',
                   },
                 ]"
               />
@@ -55,6 +57,7 @@
                   {
                     icon: 'clarity:note-edit-line',
                     onClick: handleEdit.bind(null, record, 'PDA'),
+                    name: '',
                   },
                   {
                     icon: 'ant-design:delete-outlined',
@@ -64,6 +67,7 @@
                       placement: 'left',
                       confirm: handleDelete.bind(null, record),
                     },
+                    name: '',
                   },
                 ]"
               />
@@ -94,7 +98,7 @@
     // const [registerTable, { reload, expandRows }] = useTable({
     title: '鑿滃崟鍒楄〃',
     api: getMenuList,
-    searchInfo: { menuName: 'BS 鑿滃崟' },
+    searchInfo: { menuName: 'BS' },
     columns,
     formConfig: {
       labelWidth: 120,
@@ -118,7 +122,10 @@
     rowKey: 'id',
   });
 
-  const [registerTableSecond, { reload:reloadSecond, expandAll:expandAllSecond, expandRows:expandRowsSecond }] = useTable({
+  const [
+    registerTableSecond,
+    { reload: reloadSecond, expandAll: expandAllSecond, expandRows: expandRowsSecond },
+  ] = useTable({
     // const [registerTable, { reload, expandRows }] = useTable({
     title: '鑿滃崟鍒楄〃',
     api: getMenuList,
@@ -167,7 +174,8 @@
     const apiAction = DeleteMenu(record);
     apiAction.then((onfulfilled) => {
       if (onfulfilled.IsSuccessed) {
-        reload();
+          reloadSecond();
+          reload();
       }
     });
   }

--
Gitblit v1.9.3