|
@@ -151,6 +151,7 @@
|
|
|
// scrollId:'',
|
|
|
},
|
|
|
params:{},
|
|
|
+ newQueryParams:{},
|
|
|
cellWidth:'130',
|
|
|
cellWidthS:'90',
|
|
|
cellWidthB:'260',
|
|
@@ -210,13 +211,13 @@
|
|
|
that.loading = true;
|
|
|
that.params = that.$route.query;
|
|
|
console.log(that.$route.params)
|
|
|
- var newQueryParams = {...that.queryParams,...that.params};
|
|
|
+ that.newQueryParams = {...that.queryParams,...that.params};
|
|
|
|
|
|
- if(newQueryParams.education){
|
|
|
- newQueryParams.education = newQueryParams.education.join("&");
|
|
|
+ if(that.newQueryParams.education){
|
|
|
+ that.newQueryParams.education = that.newQueryParams.education.join("&");
|
|
|
}
|
|
|
- console.log(newQueryParams)
|
|
|
- listCustomer(newQueryParams).then(response => {
|
|
|
+ console.log(that.newQueryParams)
|
|
|
+ listCustomer(that.newQueryParams).then(response => {
|
|
|
console.log(response);
|
|
|
this.customerList = response.data.list;
|
|
|
// if(response.data.scrollId != undefined && response.data.scrollId !=""){
|
|
@@ -244,8 +245,7 @@
|
|
|
handleExport() {
|
|
|
var that = this;
|
|
|
that.exportLoading = true;
|
|
|
- console.log(that.params)
|
|
|
- this.downloadNew('data/customer/export', that.params, `customer_${new Date().getTime()}.csv`).then(response => {
|
|
|
+ this.downloadNew('data/customer/export', that.newQueryParams, `customer_${new Date().getTime()}.csv`).then(response => {
|
|
|
console.log(response);
|
|
|
if(response){
|
|
|
that.exportLoading = false;
|