소스 검색

'改定向包'

魏志佳 4 년 전
부모
커밋
41729f1eb9
3개의 변경된 파일38개의 추가작업 그리고 37개의 파일을 삭제
  1. 35 35
      src/views/modules/BatchCreate/directedPackage.vue
  2. 1 0
      src/views/modules/Statistics/effectReport.vue
  3. 2 2
      vue.config.js

+ 35 - 35
src/views/modules/BatchCreate/directedPackage.vue

@@ -34,10 +34,12 @@
             </div>
             </div>
             <div class="tableArea">
             <div class="tableArea">
                 <a-table 
                 <a-table 
-                :columns="columns" 
-                :data-source="dataSource" 
-                :pagination="ipagination"
-                bordered
+                    :columns="columns" 
+                    :data-source="dataSource" 
+                    :pagination="ipagination"
+                    bordered
+                    @change="sort"
+                    size='middle'
                 >
                 >
                     
                     
                     <span slot="landingType" slot-scope="text">
                     <span slot="landingType" slot-scope="text">
@@ -168,41 +170,36 @@ export default {
             getAction('/ctop/projectMember/getProjectAccountByUserId', {}).then(res => {
             getAction('/ctop/projectMember/getProjectAccountByUserId', {}).then(res => {
             if(res.success){
             if(res.success){
                     // console.log(res);
                     // console.log(res);
-                    if(res.result){
-                        res.result.forEach((element,index) => {
-                        if(element){                  
-                            this.treeData.push({});                    
-                            this.treeData[index].title=element.project.projectName +'_('+ element.project.advertiserName +')';
-                            this.treeData[index].value='project'+element.project.projectId;
-                            this.treeData[index].key=element.project.projectId;
-                            this.treeData[index].mediaId=element.project.mediaId;
-                            this.treeData[index].children=[];
-                                                
-                            if(element.account.length){
-                            element.account.forEach((ele,i)=>{
-                                this.treeData[index].children.push({});
-                                this.treeData[index].children[i].title=ele.userName+'_'+ele.authName;
-                                this.treeData[index].children[i].value=ele.accountId;
-                                this.treeData[index].children[i].key=ele.accountId;
-                            })
-                                
-                            }                           
-                        }      
-                        });
-                        // console.log(this.treeData)
-                        
-                    }
+                if(res.result){
+                    res.result.forEach((element,index) => {
+                    if(element){                  
+                        this.treeData.push({});                    
+                        this.treeData[index].title=element.project.projectName +'_('+ element.project.advertiserName +')';
+                        this.treeData[index].value='project'+element.project.projectId;
+                        this.treeData[index].key=element.project.projectId;
+                        this.treeData[index].mediaId=element.project.mediaId;
+                        this.treeData[index].children=[];
+                                            
+                        if(element.account.length){
+                        element.account.forEach((ele,i)=>{
+                            this.treeData[index].children.push({});
+                            this.treeData[index].children[i].title=ele.userName+'_'+ele.authName;
+                            this.treeData[index].children[i].value=ele.accountId;
+                            this.treeData[index].children[i].key=ele.accountId;
+                        })
+                            
+                        }                           
+                    }      
+                    });
+                    // console.log(this.treeData)
+                    
+                }
             }
             }
             })
             })
         },
         },
         sort(pagination, filters, sorter, { currentDataSource }){
         sort(pagination, filters, sorter, { currentDataSource }){
-            // console.log(pagination, filters, sorter)
-            // if(sorter.order == 'ascend'){
-            //     this.HttpPost(sorter.columnKey+'+')
-            // }else if(sorter.order == 'descend'){
-            //     this.HttpPost(sorter.columnKey+'-')
-            // }
-            this.ipagination.current=pagination.current;
+            console.log(pagination, filters, sorter)           
+            // this.ipagination.current=pagination.current;
             getAction('/ctop/audiencePackage/queryByUserId',{
             getAction('/ctop/audiencePackage/queryByUserId',{
                 userId:this.userId,
                 userId:this.userId,
                 pageNo:this.ipagination.current
                 pageNo:this.ipagination.current
@@ -247,6 +244,9 @@ export default {
             })
             })
         },
         },
     },
     },
+    watch:{
+
+    },
     mounted() {
     mounted() {
          this.accountHttp();
          this.accountHttp();
 
 

+ 1 - 0
src/views/modules/Statistics/effectReport.vue

@@ -34,6 +34,7 @@
             bordered  
             bordered  
             :laoding='loading' 
             :laoding='loading' 
             :pagination='ipagination'
             :pagination='ipagination'
+            size='middle'
              @change="tableChange"
              @change="tableChange"
             >
             >
                 <a slot="projectName" slot-scope="text,records" @click="goAccount(records)">{{text}}</a>
                 <a slot="projectName" slot-scope="text,records" @click="goAccount(records)">{{text}}</a>

+ 2 - 2
vue.config.js

@@ -63,11 +63,11 @@ module.exports = {
         // target: 'http://192.168.0.230:8088', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.0.230:8088', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.1.51:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.51:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.165:8848', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.165:8848', //请求本地 需要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: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目 
-        target: 'http://192.168.1.251/', //请求本地 需要jeecg-boot后台项目 
+        // target: 'http://192.168.1.251/', //请求本地 需要jeecg-boot后台项目 
 
 
 
 
         ws: false,
         ws: false,