邀请加入企业的消息处理。点击确定可以加入企业并赋予权限,点击拒绝不会进入企业,处理消息后消息会变成已处理状态。
企业收到的申请加入企业的消息,点击接受会同意申请用户加入企业,拒绝则会拒绝接收该用户。
deal(id, result, type, name) {
if (type == "个人") {
dealApplication(id, result).then(this.afterDealApplication);
} else {
dealInvitation(id, result).then((res) => {
const dealRes = res.data;
if (dealRes.code == 200) {
this.$message.success("已处理该消息!");
this.countUnreadNotice();
if (result == true) {
let roles = [{ id: "employee" }];
this.setCompanyName(name);
this.setRoles(roles);
this.$router.push({ path: "/resourceManagement/information" });
} else {
//刷新通知界面
this.searchUserNotice();
}
}
});
}
},