This commit is contained in:
shijingjing
2022-09-13 18:16:15 +08:00
parent 8c0e7be81b
commit a3cf3fd57a
4 changed files with 74 additions and 63 deletions

View File

@@ -159,21 +159,30 @@ export default {
},
getList() {
let url = ''
let data = {}
if(this.tabIndex==0) {
url = `/app/appmasssendingtask/list`
} else if(this.tabIndex==1 || this.tabIndex==2) {
url = `/app/whchatmomentstask/list`
}
this.$http.post(url, null, {
params: {
data = {
current: this.current,
taskTitle: this.taskTitle,
startTime: this.start,
endTime: this.end,
createUserId: this.createUserId,
status: this.status
status: this.status,
}
}).then(res=> {
} else if(this.tabIndex==1 || this.tabIndex==2) {
url = `/app/whchatmomentstask/list`
data = {
current: this.current,
taskTitle: this.taskTitle,
startTime: this.start,
endTime: this.end,
createUserId: this.createUserId,
status: this.status,
taskType: this.tabIndex == 0? '': this.tabIndex==1? 1:0
}
}
this.$http.post(url,null, {params:{...data}}).then(res=> {
if(res?.data) {
this.list = this.current == 1? res.data.records : [...this.list,...res.data.records]
}