|
|
@@ -27,6 +27,7 @@ |
|
|
|
<el-col :span="4"> |
|
|
|
<el-date-picker size="small" |
|
|
|
v-model="time" |
|
|
|
v-on:change="timeChange" |
|
|
|
type="monthrange" |
|
|
|
start-placeholder="开始日期" |
|
|
|
end-placeholder="结束日期" |
|
|
@@ -114,7 +115,10 @@ |
|
|
|
el: '#app', |
|
|
|
data() { |
|
|
|
return { |
|
|
|
query: {}, |
|
|
|
query: { |
|
|
|
time1: '', |
|
|
|
time2:'', |
|
|
|
}, |
|
|
|
time: null, |
|
|
|
tableData: [], |
|
|
|
multipleSelection: [], |
|
|
@@ -159,6 +163,14 @@ |
|
|
|
mounted() { |
|
|
|
this.init() |
|
|
|
}, |
|
|
|
watch:{ |
|
|
|
query:{ |
|
|
|
handler() { |
|
|
|
$('#lr_export').attr('exportQuery', JSON.stringify(this.query)) |
|
|
|
}, |
|
|
|
deep: true |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
async init() { |
|
|
|
await Promise.all([ |
|
|
@@ -215,14 +227,16 @@ |
|
|
|
rowClick(row) { |
|
|
|
this.$refs.multipleTable.toggleRowSelection(row); |
|
|
|
}, |
|
|
|
async getTableData() { |
|
|
|
timeChange() { |
|
|
|
if (this.time) { |
|
|
|
this.query.time1 = this.time[0] |
|
|
|
this.query.time2 = this.time[1] |
|
|
|
} else if (this.query['time1']) { |
|
|
|
delete this.query['time1'] |
|
|
|
delete this.query['time2'] |
|
|
|
this.query['time1'] = '' |
|
|
|
this.query['time2'] = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
async getTableData() { |
|
|
|
let getParams = { |
|
|
|
pagination: JSON.stringify({ |
|
|
|
rows: this.pageSize, page: this.currentPage, sidx: '', sord: "DESC", |
|
|
|