mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 15:26:45 +08:00
提交
This commit is contained in:
@@ -177,6 +177,7 @@
|
||||
|
||||
<div style="padding-right: 30px;"><div></div></div>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<span class="red-tip">添加分项内容后均需点击保存。</span>
|
||||
<el-checkbox style="margin-right:10px" v-if="curCourseId != ''" v-model="checked"></el-checkbox><span v-if="curCourseId != ''" style="font-size:14px;color:#787878;">我已阅读并遵守<span style="color:#588afc;margin-right:10px;cursor: pointer;" @click="courseInfoFormCheckedShow = true">平台内容发布要求</span></span>
|
||||
<!-- <el-button v-if="curCourseId!='' && contentInfo.list.length>0">预览</el-button> -->
|
||||
<el-button :loading="btnLoading" v-if="curCourseId != ''" :disabled="!checked" @click="submitCourse()" type="primary">提交审核</el-button>
|
||||
@@ -348,6 +349,7 @@
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<span class="red-tip">添加分项内容后均需点击保存。</span>
|
||||
<el-checkbox v-if="curCourseId != ''" style="margin-right:10px" v-model="checked"></el-checkbox><span v-if="curCourseId != ''" style="font-size:14px;color:#787878">我已阅读并遵守<span style="color:#588afc;margin-right:10px;cursor: pointer;" @click="courseInfoFormCheckedShow = true">平台内容发布要求</span></span>
|
||||
<el-button :loading="btnLoading" v-if="biaoke.tabIndex == 'base'" type="primary" @click="saveAndNext(2)">保存并下一步</el-button>
|
||||
<el-button :loading="btnLoading" v-if="biaoke.tabIndex == 'content'" type="primary" @click="previousStep()">上一步</el-button>
|
||||
@@ -1101,6 +1103,7 @@ export default {
|
||||
// 判断是否有未保存的内容
|
||||
unsavedContent() {
|
||||
const courseware = this.$refs.courseware;
|
||||
console.log(courseware,'courseware');
|
||||
let pass = true;
|
||||
if(this.curContent.id == '') {// 新增
|
||||
if(this.curContent.contentType == 60) { // 判断作业是否保存
|
||||
@@ -1108,10 +1111,10 @@ export default {
|
||||
pass = false;
|
||||
}
|
||||
} else if(this.curContent.contentType == 61) { //考试
|
||||
if(courseware.examPaper.items.length>1) {
|
||||
if(courseware.exam.paperContent != '') {
|
||||
pass = false;
|
||||
}
|
||||
if(courseware.examPaper.items[0].content != '点击编辑试题内容') {
|
||||
if(courseware.examPaper.items.length >0) {
|
||||
pass = false;
|
||||
}
|
||||
}else if(this.curContent.contentType == 41) { //图文
|
||||
@@ -1152,29 +1155,19 @@ export default {
|
||||
unsavedWeiContent() {
|
||||
// console.log(this.contentInfo.list,'contentInfo.list');
|
||||
// console.log(this.courseInfo,'courseInfo');
|
||||
// console.log(this.$refs.weikeContent,'weikeContent');
|
||||
console.log(this.$refs.weikeContent,'weikeContent');
|
||||
const courseware = this.$refs.weikeContent;
|
||||
// console.log(this.catalogTree,'this.catalogTree');
|
||||
console.log(this.catalogTree,'this.catalogTree');
|
||||
let pass = true;
|
||||
// if(this.curContent.contentType == 60) { // 判断作业是否保存
|
||||
if(JSON.stringify(courseware.homeworkChange.info) !== JSON.stringify(courseware.homework.info)) {
|
||||
pass = false;
|
||||
}
|
||||
// } else if(this.curContent.contentType == 61) { //考试
|
||||
// if(JSON.stringify(courseware.exam.info) !== JSON.stringify(courseware.examChange.info)) {
|
||||
// console.log("2222");
|
||||
// pass = false;
|
||||
// }
|
||||
// } else {
|
||||
// if(courseware.cware.content.content !== courseware.cwareChange.content.content) {
|
||||
// console.log('333');
|
||||
// pass = false;
|
||||
// }
|
||||
// if(courseware.cware.linkInfo.content !== courseware.cwareChange.content.content) {
|
||||
// console.log('333');
|
||||
// pass = false;
|
||||
// }
|
||||
// }
|
||||
if(courseware.homework.show == 2) { // 作业
|
||||
pass = false;
|
||||
}
|
||||
if(courseware.assess.show == 1) { // 评估
|
||||
pass = false;
|
||||
}
|
||||
if(courseware.exam.show == 3) { // 评估
|
||||
pass = false;
|
||||
}
|
||||
return pass;
|
||||
},
|
||||
submitCourse() {
|
||||
@@ -1429,6 +1422,11 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.red-tip{
|
||||
color: red;
|
||||
font-size: 18px;
|
||||
float: left;
|
||||
}
|
||||
::v-deep .wei-from{
|
||||
.el-form-item{
|
||||
margin-bottom: 10px;
|
||||
|
||||
Reference in New Issue
Block a user