提交 dd507872 编写于 作者: guofeng.chen's avatar guofeng.chen

对接cme职称考接口

上级 a58d7304
...@@ -376,7 +376,7 @@ ...@@ -376,7 +376,7 @@
<el-radio :label="1">使用小生态范围</el-radio> <el-radio :label="1">使用小生态范围</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="人员权限设定" v-show="projectType != 5"> <el-form-item label="人员权限设定" v-show="projectType != 2">
<el-radio-group <el-radio-group
size="small" size="small"
v-model="formData.authorityType" v-model="formData.authorityType"
...@@ -1101,7 +1101,7 @@ ...@@ -1101,7 +1101,7 @@
</div> </div>
</div> </div>
<el-form-item required label="配置证书:" v-show="projectType != 5"> <el-form-item required label="配置证书:" v-show="projectType != 2">
<el-col :span="10"> <el-col :span="10">
<el-radio-group <el-radio-group
class="el-configure" class="el-configure"
...@@ -1598,7 +1598,11 @@ export default { ...@@ -1598,7 +1598,11 @@ export default {
uploadType: "", uploadType: "",
//cme新增 //cme新增
projectLevelList: [], projectLevelList: [],
cardTypeList: [], cardTypeList: [
{ label: 'I类', value: 1 },
{ label: 'II类', value: 2 },
{ label: '职称考', value: 3 },
],
projectLeaderList: [], projectLeaderList: [],
creditList: [], creditList: [],
creditTip: "", creditTip: "",
...@@ -1818,7 +1822,7 @@ export default { ...@@ -1818,7 +1822,7 @@ export default {
(this.projectId = vm.getUrlSearch(window.location.href, "projectId")), (this.projectId = vm.getUrlSearch(window.location.href, "projectId")),
(this.peopleLevel = vm.getUrlSearch(window.location.href, "level")); (this.peopleLevel = vm.getUrlSearch(window.location.href, "level"));
if (this.projectType == 5) { if (this.projectType == 2) {
//CME情况下 //CME情况下
this.rules = this.rules2; this.rules = this.rules2;
this.formData.learnableFlag = 1; this.formData.learnableFlag = 1;
...@@ -1999,13 +2003,13 @@ export default { ...@@ -1999,13 +2003,13 @@ export default {
cardType: editData.projectData.cardType, cardType: editData.projectData.cardType,
projectLeaderId: editData.projectData.projectLeaderId, projectLeaderId: editData.projectData.projectLeaderId,
projectSubject: editData.projectData.projectSubject, projectSubject: editData.projectData.projectSubject,
mustKnow: editData.projectData.mustKnow, mustKnow: editData.projectData.mustKnow || '',
creditId: editData.projectData.creditId, creditId: editData.projectData.creditId,
cmeType: editData.projectData.cmeType, cmeType: editData.projectData.cmeType,
cmeCredit: editData.projectData.cmeCredit || '', cmeCredit: editData.projectData.cmeCredit || '',
examBtnUrl: editData.projectData.examBtnUrl || '', examBtnUrl: editData.projectData.examBtnUrl || '',
}; };
if (vm.projectType == 5) { if (vm.projectType == 2) {
vm.formData.learnableFlag = 1; vm.formData.learnableFlag = 1;
vm.initCreditTip(); vm.initCreditTip();
} }
...@@ -2138,7 +2142,7 @@ export default { ...@@ -2138,7 +2142,7 @@ export default {
cardType: this.formData.cardType, cardType: this.formData.cardType,
projectLeaderId: this.formData.projectLeaderId, projectLeaderId: this.formData.projectLeaderId,
projectSubject: this.formData.projectSubject, projectSubject: this.formData.projectSubject,
mustKnow: this.formData.mustKnow, mustKnow: this.formData.mustKnow || '',
editCreditId: this.formData.creditId, editCreditId: this.formData.creditId,
cmeType: this.formData.cmeType, cmeType: this.formData.cmeType,
cmeCredit: this.formData.cmeCredit, cmeCredit: this.formData.cmeCredit,
...@@ -2179,13 +2183,13 @@ export default { ...@@ -2179,13 +2183,13 @@ export default {
} }
//} //}
//creditId学分id的特殊处理 //creditId学分id的特殊处理
if (this.projectType == 5) { if (this.projectType == 2) {
if (option == "add" || option == "storage") { if (option == "add" || option == "storage") {
projectModel.creditId = this.formData.creditId; projectModel.creditId = this.formData.creditId;
} }
} }
if (option == "edit" || option == "storageEdit") { if (option == "edit" || option == "storageEdit") {
if (this.projectType == 5) { if (this.projectType == 2) {
projectModel.creditId = this.beforeCreditId; projectModel.creditId = this.beforeCreditId;
} }
//编辑 //编辑
...@@ -2528,9 +2532,9 @@ export default { ...@@ -2528,9 +2532,9 @@ export default {
}, },
//点击下一步 //点击下一步
nextStep(moveType) { nextStep(moveType) {
// if(this.formData.cmeType == 2) { if(this.formData.cmeType == 2) {
// moveType = 2; moveType = 2;
// } }
if (this.active == 0) { if (this.active == 0) {
let formName = "formData"; let formName = "formData";
let removeState = this.submitForm(formName); let removeState = this.submitForm(formName);
...@@ -2561,7 +2565,7 @@ export default { ...@@ -2561,7 +2565,7 @@ export default {
if (res.code == "000000") { if (res.code == "000000") {
//移动到第二页 选择范围 //移动到第二页 选择范围
// this.operationLast(); // this.operationLast();
if (moveType == 1 && vm.projectType == 5) { if (moveType == 1 && vm.projectType == 2) {
this.dialogCme = true; this.dialogCme = true;
return; return;
} }
...@@ -3716,7 +3720,7 @@ export default { ...@@ -3716,7 +3720,7 @@ export default {
}, },
showScopeTypeCME() { showScopeTypeCME() {
if (this.projectStatus == "" || this.projectStatus == 1) { if (this.projectStatus == "" || this.projectStatus == 1) {
if (this.peopleLevel != "L3" && this.projectType != 5) { if (this.peopleLevel != "L3" && this.projectType != 2) {
return false; return false;
} }
} }
...@@ -3742,7 +3746,7 @@ export default { ...@@ -3742,7 +3746,7 @@ export default {
this.projectStatus == 1 || this.projectStatus == 1 ||
this.projectStatus == 2 this.projectStatus == 2
) { ) {
if (this.peopleLevel != "L3" && this.projectType != 5) { if (this.peopleLevel != "L3" && this.projectType != 2) {
return false; return false;
} }
} }
...@@ -3753,7 +3757,7 @@ export default { ...@@ -3753,7 +3757,7 @@ export default {
if (this.peopleLevel == "L3" || this.peopleLevel == "L0") { if (this.peopleLevel == "L3" || this.peopleLevel == "L0") {
return true; return true;
} }
if (this.projectType == 5) { if (this.projectType == 2) {
return true; return true;
} }
return false; return false;
......
...@@ -291,6 +291,9 @@ export default { ...@@ -291,6 +291,9 @@ export default {
closeLoading(this); closeLoading(this);
if (res.code == "000000") { if (res.code == "000000") {
this.$message.success('提交成功') this.$message.success('提交成功')
setTimeout(() => {
this.$router.back();
}, 2000)
} }
}); });
}); });
......
...@@ -467,7 +467,7 @@ export default { ...@@ -467,7 +467,7 @@ export default {
this.$router.push("template-open?projectType=3&isPreview=" + isPreview); this.$router.push("template-open?projectType=3&isPreview=" + isPreview);
}, },
toProfessionalExamPage(isPreview = 0) { toProfessionalExamPage(isPreview = 0) {
this.$router.push("edit-professional-exam?projectType=5&isPreview=" + isPreview); this.$router.push("edit-professional-exam?projectType=2&isPreview=" + isPreview);
}, },
toEditCustomPage(isPreview = 0) { toEditCustomPage(isPreview = 0) {
this.setKind(0); this.setKind(0);
...@@ -481,8 +481,8 @@ export default { ...@@ -481,8 +481,8 @@ export default {
this.newProjectType = 1; this.newProjectType = 1;
}, },
handleCreateProject() { handleCreateProject() {
// 1 普通项目 2 CME项目 5 职称考试(对应的projectType仍为2)
if (this.newProjectType == 1) { if (this.newProjectType == 1) {
// 1 普通项目 2 CME项目 5 职称考试
this.toPage(); this.toPage();
} else if (this.newProjectType == 2) { } else if (this.newProjectType == 2) {
this.toCmePage(); this.toCmePage();
...@@ -699,6 +699,17 @@ export default { ...@@ -699,6 +699,17 @@ export default {
this.formInline.pageNo this.formInline.pageNo
); );
} else if (row.projectType === 2) { } else if (row.projectType === 2) {
// cmeType:3为职称考,其他为原cme
if (row.cmeType === 3) {
this.$router.push(
"edit-professional-exam?projectType=2&projectId=" +
projectId +
"&level=" +
level +
"&pageNum=" +
this.formInline.pageNo
);
} else {
this.$router.push( this.$router.push(
"edit-cme?projectType=2&projectId=" + "edit-cme?projectType=2&projectId=" +
projectId + projectId +
...@@ -707,6 +718,7 @@ export default { ...@@ -707,6 +718,7 @@ export default {
"&pageNum=" + "&pageNum=" +
this.formInline.pageNo this.formInline.pageNo
); );
}
} else if (row.projectType === 3) { } else if (row.projectType === 3) {
this.$router.push( this.$router.push(
"template-open?projectType=3&projectId=" + "template-open?projectType=3&projectId=" +
...@@ -722,15 +734,6 @@ export default { ...@@ -722,15 +734,6 @@ export default {
projectId + "&level=" + level + "&pageNum=" + this.formInline.pageNo + projectId + "&level=" + level + "&pageNum=" + this.formInline.pageNo +
"&projectStatus=" + row.projectStatus "&projectStatus=" + row.projectStatus
); );
} else if (row.projectType === 5) {
this.$router.push(
"edit-professional-exam?projectType=5&projectId=" +
projectId +
"&level=" +
level +
"&pageNum=" +
this.formInline.pageNo
);
} }
} else if (type === 7) { } else if (type === 7) {
//提醒审核 //提醒审核
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册