|
|
@@ -120,17 +120,30 @@ export default {
|
|
|
totalFollow:0,
|
|
|
begindate:'',
|
|
|
enddate:'',
|
|
|
- select:'周'
|
|
|
+ select:'周',
|
|
|
+ sort:[
|
|
|
+ {
|
|
|
+ reversed : 0,
|
|
|
+ sorted: 1,
|
|
|
+ sortid: 207,
|
|
|
+ sortname: "新增,更新排序"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reversed : 0,
|
|
|
+ sorted: 1,
|
|
|
+ sortid: 208,
|
|
|
+ sortname: "跟进排序"
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
async queryAdd(){
|
|
|
- /* this.isDep ? this.param.content.type = 1: this.isPerson ? this.param.content.type = 0 : this.param.content.type = ''*/
|
|
|
this.param.content.dataType = 7
|
|
|
- /* this.param.content.dataid = this.dataid*/
|
|
|
this.param.content.where.begindate = this.select ? '' :this.begindate
|
|
|
this.param.content.where.enddate = this.select ? '' : this.enddate
|
|
|
this.param.content.dateType = this.select
|
|
|
+ this.param.content.sort = [this.sort[0]]
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.listAdd = res.data
|
|
|
this.currentPageAdd = res.pageNumber
|
|
|
@@ -147,12 +160,11 @@ export default {
|
|
|
this.queryAdd()
|
|
|
},
|
|
|
async queryUpdate(){
|
|
|
- /* this.isDep ? this.param.content.type = 1: this.isPerson ? this.param.content.type = 0 : this.param.content.type = ''*/
|
|
|
this.param.content.dataType = 8
|
|
|
- /* this.param.content.dataid = this.dataid*/
|
|
|
this.param.content.where.begindate = this.select ? '' :this.begindate
|
|
|
this.param.content.where.enddate = this.select ? '' : this.enddate
|
|
|
this.param.content.dateType = this.select
|
|
|
+ this.param.content.sort = [this.sort[0]]
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.listUpdate = res.data
|
|
|
this.currentPageUpdate = res.pageNumber
|
|
|
@@ -169,12 +181,11 @@ export default {
|
|
|
this.queryUpdate()
|
|
|
},
|
|
|
async queryFollow(){
|
|
|
- /* this.isDep ? this.param.content.type = 1: this.isPerson ? this.param.content.type = 0 : this.param.content.type = ''*/
|
|
|
this.param.content.dataType = 9
|
|
|
- /* this.param.content.dataid = this.dataid*/
|
|
|
this.param.content.where.begindate = this.select ? '' :this.begindate
|
|
|
this.param.content.where.enddate = this.select ? '' : this.enddate
|
|
|
this.param.content.dateType = this.select
|
|
|
+ this.param.content.sort = [this.sort[1]]
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.listFollow = res.data
|
|
|
this.currentPageFollow = res.pageNumber
|