From 53455adbb6361fe3b68908d092e783078c6d6128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=95=E9=98=B3=E5=BE=AE=E7=AC=911?= <12457268+sunset-smile-1@user.noreply.gitee.com> Date: Mon, 18 Nov 2024 14:22:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=92=8C=E8=B7=AF=E7=94=B1=E7=9A=84=E7=BC=96?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/log/index.ts | 24 ++++++++++++++++++++++++ src/i18n/lang/en.ts | 1 + src/i18n/lang/zh-cn.ts | 1 + src/i18n/lang/zh-tw.ts | 1 + src/router/route.ts | 15 +++++++++++++++ 5 files changed, 42 insertions(+) create mode 100644 src/api/log/index.ts diff --git a/src/api/log/index.ts b/src/api/log/index.ts new file mode 100644 index 0000000..edd1cc8 --- /dev/null +++ b/src/api/log/index.ts @@ -0,0 +1,24 @@ +import request from '/@/utils/request'; +import { baseUrlHost } from '../baseUrlHost'; + +/** + * (不建议写成 request.post(xxx),因为这样 post 时,无法 params 与 data 同时传参) + * 注意在写get请求时,参数是params,而不是data,要标注好 + * + * 登录api接口集合 + * @method getlogList 获取日志列表 + */ + +export function logApi() { + return { + getlogList: (params: object) => { + // console.log(1111111111111111); + + return request({ + url: baseUrlHost + '/acLog', + method: 'get', + params, + }); + }, + }; +} diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index b035c38..0b9eda3 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -13,6 +13,7 @@ export default { articleDetail: 'articleDetail', addArticle: 'addArticle', editArticle: 'editArticle', + log:'log', limits: 'limits', limitsFrontEnd: 'FrontEnd', limitsFrontEndPage: 'FrontEndPage', diff --git a/src/i18n/lang/zh-cn.ts b/src/i18n/lang/zh-cn.ts index 8719692..5553715 100644 --- a/src/i18n/lang/zh-cn.ts +++ b/src/i18n/lang/zh-cn.ts @@ -13,6 +13,7 @@ export default { articleDetail: '文章详情', addArticle: '新增文章', editArticle: '编辑文章', + log:'系统日志', limits: '权限管理', limitsFrontEnd: '前端控制', limitsFrontEndPage: '页面权限', diff --git a/src/i18n/lang/zh-tw.ts b/src/i18n/lang/zh-tw.ts index cf32a65..c206951 100644 --- a/src/i18n/lang/zh-tw.ts +++ b/src/i18n/lang/zh-tw.ts @@ -13,6 +13,7 @@ export default { articleDetail: '文章詳情', addArticle: '文章新增', editArticle: '文章編輯', + log:'系統日誌', limits: '許可權管理', limitsFrontEnd: '前端控制', limitsFrontEndPage: '頁面許可權', diff --git a/src/router/route.ts b/src/router/route.ts index c8754bd..f48e853 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -232,6 +232,21 @@ export const dynamicRoutes: Array = [ icon: 'iconfont icon-fuwenbenkuang', }, }, + { + path: '/log', + name: 'log', + component: () => import('/@/views/log/index.vue'), + meta: { + title: 'message.router.log', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'fa fa-wpforms', + }, + }, { path: '/limits', name: 'limits', From 5f8c87e77ff3bb465bdda2f0825bdb7ba687f06a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=95=E9=98=B3=E5=BE=AE=E7=AC=911?= <12457268+sunset-smile-1@user.noreply.gitee.com> Date: Mon, 18 Nov 2024 14:24:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E7=9A=84=E7=BC=96=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/log/index.vue | 189 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 189 insertions(+) create mode 100644 src/views/log/index.vue diff --git a/src/views/log/index.vue b/src/views/log/index.vue new file mode 100644 index 0000000..ad44836 --- /dev/null +++ b/src/views/log/index.vue @@ -0,0 +1,189 @@ + + + + + \ No newline at end of file