|
@@ -152,6 +152,7 @@
|
|
:pagination="ipagination"
|
|
:pagination="ipagination"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
@change="sort"
|
|
@change="sort"
|
|
|
|
+
|
|
>
|
|
>
|
|
<template slot="name" slot-scope="text,record">
|
|
<template slot="name" slot-scope="text,record">
|
|
<a href="javascript:;" @click="goNextPage(record)">
|
|
<a href="javascript:;" @click="goNextPage(record)">
|
|
@@ -310,7 +311,7 @@
|
|
<script>
|
|
<script>
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
import { getAction, postAction, downFile, downFilePost } from '@/api/manage';
|
|
import { getAction, postAction, downFile, downFilePost } from '@/api/manage';
|
|
-import { JeecgListMixin } from '@/mixins/ipagination'
|
|
|
|
|
|
+// import { JeecgListMixin } from '@/mixins/ipagination'
|
|
import editableCell from './editableCell'
|
|
import editableCell from './editableCell'
|
|
import Treeselect from '@/views/modules/Statistics/components/Treeselect.vue'
|
|
import Treeselect from '@/views/modules/Statistics/components/Treeselect.vue'
|
|
import qs from 'qs'
|
|
import qs from 'qs'
|
|
@@ -580,9 +581,27 @@ export default {
|
|
editableCell,
|
|
editableCell,
|
|
Treeselect,
|
|
Treeselect,
|
|
},
|
|
},
|
|
- mixins: [JeecgListMixin],
|
|
|
|
|
|
+ // mixins: [JeecgListMixin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ ipagination: {
|
|
|
|
+ current: 1,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ // pageSizeOptions: ['10', '20', '30'],
|
|
|
|
+ showTotal: (total, range) => {
|
|
|
|
+ return range[0] + "-" + range[1] + " 共" + total + "条"
|
|
|
|
+ },
|
|
|
|
+ showQuickJumper: true,
|
|
|
|
+ showSizeChanger:true,
|
|
|
|
+ pageSizeOptions: ['10', '30', '50'],
|
|
|
|
+ total: 0,
|
|
|
|
+ onChange: (current, pageSize) => {
|
|
|
|
+ // 切换分页时的回调,
|
|
|
|
+ // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
|
|
|
|
+ this.ipagination.current = current;
|
|
|
|
+ this.ipagination.pageSize= pageSize;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
currentGroup:{},
|
|
currentGroup:{},
|
|
currentPlan:{},
|
|
currentPlan:{},
|
|
|
|
|
|
@@ -681,6 +700,7 @@ export default {
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
pageNo:this.ipagination.current,
|
|
pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
campaignId:item.id
|
|
campaignId:item.id
|
|
})
|
|
})
|
|
|
|
|
|
@@ -700,7 +720,8 @@ export default {
|
|
status:this.statusValue,
|
|
status:this.statusValue,
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
- pageNo:this.ipagination.current
|
|
|
|
|
|
+ pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
})
|
|
})
|
|
let planInfo=JSON.stringify([item])
|
|
let planInfo=JSON.stringify([item])
|
|
localStorage.setItem('planInfo',planInfo)
|
|
localStorage.setItem('planInfo',planInfo)
|
|
@@ -718,6 +739,7 @@ export default {
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
pageNo:this.ipagination.current,
|
|
pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
campaignId:this.currentGroup.id
|
|
campaignId:this.currentGroup.id
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -732,6 +754,7 @@ export default {
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
pageNo:this.ipagination.current,
|
|
pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
planId:this.currentPlan.id,
|
|
planId:this.currentPlan.id,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -793,6 +816,7 @@ export default {
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
pageNo:this.ipagination.current,
|
|
pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
|
|
|
|
});
|
|
});
|
|
}else if(key=='plan'){
|
|
}else if(key=='plan'){
|
|
@@ -803,6 +827,7 @@ export default {
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
pageNo:this.ipagination.current,
|
|
pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
campaignId:this.currentGroup.id
|
|
campaignId:this.currentGroup.id
|
|
})
|
|
})
|
|
|
|
|
|
@@ -815,7 +840,8 @@ export default {
|
|
status:this.statusValue,
|
|
status:this.statusValue,
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
- pageNo:this.ipagination.current
|
|
|
|
|
|
+ pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -887,7 +913,8 @@ export default {
|
|
status:this.statusValue,
|
|
status:this.statusValue,
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
- pageNo:this.ipagination.current
|
|
|
|
|
|
+ pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
})
|
|
})
|
|
}else if(this.tabkey=='plan'){
|
|
}else if(this.tabkey=='plan'){
|
|
this.columns=planColumns;
|
|
this.columns=planColumns;
|
|
@@ -898,6 +925,7 @@ export default {
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
pageNo:this.ipagination.current,
|
|
pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
campaignId:this.currentGroup.id
|
|
campaignId:this.currentGroup.id
|
|
})
|
|
})
|
|
}else if(this.tabkey=='idea'){
|
|
}else if(this.tabkey=='idea'){
|
|
@@ -909,6 +937,7 @@ export default {
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
pageNo:this.ipagination.current,
|
|
pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
planId:this.currentPlan.id,
|
|
planId:this.currentPlan.id,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -927,6 +956,8 @@ export default {
|
|
sort(pagination, filters, sorter, { currentDataSource }){
|
|
sort(pagination, filters, sorter, { currentDataSource }){
|
|
|
|
|
|
this.ipagination.current=pagination.current;
|
|
this.ipagination.current=pagination.current;
|
|
|
|
+
|
|
|
|
+ this.ipagination.pageSize=pagination.pageSize;
|
|
this.search()
|
|
this.search()
|
|
},
|
|
},
|
|
//重置按钮事件
|
|
//重置按钮事件
|
|
@@ -957,7 +988,9 @@ export default {
|
|
status:this.statusValue,
|
|
status:this.statusValue,
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
- pageNo:this.ipagination.current
|
|
|
|
|
|
+ pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
|
|
+
|
|
})
|
|
})
|
|
this.$message.success(res.message)
|
|
this.$message.success(res.message)
|
|
}else{
|
|
}else{
|
|
@@ -993,6 +1026,7 @@ export default {
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
pageNo:this.ipagination.current,
|
|
pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
planId:this.currentPlan.id,
|
|
planId:this.currentPlan.id,
|
|
|
|
|
|
})
|
|
})
|
|
@@ -1050,7 +1084,8 @@ export default {
|
|
status:this.statusValue,
|
|
status:this.statusValue,
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
- pageNo:this.ipagination.current
|
|
|
|
|
|
+ pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
})
|
|
})
|
|
}else{
|
|
}else{
|
|
this.loading=false
|
|
this.loading=false
|
|
@@ -1264,6 +1299,7 @@ export default {
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
pageNo:this.ipagination.current,
|
|
pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
campaignId:this.currentGroup.id
|
|
campaignId:this.currentGroup.id
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1287,6 +1323,7 @@ export default {
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
pageNo:this.ipagination.current,
|
|
pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
campaignId:this.currentGroup.id
|
|
campaignId:this.currentGroup.id
|
|
})
|
|
})
|
|
this.$message.error(res.message)
|
|
this.$message.error(res.message)
|
|
@@ -1339,7 +1376,8 @@ export default {
|
|
status:this.statusValue,
|
|
status:this.statusValue,
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
- pageNo:this.ipagination.current
|
|
|
|
|
|
+ pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1381,6 +1419,7 @@ export default {
|
|
startDate:this.dateString[0],
|
|
startDate:this.dateString[0],
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
pageNo:this.ipagination.current,
|
|
pageNo:this.ipagination.current,
|
|
|
|
+ pageSize:this.ipagination.pageSize,
|
|
campaignId:this.currentGroup.id
|
|
campaignId:this.currentGroup.id
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1487,7 +1526,7 @@ export default {
|
|
accountHttp(){
|
|
accountHttp(){
|
|
this.treeData=[];
|
|
this.treeData=[];
|
|
this.accountID=undefined;
|
|
this.accountID=undefined;
|
|
- getAction('/ctop/projectMember/getProjectAccountByUserId', {}).then(res => {
|
|
|
|
|
|
+ getAction('/ctop/projectMember/getProjectAccountByUserId?mediaType=1', {}).then(res => {
|
|
if(res.success){
|
|
if(res.success){
|
|
// console.log(res);
|
|
// console.log(res);
|
|
if(res.result){
|
|
if(res.result){
|