浏览代码

'gai报表分析'

魏志佳 4 年之前
父节点
当前提交
6dc9cfabd2

+ 24 - 14
src/views/modules/Statistics/newPlanStatic/newPlanStatic.vue

@@ -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);
 

+ 4 - 4
src/views/modules/autoLaunch/autoLaunchReport.vue

@@ -1396,13 +1396,13 @@ const publicColumns = [
                 console.log(pagination)
                 this.ipagination.current=pagination.current;
                 this.ipagination.pageSize=pagination.pageSize;
-                
+                this.getDetailTableData()
             },
             materialTableChange(pagination, filters, sorter, { currentDataSource }){
                 console.log(pagination)
                 this.materialipagination.current=pagination.current;
                 this.materialipagination.pageSize=pagination.pageSize;
-                
+                this.getRelativeData()
             },
 
             tabChange(key){
@@ -1472,7 +1472,7 @@ const publicColumns = [
                 postAction('',params).then(res=>{
                     console.log(res)
                     this.loading=false
-                    this.tableData=res.result
+                    this.tableData=res.result.list
                 })
             },
 
@@ -1484,7 +1484,7 @@ const publicColumns = [
                     console.log(res)
                     this.materialloading=false
                     if(res.success){
-                        this.materialtableData=res.result
+                        this.materialtableData=res.result.list
                         this.ipagination.total=res.result.total;
                     }else{
                         this.$message.error('出错了')

+ 3 - 3
vue.config.js

@@ -73,11 +73,11 @@ module.exports = {
         // target: 'http://192.168.1.188:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.43:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        // target: 'http://192.168.1.43:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        // target: 'http://192.168.1.43:8888', //请求本地 需要jeecg-boot后台项目  毕洁泉
+        target: 'http://192.168.1.43:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
+        // target: 'http://192.168.1.43:8087', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.0.252:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.219:8080', //请求本地 需要jeecg-boot后台项目  赵西安
-         target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
+        //  target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目
         //  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目