|
@@ -223,7 +223,7 @@
|
|
|
</a-select>
|
|
|
<a-button type='primary' style="position:absolute;right:20px" @click="search">查询</a-button>
|
|
|
</div>
|
|
|
- <!-- <div style="margin-bottom:20px">
|
|
|
+ <div style="margin-bottom:20px">
|
|
|
<span>数据维度:</span>
|
|
|
<a-radio-group v-model="value" @change="dataTypeChange">
|
|
|
<a-radio :value="1">
|
|
@@ -234,7 +234,7 @@
|
|
|
</a-radio>
|
|
|
|
|
|
</a-radio-group>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
<div class="time" @click="opendate" >
|
|
|
<datePick :dateValue.sync='dateValue' :type.sync='type' />
|
|
|
|
|
@@ -926,7 +926,8 @@ export default {
|
|
|
// 快手头条的切换
|
|
|
tabChange(key){
|
|
|
console.log(key);
|
|
|
-
|
|
|
+ this.treeValue=[];
|
|
|
+ this.operate=''
|
|
|
if(key==1){
|
|
|
// toutiao
|
|
|
this.treeData=this.TTaccountList;
|
|
@@ -948,6 +949,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
this.getNewPlan()
|
|
|
},
|
|
|
operateChange(value){
|
|
@@ -1191,7 +1193,7 @@ export default {
|
|
|
// this.accountId=''
|
|
|
// }
|
|
|
this.loading=true;
|
|
|
-
|
|
|
+ this.echartSpinning=true;
|
|
|
this.sectionOption=JSON.parse(JSON.stringify(sectionOption));
|
|
|
if(this.tabKey==1){
|
|
|
this.sectionOption.legend.data=['新上计划数','有效计划数']
|
|
@@ -1222,18 +1224,26 @@ export default {
|
|
|
this.loading=false;
|
|
|
this.echartSpinning=false;
|
|
|
if(res.success){
|
|
|
- this.effectPlan=res.result.sumData.valid;
|
|
|
- this.newPlan=res.result.sumData.new;
|
|
|
- this.dataTable=res.result.listData;
|
|
|
-
|
|
|
- // 处理echar数据
|
|
|
- res.result.chartData.map(item=>{
|
|
|
- this.sectionOption.xAxis.data.push(item.statDate)
|
|
|
- this.sectionOption.series[0].data.push(item.new)
|
|
|
- this.sectionOption.series[1].data.push(item.valid)
|
|
|
- })
|
|
|
+ if(res.result){
|
|
|
+ this.effectPlan=res.result.sumData.valid;
|
|
|
+ this.newPlan=res.result.sumData.new;
|
|
|
+ this.dataTable=res.result.listData;
|
|
|
+ // 处理echar数据
|
|
|
+ res.result.chartData.map(item=>{
|
|
|
+ this.sectionOption.xAxis.data.push(item.statDate)
|
|
|
+ this.sectionOption.series[0].data.push(item.new)
|
|
|
+ this.sectionOption.series[1].data.push(item.valid)
|
|
|
+ })
|
|
|
|
|
|
|
|
|
+ }else{
|
|
|
+ this.effectPlan=0;
|
|
|
+ this.newPlan=0;
|
|
|
+ this.dataTable=[];
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
this.getEchartData('sectionChart', this.sectionOption);
|
|
|
|