系统日志接口和路由的编写
This commit is contained in:
parent
53fdad11a2
commit
53455adbb6
24
src/api/log/index.ts
Normal file
24
src/api/log/index.ts
Normal file
@ -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,
|
||||
});
|
||||
},
|
||||
};
|
||||
}
|
@ -13,6 +13,7 @@ export default {
|
||||
articleDetail: 'articleDetail',
|
||||
addArticle: 'addArticle',
|
||||
editArticle: 'editArticle',
|
||||
log:'log',
|
||||
limits: 'limits',
|
||||
limitsFrontEnd: 'FrontEnd',
|
||||
limitsFrontEndPage: 'FrontEndPage',
|
||||
|
@ -13,6 +13,7 @@ export default {
|
||||
articleDetail: '文章详情',
|
||||
addArticle: '新增文章',
|
||||
editArticle: '编辑文章',
|
||||
log:'系统日志',
|
||||
limits: '权限管理',
|
||||
limitsFrontEnd: '前端控制',
|
||||
limitsFrontEndPage: '页面权限',
|
||||
|
@ -13,6 +13,7 @@ export default {
|
||||
articleDetail: '文章詳情',
|
||||
addArticle: '文章新增',
|
||||
editArticle: '文章編輯',
|
||||
log:'系統日誌',
|
||||
limits: '許可權管理',
|
||||
limitsFrontEnd: '前端控制',
|
||||
limitsFrontEndPage: '頁面許可權',
|
||||
|
@ -232,6 +232,21 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
||||
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',
|
||||
|
Loading…
Reference in New Issue
Block a user