diff --git a/src/router/elegant/imports.ts b/src/router/elegant/imports.ts index 6acfa124..8d4098cc 100644 --- a/src/router/elegant/imports.ts +++ b/src/router/elegant/imports.ts @@ -23,12 +23,14 @@ export const views: Record Promise import("@/views/home/index.vue"), "monitor_login-infor": () => import("@/views/monitor/login-infor/index.vue"), "monitor_oper-log": () => import("@/views/monitor/oper-log/index.vue"), + system_client: () => import("@/views/system/client/index.vue"), system_config: () => import("@/views/system/config/index.vue"), system_dept: () => import("@/views/system/dept/index.vue"), system_dict_data: () => import("@/views/system/dict/data/index.vue"), system_dict: () => import("@/views/system/dict/index.vue"), system_dict_type: () => import("@/views/system/dict/type/index.vue"), system_menu: () => import("@/views/system/menu/index.vue"), + system_notice: () => import("@/views/system/notice/index.vue"), system_post: () => import("@/views/system/post/index.vue"), system_tenant: () => import("@/views/system/tenant/index.vue"), system_user: () => import("@/views/system/user/index.vue"), diff --git a/src/router/elegant/routes.ts b/src/router/elegant/routes.ts index 89ec6920..a9ab0747 100644 --- a/src/router/elegant/routes.ts +++ b/src/router/elegant/routes.ts @@ -115,6 +115,15 @@ export const generatedRoutes: GeneratedRoute[] = [ order: 1 }, children: [ + { + name: 'system_client', + path: '/system/client', + component: 'view.system_client', + meta: { + title: 'system_client', + i18nKey: 'route.system_client' + } + }, { name: 'system_config', path: '/system/config', @@ -122,7 +131,18 @@ export const generatedRoutes: GeneratedRoute[] = [ meta: { title: 'system_config', i18nKey: 'route.system_config' - } + }, + children: [ + { + name: 'system_config_notice', + path: '/system/config/notice', + component: 'view.system_config_notice', + meta: { + title: 'system_config_notice', + i18nKey: 'route.system_config_notice' + } + } + ] }, { name: 'system_dept', @@ -173,6 +193,15 @@ export const generatedRoutes: GeneratedRoute[] = [ order: 3 } }, + { + name: 'system_notice', + path: '/system/notice', + component: 'view.system_notice', + meta: { + title: 'system_notice', + i18nKey: 'route.system_notice' + } + }, { name: 'system_post', path: '/system/post', diff --git a/src/router/elegant/transform.ts b/src/router/elegant/transform.ts index d2f710ba..6f73346f 100644 --- a/src/router/elegant/transform.ts +++ b/src/router/elegant/transform.ts @@ -173,12 +173,14 @@ const routeMap: RouteMap = { "monitor_login-infor": "/monitor/login-infor", "monitor_oper-log": "/monitor/oper-log", "system": "/system", + "system_client": "/system/client", "system_config": "/system/config", "system_dept": "/system/dept", "system_dict": "/system/dict", "system_dict_data": "/system/dict/data", "system_dict_type": "/system/dict/type", "system_menu": "/system/menu", + "system_notice": "/system/notice", "system_post": "/system/post", "system_tenant": "/system/tenant", "system_user": "/system/user", diff --git a/src/service/api/system/client.ts b/src/service/api/system/client.ts new file mode 100644 index 00000000..f26d26fa --- /dev/null +++ b/src/service/api/system/client.ts @@ -0,0 +1,36 @@ +import { request } from '@/service/request'; + +/** 获取客户端列表 */ +export function fetchGetClientList (params?: Api.System.ClientSearchParams) { + return request({ + url: '/system/client/list', + method: 'get', + params + }); +} + +/** 新增客户端 */ +export function fetchCreateClient (data: Api.System.ClientOperateParams) { + return request({ + url: '/system/client', + method: 'post', + data + }); +} + +/** 修改客户端 */ +export function fetchUpdateClient (data: Api.System.ClientOperateParams) { + return request({ + url: '/system/client', + method: 'put', + data + }); +} + +/** 批量删除客户端 */ +export function fetchBatchDeleteClient (ids: CommonType.IdType[]) { + return request({ + url: `/system/client/${ids.join(',')}`, + method: 'delete' + }); +} diff --git a/src/service/api/system/notice.ts b/src/service/api/system/notice.ts new file mode 100644 index 00000000..f3931d45 --- /dev/null +++ b/src/service/api/system/notice.ts @@ -0,0 +1,36 @@ +import { request } from '@/service/request'; + +/** 获取通知公告列表 */ +export function fetchGetNoticeList(params?: Api.System.NoticeSearchParams) { + return request({ + url: '/system/notice/list', + method: 'get', + params + }); +} + +/** 新增通知公告 */ +export function fetchCreateNotice(data: Api.System.NoticeOperateParams) { + return request({ + url: '/system/notice', + method: 'post', + data + }); +} + +/** 修改通知公告 */ +export function fetchUpdateNotice(data: Api.System.NoticeOperateParams) { + return request({ + url: '/system/notice', + method: 'put', + data + }); +} + +/** 批量删除通知公告 */ +export function fetchBatchDeleteNotice(noticeIds: CommonType.IdType[]) { + return request({ + url: `/system/notice/${noticeIds.join(',')}`, + method: 'delete' + }); +} diff --git a/src/typings/elegant-router.d.ts b/src/typings/elegant-router.d.ts index 2a8817cd..729cc6f2 100644 --- a/src/typings/elegant-router.d.ts +++ b/src/typings/elegant-router.d.ts @@ -27,12 +27,14 @@ declare module "@elegant-router/types" { "monitor_login-infor": "/monitor/login-infor"; "monitor_oper-log": "/monitor/oper-log"; "system": "/system"; + "system_client": "/system/client"; "system_config": "/system/config"; "system_dept": "/system/dept"; "system_dict": "/system/dict"; "system_dict_data": "/system/dict/data"; "system_dict_type": "/system/dict/type"; "system_menu": "/system/menu"; + "system_notice": "/system/notice"; "system_post": "/system/post"; "system_tenant": "/system/tenant"; "system_user": "/system/user"; @@ -102,12 +104,14 @@ declare module "@elegant-router/types" { | "home" | "monitor_login-infor" | "monitor_oper-log" + | "system_client" | "system_config" | "system_dept" | "system_dict_data" | "system_dict" | "system_dict_type" | "system_menu" + | "system_notice" | "system_post" | "system_tenant" | "system_user" diff --git a/src/views/system/client/index.vue b/src/views/system/client/index.vue new file mode 100644 index 00000000..db5d701f --- /dev/null +++ b/src/views/system/client/index.vue @@ -0,0 +1,233 @@ + + + + + diff --git a/src/views/system/client/modules/client-operate-drawer.vue b/src/views/system/client/modules/client-operate-drawer.vue new file mode 100644 index 00000000..bc4b9fb4 --- /dev/null +++ b/src/views/system/client/modules/client-operate-drawer.vue @@ -0,0 +1,196 @@ + + + + + diff --git a/src/views/system/client/modules/client-search.vue b/src/views/system/client/modules/client-search.vue new file mode 100644 index 00000000..88a7e3e5 --- /dev/null +++ b/src/views/system/client/modules/client-search.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue new file mode 100644 index 00000000..5dfae59b --- /dev/null +++ b/src/views/system/notice/index.vue @@ -0,0 +1,198 @@ + + + + + diff --git a/src/views/system/notice/modules/notice-operate-drawer.vue b/src/views/system/notice/modules/notice-operate-drawer.vue new file mode 100644 index 00000000..498357bb --- /dev/null +++ b/src/views/system/notice/modules/notice-operate-drawer.vue @@ -0,0 +1,134 @@ + + + + + diff --git a/src/views/system/notice/modules/notice-search.vue b/src/views/system/notice/modules/notice-search.vue new file mode 100644 index 00000000..858a37fe --- /dev/null +++ b/src/views/system/notice/modules/notice-search.vue @@ -0,0 +1,65 @@ + + + + +