|
@@ -150,7 +150,9 @@
|
|
|
<div class="right_first">
|
|
|
<div>
|
|
|
<div style="flex: 0.5 1 0%; margin: 0 20px 0 0">
|
|
|
- <div class="bInfo_title">课程封面</div>
|
|
|
+ <div class="bInfo_title">
|
|
|
+ <span style="color: red">*</span>课程封面
|
|
|
+ </div>
|
|
|
|
|
|
<el-upload
|
|
|
:class="{ disUoloadSty: noneBtnImg }"
|
|
@@ -1134,6 +1136,7 @@ export default {
|
|
|
if (
|
|
|
this.courseName != "" &&
|
|
|
this.courseText != "" &&
|
|
|
+ this.cover.length != 0 &&
|
|
|
this.checkboxList.length != 0
|
|
|
) {
|
|
|
this.steps = 2;
|
|
@@ -1157,6 +1160,7 @@ export default {
|
|
|
if (
|
|
|
this.courseName != "" &&
|
|
|
this.courseText != "" &&
|
|
|
+ this.cover.length != 0 &&
|
|
|
this.checkboxList.length != 0
|
|
|
) {
|
|
|
this.steps++;
|
|
@@ -1443,9 +1447,13 @@ export default {
|
|
|
title: "",
|
|
|
courseName: "",
|
|
|
chapterData: [],
|
|
|
+ toolChoose: [],
|
|
|
+ askCount: 1,
|
|
|
+ askTitle: "",
|
|
|
+ askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
+ checkJson: [{ checkCount: [], checkPerent: [] }],
|
|
|
itemCount: 1,
|
|
|
fileList1: [],
|
|
|
- toolChoose: [],
|
|
|
homeworkList: [],
|
|
|
video: [],
|
|
|
testData: [],
|
|
@@ -1671,31 +1679,41 @@ export default {
|
|
|
this.dialogVisible4 = true;
|
|
|
}
|
|
|
} else {
|
|
|
- if (
|
|
|
- this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.indexOf(i) !=
|
|
|
- -1
|
|
|
- ) {
|
|
|
- this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.splice(
|
|
|
- this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.indexOf(i),
|
|
|
- 1
|
|
|
- );
|
|
|
- if (i == 4) {
|
|
|
- this.unitJson[this.unitIndex].chapterInfo[0].askTitle = "";
|
|
|
- this.unitJson[this.unitIndex].chapterInfo[0].askJson = [];
|
|
|
- this.unitJson[this.unitIndex].chapterInfo[0].askJson.push({
|
|
|
- askstitle: "",
|
|
|
- askItem: 1,
|
|
|
- checkList: [],
|
|
|
- });
|
|
|
- }
|
|
|
+ if (i == 4) {
|
|
|
+ this.dialogVisible4 = true;
|
|
|
} else {
|
|
|
- this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.push(i);
|
|
|
+ if (
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.indexOf(
|
|
|
+ i
|
|
|
+ ) != -1
|
|
|
+ ) {
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.splice(
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.indexOf(
|
|
|
+ i
|
|
|
+ ),
|
|
|
+ 1
|
|
|
+ );
|
|
|
+ // if (i == 4) {
|
|
|
+ // this.unitJson[this.unitIndex].chapterInfo[0].askTitle = "";
|
|
|
+ // this.unitJson[this.unitIndex].chapterInfo[0].askJson = [];
|
|
|
+ // this.unitJson[this.unitIndex].chapterInfo[0].askJson.push({
|
|
|
+ // askstitle: "",
|
|
|
+ // askItem: 1,
|
|
|
+ // checkList: [],
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ } else {
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.push(i);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
cleanAsk(p) {
|
|
|
- this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.splice(p, 1);
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.splice(
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.indexOf(p),
|
|
|
+ 1
|
|
|
+ );
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].askTitle = "";
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].askJson = [];
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].askJson.push({
|