feat(sj_1.0.0): 组管理路由group-config => group
This commit is contained in:
parent
6c81cb75db
commit
e990fa17ad
@ -43,7 +43,7 @@ async function search() {
|
||||
<NForm ref="formRef" :model="model" label-placement="left" :label-width="80" :show-feedback="appStore.isMobile">
|
||||
<NGrid responsive="screen" item-responsive>
|
||||
<slot></slot>
|
||||
<NFormItemGi span="24 m:12 m:6" class="pr-24px lg:p-t-0 md:p-t-16px">
|
||||
<NFormItemGi :y-gap="8" span="24 m:12 m:6" class="pr-24px lg:p-t-0 md:p-t-16px">
|
||||
<NSpace class="min-w-172px w-full" justify="end">
|
||||
<NButton @click="reset">
|
||||
<template #icon>
|
||||
|
@ -196,7 +196,7 @@ const local: App.I18n.Schema = {
|
||||
exception_403: '403',
|
||||
exception_404: '404',
|
||||
exception_500: '500',
|
||||
'group-config': 'Group Config'
|
||||
group: 'Group Config'
|
||||
},
|
||||
page: {
|
||||
common: {
|
||||
|
@ -174,7 +174,7 @@ const local: App.I18n.Schema = {
|
||||
'function_super-page': '超级管理员可见',
|
||||
pods: '在线机器',
|
||||
namepase: '命名空间',
|
||||
'group-config': '组管理',
|
||||
group: '组管理',
|
||||
manage: '系统管理',
|
||||
manage_user: '用户管理',
|
||||
notify: '告警通知',
|
||||
|
@ -28,7 +28,7 @@ export const views: Record<LastLevelRouteKey, RouteComponent | (() => Promise<Ro
|
||||
"function_super-page": () => import("@/views/function/super-page/index.vue"),
|
||||
function_tab: () => import("@/views/function/tab/index.vue"),
|
||||
"function_toggle-auth": () => import("@/views/function/toggle-auth/index.vue"),
|
||||
"group-config": () => import("@/views/group-config/index.vue"),
|
||||
group: () => import("@/views/group/index.vue"),
|
||||
home: () => import("@/views/home/index.vue"),
|
||||
manage_menu: () => import("@/views/manage/menu/index.vue"),
|
||||
manage_role: () => import("@/views/manage/role/index.vue"),
|
||||
|
@ -168,13 +168,12 @@ export const generatedRoutes: GeneratedRoute[] = [
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'group-config',
|
||||
path: '/group-config',
|
||||
component: 'layout.base$view.group-config',
|
||||
name: 'group',
|
||||
path: '/group',
|
||||
component: 'layout.base$view.group',
|
||||
meta: {
|
||||
title: 'group-config',
|
||||
i18nKey: 'route.group-config',
|
||||
order: 40
|
||||
title: 'group',
|
||||
i18nKey: 'route.group'
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -161,7 +161,7 @@ const routeMap: RouteMap = {
|
||||
"function_super-page": "/function/super-page",
|
||||
"function_tab": "/function/tab",
|
||||
"function_toggle-auth": "/function/toggle-auth",
|
||||
"group-config": "/group-config",
|
||||
"group": "/group",
|
||||
"home": "/home",
|
||||
"login": "/login/:module(pwd-login)?",
|
||||
"manage": "/manage",
|
||||
|
6
src/typings/elegant-router.d.ts
vendored
6
src/typings/elegant-router.d.ts
vendored
@ -35,7 +35,7 @@ declare module "@elegant-router/types" {
|
||||
"function_super-page": "/function/super-page";
|
||||
"function_tab": "/function/tab";
|
||||
"function_toggle-auth": "/function/toggle-auth";
|
||||
"group-config": "/group-config";
|
||||
"group": "/group";
|
||||
"home": "/home";
|
||||
"login": "/login/:module(pwd-login)?";
|
||||
"manage": "/manage";
|
||||
@ -99,7 +99,7 @@ declare module "@elegant-router/types" {
|
||||
| "500"
|
||||
| "about"
|
||||
| "function"
|
||||
| "group-config"
|
||||
| "group"
|
||||
| "home"
|
||||
| "login"
|
||||
| "manage"
|
||||
@ -140,7 +140,7 @@ declare module "@elegant-router/types" {
|
||||
| "function_super-page"
|
||||
| "function_tab"
|
||||
| "function_toggle-auth"
|
||||
| "group-config"
|
||||
| "group"
|
||||
| "home"
|
||||
| "manage_menu"
|
||||
| "manage_role"
|
||||
|
@ -5,8 +5,8 @@ import { $t } from '@/locales';
|
||||
import { useAppStore } from '@/store/modules/app';
|
||||
import { useTable, useTableOperate } from '@/hooks/common/table';
|
||||
import { groupConfigIdModeRecord, groupConfigStatusRecord, yesOrNoRecord } from '@/constants/business';
|
||||
import GroupConfigOperateDrawer from './modules/groupConfig-operate-drawer.vue';
|
||||
import GroupConfigSearch from './modules/groupConfig-search.vue';
|
||||
import GroupOperateDrawer from './modules/group-operate-drawer.vue';
|
||||
import GroupSearch from './modules/group-search.vue';
|
||||
|
||||
const appStore = useAppStore();
|
||||
|
||||
@ -148,7 +148,7 @@ function edit(id: string) {
|
||||
|
||||
<template>
|
||||
<div class="min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto">
|
||||
<GroupConfigSearch v-model:model="searchParams" @reset="resetSearchParams" @search="getData" />
|
||||
<GroupSearch v-model:model="searchParams" @reset="resetSearchParams" @search="getData" />
|
||||
<NCard
|
||||
:title="$t('page.groupConfig.title')"
|
||||
:bordered="false"
|
||||
@ -178,7 +178,7 @@ function edit(id: string) {
|
||||
:pagination="mobilePagination"
|
||||
class="sm:h-full"
|
||||
/>
|
||||
<GroupConfigOperateDrawer
|
||||
<GroupOperateDrawer
|
||||
v-model:visible="drawerVisible"
|
||||
:operate-type="operateType"
|
||||
:row-data="editingData"
|
@ -7,7 +7,7 @@ import { groupConfigIdModeOptions, groupConfigStatusOptions, groupConfigYesOrNoO
|
||||
import { fetchAddGroupConfig, fetchEditGroupConfig, fetchGetPartitionTableList } from '@/service/api/group-config';
|
||||
|
||||
defineOptions({
|
||||
name: 'GroupConfigOperateDrawer'
|
||||
name: 'GroupOperateDrawer'
|
||||
});
|
||||
|
||||
interface Props {
|
@ -2,7 +2,7 @@
|
||||
import { $t } from '@/locales';
|
||||
|
||||
defineOptions({
|
||||
name: 'GroupConfigSearch'
|
||||
name: 'GroupSearch'
|
||||
});
|
||||
|
||||
interface Emits {
|
Loading…
Reference in New Issue
Block a user