diff --git a/apps/web-antd/src/views/system/menu/data.ts b/apps/web-antd/src/views/system/menu/data.ts deleted file mode 100644 index 344908eb1..000000000 --- a/apps/web-antd/src/views/system/menu/data.ts +++ /dev/null @@ -1,82 +0,0 @@ -import type { OnActionClickFn, VxeTableGridOptions } from '#/adapter/vxe-table'; -import type { SystemMenuApi } from '#/api/system/menu'; - -import { DICT_TYPE } from '#/utils/dict'; - -export function useGridColumns( - onActionClick: OnActionClickFn, -): VxeTableGridOptions['columns'] { - return [ - { - align: 'left', - field: 'name', - fixed: 'left', - slots: { default: 'name' }, - title: '菜单名称', - treeNode: true, - minWidth: 250, - }, - { - cellRender: { - name: 'CellDict', - props: { type: DICT_TYPE.SYSTEM_MENU_TYPE }, - }, - field: 'type', - title: '菜单类型', - minWidth: 100, - }, - { - field: 'sort', - title: '显示排序', - minWidth: 100, - }, - { - field: 'permission', - title: '权限标识', - minWidth: 200, - }, - { - field: 'path', - title: '组件路径', - minWidth: 200, - }, - { - field: 'componentName', - minWidth: 200, - title: '组件名称', - }, - { - cellRender: { - name: 'CellDict', - props: { type: DICT_TYPE.COMMON_STATUS }, - }, - field: 'status', - title: '状态', - minWidth: 100, - }, - { - align: 'right', - cellRender: { - attrs: { - nameField: 'name', - onClick: onActionClick, - }, - name: 'CellOperation', - options: [ - { - code: 'append', - text: '新增下级', - }, - 'edit', // 默认的编辑按钮 - 'delete', // 默认的删除按钮 - ], - }, - field: 'operation', - fixed: 'right', - headerAlign: 'center', - showOverflow: false, - title: '操作', - minWidth: 200, - }, - ]; -} diff --git a/apps/web-antd/src/views/system/menu/index.vue b/apps/web-antd/src/views/system/menu/index.vue index 1de2a7276..323bfc3f9 100644 --- a/apps/web-antd/src/views/system/menu/index.vue +++ b/apps/web-antd/src/views/system/menu/index.vue @@ -1,8 +1,5 @@