|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div id="cloud-balance">
|
|
|
+ <div id="cloud-balance" v-if="hasAuth">
|
|
|
<section class="top">
|
|
|
<!-- <h3>交易订单中心</h3> -->
|
|
|
<section>
|
|
|
@@ -117,7 +117,7 @@
|
|
|
|
|
|
<div class="trcenter changeheight" width="100%">
|
|
|
<!-- height="250" -->
|
|
|
- <el-table :data="finaceList" border height="100%" width="100%">
|
|
|
+ <el-table :data="financeList" border height="100%" width="100%">
|
|
|
<el-table-column label="订单名称">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="lblue point">
|
|
|
@@ -204,9 +204,10 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ hasAuth:1,
|
|
|
frozenSuccessSum:0,
|
|
|
frozenSum:0,
|
|
|
- finaceList: [],
|
|
|
+ financeList: [],
|
|
|
successCount: 0,
|
|
|
totalHave: 0,
|
|
|
totalSuccess: 0,
|
|
|
@@ -667,24 +668,7 @@ export default {
|
|
|
this.currentPageSize = pageSize;
|
|
|
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 downFinanceList() {
|
|
|
var checkedTF = 0;
|
|
|
// console.log(this.checked);
|
|
|
@@ -739,8 +723,6 @@ export default {
|
|
|
page: this.currentPage,
|
|
|
page_size: this.currentPageSize
|
|
|
};
|
|
|
- // http://local-rooter.proginn.com:20201/api/admin/order/export?product_type=&order_type=&channel=&start_time=&end_time=&date_type=2&status=&artificial_mark=0&order=&user=&product_id=&page=1&page_size=20
|
|
|
- // const res = await this.$get("/api/admin/order/export", body);
|
|
|
var url =
|
|
|
window.location.host +
|
|
|
"/api/admin/order/export?product_type=" +
|
|
|
@@ -847,7 +829,8 @@ export default {
|
|
|
};
|
|
|
const res = await this.$post("/api/admin/order/get_orders", body);
|
|
|
var data = res.data;
|
|
|
- this.finaceList = data.orders;
|
|
|
+ if (data.status==-504)this.hasAuth=0;
|
|
|
+ this.financeList = data.orders;
|
|
|
this.totalCount = Number(data.count);
|
|
|
this.successCount = data.successCount;
|
|
|
this.totalHave = data.income_sum;
|
|
|
@@ -879,9 +862,6 @@ export default {
|
|
|
id: 0,
|
|
|
name: "全部"
|
|
|
});
|
|
|
- // this.productTypesOption = data.product_types;
|
|
|
- // this.finaceList = data;
|
|
|
- // this.totalCount = Number(data.total);
|
|
|
}
|
|
|
},
|
|
|
created() {
|