|
@@ -2640,6 +2640,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div>
|
|
|
+ <div @click="goToTask(unitJson[unitIndex].chapterInfo[0].taskJson.length)"
|
|
|
+ class="navTask" :class="{ isNavTask: isClickColor == unitJson[unitIndex].chapterInfo[0].taskJson.length + 1 }">
|
|
|
+ <div class="nt_taskBox" style="padding: 0 0 0 45px;">
|
|
|
+ <div class="nt_taskTitle">附件区</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="navBottom" v-if="courseState == 1">
|
|
|
<div v-for="(stage, stageIndex) in unitJson" :key="stageIndex" class="stageBox" :class="{
|
|
@@ -5686,15 +5694,15 @@
|
|
|
添加任务
|
|
|
</button>
|
|
|
</div>
|
|
|
- <div class="appendixBox whiteBg" style="background: #fff; margin: 0 0 10px;"
|
|
|
+ <div class="appendixBox whiteBg taskBorder" style="background: #fff; margin: 10px 0 10px;"
|
|
|
:style="{ paddingBottom: appendixPan ? '10px' : '0px' }" v-if="(appendixTaskCheck != 'all' || appendixTypeCheck != 'all') || allFile().length" v-loading="appendixLoading" element-loading-text="小可正在努力生成中,请稍等...">
|
|
|
- <div class="whiteBg" style="border-radius: 0; margin-top: 10px">
|
|
|
- <div class="appendix_info_title" style="margin: 0 20px 0 20px;position:relative;">
|
|
|
+ <div class="whiteBg" style="border-radius: 0; ">
|
|
|
+ <div class="appendix_info_title" style="margin: 0 20px 0 20px;position:relative; padding: 0 0 15px;">
|
|
|
<span>附件</span>
|
|
|
<button class="c_pub_button_confirm" style="margin: 0 0 0 auto;"
|
|
|
@click="appendixPan = !appendixPan">{{ appendixPan ? '折叠' : '展开' }}</button>
|
|
|
</div>
|
|
|
- <div style="width: 100%; padding: 0px 20px; box-sizing: border-box;"
|
|
|
+ <div style="width: 100%; box-sizing: border-box;"
|
|
|
v-show="appendixPan">
|
|
|
<div class="appendix_check_box">
|
|
|
<div class="appendix_check_task">
|
|
@@ -5918,7 +5926,7 @@
|
|
|
<aiBoxRight :languageSetting="languageSetting" :courseId="chatid" :unitJson="unitJson" :quoteArray="isQuote"
|
|
|
:teacherCourseText="teacherCourseText" :targetCourseText="targetCourseText" :courseText2="courseText"
|
|
|
:targetCourseText2="targetCourseText2" :cpote="cpote" @addCourseBehavior="addCourseBehavior"
|
|
|
- :fileids='[...knowFileids, ...knowFileids2]' @setIsQuote="setIsQuote"></aiBoxRight>
|
|
|
+ :fileids='[...knowFileids, ...knowFileids2]' @setIsQuote="setIsQuote" @addChatAppendixFile="addChatAppendixFile"></aiBoxRight>
|
|
|
</div>
|
|
|
<div class="close_btn" @click="closeRight" :class="!isDisplay ? 'close_btn_voice' : ''"
|
|
|
v-show="istemplate != 1 && isDialog == 1 && chatid">
|
|
@@ -10140,6 +10148,9 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
|
|
|
});
|
|
|
},
|
|
|
+ async addChatAppendixFile(name, html){
|
|
|
+ await this.generate(name, html, 0,"", 3)
|
|
|
+ },
|
|
|
beforeUploadHtml(event, index, callback, type) {
|
|
|
var file = event;
|
|
|
var credentials = {
|
|
@@ -10195,7 +10206,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
// }else {
|
|
|
_index = index
|
|
|
// }
|
|
|
- if(type != 2){
|
|
|
+ if(type != 2 && type != 3){
|
|
|
_this.unitJson[0].chapterInfo[0].taskJson[_index].chapterData.unshift({
|
|
|
name: file.name,
|
|
|
url: data.Location,
|
|
@@ -10211,12 +10222,21 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
fileName = `${baseName} (${count}).${extension}`; // 修改文件名
|
|
|
count++;
|
|
|
}
|
|
|
- _this.appendixFile.unshift({
|
|
|
- name: fileName,
|
|
|
- url: data.Location,
|
|
|
- type: 3,
|
|
|
- })
|
|
|
-
|
|
|
+ if(type == 3){
|
|
|
+ _this.$message.success('保存到附件成功')
|
|
|
+ _this.appendixFile.unshift({
|
|
|
+ name: fileName,
|
|
|
+ url: data.Location,
|
|
|
+ type: 3,
|
|
|
+ task: 'dialog'
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ _this.appendixFile.unshift({
|
|
|
+ name: fileName,
|
|
|
+ url: data.Location,
|
|
|
+ type: 3,
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
console.log(data.Location);
|