fix: 目录和菜单路径统一改为codegen

- views/base/codegen
- api/base/codegen
- 菜单SQL path改为codegen
This commit is contained in:
zhouz
2026-07-15 19:49:20 +08:00
parent 14a784f869
commit cfe111a698
6 changed files with 12 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { BaseCodeRuleApi } from '#/api/base/code-rule';
import type { BaseCodeRuleApi } from '#/api/base/codegen';
import { computed, ref, watch } from 'vue';

View File

@@ -1,6 +1,6 @@
import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { BaseCodeRuleApi } from '#/api/base/code-rule';
import type { BaseCodeRuleApi } from '#/api/base/codegen';
import { getRangePickerDefaultProps } from '#/utils';

View File

@@ -1,16 +1,15 @@
<script lang="ts" setup>
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { BaseCodeRuleApi } from '#/api/base/code-rule';
import type { BaseCodeRuleApi } from '#/api/base/codegen';
import { ref } from 'vue';
import { confirm, Page, useVbenModal } from '@vben/common-ui';
import { isEmpty } from '@vben/utils';
import { Modal, message } from 'antdv-next';
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import { deleteCodeRule, getCodeRulePage, previewCode } from '#/api/base/code-rule';
import { deleteCodeRule, getCodeRulePage, previewCode } from '#/api/base/codegen';
import { $t } from '#/locales';
import { useGridColumns, useGridFormSchema } from './data';
@@ -146,7 +145,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
label: $t('ui.actionTitle.create', ['编码规则']),
type: 'primary',
icon: ACTION_ICON.ADD,
auth: ['base:code-rule:create'],
auth: ['base:codeGen:create'],
onClick: handleCreate,
},
{
@@ -154,7 +153,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
type: 'primary',
danger: true,
icon: ACTION_ICON.DELETE,
auth: ['base:code-rule:delete'],
auth: ['base:codeGen:delete'],
disabled: isEmpty(checkedIds),
onClick: handleDeleteBatch,
},
@@ -168,14 +167,14 @@ const [Grid, gridApi] = useVbenVxeGrid({
label: '预览',
type: 'link',
icon: ACTION_ICON.SEARCH,
auth: ['base:code-rule:query'],
auth: ['base:codeGen:query'],
onClick: handlePreview.bind(null, row),
},
{
label: $t('common.edit'),
type: 'link',
icon: ACTION_ICON.EDIT,
auth: ['base:code-rule:update'],
auth: ['base:codeGen:update'],
onClick: handleEdit.bind(null, row),
},
{
@@ -183,7 +182,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
type: 'link',
danger: true,
icon: ACTION_ICON.DELETE,
auth: ['base:code-rule:delete'],
auth: ['base:codeGen:delete'],
popConfirm: {
title: $t('ui.actionMessage.deleteConfirm', [row.ruleName]),
confirm: handleDelete.bind(null, row),

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { BaseCodeRuleApi } from '#/api/base/code-rule';
import type { BaseCodeRuleApi } from '#/api/base/codegen';
import { computed, ref } from 'vue';
@@ -12,7 +12,7 @@ import {
createCodeRule,
getCodeRule,
updateCodeRule,
} from '#/api/base/code-rule';
} from '#/api/base/codegen';
import { $t } from '#/locales';
import SegmentEditor from '../components/SegmentEditor.vue';