提交 110376aa 编写于 作者: guangjun.yang's avatar guangjun.yang

不本页面做校验

上级 61cf5510
......@@ -168,33 +168,14 @@ export default {
}
},
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() {
rocNative.getUserInfo({
__funcName: "__getUserInfoInCDetail"
});
},
// 根据状态显示不同的文本
statusChanged(status) {
this.needShowUserInfo = false;
......@@ -231,9 +212,10 @@ export default {
btnClick() {
if (this.formData.status == 1) {
gotoPage(this, `cme/#/coop?id=${this.projectId}`);
// 判断是否加入机构
// 判断加入机构与学习范围是否一致
this.permission();
// this.permission();
// alert("去学习");
} else if (this.formData.status == 2) {
this.applicationCredit();
......@@ -278,7 +260,8 @@ export default {
};
rocNative.checkPermissions(params);
} else if (res.code == "219012") {
this.dialogContent = `您的所属机构不在可申请范围(${_this.formData.applyRange})内`;
this.dialogContent = `您的所属机构不在可申请范围内`;
// this.dialogContent = `您的所属机构不在可申请范围(${_this.formData.applyRange})内`;
this.cancleBtnText = "我知道了";
this.isShowDialog = true;
this.isSingle = true;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册