|
@@ -34,10 +34,12 @@
|
|
|
</div>
|
|
|
<div class="tableArea">
|
|
|
<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">
|
|
@@ -168,41 +170,36 @@ export default {
|
|
|
getAction('/ctop/projectMember/getProjectAccountByUserId', {}).then(res => {
|
|
|
if(res.success){
|
|
|
// 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 }){
|
|
|
- // 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',{
|
|
|
userId:this.userId,
|
|
|
pageNo:this.ipagination.current
|
|
@@ -247,6 +244,9 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
},
|
|
|
+ watch:{
|
|
|
+
|
|
|
+ },
|
|
|
mounted() {
|
|
|
this.accountHttp();
|
|
|
|