|
@@ -3649,7 +3649,7 @@
|
|
|
}">
|
|
|
{{ steps == 3 ? "确认上传" : "下一步" }}
|
|
|
</button>
|
|
|
- <button class="c_pub_button_confirm" v-if="steps < 4 && cidType != 1 && templateid == ''" @click="openSaveTips">保存模板</button>
|
|
|
+ <button class="c_pub_button_confirm" v-if="steps < 4 && promptShow" @click="openSaveTips">保存模板</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -7454,6 +7454,12 @@ export default {
|
|
|
uid: file.uid,
|
|
|
type: _type,
|
|
|
});
|
|
|
+ _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
|
|
|
+ name: file.name,
|
|
|
+ url: data.Location,
|
|
|
+ uid: file.uid,
|
|
|
+ type: _type,
|
|
|
+ })
|
|
|
} else if (type == 2 || type == 3 || type == 12) {
|
|
|
_this.infoData.push({
|
|
|
name: file.name,
|
|
@@ -7461,6 +7467,12 @@ export default {
|
|
|
uid: file.uid,
|
|
|
type: type,
|
|
|
});
|
|
|
+ _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
|
|
|
+ name: file.name,
|
|
|
+ url: data.Location,
|
|
|
+ uid: file.uid,
|
|
|
+ type: type,
|
|
|
+ })
|
|
|
}
|
|
|
console.log(data.Location);
|
|
|
}
|
|
@@ -10618,9 +10630,9 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
}
|
|
|
- if(this.cidType != 1 && this.templateid == ''){
|
|
|
- this.promptShow = true
|
|
|
- }
|
|
|
+ // if(this.cidType != 1 && this.templateid == ''){
|
|
|
+ // this.promptShow = true
|
|
|
+ // }
|
|
|
},
|
|
|
seleteCourseUpdate() {
|
|
|
let params = {
|
|
@@ -12957,7 +12969,7 @@ ${message} 以及##补充参考资料和##参考资料 以文本格式输出项
|
|
|
],
|
|
|
isShowTools: false,
|
|
|
askCount: 1,
|
|
|
- isFold: 1,
|
|
|
+ isFold: 2,
|
|
|
askTitle: "",
|
|
|
askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
checkJson: [{ checkCount: [], checkPerent: [] }],
|
|
@@ -13088,9 +13100,9 @@ ${message} 以及##补充参考资料和##参考资料 以文本格式输出项
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
- if (_this.infoData.length) {
|
|
|
- _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
|
|
|
- }
|
|
|
+ // if (_this.infoData.length) {
|
|
|
+ // _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
|
|
|
+ // }
|
|
|
_this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
|
|
|
_this.$forceUpdate();
|
|
|
}
|