|
@@ -13812,7 +13812,7 @@ ${this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '## 目标层\n'+t
|
|
|
|
|
|
|
|
|
## Format example
|
|
|
-[{"task": "任务名称1","detail": "教案输出为文本格式就行"},{"task": "任务名称2","detail": "教案输出为文本格式就行"}]`
|
|
|
+[{"task": "任务名称1","detail": "教案输出为文本或markdown格式就行"},{"task": "任务名称2","detail": "教案输出为文本或markdown格式就行"}]`
|
|
|
this.aiGet4(message, () => {
|
|
|
this.loading = false
|
|
|
this.isOutline2 = true
|
|
@@ -14797,48 +14797,13 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[task].taskDetail3.replaceAll('#','')
|
|
|
_this.loading = false
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- _this.teacherText = JSON.parse(JSON.stringify(dArray))
|
|
|
- if (_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5") {
|
|
|
- _this.unitJson[0].chapterInfo[0].taskJson = []
|
|
|
- for (var i = 0; i < dArray.length; i++) {
|
|
|
- let _task = dArray[i]
|
|
|
- _this.unitJson[0].chapterInfo[0].taskJson.push({
|
|
|
- task: _task.task,
|
|
|
- taskDetail: "",
|
|
|
- taskDetail2: "",
|
|
|
- taskDetail3: _task.detail,
|
|
|
- chapterData: [],
|
|
|
- toolText: "",
|
|
|
- toolChoose: [
|
|
|
- {
|
|
|
- tool: [],
|
|
|
- toolDetail: "",
|
|
|
- toolType: 0,
|
|
|
- askCount: 1,
|
|
|
- askTitle: "",
|
|
|
- askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
- },
|
|
|
- ],
|
|
|
- isShowTools: false,
|
|
|
- askCount: 1,
|
|
|
- isFold: 2,
|
|
|
- askTitle: "",
|
|
|
- askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
- checkJson: [{ checkCount: [], checkPerent: [] }],
|
|
|
- homeworkList: [],
|
|
|
- })
|
|
|
- }
|
|
|
- _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
|
|
|
- _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
|
|
|
- _this.$forceUpdate();
|
|
|
- } else {
|
|
|
- for (var i = 0; i < dArray.length; i++) {
|
|
|
- let _task = dArray[i]
|
|
|
- if(_this.unitJson[0].chapterInfo[0].taskJson[i]){
|
|
|
- _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
|
|
|
- }else {
|
|
|
- _this.unitJson[0].chapterInfo[0].taskJson[i] = {
|
|
|
+ try {
|
|
|
+ _this.teacherText = JSON.parse(JSON.stringify(dArray))
|
|
|
+ if (_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5") {
|
|
|
+ _this.unitJson[0].chapterInfo[0].taskJson = []
|
|
|
+ for (var i = 0; i < dArray.length; i++) {
|
|
|
+ let _task = dArray[i]
|
|
|
+ _this.unitJson[0].chapterInfo[0].taskJson.push({
|
|
|
task: _task.task,
|
|
|
taskDetail: "",
|
|
|
taskDetail2: "",
|
|
@@ -14862,12 +14827,52 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[task].taskDetail3.replaceAll('#','')
|
|
|
askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
checkJson: [{ checkCount: [], checkPerent: [] }],
|
|
|
homeworkList: [],
|
|
|
+ })
|
|
|
+ }
|
|
|
+ _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
|
|
|
+ _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
|
|
|
+ _this.$forceUpdate();
|
|
|
+ } else {
|
|
|
+ for (var i = 0; i < dArray.length; i++) {
|
|
|
+ let _task = dArray[i]
|
|
|
+ if(_this.unitJson[0].chapterInfo[0].taskJson[i]){
|
|
|
+ _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
|
|
|
+ }else {
|
|
|
+ _this.unitJson[0].chapterInfo[0].taskJson[i] = {
|
|
|
+ task: _task.task,
|
|
|
+ taskDetail: "",
|
|
|
+ taskDetail2: "",
|
|
|
+ taskDetail3: _task.detail,
|
|
|
+ chapterData: [],
|
|
|
+ toolText: "",
|
|
|
+ toolChoose: [
|
|
|
+ {
|
|
|
+ tool: [],
|
|
|
+ toolDetail: "",
|
|
|
+ toolType: 0,
|
|
|
+ askCount: 1,
|
|
|
+ askTitle: "",
|
|
|
+ askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ isShowTools: false,
|
|
|
+ askCount: 1,
|
|
|
+ isFold: 2,
|
|
|
+ askTitle: "",
|
|
|
+ askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
+ checkJson: [{ checkCount: [], checkPerent: [] }],
|
|
|
+ homeworkList: [],
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+ _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
|
|
|
+ _this.$forceUpdate();
|
|
|
}
|
|
|
- _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
|
|
|
- _this.$forceUpdate();
|
|
|
+ } catch (error) {
|
|
|
+ console.log("error_________________" + error);
|
|
|
+ _this.loading = false
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
callback ? callback() : ''
|
|
|
})
|