|
|
|
@ -85,7 +85,8 @@ |
|
|
|
|
|
|
|
|
|
<el-col :span="6" |
|
|
|
|
:offset="2"> |
|
|
|
|
<el-form-item label="课程类别"> |
|
|
|
|
<el-form-item label="课程类别" |
|
|
|
|
prop="curriculumType"> |
|
|
|
|
<el-select v-model="form.curriculumType" |
|
|
|
|
clearable |
|
|
|
|
placeholder="请选择课程类型"> |
|
|
|
@ -497,6 +498,7 @@ export default { |
|
|
|
|
form: { |
|
|
|
|
cid: this.$route.query.cid, |
|
|
|
|
curriculumName: "", |
|
|
|
|
curriculumType: '', |
|
|
|
|
courseType: "", |
|
|
|
|
categoryId: 1, |
|
|
|
|
professionalCategoryId: 1, |
|
|
|
@ -524,6 +526,9 @@ export default { |
|
|
|
|
expectedCourse: [ |
|
|
|
|
{ required: true, message: "请选择预计课时", trigger: "change" } |
|
|
|
|
], |
|
|
|
|
curriculumType: [ |
|
|
|
|
{ required: true, message: "请选择课程类别", trigger: "change" } |
|
|
|
|
], |
|
|
|
|
professionalCategoryId: [ |
|
|
|
|
{ required: true, message: "请选择专业类", trigger: "change" } |
|
|
|
|
], |
|
|
|
@ -974,7 +979,7 @@ export default { |
|
|
|
|
this.$message.info("已取消移除"); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
saveAdd (fromBack) { |
|
|
|
|
saveAdd () { |
|
|
|
|
this.$refs.form.validate((valid) => { |
|
|
|
|
if (valid) { |
|
|
|
|
if (this.submiting) return false |
|
|
|
@ -1039,16 +1044,17 @@ export default { |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
this.$post(this.api.createCurriculum, form).then((res) => { |
|
|
|
|
!fromBack ? this.$confirm("课程创建成功,是否马上进行课程内容设置?", "提示", { |
|
|
|
|
this.loadIns.close() |
|
|
|
|
this.$confirm("课程创建成功,是否马上进行课程内容设置?", "提示", { |
|
|
|
|
type: "success", |
|
|
|
|
confirmButtonText: "马上设置", |
|
|
|
|
cancelButtonText: "稍后操作", |
|
|
|
|
closeOnClickModal: false |
|
|
|
|
}).then(() => { |
|
|
|
|
this.$router.push(`/contentSettings?cid=${res.cid}`); |
|
|
|
|
this.$router.push(`/contentSettings?cid=${res.cid}&name=${form.curriculumName}`); |
|
|
|
|
}).catch(() => { |
|
|
|
|
this.$router.push('/curriculum') |
|
|
|
|
}) : this.$router.push('/curriculum') |
|
|
|
|
}) |
|
|
|
|
}).catch((res) => { |
|
|
|
|
this.submiting = false |
|
|
|
|
this.loadIns.close() |
|
|
|
@ -1068,7 +1074,7 @@ export default { |
|
|
|
|
type: 'warning', |
|
|
|
|
closeOnClickModal: false |
|
|
|
|
}).then(() => { |
|
|
|
|
this.saveAdd(1) |
|
|
|
|
this.saveAdd() |
|
|
|
|
}).catch(() => { |
|
|
|
|
this.backPage() |
|
|
|
|
}) |
|
|
|
|