|
@@ -393,7 +393,7 @@
|
|
|
<div class="add_info_box" style="margin: 0 0 0 auto">
|
|
|
<button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
|
|
|
上传补充资料
|
|
|
- <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
|
|
|
+ <input type="file" accept=".docx,.doc,.ppt,.pptx,.md,.txt" style="display: none" v-if="inputShow" @change="
|
|
|
beforeUploadInfo2(
|
|
|
$event,
|
|
|
13
|
|
@@ -677,13 +677,18 @@
|
|
|
<div class="task_outline">
|
|
|
<div class="outline_detail" v-loading="cpoteLoading.cpote1">
|
|
|
<textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入概念群"
|
|
|
- v-model="cpote.cpote1"></textarea>
|
|
|
+ v-model="cpote.cpote1" v-if="cpote.cpote1s"></textarea>
|
|
|
+ <div class="markBox" v-html="MarkdownT(cpote.cpote1)" v-else></div>
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
- <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote1')"
|
|
|
+ <div style="display: flex;">
|
|
|
+ <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
+ <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote1')"
|
|
|
@click="openAiDialog(2, 'aiCpote1')">智能优化</div>
|
|
|
- </el-tooltip>
|
|
|
+ </el-tooltip>
|
|
|
+ <div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote1s')">{{
|
|
|
+ cpote.cpote1s ? '确定' : '编辑'}}</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -697,13 +702,18 @@
|
|
|
<div class="task_outline">
|
|
|
<div class="outline_detail" v-loading="cpoteLoading.cpote2">
|
|
|
<textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入问题链"
|
|
|
- v-model="cpote.cpote2"></textarea>
|
|
|
+ v-model="cpote.cpote2" v-if="cpote.cpote2s"></textarea>
|
|
|
+ <div class="markBox" v-html="MarkdownT(cpote.cpote2)" v-else></div>
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
- <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote2')"
|
|
|
- @click="openAiDialog(2, 'aiCpote2')">智能优化</div>
|
|
|
- </el-tooltip>
|
|
|
+ <div style="display: flex;">
|
|
|
+ <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
+ <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote2')"
|
|
|
+ @click="openAiDialog(2, 'aiCpote1')">智能优化</div>
|
|
|
+ </el-tooltip>
|
|
|
+ <div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote2s')">{{
|
|
|
+ cpote.cpote2s ? '确定' : '编辑'}}</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -717,13 +727,18 @@
|
|
|
<div class="task_outline">
|
|
|
<div class="outline_detail" v-loading="cpoteLoading.cpote3">
|
|
|
<textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入目标层"
|
|
|
- v-model="cpote.cpote3"></textarea>
|
|
|
+ v-model="cpote.cpote3" v-if="cpote.cpote3s"></textarea>
|
|
|
+ <div class="markBox" v-html="MarkdownT(cpote.cpote3)" v-else></div>
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
- <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote3')"
|
|
|
+ <div style="display: flex;">
|
|
|
+ <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
+ <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote3')"
|
|
|
@click="openAiDialog(2, 'aiCpote3')">智能优化</div>
|
|
|
- </el-tooltip>
|
|
|
+ </el-tooltip>
|
|
|
+ <div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote3s')">{{
|
|
|
+ cpote.cpote3s ? '确定' : '编辑'}}</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -737,13 +752,18 @@
|
|
|
<div class="task_outline">
|
|
|
<div class="outline_detail" v-loading="cpoteLoading.cpote4">
|
|
|
<textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入任务簇"
|
|
|
- v-model="cpote.cpote4"></textarea>
|
|
|
+ v-model="cpote.cpote4" v-if="cpote.cpote4s"></textarea>
|
|
|
+ <div class="markBox" v-html="MarkdownT(cpote.cpote4)" v-else></div>
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
- <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote4')"
|
|
|
+ <div style="display: flex;">
|
|
|
+ <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
+ <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote4')"
|
|
|
@click="openAiDialog(2, 'aiCpote4')">智能优化</div>
|
|
|
- </el-tooltip>
|
|
|
+ </el-tooltip>
|
|
|
+ <div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote4s')">{{
|
|
|
+ cpote.cpote4s ? '确定' : '编辑'}}</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1498,9 +1518,9 @@
|
|
|
<button class="c_pub_button_add pub_btn_add_img" @click="createTeacherAn(0)">
|
|
|
AI生成教案
|
|
|
</button>
|
|
|
- <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openAiCreateVideo(0)">
|
|
|
+ <button class="c_pub_button_add pub_btn_add_img" @click="openAiCreateVideo(0)">
|
|
|
AI生成视频
|
|
|
- </button> -->
|
|
|
+ </button>
|
|
|
</div>
|
|
|
<div v-if="
|
|
|
unitJson[unitIndex].chapterInfo[0].taskJson[
|
|
@@ -5219,7 +5239,7 @@
|
|
|
<tipsDialog :dialogVisibleTips.sync="dialogVisibleTips" :tipsJson.sync="tipsJson" :aiJson="aiJson" :userid="userid"
|
|
|
@retrunCourse="retrunCourse" :templateid="templateid"></tipsDialog>
|
|
|
<aiCreateDialog :dialogVisibleAiCreate.sync="dialogVisibleAiCreate" :courseName="courseName" @createAiPpt="createAiPpt" :infoData="infoData"></aiCreateDialog>
|
|
|
- <aiCreateVideoDialog :dialogVisibleAiCreateVideo.sync="dialogVisibleAiCreateVideo" :courseName="courseName"></aiCreateVideoDialog>
|
|
|
+ <aiCreateVideoDialog :dialogVisibleAiCreateVideo.sync="dialogVisibleAiCreateVideo" :courseName="courseName" @createAiVideo="createAiVideo"></aiCreateVideoDialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -6859,6 +6879,10 @@ export default {
|
|
|
openAiCreateVideo(){
|
|
|
this.dialogVisibleAiCreateVideo = true;
|
|
|
},
|
|
|
+ createAiVideo(json){
|
|
|
+ this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push(json);
|
|
|
+ this.dialogVisibleAiCreateVideo = false;
|
|
|
+ },
|
|
|
createTeacherAn(){
|
|
|
this.loading = true
|
|
|
let md = new MarkdownIt();
|
|
@@ -7566,6 +7590,22 @@ export default {
|
|
|
|
|
|
var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
|
|
|
var _this = this;
|
|
|
+ var xianObj = ['DOCX','DOC','PPT','PPTX','MD','TXT']
|
|
|
+ if (
|
|
|
+ xianObj.indexOf(
|
|
|
+ file.name
|
|
|
+ .split(".")
|
|
|
+ [file.name.split(".").length - 1].toLocaleUpperCase()
|
|
|
+ ) == -1
|
|
|
+ ) {
|
|
|
+ this.$message.error("请上传.doc,.docx,.ppt,.pptx,.md,.txt文件!");
|
|
|
+ this.inputShow = true;
|
|
|
+ // var a = _this.$refs.upload1.uploadFiles;
|
|
|
+ // a.splice(a.length - 1, a.length);
|
|
|
+ // loading.close();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
if (type == 3) {
|
|
|
var b = [
|
|
|
"DOC",
|
|
@@ -7613,6 +7653,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
this.inputShow = false;
|
|
|
_this.infoprogress = 0;
|
|
|
_this.infoproVisible = true;
|
|
@@ -10964,11 +11005,17 @@ export default {
|
|
|
.then((res) => {
|
|
|
let _unitJson = JSON.parse(res.data[0][0].chapters);
|
|
|
let fileInfo = []
|
|
|
+ var xianObj = ['DOCX','DOC','PPT','PPTX','MD','TXT']
|
|
|
+
|
|
|
for(var i = 0; i < _unitJson.length; i++){
|
|
|
let tasks = _unitJson[i].chapterInfo[0].taskJson
|
|
|
for(var j = 0; j < tasks.length; j++){
|
|
|
- if(tasks[j].chapterData.length){
|
|
|
- fileInfo = [...fileInfo, ...tasks[j].chapterData]
|
|
|
+ let _infoData = tasks[j].chapterData.filter(el => {
|
|
|
+ return xianObj.indexOf(el.url.split(".")[el.url.split(".").length - 1].toLocaleUpperCase()) != -1
|
|
|
+ })
|
|
|
+
|
|
|
+ if(_infoData.length){
|
|
|
+ fileInfo = [...fileInfo, ..._infoData]
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -12890,6 +12937,14 @@ export default {
|
|
|
}
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
+ editCpote(index){
|
|
|
+ if(this.cpote[index]){
|
|
|
+ this.cpote[index] = false
|
|
|
+ }else {
|
|
|
+ this.cpote[index] = true
|
|
|
+ }
|
|
|
+ this.$forceUpdate();
|
|
|
+ },
|
|
|
openAiDialog(clickType, type, callback, index, tindex) {
|
|
|
if (this.courseName == "") {
|
|
|
this.$message.error("请补充填写课程名称");
|