|
@@ -179,9 +179,7 @@
|
|
|
"
|
|
|
>
|
|
|
<div style="margin: 45px 0px 0px 80px">
|
|
|
- <div class="bInfo_title" style="margin-top: 0 !important">
|
|
|
- <span style="color: red">*</span>课程封面
|
|
|
- </div>
|
|
|
+ <div class="bInfo_title" style="margin-top: 0 !important">课程封面</div>
|
|
|
|
|
|
<el-upload
|
|
|
:class="{ disUoloadSty: noneBtnImg }"
|
|
@@ -1705,11 +1703,7 @@ export default {
|
|
|
nextSteps() {
|
|
|
if (this.cidType == 1) {
|
|
|
if (this.steps == 1) {
|
|
|
- if (
|
|
|
- this.courseName != "" &&
|
|
|
- this.courseText != "" &&
|
|
|
- this.cover.length != 0
|
|
|
- ) {
|
|
|
+ if (this.courseName != "" || this.courseText != "") {
|
|
|
this.steps = 3;
|
|
|
} else {
|
|
|
this.$message.error("请将信息填写完整");
|
|
@@ -1717,11 +1711,7 @@ export default {
|
|
|
}
|
|
|
} else if (this.steps == 3) {
|
|
|
if (this.cid == "" || this.cid == undefined) {
|
|
|
- if (
|
|
|
- this.courseName == "" ||
|
|
|
- this.courseText == "" ||
|
|
|
- this.cover.length == 0
|
|
|
- ) {
|
|
|
+ if (this.courseName == "" || this.courseText == "") {
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
return;
|
|
|
} else {
|
|
@@ -1744,11 +1734,7 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
if (this.steps == 1) {
|
|
|
- if (
|
|
|
- this.courseName != "" &&
|
|
|
- this.courseText != "" &&
|
|
|
- this.cover.length != 0
|
|
|
- ) {
|
|
|
+ if (this.courseName != "" || this.courseText != "") {
|
|
|
this.steps++;
|
|
|
} else {
|
|
|
this.$message.error("请将信息填写完整");
|
|
@@ -1765,11 +1751,7 @@ export default {
|
|
|
this.steps++;
|
|
|
} else if (this.steps == 3) {
|
|
|
if (this.cid == "" || this.cid == undefined) {
|
|
|
- if (
|
|
|
- this.courseName == "" ||
|
|
|
- this.courseText == "" ||
|
|
|
- this.cover.length == 0
|
|
|
- ) {
|
|
|
+ if (this.courseName == "" || this.courseText == "") {
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
return;
|
|
|
} else {
|
|
@@ -1777,11 +1759,7 @@ export default {
|
|
|
this.steps++;
|
|
|
}
|
|
|
} else {
|
|
|
- if (
|
|
|
- this.courseName == "" ||
|
|
|
- this.courseText == "" ||
|
|
|
- this.cover.length == 0
|
|
|
- ) {
|
|
|
+ if (this.courseName == "" || this.courseText == "") {
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
return;
|
|
|
} else {
|
|
@@ -2336,7 +2314,18 @@ export default {
|
|
|
uid: this.userid,
|
|
|
title: this.courseName,
|
|
|
brief: this.courseText.replace(/%/g, "%25"),
|
|
|
- cover: this.cover.length > 0 ? JSON.stringify(this.cover) : "",
|
|
|
+ cover:
|
|
|
+ this.cover.length > 0
|
|
|
+ ? JSON.stringify(this.cover)
|
|
|
+ : JSON.stringify([
|
|
|
+ {
|
|
|
+ name: "noBanner.jpg",
|
|
|
+ url:
|
|
|
+ "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
|
|
|
+ uid: 1656409780264,
|
|
|
+ status: "success",
|
|
|
+ },
|
|
|
+ ]),
|
|
|
astudent:
|
|
|
this.checkboxList.length > 0
|
|
|
? JSON.stringify(this.checkboxList)
|