//待处理公文 handelFunData() { let params = {"sortSet":['1','2','3','4','5']} let url = '/activiti/model/taskListAll' postAction(url, params).then(res => { if (!res.success) { //this.handelData = res.result.records.splice(0, 8) for(let key in res.data){ if(res.data[key].length>0){ for (let i=0;i<res.data[key].length;i++){ let handletype=""; let title = ""; let time = ""; switch (key) { case "1": handletype="我的收文"; title=res.data[key][i].title; time=res.data[key][i].time; break; case "2": handletype="我的发文"; title=res.data[key][i].title; time=res.data[key][i].time; break; case "3": handletype="我的申请"; title=res.data[key][i].title; time=res.data[key][i].time; break; case "4": handletype="我的审核"; title=res.data[key][i].title; time=res.data[key][i].time; break; default: continue; break; } this.handelData.push({ handletype:handletype, title:title, time:time }); } } } } else { this.$msg.error(res.message) } }) },