|
@@ -1511,13 +1511,12 @@ export default {
|
|
|
0 ||
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].chapterData.length ==
|
|
|
0 ||
|
|
|
- this.courseName != "" ||
|
|
|
- this.courseText != "" ||
|
|
|
- this.cover.length != 0 ||
|
|
|
- this.courseTypeId.length != 0 ||
|
|
|
- this.checkboxList.length != 0 ||
|
|
|
- this.templateC.id == "" ||
|
|
|
- this.templateC.id == undefined
|
|
|
+ (this.courseName != "" &&
|
|
|
+ this.courseText != "" &&
|
|
|
+ this.cover.length != 0 &&
|
|
|
+ this.courseTypeId.length != 0 &&
|
|
|
+ this.checkboxList.length != 0 &&
|
|
|
+ (this.templateC.id == "" || this.templateC.id == undefined))
|
|
|
) {
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
return;
|
|
@@ -1551,13 +1550,12 @@ export default {
|
|
|
0 ||
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].chapterData.length ==
|
|
|
0 ||
|
|
|
- this.courseName != "" ||
|
|
|
- this.courseText != "" ||
|
|
|
- this.cover.length != 0 ||
|
|
|
- this.courseTypeId.length != 0 ||
|
|
|
- this.checkboxList.length != 0 ||
|
|
|
- this.templateC.id == "" ||
|
|
|
- this.templateC.id == undefined
|
|
|
+ (this.courseName != "" &&
|
|
|
+ this.courseText != "" &&
|
|
|
+ this.cover.length != 0 &&
|
|
|
+ this.courseTypeId.length != 0 &&
|
|
|
+ this.checkboxList.length != 0 &&
|
|
|
+ (this.templateC.id == "" || this.templateC.id == undefined))
|
|
|
) {
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
return;
|