Commit f1edf1ec authored by zhangyanni's avatar zhangyanni

邮件

parent 90781f67
......@@ -245,7 +245,11 @@ export default {
//获取邮件推送需求详情接口
getRequireDetailByEmail(params){
return api.fetchGet(baseUrl+"/requirementDetail/getForEmail?"+Qs.stringify(params))
}
},
openDataAxios(params){
return api.fetchGet(baseUrl+"/stat/open_data?"+params)
},
......
......@@ -856,8 +856,21 @@
this.isoffsetTop = true;
},
openDataEmail(){
api.openDataAxios(location.href.split("?")[1]).then((res)=>{
if(res.code==0){
}else{
this.$message.error(res.msg);
}
}).catch((err)=>{
this.$message.error(err);
})
}
},
mounted(){
this.openDataEmail();
this.getRequireDetail();
window.addEventListener('scroll', this.scrollFunc);
},
......
......@@ -254,9 +254,22 @@
}else{
this.isTrans = flag;
}
},
openDataEmail(){
api.openDataAxios(location.href.split("?")[1]).then((res)=>{
if(res.code==0){
}else{
this.$message.error(res.msg);
}
}).catch((err)=>{
this.$message.error(err);
})
}
},
mounted() {
this.openDataEmail();
this.getRequireDetail();
globalMsg.$on("translateFunc",(data)=>{
this.handleTrans(data);
......
......@@ -14,7 +14,7 @@
}else{
this.$message.error(res.msg);
}
}) .catch((err)=>{
}).catch((err)=>{
this.$message.error(err);
})
}
......
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