|
@@ -280,6 +280,13 @@
|
|
|
</div>
|
|
|
</div> -->
|
|
|
<div v-if="this.steps == 3">
|
|
|
+ <!-- <div class="chapter_btnbox" @click="addunit">
|
|
|
+ <div class="icon_add">
|
|
|
+ <i></i>
|
|
|
+ <i></i>
|
|
|
+ </div>
|
|
|
+ <div class="chapter_btn_w">新增阶段</div>
|
|
|
+ </div> -->
|
|
|
<div class="basic_box">
|
|
|
<h3 class="info_title">项目内容填写</h3>
|
|
|
<div class="big_box">
|
|
@@ -899,7 +906,7 @@ export default {
|
|
|
if (type == 1) {
|
|
|
var _tmp = this.cover;
|
|
|
} else if (type == 2 || type == 3) {
|
|
|
- var _tmp = this.unitJson[0].chapterInfo[0].chapterData;
|
|
|
+ var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].chapterData;
|
|
|
} else {
|
|
|
var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
|
|
|
}
|
|
@@ -1338,16 +1345,10 @@ export default {
|
|
|
// this.unitJson[0].chapterInfo[i].fileList1[j].content = a;
|
|
|
// }
|
|
|
// }
|
|
|
- for (var i = 0; i < this.unitJson[0].chapterInfo.length; i++) {
|
|
|
- for (
|
|
|
- var j = 0;
|
|
|
- j < this.unitJson[0].chapterInfo[i].homeworkList.length;
|
|
|
- j++
|
|
|
- ) {
|
|
|
- if (this.unitJson[0].chapterInfo[i].homeworkList[j].name === "") {
|
|
|
- } else {
|
|
|
- this.unitJson[0].chapterInfo[i].homeworkList[j].hid = this.guid();
|
|
|
- }
|
|
|
+ for (var c = 0; c < this.unitJson.length; c++) {
|
|
|
+ if (this.unitJson[c].chapterInfo[0].homeworkList[0].name === "") {
|
|
|
+ } else {
|
|
|
+ this.unitJson[c].chapterInfo[0].homeworkList[0].hid = this.guid();
|
|
|
}
|
|
|
}
|
|
|
let params = [
|