|
|
|
@ -63,12 +63,12 @@ export default { |
|
|
|
filterBtn: true, |
|
|
|
filterBtn: true, |
|
|
|
searchShowBtn: false, |
|
|
|
searchShowBtn: false, |
|
|
|
columnSort: true, |
|
|
|
columnSort: true, |
|
|
|
excelBtn: true, |
|
|
|
|
|
|
|
columnSort: true, |
|
|
|
columnSort: true, |
|
|
|
index: false, |
|
|
|
index: false, |
|
|
|
showOverflowTooltip: true, |
|
|
|
showOverflowTooltip: true, |
|
|
|
searchLabelPosition: "left", |
|
|
|
searchLabelPosition: "left", |
|
|
|
searchLabelPosition: "left", |
|
|
|
searchLabelPosition: "left", |
|
|
|
|
|
|
|
searchLabelWidth: "auto", |
|
|
|
searchGutter: 24, |
|
|
|
searchGutter: 24, |
|
|
|
searchSpan: 6, |
|
|
|
searchSpan: 6, |
|
|
|
menuAlign: "center", |
|
|
|
menuAlign: "center", |
|
|
|
@ -152,6 +152,7 @@ export default { |
|
|
|
filter: true, |
|
|
|
filter: true, |
|
|
|
span: 24, |
|
|
|
span: 24, |
|
|
|
type: 'date', |
|
|
|
type: 'date', |
|
|
|
|
|
|
|
searchRange: true, |
|
|
|
format: "YYYY-MM-DD", |
|
|
|
format: "YYYY-MM-DD", |
|
|
|
valueFormat: "YYYY-MM-DD", |
|
|
|
valueFormat: "YYYY-MM-DD", |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
@ -370,11 +371,17 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
onLoad() { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
|
|
|
|
let param = { |
|
|
|
|
|
|
|
...this.query, |
|
|
|
|
|
|
|
startDate:this.query.date && this.query.date.length != 0 && this.query.date[0], |
|
|
|
|
|
|
|
endDate:this.query.date && this.query.date.length != 0 && this.query.date[1] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(param.date) delete param.date |
|
|
|
pageList({ |
|
|
|
pageList({ |
|
|
|
type: 1, |
|
|
|
type: 1, |
|
|
|
current:this.page.currentPage, |
|
|
|
current:this.page.currentPage, |
|
|
|
size:this.page.pageSize, |
|
|
|
size:this.page.pageSize, |
|
|
|
...this.query |
|
|
|
...param |
|
|
|
}).then(res => { |
|
|
|
}).then(res => { |
|
|
|
this.data = res.data.data.records; |
|
|
|
this.data = res.data.data.records; |
|
|
|
this.page.total = res.data.data.total; |
|
|
|
this.page.total = res.data.data.total; |
|
|
|
|