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 20d5bbd..699371c 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 56e3674..3dbbd8c 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 de761a0..2714d11 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', 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