Commit 89b05f21 authored by liudong1993's avatar liudong1993
parents 388b1299 447bad9d
...@@ -236,10 +236,14 @@ ...@@ -236,10 +236,14 @@
</template> </template>
<template v-if="activeName=='4'"> <template v-if="activeName=='4'">
<!-- <fourIncomeChange :msgData="msg" :StatisticalData="StatisticalData"></fourIncomeChange> <div class="allEchartRow">
<fourIncomeShare></fourIncomeShare> <fourIncomeChange :msgData="msg" :StatisticalData="StatisticalData"></fourIncomeChange>
<fourWoolRateChange></fourWoolRateChange> <!-- <fourIncomeShare :msgData="msg" :StatisticalData="StatisticalData"></fourIncomeShare> -->
<fourActualRateChange></fourActualRateChange> --> </div>
<div class="allEchartRow">
<!-- <fourWoolRateChange :msgData="msg" :StatisticalData="StatisticalData"></fourWoolRateChange>
<fourActualRateChange :msgData="msg" :StatisticalData="StatisticalData"></fourActualRateChange> -->
</div>
</template> </template>
</div> </div>
...@@ -463,7 +467,7 @@ export default { ...@@ -463,7 +467,7 @@ export default {
msg, msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
console.log(this.StatisticalData,'=---------') console.log(this.StatisticalData,'=---------' )
this.StatisticalData = res.data.data this.StatisticalData = res.data.data
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
......
...@@ -41,12 +41,10 @@ export default { ...@@ -41,12 +41,10 @@ export default {
StatisticalData:{ StatisticalData:{
handler(n,o){ handler(n,o){
this.MonthList = n.MonthQuarterList//月份列表 this.MonthList = n.MonthQuarterList//月份列表
this.JapanAllData = n.JapanAllData this.ShopData = n.ShopData
this.JapanXBData = n.JapanXBData this.LeaderRankList = n.LeaderRankList
this.JapanSPData = n.JapanSPData this.GuideRankList = n.GuideRankList
this.MaoLiAnalysisData = n.MaoLiAnalysisData this.CommissionRateList = n.CommissionRateList
this.SJLLAnalysisData = n.SJLLAnalysisData
this.RoomAnalysisData = n.RoomAnalysisData
this.getEchart() this.getEchart()
}, },
deep: true, deep: true,
...@@ -66,7 +64,7 @@ export default { ...@@ -66,7 +64,7 @@ export default {
let titles = [] let titles = []
let Stocklegend = {} let Stocklegend = {}
let Newobj = {} let Newobj = {}
this.JapanSPData.forEach((x,indexs)=>{ this.CommissionRateList.forEach((x,indexs)=>{
let Name = `${x.Name}` let Name = `${x.Name}`
titles.push(Name) titles.push(Name)
let obj = { let obj = {
...@@ -80,9 +78,9 @@ export default { ...@@ -80,9 +78,9 @@ export default {
position: 'top', // 在顶部显示 position: 'top', // 在顶部显示
formatter: '{c}k' // 格式化金额,{c} 代表数据值 formatter: '{c}k' // 格式化金额,{c} 代表数据值
}, },
data: x.MonthData.map(x=>{ return (x/1000).toFixed(2) }) // 绑定实时数据数组 data: [(x.Commission/1000).toFixed(2)]
} }
if(x.Name=='人均车资') datas.push(obj) datas.push(obj)
if(indexs>6){ if(indexs>6){
let name=x.Name; let name=x.Name;
Newobj[name]=false; Newobj[name]=false;
......
...@@ -62,6 +62,7 @@ export default { ...@@ -62,6 +62,7 @@ export default {
let titles = [] let titles = []
let Stocklegend = {} let Stocklegend = {}
let Newobj = {} let Newobj = {}
console.log(this.ShopData,'=====')
this.ShopData.forEach((x,indexs)=>{ this.ShopData.forEach((x,indexs)=>{
let Name = `${x.Name}` let Name = `${x.Name}`
titles.push(Name) titles.push(Name)
...@@ -78,7 +79,7 @@ export default { ...@@ -78,7 +79,7 @@ export default {
}, },
data: x.DetailList.map(x=>{ return (x.TotalMoney/10000).toFixed(2) }) // 绑定实时数据数组 data: x.DetailList.map(x=>{ return (x.TotalMoney/10000).toFixed(2) }) // 绑定实时数据数组
} }
if(x.Name=='收入') datas.push(obj) datas.push(obj)
if(indexs>6){ if(indexs>6){
let name=x.Name; let name=x.Name;
Newobj[name]=false; Newobj[name]=false;
......
...@@ -41,12 +41,10 @@ export default { ...@@ -41,12 +41,10 @@ export default {
StatisticalData:{ StatisticalData:{
handler(n,o){ handler(n,o){
this.MonthList = n.MonthQuarterList//月份列表 this.MonthList = n.MonthQuarterList//月份列表
this.JapanAllData = n.JapanAllData this.ShopData = n.ShopData
this.JapanXBData = n.JapanXBData this.LeaderRankList = n.LeaderRankList
this.JapanSPData = n.JapanSPData this.GuideRankList = n.GuideRankList
this.MaoLiAnalysisData = n.MaoLiAnalysisData this.CommissionRateList = n.CommissionRateList
this.SJLLAnalysisData = n.SJLLAnalysisData
this.RoomAnalysisData = n.RoomAnalysisData
this.getEchart() this.getEchart()
}, },
deep: true, deep: true,
...@@ -66,7 +64,7 @@ export default { ...@@ -66,7 +64,7 @@ export default {
let titles = [] let titles = []
let Stocklegend = {} let Stocklegend = {}
let Newobj = {} let Newobj = {}
this.JapanSPData.forEach((x,indexs)=>{ this.LeaderRankList.forEach((x,indexs)=>{
let Name = `${x.Name}` let Name = `${x.Name}`
titles.push(Name) titles.push(Name)
let obj = { let obj = {
...@@ -80,9 +78,9 @@ export default { ...@@ -80,9 +78,9 @@ export default {
position: 'top', // 在顶部显示 position: 'top', // 在顶部显示
formatter: '{c}' // 格式化金额,{c} 代表数据值 formatter: '{c}' // 格式化金额,{c} 代表数据值
}, },
data: x.MonthData.map(x=>{ return x }) // 绑定实时数据数组 data: [x.TotalMoney]
} }
if(x.Name=='团数') datas.push(obj) datas.push(obj)
if(indexs>6){ if(indexs>6){
let name=x.Name; let name=x.Name;
Newobj[name]=false; Newobj[name]=false;
......
...@@ -41,12 +41,10 @@ export default { ...@@ -41,12 +41,10 @@ export default {
StatisticalData:{ StatisticalData:{
handler(n,o){ handler(n,o){
this.MonthList = n.MonthQuarterList//月份列表 this.MonthList = n.MonthQuarterList//月份列表
this.JapanAllData = n.JapanAllData this.ShopData = n.ShopData
this.JapanXBData = n.JapanXBData this.LeaderRankList = n.LeaderRankList
this.JapanSPData = n.JapanSPData this.GuideRankList = n.GuideRankList
this.MaoLiAnalysisData = n.MaoLiAnalysisData this.CommissionRateList = n.CommissionRateList
this.SJLLAnalysisData = n.SJLLAnalysisData
this.RoomAnalysisData = n.RoomAnalysisData
this.getEchart() this.getEchart()
}, },
deep: true, deep: true,
...@@ -66,7 +64,7 @@ export default { ...@@ -66,7 +64,7 @@ export default {
let titles = [] let titles = []
let Stocklegend = {} let Stocklegend = {}
let Newobj = {} let Newobj = {}
this.JapanSPData.forEach((x,indexs)=>{ this.GuideRankList.forEach((x,indexs)=>{
let Name = `${x.Name}` let Name = `${x.Name}`
titles.push(Name) titles.push(Name)
let obj = { let obj = {
...@@ -80,9 +78,9 @@ export default { ...@@ -80,9 +78,9 @@ export default {
position: 'top', // 在顶部显示 position: 'top', // 在顶部显示
formatter: '{c}k' // 格式化金额,{c} 代表数据值 formatter: '{c}k' // 格式化金额,{c} 代表数据值
}, },
data: x.MonthData.map(x=>{ return (x/1000).toFixed(2) }) // 绑定实时数据数组 data: [(x.TotalMoney/1000).toFixed(2)]
} }
if(x.Name=='人均机票') datas.push(obj) datas.push(obj)
if(indexs>6){ if(indexs>6){
let name=x.Name; let name=x.Name;
Newobj[name]=false; Newobj[name]=false;
......
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