diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index d119ade..4e9b84e 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -246,6 +246,7 @@ const local: App.I18n.Schema = { systemmanage_role: '角色管理', systemmanage_template: '审批模板管理', home_pssr: 'PSSR监督', + riskstatistics: '安全与风险统计' }, form: { required: '不能为空', diff --git a/src/router/elegant/imports.ts b/src/router/elegant/imports.ts index 3e185af..b9f0e3b 100644 --- a/src/router/elegant/imports.ts +++ b/src/router/elegant/imports.ts @@ -34,6 +34,7 @@ export const views: Record Promise import("@/views/home/processDetail/index.vue"), home_pssr: () => import("@/views/home/pssr/index.vue"), login: () => import("@/views/login/index.vue"), + riskstatistics: () => import("@/views/riskStatistics/index.vue"), systemmanage_role: () => import("@/views/systemManage/role/index.vue"), systemmanage_template: () => import("@/views/systemManage/template/index.vue"), systemmanage_user: () => import("@/views/systemManage/user/index.vue"), diff --git a/src/router/elegant/routes.ts b/src/router/elegant/routes.ts index b8c22ae..4a0f8a5 100644 --- a/src/router/elegant/routes.ts +++ b/src/router/elegant/routes.ts @@ -253,6 +253,17 @@ export const generatedRoutes: GeneratedRoute[] = [ hideInMenu: true } }, + { + name: 'riskstatistics', + path: '/riskstatistics', + component: 'layout.base$view.riskstatistics', + meta: { + title: 'riskstatistics', + i18nKey: 'route.riskstatistics', + icon: 'ix:barchart', + order: 3 + } + }, { name: 'systemmanage', path: '/systemmanage', diff --git a/src/router/elegant/transform.ts b/src/router/elegant/transform.ts index 97e4d0d..7a01eda 100644 --- a/src/router/elegant/transform.ts +++ b/src/router/elegant/transform.ts @@ -185,6 +185,7 @@ const routeMap: RouteMap = { "home_processdetail": "/home/processdetail", "home_pssr": "/home/pssr", "login": "/login/:module(pwd-login)?", + "riskstatistics": "/riskstatistics", "systemmanage": "/systemmanage", "systemmanage_role": "/systemmanage/role", "systemmanage_template": "/systemmanage/template", diff --git a/src/typings/components.d.ts b/src/typings/components.d.ts index 5d47c86..6f1033c 100644 --- a/src/typings/components.d.ts +++ b/src/typings/components.d.ts @@ -64,6 +64,7 @@ declare module 'vue' { NMessageProvider: typeof import('naive-ui')['NMessageProvider'] NModal: typeof import('naive-ui')['NModal'] NNotificationProvider: typeof import('naive-ui')['NNotificationProvider'] + NProgress: typeof import('naive-ui')['NProgress'] NRadio: typeof import('naive-ui')['NRadio'] NRadioGroup: typeof import('naive-ui')['NRadioGroup'] NScrollbar: typeof import('naive-ui')['NScrollbar'] @@ -148,6 +149,7 @@ declare global { const NMessageProvider: typeof import('naive-ui')['NMessageProvider'] const NModal: typeof import('naive-ui')['NModal'] const NNotificationProvider: typeof import('naive-ui')['NNotificationProvider'] + const NProgress: typeof import('naive-ui')['NProgress'] const NRadio: typeof import('naive-ui')['NRadio'] const NRadioGroup: typeof import('naive-ui')['NRadioGroup'] const NScrollbar: typeof import('naive-ui')['NScrollbar'] diff --git a/src/typings/elegant-router.d.ts b/src/typings/elegant-router.d.ts index d365a07..f1d5a1f 100644 --- a/src/typings/elegant-router.d.ts +++ b/src/typings/elegant-router.d.ts @@ -39,6 +39,7 @@ declare module "@elegant-router/types" { "home_processdetail": "/home/processdetail"; "home_pssr": "/home/pssr"; "login": "/login/:module(pwd-login)?"; + "riskstatistics": "/riskstatistics"; "systemmanage": "/systemmanage"; "systemmanage_role": "/systemmanage/role"; "systemmanage_template": "/systemmanage/template"; @@ -82,6 +83,7 @@ declare module "@elegant-router/types" { | "docs" | "home" | "login" + | "riskstatistics" | "systemmanage" >; @@ -118,6 +120,7 @@ declare module "@elegant-router/types" { | "home_processdetail" | "home_pssr" | "login" + | "riskstatistics" | "systemmanage_role" | "systemmanage_template" | "systemmanage_user" diff --git a/src/views/riskStatistics/index.vue b/src/views/riskStatistics/index.vue new file mode 100644 index 0000000..e545be3 --- /dev/null +++ b/src/views/riskStatistics/index.vue @@ -0,0 +1,271 @@ + + + + + diff --git a/src/views/riskStatistics/modules/columnChart.vue b/src/views/riskStatistics/modules/columnChart.vue new file mode 100644 index 0000000..51065cb --- /dev/null +++ b/src/views/riskStatistics/modules/columnChart.vue @@ -0,0 +1,103 @@ + + + + + diff --git a/src/views/riskStatistics/modules/ringChart.vue b/src/views/riskStatistics/modules/ringChart.vue new file mode 100644 index 0000000..b9c230b --- /dev/null +++ b/src/views/riskStatistics/modules/ringChart.vue @@ -0,0 +1,88 @@ + + + + +