系统日志接口和路由的编写

This commit is contained in:
夕阳微笑1 2024-11-18 14:22:56 +08:00
parent 53fdad11a2
commit 53455adbb6
5 changed files with 42 additions and 0 deletions

24
src/api/log/index.ts Normal file
View File

@ -0,0 +1,24 @@
import request from '/@/utils/request';
import { baseUrlHost } from '../baseUrlHost';
/**
* request.post(xxx) post params data
* get请求时paramsdata
*
* api接口集合
* @method getlogList
*/
export function logApi() {
return {
getlogList: (params: object) => {
// console.log(1111111111111111);
return request({
url: baseUrlHost + '/acLog',
method: 'get',
params,
});
},
};
}

View File

@ -13,6 +13,7 @@ export default {
articleDetail: 'articleDetail', articleDetail: 'articleDetail',
addArticle: 'addArticle', addArticle: 'addArticle',
editArticle: 'editArticle', editArticle: 'editArticle',
log:'log',
limits: 'limits', limits: 'limits',
limitsFrontEnd: 'FrontEnd', limitsFrontEnd: 'FrontEnd',
limitsFrontEndPage: 'FrontEndPage', limitsFrontEndPage: 'FrontEndPage',

View File

@ -13,6 +13,7 @@ export default {
articleDetail: '文章详情', articleDetail: '文章详情',
addArticle: '新增文章', addArticle: '新增文章',
editArticle: '编辑文章', editArticle: '编辑文章',
log:'系统日志',
limits: '权限管理', limits: '权限管理',
limitsFrontEnd: '前端控制', limitsFrontEnd: '前端控制',
limitsFrontEndPage: '页面权限', limitsFrontEndPage: '页面权限',

View File

@ -13,6 +13,7 @@ export default {
articleDetail: '文章詳情', articleDetail: '文章詳情',
addArticle: '文章新增', addArticle: '文章新增',
editArticle: '文章編輯', editArticle: '文章編輯',
log:'系統日誌',
limits: '許可權管理', limits: '許可權管理',
limitsFrontEnd: '前端控制', limitsFrontEnd: '前端控制',
limitsFrontEndPage: '頁面許可權', limitsFrontEndPage: '頁面許可權',

View File

@ -232,6 +232,21 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
icon: 'iconfont icon-fuwenbenkuang', 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', path: '/limits',
name: 'limits', name: 'limits',