魏志佳 преди 4 години
родител
ревизия
482db97ac6
променени са 1 файла, в които са добавени 15 реда и са изтрити 6 реда
  1. 15 6
      src/views/modules/Statistics/imageStatics/imageCostReport.vue

+ 15 - 6
src/views/modules/Statistics/imageStatics/imageCostReport.vue

@@ -95,9 +95,9 @@
         <span slot="showNum" slot-scope="text">{{ text | formatCurrency }}</span>
         <span slot="convert" slot-scope="text">{{ text | formatCurrency }}</span>
         
-        <p slot="operation" slot-scope="text">
-          平面:{{ text || '未绑定' }}
-        </p>
+        <span slot="operation" slot-scope="text">
+         {{ text || '未绑定' }}
+        </span>
         
 
         </a-table>
@@ -155,7 +155,7 @@ const TTcolumns = [
     fixed: 'left'
   },
     {
-    title:'相关人员',
+    title:'相关平面',
     dataIndex:'operation',
     key:'operation',
     scopedSlots: { customRender: 'operation' },
@@ -230,7 +230,7 @@ const KScolumns = [
     fixed: 'left'
   },
     {
-    title:'相关人员',
+    title:'相关平面',
     dataIndex:'operation',
     key:'operation',
     scopedSlots: { customRender: 'operation' },
@@ -407,6 +407,7 @@ export default {
         tabChange(val){
           this.accountIds=[];
           this.data=[]
+          this.ipagination.current=1
           if(this.tabKeys==1){
                 this.treeData=this.TTaccountList;
                 this.columns=this.TTcolumns;
@@ -479,7 +480,13 @@ export default {
                 return 
             }
             this.ipagination.current=pagination.current
-            // this.HttpPost()
+            this.ipagination.pageSize= pagination.pageSize;
+
+            if(this.tabKeys==1){               
+                this.HttpPost('/image/bytedance/cost')
+            }else if (this.tabKeys==2){
+                this.HttpPost('/image/kuaishou/cost')
+            } 
         },
         moment,
         //select切换---项目
@@ -504,6 +511,7 @@ export default {
         //查询按钮
         searchRes() {
             this.data=[];
+            this.ipagination.current=1
             if(this.tabKeys==1){               
                 this.HttpPost('/image/bytedance/cost')
             }else if (this.tabKeys==2){
@@ -521,6 +529,7 @@ export default {
         //网络请求table数据函数
         HttpPost(url){
           this.loading=true;
+          this.data=[]
           show = 0
           postAction(url, {
               startDate: this.timedata[0],