Commit da4b48d1 authored by 潘自豪's avatar 潘自豪

营业额明显页面修改

parent 46ede36b
...@@ -44,9 +44,6 @@ export default async (url = '', data = {}, type = 'GET', method = 'fetch') => { ...@@ -44,9 +44,6 @@ export default async (url = '', data = {}, type = 'GET', method = 'fetch') => {
try { try {
const response = await fetch(url, requestConfig); const response = await fetch(url, requestConfig);
const responseJson = await response.json(); const responseJson = await response.json();
if(response.status === 403){
parent.window.location = "/";
}
return responseJson return responseJson
} catch (error) { } catch (error) {
throw new Error(error) throw new Error(error)
......
...@@ -36,7 +36,7 @@ export const adapterLostAdd = function (data) { ...@@ -36,7 +36,7 @@ export const adapterLostAdd = function (data) {
let lostAddDataCol = new Array(); let lostAddDataCol = new Array();
lostAddDataCol[0] = adapterLostAddCol("订单量(万吨) ", conver_amont(data.unit_weight), "red") lostAddDataCol[0] = adapterLostAddCol("订单量(万吨) ", conver_amont(data.unit_weight), "red")
lostAddDataCol[1] = adapterLostAddCol("订单件数", data.qty, "#eaa749") lostAddDataCol[1] = adapterLostAddCol("订单件数", data.qty, "#eaa749")
lostAddDataCol[2] = adapterLostAddCol("营额(万元)", conver_amont(data.sell_settle_amount), "#49eb29") lostAddDataCol[2] = adapterLostAddCol("营额(万元)", conver_amont(data.sell_settle_amount), "#49eb29")
lostAddData['column'] = lostAddDataCol; lostAddData['column'] = lostAddDataCol;
return lostAddData; return lostAddData;
} }
......
...@@ -3,11 +3,13 @@ ...@@ -3,11 +3,13 @@
<div class="content"> <div class="content">
<display-board class="content_card" :title="lostCustomerTitle" title_size="large"> <display-board class="content_card" :title="lostCustomerTitle" title_size="large">
<winners-list style="height: 100%;overflow: auto;" id="ar_company_list" <winners-list style="height: 100%;overflow: auto;" id="ar_company_list"
:columns-style="{'title':{'width':'45%'}}"
:rows="lostCustomer" :rows="lostCustomer"
/> />
</display-board> </display-board>
<display-board class="content_card" :title="addCustomerTitle" title_size="large"> <display-board class="content_card" :title="addCustomerTitle" title_size="large">
<winners-list style="height: 100%;overflow: auto;" id="ar_company_list" <winners-list style="height: 100%;overflow: auto;" id="ar_company_list"
:columns-style="{'title':{'width':'45%'}}"
:rows="addCustomer" :rows="addCustomer"
/> />
</display-board> </display-board>
...@@ -50,9 +52,7 @@ export default { ...@@ -50,9 +52,7 @@ export default {
}, },
async mounted() { async mounted() {
this.lostCustomer = await getAllDatas(this.today, 2) this.lostCustomer = await getAllDatas(this.today, 2)
console.log(this.lostCustomer)
this.addCustomer = await getAllDatas(this.today, 1) this.addCustomer = await getAllDatas(this.today, 1)
console.log(this.addCustomer)
}, },
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment