fix: 目录和菜单路径统一改为codegen
- views/base/codegen - api/base/codegen - 菜单SQL path改为codegen
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<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';
|
import { computed, ref, watch } from 'vue';
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { VbenFormSchema } from '#/adapter/form';
|
import type { VbenFormSchema } from '#/adapter/form';
|
||||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
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';
|
import { getRangePickerDefaultProps } from '#/utils';
|
||||||
|
|
||||||
@@ -1,16 +1,15 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
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 { ref } from 'vue';
|
||||||
|
|
||||||
import { confirm, Page, useVbenModal } from '@vben/common-ui';
|
import { confirm, Page, useVbenModal } from '@vben/common-ui';
|
||||||
import { isEmpty } from '@vben/utils';
|
import { isEmpty } from '@vben/utils';
|
||||||
|
|
||||||
import { Modal, message } from 'antdv-next';
|
|
||||||
|
|
||||||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
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 { $t } from '#/locales';
|
||||||
|
|
||||||
import { useGridColumns, useGridFormSchema } from './data';
|
import { useGridColumns, useGridFormSchema } from './data';
|
||||||
@@ -146,7 +145,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
label: $t('ui.actionTitle.create', ['编码规则']),
|
label: $t('ui.actionTitle.create', ['编码规则']),
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: ACTION_ICON.ADD,
|
icon: ACTION_ICON.ADD,
|
||||||
auth: ['base:code-rule:create'],
|
auth: ['base:codeGen:create'],
|
||||||
onClick: handleCreate,
|
onClick: handleCreate,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -154,7 +153,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
type: 'primary',
|
type: 'primary',
|
||||||
danger: true,
|
danger: true,
|
||||||
icon: ACTION_ICON.DELETE,
|
icon: ACTION_ICON.DELETE,
|
||||||
auth: ['base:code-rule:delete'],
|
auth: ['base:codeGen:delete'],
|
||||||
disabled: isEmpty(checkedIds),
|
disabled: isEmpty(checkedIds),
|
||||||
onClick: handleDeleteBatch,
|
onClick: handleDeleteBatch,
|
||||||
},
|
},
|
||||||
@@ -168,14 +167,14 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
label: '预览',
|
label: '预览',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: ACTION_ICON.SEARCH,
|
icon: ACTION_ICON.SEARCH,
|
||||||
auth: ['base:code-rule:query'],
|
auth: ['base:codeGen:query'],
|
||||||
onClick: handlePreview.bind(null, row),
|
onClick: handlePreview.bind(null, row),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: $t('common.edit'),
|
label: $t('common.edit'),
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: ACTION_ICON.EDIT,
|
icon: ACTION_ICON.EDIT,
|
||||||
auth: ['base:code-rule:update'],
|
auth: ['base:codeGen:update'],
|
||||||
onClick: handleEdit.bind(null, row),
|
onClick: handleEdit.bind(null, row),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -183,7 +182,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
type: 'link',
|
type: 'link',
|
||||||
danger: true,
|
danger: true,
|
||||||
icon: ACTION_ICON.DELETE,
|
icon: ACTION_ICON.DELETE,
|
||||||
auth: ['base:code-rule:delete'],
|
auth: ['base:codeGen:delete'],
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: $t('ui.actionMessage.deleteConfirm', [row.ruleName]),
|
title: $t('ui.actionMessage.deleteConfirm', [row.ruleName]),
|
||||||
confirm: handleDelete.bind(null, row),
|
confirm: handleDelete.bind(null, row),
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { BaseCodeRuleApi } from '#/api/base/code-rule';
|
import type { BaseCodeRuleApi } from '#/api/base/codegen';
|
||||||
|
|
||||||
import { computed, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ import {
|
|||||||
createCodeRule,
|
createCodeRule,
|
||||||
getCodeRule,
|
getCodeRule,
|
||||||
updateCodeRule,
|
updateCodeRule,
|
||||||
} from '#/api/base/code-rule';
|
} from '#/api/base/codegen';
|
||||||
import { $t } from '#/locales';
|
import { $t } from '#/locales';
|
||||||
|
|
||||||
import SegmentEditor from '../components/SegmentEditor.vue';
|
import SegmentEditor from '../components/SegmentEditor.vue';
|
||||||
@@ -37,7 +37,7 @@ CREATE TABLE base_code_sequence (
|
|||||||
|
|
||||||
|
|
||||||
-- 编码规则菜单(基础数据 > 编码规则)
|
-- 编码规则菜单(基础数据 > 编码规则)
|
||||||
INSERT INTO `system_menu`(`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (6745, '编码规则', '', 2, 1, 6743, 'code-rule', NULL, NULL, NULL, 0, b'1', b'1', b'1', '1', NOW(), '1', NOW(), b'0');
|
INSERT INTO `system_menu`(`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (6745, '编码规则', '', 2, 1, 6743, 'codegen', NULL, NULL, NULL, 0, b'1', b'1', b'1', '1', NOW(), '1', NOW(), b'0');
|
||||||
|
|
||||||
-- 编码规则按钮权限(parent_id=6745)
|
-- 编码规则按钮权限(parent_id=6745)
|
||||||
INSERT INTO `system_menu`(`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (6746, '编码规则查询', 'base:code-rule:query', 3, 1, 6745, '', NULL, NULL, NULL, 0, b'1', b'1', b'1', '1', NOW(), '1', NOW(), b'0');
|
INSERT INTO `system_menu`(`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (6746, '编码规则查询', 'base:code-rule:query', 3, 1, 6745, '', NULL, NULL, NULL, 0, b'1', b'1', b'1', '1', NOW(), '1', NOW(), b'0');
|
||||||
|
|||||||
Reference in New Issue
Block a user