|
@@ -149,6 +149,7 @@
|
|
|
state: ''
|
|
state: ''
|
|
|
},
|
|
},
|
|
|
tableData: [],
|
|
tableData: [],
|
|
|
|
|
+ cond_data: {},
|
|
|
// 分页参数
|
|
// 分页参数
|
|
|
pagination: {
|
|
pagination: {
|
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
@@ -172,8 +173,9 @@
|
|
|
* 下载Excel表格
|
|
* 下载Excel表格
|
|
|
*/
|
|
*/
|
|
|
handler_download_excel() {
|
|
handler_download_excel() {
|
|
|
|
|
+ let data = this.cond_data;
|
|
|
// 开始发送请求,获取配置数据
|
|
// 开始发送请求,获取配置数据
|
|
|
- downloadExcel().then((res) => {
|
|
|
|
|
|
|
+ downloadExcel(data).then((res) => {
|
|
|
// console.log(res);
|
|
// console.log(res);
|
|
|
if (typeof res.code == 'undefined' || res.code == '') {
|
|
if (typeof res.code == 'undefined' || res.code == '') {
|
|
|
this.$message.error('返回数据格式问题,code未获取到!')
|
|
this.$message.error('返回数据格式问题,code未获取到!')
|
|
@@ -224,20 +226,22 @@
|
|
|
rows: this.pagination.pageSize
|
|
rows: this.pagination.pageSize
|
|
|
}
|
|
}
|
|
|
if (param == 'search') {
|
|
if (param == 'search') {
|
|
|
- data.page = 1
|
|
|
|
|
|
|
+ data.page = 1;
|
|
|
|
|
+ this.pagination.currentPage = 1;
|
|
|
}
|
|
}
|
|
|
if (this.formInline.user !== '') {
|
|
if (this.formInline.user !== '') {
|
|
|
- data.name_card = this.formInline.user
|
|
|
|
|
|
|
+ data.name_card = this.formInline.user;
|
|
|
}
|
|
}
|
|
|
if (this.formInline.startTime !== '') {
|
|
if (this.formInline.startTime !== '') {
|
|
|
- data.start_time = this.formInline.startTime
|
|
|
|
|
|
|
+ data.start_time = this.formInline.startTime;
|
|
|
}
|
|
}
|
|
|
if (this.formInline.endTime !== '') {
|
|
if (this.formInline.endTime !== '') {
|
|
|
- data.end_time = this.formInline.endTime
|
|
|
|
|
|
|
+ data.end_time = this.formInline.endTime;
|
|
|
}
|
|
}
|
|
|
if (this.formInline.state !== '') {
|
|
if (this.formInline.state !== '') {
|
|
|
- data.state = this.formInline.state
|
|
|
|
|
|
|
+ data.state = this.formInline.state;
|
|
|
}
|
|
}
|
|
|
|
|
+ this.cond_data = data;
|
|
|
// console.log(data);
|
|
// console.log(data);
|
|
|
getTableData(data).then((res) => {
|
|
getTableData(data).then((res) => {
|
|
|
// console.log(res);
|
|
// console.log(res);
|
|
@@ -263,20 +267,25 @@
|
|
|
this.tableData.push(item)
|
|
this.tableData.push(item)
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
- this.tableData = []
|
|
|
|
|
- this.$message.warning('没有符合条件的数据!')
|
|
|
|
|
|
|
+ this.tableData = [];
|
|
|
|
|
+ this.$message.warning('没有符合条件的数据!');
|
|
|
}
|
|
}
|
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
|
// console.log(err);
|
|
// console.log(err);
|
|
|
- this.$message.error(err.message)
|
|
|
|
|
|
|
+ this.$message.error(err.message);
|
|
|
});
|
|
});
|
|
|
- this.loading = false
|
|
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+
|
|
|
|
|
+ if (param == 'search') {
|
|
|
|
|
+ this.get_three_data();
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 获取3个数据
|
|
* 获取3个数据
|
|
|
*/
|
|
*/
|
|
|
get_three_data() {
|
|
get_three_data() {
|
|
|
- getThreeData().then((res) => {
|
|
|
|
|
|
|
+ let data = this.cond_data;
|
|
|
|
|
+ getThreeData(data).then((res) => {
|
|
|
// console.log(res);
|
|
// console.log(res);
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
this.total_balance = res.TotalYe.toFixed(2) // 总余额
|
|
this.total_balance = res.TotalYe.toFixed(2) // 总余额
|
|
@@ -288,7 +297,9 @@
|
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
|
// console.log(err);
|
|
// console.log(err);
|
|
|
this.$message.error(err.message)
|
|
this.$message.error(err.message)
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ this.cond_data = {};
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 搜索
|
|
* 搜索
|