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