Ben Lin
2025-03-08 7f5b781c9b476eb1c74dd637cbf9ee54bc71acfd
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();
      }
    });
  }