| | |
| | | }); |
| | | }; |
| | | |
| | | export const getErrorList = (current, size) => { |
| | | export const getErrorList = (current, size,params) => { |
| | | return request({ |
| | | url: '/blade-log/error/list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | }, |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | const { daterange } = this.query; |
| | | console.log(daterange,999) |
| | | let values = { |
| | | ...params, |
| | | ...this.query, |
| | |
| | | dialogType: 'drawer', |
| | | column: [ |
| | | { |
| | | label: '服务id', |
| | | label: '服务名称', |
| | | prop: 'serviceId', |
| | | search: true, |
| | | searchSpan:4, |
| | | width: '120', |
| | | }, |
| | | |
| | | { |
| | | label: '服务host', |
| | | prop: 'serverHost', |
| | | search: true, |
| | | width: '150', |
| | | }, |
| | | { |
| | | label: '服务ip', |
| | |
| | | { |
| | | label: '请求接口', |
| | | prop: 'requestUri', |
| | | search: true, |
| | | searchSpan:6, |
| | | }, |
| | | { |
| | | label: '操作人', |
| | | prop: 'createBy', |
| | | search: true, |
| | | searchSpan:4, |
| | | width: '120', |
| | | }, |
| | | { |
| | | label: '日志时间', |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | let values = { |
| | | ...params, |
| | | ...this.query, |
| | | }; |
| | | this.loading = true; |
| | | getErrorList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | getErrorList(page.currentPage, page.pageSize, values).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |