|
|
@@ -1,8 +1,5 @@
|
|
|
<template>
|
|
|
- <div id="cloud-balance">
|
|
|
- <!-- <section class="top"> -->
|
|
|
- <!-- <h3>交易订单中心</h3> -->
|
|
|
- <!-- <section> -->
|
|
|
+ <div id="cloud-balance" v-if="hasAuth">
|
|
|
<div class="type-boxs">
|
|
|
<div class="clear">
|
|
|
<div class="floatr">
|
|
|
@@ -11,14 +8,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- </section> -->
|
|
|
- <!-- </section> -->
|
|
|
<div class="trcenter" style="height: calc(100%) ">
|
|
|
- <!-- height="250" -->
|
|
|
<el-table :data="finaceList" border style="width: 100%;" height="100%">
|
|
|
<el-table-column label="订单名称">
|
|
|
<template slot-scope="scope">
|
|
|
- <!-- @click="clickDev(scope.row.uid)" -->
|
|
|
<span class="lblue point">
|
|
|
<nuxt-link
|
|
|
:to="{path:'/main/orders_detail?id='+scope.row.order_no}"
|
|
|
@@ -174,6 +167,7 @@ const tableWidths = [
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ hasAuth:1,
|
|
|
tradeList: [
|
|
|
{
|
|
|
id: 0,
|
|
|
@@ -296,6 +290,9 @@ export default {
|
|
|
channel:'admin_confirm'
|
|
|
};
|
|
|
const res = await this.$post("/api/admin/order/get_orders", body);
|
|
|
+ if (res.status==-504){
|
|
|
+ this.hasAuth=0;
|
|
|
+ }
|
|
|
var data = res.data;
|
|
|
this.finaceList = data.orders;
|
|
|
this.totalCount = Number(data.count);
|
|
|
@@ -306,11 +303,7 @@ export default {
|
|
|
page_size: this.currentPageSize,
|
|
|
artificial_mark: 1
|
|
|
};
|
|
|
- // const res = await this.$get("/api/admin/order/get_orders", body);
|
|
|
- // http://local-rooter.proginn.com:20201/api/admin/order/get_orders?page=1&page_size=20&artificial_mark=1
|
|
|
- var url =
|
|
|
- window.location.host + "/api/admin/order/export?" + "artificial_mark=1";
|
|
|
- console.log(url);
|
|
|
+ var url = window.location.host + "/api/admin/order/export?" + "artificial_mark=1";
|
|
|
window.location.href = "http://" + url;
|
|
|
},
|
|
|
createOrder() {
|