|
|
@@ -504,7 +504,7 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getAllChice();
|
|
|
- this.getTableData();
|
|
|
+ // this.getTableData();
|
|
|
this.getFinanceList();
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -705,23 +705,23 @@ export default {
|
|
|
this.getFinanceList();
|
|
|
},
|
|
|
// 获取列表数据
|
|
|
- async getTableData() {
|
|
|
- this.tableData = [];
|
|
|
- let url = "/api/admin/job/get_all_periods";
|
|
|
- let body = { page: this.currentPage, page_size: this.currentPageSize };
|
|
|
- if (this.status) body.j_status = this.status;
|
|
|
- if (this.period) body.p_status = this.period;
|
|
|
- if (this.checkUser) body.chk_user = this.checkUser;
|
|
|
- if (this.jobID) body.job_id = this.jobID;
|
|
|
- const res = await this.$post(url, body);
|
|
|
- const data = res.data;
|
|
|
- this.tableData = this.formatTableData(data.list);
|
|
|
- this.totalData = data;
|
|
|
- // // console.log(this.tableData)
|
|
|
- this.totalCount = Number(data.total);
|
|
|
- this.totalPage = data.totalPage;
|
|
|
- this.localData.env = data.current_env;
|
|
|
- },
|
|
|
+ // async getTableData() {
|
|
|
+ // this.tableData = [];
|
|
|
+ // let url = "/api/admin/job/get_all_periods";
|
|
|
+ // let body = { page: this.currentPage, page_size: this.currentPageSize };
|
|
|
+ // if (this.status) body.j_status = this.status;
|
|
|
+ // if (this.period) body.p_status = this.period;
|
|
|
+ // if (this.checkUser) body.chk_user = this.checkUser;
|
|
|
+ // if (this.jobID) body.job_id = this.jobID;
|
|
|
+ // const res = await this.$post(url, body);
|
|
|
+ // const data = res.data;
|
|
|
+ // this.tableData = this.formatTableData(data.list);
|
|
|
+ // this.totalData = data;
|
|
|
+ // // // console.log(this.tableData)
|
|
|
+ // this.totalCount = Number(data.total);
|
|
|
+ // this.totalPage = data.totalPage;
|
|
|
+ // this.localData.env = data.current_env;
|
|
|
+ // },
|
|
|
async downFinanceList() {
|
|
|
var checkedTF = 0;
|
|
|
// console.log(this.checked);
|
|
|
@@ -806,8 +806,9 @@ export default {
|
|
|
window.location.href = "http://" + url;
|
|
|
},
|
|
|
async getFinanceList() {
|
|
|
- // console.log("timeRange:", this.timeRange);
|
|
|
- // return false;
|
|
|
+ if (this.$router.currentRoute.query.user) {
|
|
|
+ this.checkUser = this.$router.currentRoute.query.user;
|
|
|
+ }
|
|
|
var checkedTF = 0;
|
|
|
// console.log("000",this.timeRange.length)
|
|
|
if (this.checked) {
|
|
|
@@ -886,9 +887,10 @@ export default {
|
|
|
this.finaceList = data.orders;
|
|
|
this.totalCount = Number(data.count);
|
|
|
this.successCount = data.successCount;
|
|
|
- (this.totalHave = data.income_sum),
|
|
|
- (this.totalSuccess = data.income_success_sum);
|
|
|
+ this.totalHave = data.income_sum;
|
|
|
+ this.totalSuccess = data.income_success_sum;
|
|
|
this.PayCount = data.expense_sum;
|
|
|
+ // this.totalCount = data.count;
|
|
|
this.paySuccess = data.expense_success_sum;
|
|
|
},
|
|
|
async getAllChice() {
|