|
|
|
|
@ -48,6 +48,7 @@ export default { |
|
|
|
|
data:[], |
|
|
|
|
isShowImport:false, |
|
|
|
|
selectionList: [], |
|
|
|
|
query:{}, |
|
|
|
|
option: { |
|
|
|
|
height: "auto", |
|
|
|
|
calcHeight: 32, |
|
|
|
|
@ -78,12 +79,12 @@ export default { |
|
|
|
|
filterBtn: true, |
|
|
|
|
searchShowBtn: false, |
|
|
|
|
columnSort: true, |
|
|
|
|
excelBtn: true, |
|
|
|
|
columnSort: true, |
|
|
|
|
index: false, |
|
|
|
|
showOverflowTooltip: true, |
|
|
|
|
searchLabelPosition: "left", |
|
|
|
|
searchLabelPosition: "left", |
|
|
|
|
searchLabelWidth: "auto", |
|
|
|
|
searchGutter: 24, |
|
|
|
|
searchSpan: 6, |
|
|
|
|
menuAlign: "center", |
|
|
|
|
@ -160,6 +161,7 @@ export default { |
|
|
|
|
prop: "date", |
|
|
|
|
type:'date', |
|
|
|
|
search: true, |
|
|
|
|
searchRange: true, |
|
|
|
|
sortable: true, |
|
|
|
|
filter: true, |
|
|
|
|
span: 24, |
|
|
|
|
@ -324,11 +326,17 @@ export default { |
|
|
|
|
}, |
|
|
|
|
onLoad() { |
|
|
|
|
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({ |
|
|
|
|
current:this.page.currentPage, |
|
|
|
|
size:this.page.pageSize, |
|
|
|
|
type:2, |
|
|
|
|
...this.query |
|
|
|
|
...param |
|
|
|
|
}).then(res =>{ |
|
|
|
|
this.data = res.data.data.records; |
|
|
|
|
this.page.total = res.data.data.total; |
|
|
|
|
|