|
@@ -1406,6 +1406,7 @@ export default {
|
|
|
this.steps++;
|
|
|
} else {
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
+ return;
|
|
|
}
|
|
|
} else if (this.steps == 2) {
|
|
|
if (this.templateC.id == "" || this.templateC.id == undefined) {
|
|
@@ -1417,11 +1418,39 @@ export default {
|
|
|
this.steps++;
|
|
|
} else if (this.steps == 3) {
|
|
|
if (this.cid == "" || this.cid == undefined) {
|
|
|
- this.addWork();
|
|
|
- this.steps++;
|
|
|
+ if (
|
|
|
+ this.unitJson[this.unitIndex].dyName == "" ||
|
|
|
+ this.unitJson[this.unitIndex].task == "" ||
|
|
|
+ this.unitJson[this.unitIndex].taskDetail == "" ||
|
|
|
+ this.unitJson[this.unitIndex].toolText == "" ||
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.length == 0 ||
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].homeworkList.length == 0 ||
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].chapterData.length == 0 ||
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].chapterData.length == 0
|
|
|
+ ) {
|
|
|
+ this.$message.error("请将信息填写完整");
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ this.addWork();
|
|
|
+ this.steps++;
|
|
|
+ }
|
|
|
} else {
|
|
|
- this.updateWork();
|
|
|
- this.steps++;
|
|
|
+ if (
|
|
|
+ this.unitJson[this.unitIndex].dyName == "" ||
|
|
|
+ this.unitJson[this.unitIndex].task == "" ||
|
|
|
+ this.unitJson[this.unitIndex].taskDetail == "" ||
|
|
|
+ this.unitJson[this.unitIndex].toolText == "" ||
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.length == 0 ||
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].homeworkList.length == 0 ||
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].chapterData.length == 0 ||
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].chapterData.length == 0
|
|
|
+ ) {
|
|
|
+ this.$message.error("请将信息填写完整");
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ this.updateWork();
|
|
|
+ this.steps++;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -2199,7 +2228,8 @@ export default {
|
|
|
|
|
|
.pb_content {
|
|
|
/* background: #fff; */
|
|
|
- height: 100%;
|
|
|
+ /* height: 100%; */
|
|
|
+ height: auto !important;
|
|
|
margin: 20px 20px 20px 20px;
|
|
|
}
|
|
|
|
|
@@ -2367,6 +2397,7 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: space-evenly;
|
|
|
margin: 20px 0 25px 0;
|
|
|
+ padding-bottom: 20px;
|
|
|
}
|
|
|
|
|
|
.info_btn,
|
|
@@ -3341,7 +3372,7 @@ ol {
|
|
|
align-items: flex-start;
|
|
|
min-width: 685px;
|
|
|
}
|
|
|
-.toolSort >div{
|
|
|
+.toolSort > div {
|
|
|
margin-right: 30px;
|
|
|
}
|
|
|
.tools {
|