You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wkcrm_web/src/api/admin/log.js

81 lines
1.5 KiB

import request from '@/utils/request'
/**
* 查询系统登录日志列表页接口
* @param {*} data
*/
export function queryLoginLogListAPI(data) {
return request({
url: 'admin/log/loginRecord',
method: 'post',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
},
data: data
})
}
/**
* 系统登录日志导出
* @param {*} data
*/
// export function loginLogExportAPI(data) {
// return request({
// url: 'admin/log/excelImport',
// method: 'post',
// data: data,
// responseType: 'blob',
// headers: {
// 'Content-Type': 'application/json;charset=UTF-8'
// },
// timeout: 60000
// })
// }
/**
* 查看系统操作日志接口
* @param {*} data
*/
export function querySystemLogListAPI(data) {
return request({
url: 'admin/log/systemRecord',
method: 'post',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
},
data: data
})
}
/**
* 查看数据操作日志接口
* @param {*} data
*/
export function queryDataOptionLogListAPI(data) {
return request({
url: 'admin/log/dataRecord',
method: 'post',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
},
data: data
})
}
/**
* 系统日志导出
* @param {*} data
*/
export function systemLogExportAPI(data) {
return request({
url: 'admin/log/excelImport',
method: 'post',
data: data,
responseType: 'blob',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
},
timeout: 60000
})
}