Commit 93343d95 authored by zhangyanni's avatar zhangyanni

消息已读

parent 25ecedfe
......@@ -11,5 +11,10 @@ export default {
postAllReadAxios(params){
return api.fetchPost(baseUrl+"/message/setReadAll?"+Qs.stringify(params));
},
//设置已读
setHasReadAxios(params){
return api.fetchPost(baseUrl+"/message/setReadStatus?"+Qs.stringify(params));
}
}
......@@ -144,39 +144,46 @@
},
handleToElse(data,index){
if(this.userInfo.empType==0){
if(data.requirementPurposeId>0){
this.$router.push({path:"/recommenddetail",query:{purposeId:data.requirementPurposeId}})
}
if(data.projectPurposeId>0){
this.$router.push({path:"/contentdetarl",query:{purposeId:data.projectPurposeId}})
}
}
else if(this.userInfo.empType==1){
if(data.requirementPurposeId>0){
this.$router.push({path:"/bigBusiness/selfdetail",query:{id:data.requirementPurposeId}})
}
if(data.projectPurposeId>0){
this.$router.push({path:"/bigBusiness/intentiondetail",query:{id:data.projectPurposeId}})
}
}else{
if(this.userInfo.roleList[0].roleType==2){
let params = {
messageIds:data.messageId
};
api.setHasReadAxios(params).then((res)=>{
if(this.userInfo.empType==0){
if(data.requirementPurposeId>0){
this.$router.push({path:"/projectinside",query:{purposeId:data.requirementPurposeId,type:0}})
this.$router.push({path:"/recommenddetail",query:{purposeId:data.requirementPurposeId}})
}
if(data.projectPurposeId>0){
this.$router.push({path:"/projectinside",query:{purposeId:data.projectPurposeId,type:1}})
this.$router.push({path:"/contentdetarl",query:{purposeId:data.projectPurposeId}})
}
}else if(this.userInfo.roleList[0].roleType==5){
}
else if(this.userInfo.empType==1){
if(data.requirementPurposeId>0){
this.$router.push({path:"/saleproject/active",query:{id:data.requirementPurposeId,type:0}})
this.$router.push({path:"/bigBusiness/selfdetail",query:{id:data.requirementPurposeId}})
}
if(data.projectPurposeId>0){
this.$router.push({path:"/saleproject/active",query:{id:data.projectPurposeId,type:1}})
this.$router.push({path:"/bigBusiness/intentiondetail",query:{id:data.projectPurposeId}})
}
}
else{
if(this.userInfo.roleList[0].roleType==2){
if(data.requirementPurposeId>0){
this.$router.push({path:"/projectinside",query:{purposeId:data.requirementPurposeId,type:0}})
}
if(data.projectPurposeId>0){
this.$router.push({path:"/projectinside",query:{purposeId:data.projectPurposeId,type:1}})
}
}else if(this.userInfo.roleList[0].roleType==5){
if(data.requirementPurposeId>0){
this.$router.push({path:"/saleproject/active",query:{id:data.requirementPurposeId,type:0}})
}
if(data.projectPurposeId>0){
this.$router.push({path:"/saleproject/active",query:{id:data.projectPurposeId,type:1}})
}
}
}
})
}
},
//分页
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment