|
@@ -3704,7 +3704,15 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="leftBar" v-if="promptShow">
|
|
<div class="leftBar" v-if="promptShow">
|
|
- <aiTips title="课程描述优化" :detail="aiJson.aiDetail" />
|
|
|
|
|
|
+ <aiTips ttitle="基础资料" title="课程描述优化" :detail="aiJson.aiDetail" pan="aiDetail" @setAiJson="setAiJson"/>
|
|
|
|
+ <aiTips ttitle="基础资料" title="生成大纲按钮" :detail="aiJson.aiOutline" pan="aiOutline" @setAiJson="setAiJson"/>
|
|
|
|
+ <aiTips ttitle="课程大纲" title="大纲描述优化" :detail="aiJson.aiDetail1" pan="aiDetail1" @setAiJson="setAiJson"/>
|
|
|
|
+ <aiTips ttitle="课程大纲" title="生成教案按钮" :detail="aiJson.aiTeacher" pan="aiTeacher" @setAiJson="setAiJson"/>
|
|
|
|
+ <aiTips ttitle="生成教案" title="教案描述优化" :detail="aiJson.teacherDetail" pan="teacherDetail" @setAiJson="setAiJson"/>
|
|
|
|
+ <aiTips ttitle="生成教案" title="生成任务按钮" :detail="aiJson.aiTask" pan="aiTask" @setAiJson="setAiJson"/>
|
|
|
|
+ <aiTips ttitle="任务详情" title="任务描述优化" :detail="aiJson.aiDetail2" pan="aiDetail2" @setAiJson="setAiJson"/>
|
|
|
|
+ <aiTips ttitle="任务详情" title="工具描述优化" :detail="aiJson.aiDetail3" pan="aiDetail3" @setAiJson="setAiJson"/>
|
|
|
|
+ <aiTips ttitle="任务详情" title="任务评价优化" :detail="aiJson.aiDetail3" pan="aiDetail3" @setAiJson="setAiJson"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
|
|
<el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
|
|
@@ -5411,7 +5419,8 @@ export default {
|
|
aiCallBack: "",
|
|
aiCallBack: "",
|
|
aiIndex: "",
|
|
aiIndex: "",
|
|
clickType: 1,
|
|
clickType: 1,
|
|
- promptShow: false
|
|
|
|
|
|
+ promptShow: true,
|
|
|
|
+ templateid: this.$route.query.templateid != undefined ? this.$route.query.templateid : ""
|
|
};
|
|
};
|
|
},
|
|
},
|
|
directives: {
|
|
directives: {
|
|
@@ -5615,6 +5624,7 @@ export default {
|
|
// type: "success",
|
|
// type: "success",
|
|
// });
|
|
// });
|
|
// this.courseId = this.cid;
|
|
// this.courseId = this.cid;
|
|
|
|
+ this.addtips()
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
this.$message.error("网络不佳");
|
|
this.$message.error("网络不佳");
|
|
@@ -6313,6 +6323,23 @@ export default {
|
|
console.error(err);
|
|
console.error(err);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ addtips(){
|
|
|
|
+ let params = [
|
|
|
|
+ {
|
|
|
|
+ cid: this.cid,
|
|
|
|
+ tips: JSON.stringify(this.aiJson),
|
|
|
|
+ tid: this.templateid
|
|
|
|
+ },
|
|
|
|
+ ];
|
|
|
|
+ this.ajax
|
|
|
|
+ .post(this.$store.state.api + "addTips", params)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {
|
|
|
|
+ this.$message.error("网络不佳");
|
|
|
|
+ console.error(err);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
time() {
|
|
time() {
|
|
if (!this.now) {
|
|
if (!this.now) {
|
|
this.now = new Date().getTime();
|
|
this.now = new Date().getTime();
|
|
@@ -8184,6 +8211,7 @@ export default {
|
|
this.courseUserid = this.userid;
|
|
this.courseUserid = this.userid;
|
|
this.islogin = true;
|
|
this.islogin = true;
|
|
this.updateCourseState(4);
|
|
this.updateCourseState(4);
|
|
|
|
+ this.addtips()
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
this.$message.error("网络不佳");
|
|
this.$message.error("网络不佳");
|
|
@@ -8257,6 +8285,7 @@ export default {
|
|
type: "success",
|
|
type: "success",
|
|
});
|
|
});
|
|
this.courseId = this.cid;
|
|
this.courseId = this.cid;
|
|
|
|
+ this.addtips();
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
this.$message.error("网络不佳");
|
|
this.$message.error("网络不佳");
|
|
@@ -8327,6 +8356,7 @@ export default {
|
|
// type: "success",
|
|
// type: "success",
|
|
// });
|
|
// });
|
|
this.courseId = this.cid;
|
|
this.courseId = this.cid;
|
|
|
|
+ this.addtips()
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
this.$message.error("网络不佳");
|
|
this.$message.error("网络不佳");
|
|
@@ -8427,6 +8457,7 @@ export default {
|
|
}
|
|
}
|
|
this.number = this.nbOrder;
|
|
this.number = this.nbOrder;
|
|
this.courseId = this.cid;
|
|
this.courseId = this.cid;
|
|
|
|
+ this.addtips()
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
this.$message.error("网络不佳");
|
|
this.$message.error("网络不佳");
|
|
@@ -10431,7 +10462,13 @@ export default {
|
|
if (this.timer) clearTimeout(this.timer);
|
|
if (this.timer) clearTimeout(this.timer);
|
|
this.timer = null;
|
|
this.timer = null;
|
|
// this.timer = setInterval(() => {
|
|
// this.timer = setInterval(() => {
|
|
-
|
|
|
|
|
|
+ if(res.data[3].length){
|
|
|
|
+ try {
|
|
|
|
+ this.aiJson = JSON.parse(res.data[3][0].tips);
|
|
|
|
+ }catch(error){
|
|
|
|
+ console.error(error)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.seleteCourseUpdate();
|
|
this.seleteCourseUpdate();
|
|
this.setMan();
|
|
this.setMan();
|
|
this.selectAllType();
|
|
this.selectAllType();
|
|
@@ -12272,6 +12309,10 @@ export default {
|
|
console.error(err);
|
|
console.error(err);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ setAiJson(pan,string){
|
|
|
|
+ this.aiJson[pan] = string
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
+ },
|
|
openAiDialog(clickType, type, callback, index, tindex) {
|
|
openAiDialog(clickType, type, callback, index, tindex) {
|
|
this.clickType = clickType
|
|
this.clickType = clickType
|
|
let sub = []
|
|
let sub = []
|
|
@@ -12587,6 +12628,7 @@ ${_text}
|
|
this.isOutline2 = true
|
|
this.isOutline2 = true
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ this.setAiJson(this.aitype, msg)
|
|
},
|
|
},
|
|
detailYou(message) {
|
|
detailYou(message) {
|
|
this.textLoading = true
|
|
this.textLoading = true
|