提交 e831c488 编写于 作者: huangwensu's avatar huangwensu

Merge branch 'dev-cme-1216' of...

Merge branch 'dev-cme-1216' of http://192.168.110.53/com.pica.cloud.education.frontend/pica-cooperation-cme into dev-cme-1216
...@@ -168,33 +168,14 @@ export default { ...@@ -168,33 +168,14 @@ export default {
} }
}, },
methods: { methods: {
//(判断是否加入机构,是否为认证用户,是否在申请范围内)
permission() {
let _this = this;
let param = {
// id: _this.projectId,
creditId: _this.formData.creditId,
token: _this.token,
setEntry: true
};
_this.POST("cme/credit/applyCheck", param).then(res => {
if(res.code == '000000') {
gotoPage(this, `cme/#/coop?id=${this.projectId}`);
} else if (res.code == "219004" || res.code == "219012") {
// 未加入机构 219004 未身份认证 219005 不在申请范围 219012
this.dialogContent = `该项目仅对${_this.formData.applyRange}的用户开放`;
this.cancleBtnText = "我知道了";
this.isShowDialog = true;
this.isSingle = true;
}
});
},
// 获取用户信息 // 获取用户信息
getUserInfo() { getUserInfo() {
rocNative.getUserInfo({ rocNative.getUserInfo({
__funcName: "__getUserInfoInCDetail" __funcName: "__getUserInfoInCDetail"
}); });
}, },
// 根据状态显示不同的文本 // 根据状态显示不同的文本
statusChanged(status) { statusChanged(status) {
this.needShowUserInfo = false; this.needShowUserInfo = false;
...@@ -231,9 +212,10 @@ export default { ...@@ -231,9 +212,10 @@ export default {
btnClick() { btnClick() {
if (this.formData.status == 1) { if (this.formData.status == 1) {
gotoPage(this, `cme/#/coop?id=${this.projectId}`);
// 判断是否加入机构 // 判断是否加入机构
// 判断加入机构与学习范围是否一致 // 判断加入机构与学习范围是否一致
this.permission(); // this.permission();
// alert("去学习"); // alert("去学习");
} else if (this.formData.status == 2) { } else if (this.formData.status == 2) {
this.applicationCredit(); this.applicationCredit();
...@@ -278,7 +260,8 @@ export default { ...@@ -278,7 +260,8 @@ export default {
}; };
rocNative.checkPermissions(params); rocNative.checkPermissions(params);
} else if (res.code == "219012") { } else if (res.code == "219012") {
this.dialogContent = `您的所属机构不在可申请范围(${_this.formData.applyRange})内`; this.dialogContent = `您的所属机构不在可申请范围内`;
// this.dialogContent = `您的所属机构不在可申请范围(${_this.formData.applyRange})内`;
this.cancleBtnText = "我知道了"; this.cancleBtnText = "我知道了";
this.isShowDialog = true; this.isShowDialog = true;
this.isSingle = true; this.isSingle = true;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册