import axios from '@/axios/base/base.axios'; export default { // 请求服务器获取所有信息列表 ---- 分页请求 getSysMsgWithPage(pageEntity) { return axios.post('/api/wcs/runningInfo/getSysMsgWithPage', pageEntity) }, // 验证文件是否存在 checkDownloadFile(req) { return axios.post('/api/wcs/runningInfo/checkDownLoadLog', req) }, getLogFileName(req) { return axios.get('/api/wcs/runningInfo/getLogFileName', { params: { logType: req } }) }, // 下载文件 downloadFile(req) { return axios({ // 用axios发送post请求 method: "post", url: '/api/wcs/runningInfo/downLoadLog', // 请求地址 ,也可以传递参数 headers: { }, data: req, responseType: "blob", // 表明返回服务器返回的数据类型 timeout: 30000 }) } }