|
|
@@ -28,7 +28,8 @@
|
|
|
<!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
|
|
|
<!-- @mouseenter="stepDisplay(true)"
|
|
|
@mouseleave="stepDisplay(false)" -->
|
|
|
- <div ref="stepBox" class="stepBox" :style="{overflow:istemplate == 1 ? 'auto' : 'auto'}" @scroll="scrollChange">
|
|
|
+ <div ref="stepBox" class="stepBox" :style="{overflow:istemplate == 1 ? 'auto' : 'auto', height: steps > 2 ? 'calc(100% - 75px)' : '100%'}" @scroll="scrollChange">
|
|
|
+ <!-- <button class="c_pub_button_confirm confirmBtn" :style="{ right: (isDialog == 1 && chatid && isDisplay) ? (newWidth + 65) + 'px' : '45px'}" v-if="steps > 2 && istemplate != 1" @click="nextSteps">确认上传</button> -->
|
|
|
<div class="stepBg" v-if="false">
|
|
|
<div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }">
|
|
|
<div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
|
|
|
@@ -469,59 +470,27 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="chapter_upload_n" :class="{dataTips: !item1.fileid}">
|
|
|
- <input readonly="true" v-if="
|
|
|
+ <div v-if="
|
|
|
item1.type == 2 ||
|
|
|
item1.type == 3 ||
|
|
|
item1.type == 12 ||
|
|
|
item1.type == 13 ||
|
|
|
item1.type == 7
|
|
|
- " :placeholder="item1.name" @click="
|
|
|
+ " @click="
|
|
|
updataVideoT(
|
|
|
$event,
|
|
|
unitIndex,
|
|
|
0,
|
|
|
index1
|
|
|
)
|
|
|
- " style="
|
|
|
- border: none;
|
|
|
- outline: none;
|
|
|
- max-width: 100%;
|
|
|
- z-index: 99;
|
|
|
- font-size: 14px;
|
|
|
- white-space: nowrap;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- " />
|
|
|
- <input :placeholder="item1.name" v-if="item1.type == 6" style="
|
|
|
- border: none;
|
|
|
- outline: none;
|
|
|
- max-width: 100%;
|
|
|
- white-space: nowrap;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- " readonly="true" @click="
|
|
|
+ " class="chapter_upload_box" >{{ item1.name }}</div>
|
|
|
+ <div v-if="item1.type == 6" class="chapter_upload_box" @click="
|
|
|
selectAttText(0, index1)
|
|
|
- " />
|
|
|
- <input :placeholder="item1.title ? item1.title : '链接'
|
|
|
- " v-if="item1.type == 8" style="
|
|
|
- border: none;
|
|
|
- outline: none;
|
|
|
- max-width: 100%;
|
|
|
- white-space: nowrap;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- " readonly="true" @click="selectLine(0, index1)" />
|
|
|
- <input :placeholder="item1.title ? item1.title : '链接'
|
|
|
- " v-if="item1.type == 14" style="
|
|
|
- border: none;
|
|
|
- outline: none;
|
|
|
- max-width: 100%;
|
|
|
- white-space: nowrap;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- " readonly="true" @click="
|
|
|
+ " >{{ item1.name }}</div>
|
|
|
+ <div v-if="item1.type == 8" class="chapter_upload_box" @click="selectLine(0, index1)" >{{ item1.title ? item1.title : '链接' }}</div>
|
|
|
+ <div v-if="item1.type == 14" class="chapter_upload_box" @click="
|
|
|
openUpdateSource(0, index1)
|
|
|
- " />
|
|
|
+ " >{{ item1.title ? item1.title : '链接' }}</div>
|
|
|
</div>
|
|
|
<div class="chapter_upload_ic">
|
|
|
<div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
|
|
|
@@ -1743,9 +1712,9 @@
|
|
|
</div>
|
|
|
<div style="width: calc(100%);height: 100%" class='op_task_box' :class="{inter_Detailbox: !courseTextB && interPan}">
|
|
|
<textarea style="height: 500px" class="binfo_input binfo_textarea" cols v-model="courseTextE"
|
|
|
- placeholder="请输入学习任务内容" v-if="courseTextB && interPan" @change="textAreaChange('courseText')"></textarea>
|
|
|
+ placeholder="请输入学习任务内容" v-if="courseTextB && interPan" @change="textAreaChange('courseTextE')"></textarea>
|
|
|
<textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseTextE"
|
|
|
- placeholder="请输入学习任务内容" v-else-if="courseTextB && !interPan" @change="textAreaChange('courseText')"></textarea>
|
|
|
+ placeholder="请输入学习任务内容" v-else-if="courseTextB && !interPan" @change="textAreaChange('courseTextE')"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="courseTextE" :style="{height: interPan ? '500px' : 'auto', overflowY:'auto'}" v-else-if="textLoading"></div>
|
|
|
<div class="markBox vditor-reset" :style="{height: interPan ? '500px' : 'auto', overflowY:'auto'}" v-html="MarkdownT(courseTextE)" v-else></div>
|
|
|
<div class="op_box" :class="{op_box_isquote: isQuote['courseTextE']}">
|
|
|
@@ -2374,7 +2343,7 @@
|
|
|
}">
|
|
|
<div class="rb_c_box">
|
|
|
<div class="rb_c_box_left" v-if="(steps == 3 || istemplate == 1)" :style="{width: stepShow ? '270px' : '0',minWidth: stepShow ? '270px' : '0',height: stepShow ? '100%' : '0',marginRight: stepShow ? '10px' : '0'}">
|
|
|
- <div class="rb_c_box_left stepsBottom2" :style="{width: stepShow ? '270px' : '0',minWidth: stepShow ? '270px' : '0',height: stepShow ? '100%' : '0',marginRight: stepShow ? '0' : '0'}">
|
|
|
+ <div class="rb_c_box_left stepsBottom2" :style="{width: stepShow ? '270px' : '0',minWidth: stepShow ? '270px' : '0',height: stepShow ? 'calc(100% - 120px)' : '0',marginRight: stepShow ? '0' : '0'}">
|
|
|
<div></div>
|
|
|
<div class="close_btn" @click="stepShow = !stepShow" :class="!stepShow ? 'close_btn_voice' : ''" style="left: 0;right: unset;top: 5px;transform: rotate(180deg);">
|
|
|
<img src="../../../assets/icon/course/arrow.svg" >
|
|
|
@@ -2385,7 +2354,7 @@
|
|
|
<!-- <span class="button-toggle" @click="stepShow = !stepShow">{{ stepShow ? '收缩' : '展开' }}</span> -->
|
|
|
</div>
|
|
|
<div class="stepsBottom" v-if="stepsNav == 1" :style="{
|
|
|
- height:istemplate == 1 ? 'calc(100vh - 300px)' : 'calc(100% - 55px)',
|
|
|
+ height:istemplate == 1 ? 'calc(100vh - 300px)' : 'calc(100% - 55px - 60px)',
|
|
|
position: istemplate == 1 ? 'sticky' : 'unset',
|
|
|
top: istemplate == 1 ? '0' : 'unset'
|
|
|
}">
|
|
|
@@ -2585,6 +2554,7 @@
|
|
|
<span>一键生成</span>
|
|
|
<div class="buttonBox">
|
|
|
<div @click="openAiDialog(2, 'aiTaskName'), addCourseBehavior('courseBehavior2', `点击学历案-生成所有任务名`)" v-if="panTaskName() == 0">生成所有任务名</div>
|
|
|
+ <div @click="openAiDialog2(2, 'aiTaskName'), addCourseBehavior('courseBehavior2', `点击学历案-生成所有任务名`)" v-else>重新生成所有任务名</div>
|
|
|
<div @click="openAiDialog2(2, 'aiTask3','all', ''), addCourseBehavior('courseBehavior2', `点击学历案-重新生成所有任务`)" v-if="panTaskName() > 0 && panTask() > 0">重新生成所有任务</div>
|
|
|
<div @click="openAiDialog(2, 'aiTask3','all', ''), addCourseBehavior('courseBehavior2', `点击学历案-生成所有任务按钮`)" v-else-if="panTaskName() > 0">生成所有任务</div>
|
|
|
<div @click="openAiDialog(2, 'aiTaskG2', 'all'), addCourseBehavior('courseBehavior2', `点击学历案-一键生成所有工具按钮`)" v-if="panTask() > 0 && panTool() == 0">一键生成所有工具</div>
|
|
|
@@ -2597,9 +2567,7 @@
|
|
|
<!-- <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="openAiDialog(2, 'aiTaskG2', 'all'), addCourseBehavior('courseBehavior2', `点击学历案-一键生成所有工具按钮`)" v-if="panTool() == 0">一键生成所有工具</button> -->
|
|
|
<!-- <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="allEvaCan(), addCourseBehavior('courseBehavior2', `点击学历案-一键生成所有评价按钮`)" v-if="panTool() > 0 && panTaskElist() == 0 && panEvaCont() == 0">一键生成所有评价</button> -->
|
|
|
<!-- <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="exportTaskEA(), addCourseBehavior('courseBehavior2', `点击学历案-导出评价和学历案按钮`)">导出评价和学历案</button> -->
|
|
|
- <button class="c_pub_button_confirm" style="margin: 0 0 0 10px;" v-if="steps < 4 && istemplate != 1" @click="nextSteps">
|
|
|
- {{ steps == 3 ? "确认上传" : "下一步" }}
|
|
|
- </button>
|
|
|
+ <button class="c_pub_button_confirm" style="margin: 0 0 0 10px;" v-if="steps < 4 && istemplate != 1" @click="nextSteps">确认上传</button>
|
|
|
</div>
|
|
|
<div class="basic_box" ref="unitBox" @scroll="taskScroll">
|
|
|
<div v-if="false" style="
|
|
|
@@ -5398,6 +5366,9 @@
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="info_btnBox3" v-show="steps > 2" style="width: calc(100% - 40px)">
|
|
|
+ <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">确认上传</button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="leftBar" style="height: calc(100% - 36px - 20px);margin-top: 36px;" v-if="istemplate == 1">
|
|
|
<!-- <aiTips ttitle="基础资料" title="提取摘要" :detail="aiJson.aiAbstract" pan="aiAbstract" @setAiJson="setAiJson" v-if="!yiKeTemplateArray.includes(templateid)"/> -->
|
|
|
@@ -5420,7 +5391,7 @@
|
|
|
@setAiJson="setAiJson" /> -->
|
|
|
<!-- <aiTips ttitle="生成教案" title="教案描述优化" :detail="aiJson.teacherDetail2" pan="teacherDetail2"
|
|
|
@setAiJson="setAiJson" /> -->
|
|
|
- <aiTips ttitle="生成教案" title="生成任务按钮" :detail="aiJson.aiTask" pan="aiTask" @setAiJson="setAiJson" />
|
|
|
+ <!-- <aiTips ttitle="生成教案" title="生成任务按钮" :detail="aiJson.aiTask" pan="aiTask" @setAiJson="setAiJson" /> -->
|
|
|
<aiTips ttitle="任务详情" title="生成任务" :detail="aiJson.aiTaskName" pan="aiTaskName" @setAiJson="setAiJson" />
|
|
|
<aiTips ttitle="任务详情" title="任务描述" :detail="aiJson.aiTaskG1" pan="aiTaskG1" @setAiJson="setAiJson" />
|
|
|
<aiTips ttitle="任务详情" title="工具列表" :detail="aiJson.aiTaskG2" pan="aiTaskG2" @setAiJson="setAiJson" />
|
|
|
@@ -7577,7 +7548,8 @@ export default {
|
|
|
course_info: "",
|
|
|
stepShow: true,
|
|
|
anLoading: [],
|
|
|
- heightPx: '100%'
|
|
|
+ heightPx: '100%',
|
|
|
+ newWidth: 350,
|
|
|
};
|
|
|
},
|
|
|
directives: {
|
|
|
@@ -11803,6 +11775,9 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(() => {
|
|
|
+ if(_this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData[ic].fileid && _this.knowFileids.indexOf(_this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData[ic].fileid) != -1){
|
|
|
+ _this.knowFileids.splice(_this.knowFileids.indexOf(_this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData[ic].fileid), 1)
|
|
|
+ }
|
|
|
_this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
|
|
|
ic,
|
|
|
1
|
|
|
@@ -14927,7 +14902,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(this.courseText){
|
|
|
+ if(this.courseText || this.courseTextE){
|
|
|
this.courseTextB = false
|
|
|
}
|
|
|
if(this.teacherCourseText){
|
|
|
@@ -16068,8 +16043,10 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
// if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
|
|
|
// this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
|
|
|
// } else {
|
|
|
- document.querySelectorAll(".basic_box")[0].scrollTop =
|
|
|
- document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
|
|
|
+ // document.querySelectorAll(".basic_box")[0].scrollTop =
|
|
|
+ // document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
|
|
|
+ document.querySelectorAll(".stepBox")[0].scrollTop =
|
|
|
+ $('.rightBox')[0].offsetHeight + document.querySelectorAll(".taskBorder")[i].offsetTop + 30;
|
|
|
this.isClickColor = i + 1;
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
|
|
|
// }
|
|
|
@@ -16550,16 +16527,21 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
if(confirm_next_step){
|
|
|
this.courseTextE += turndownService.turndown(confirm_next_step)
|
|
|
iframe.contentWindow.confirm_next_step = ''
|
|
|
+ this.courseTextB = false
|
|
|
}
|
|
|
if(work_area_text && work_area_text.aiContent){
|
|
|
this.courseTextE += turndownService.turndown(work_area_text.aiContent)
|
|
|
iframe.contentWindow.work_area_text = ''
|
|
|
+ this.courseTextB = false
|
|
|
}
|
|
|
},
|
|
|
textAreaChange(type, index){
|
|
|
if(type == 'courseText'){
|
|
|
this.addCourseBehavior('courseBehavior2', `手动修改课程概况信息-${this.courseText}`)
|
|
|
}
|
|
|
+ if(type == 'courseTextE'){
|
|
|
+ this.addCourseBehavior('courseBehavior2', `手动修改课程学习任务内容-${this.courseText}`)
|
|
|
+ }
|
|
|
if(type == 'targetCourseText2'){
|
|
|
this.addCourseBehavior('courseBehavior2', `手动修改课程目标信息-${this.targetCourseText2}`)
|
|
|
}
|
|
|
@@ -17622,7 +17604,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
let _fileid = await this.createFileid(this.infoData[i].url)
|
|
|
if(_fileid){
|
|
|
this.infoData[i].fileid = _fileid == 1 ? '' : _fileid
|
|
|
- _this.$forceUpdate();
|
|
|
+ this.$forceUpdate();
|
|
|
if(_fileid != 1){
|
|
|
fileid.push(_fileid)
|
|
|
}
|
|
|
@@ -17743,6 +17725,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
})
|
|
|
return;
|
|
|
}
|
|
|
+ this.$message.success("正在生成中...")
|
|
|
+
|
|
|
this.aitype = type
|
|
|
this.aiText = this.aiJson.aiTaskG1
|
|
|
this.aiText2 = this.aiJson.aiTaskG2
|
|
|
@@ -17760,6 +17744,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
this.$message.error("请生成学习任务后再生成任务");
|
|
|
return;
|
|
|
}
|
|
|
+ this.$message.success("正在生成中...")
|
|
|
+
|
|
|
this.aitype = type
|
|
|
this.aiText = this.aiJson.aiTaskName
|
|
|
this.aiCallBack = callback
|
|
|
@@ -17789,6 +17775,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
// });
|
|
|
// return;
|
|
|
// }
|
|
|
+ this.$message.success("正在生成中...")
|
|
|
+
|
|
|
this.aitype = type
|
|
|
this.aiText = this.aiJson.aiTaskG2
|
|
|
this.aiCallBack = callback
|
|
|
@@ -18335,6 +18323,7 @@ ${(this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || this.templateid
|
|
|
let _this = this
|
|
|
function processNext() {
|
|
|
if (ij < _this.unitJson[0].chapterInfo[0].taskJson.length) {
|
|
|
+ let _task = _this.unitJson[0].chapterInfo[0].taskJson[ij]
|
|
|
if(!_this.taskGLoading[ij][0]){
|
|
|
ij++;
|
|
|
processNext();
|
|
|
@@ -18351,6 +18340,7 @@ ${msg}
|
|
|
|
|
|
## 参考资料
|
|
|
学习任务内容:${_this.courseTextE}
|
|
|
+你所在的活动:教学活动${ij+1}:${_task.task} 活动描述:${_task.taskDetail}
|
|
|
|
|
|
# 输出格式与要求
|
|
|
任务描述(告诉学生他们需要做什么):
|
|
|
@@ -18376,6 +18366,8 @@ ${msg}
|
|
|
this.aiCallBack[1] ? this.aiCallBack[1]() : ''
|
|
|
|
|
|
}else{
|
|
|
+ let _task = _this.unitJson[0].chapterInfo[0].taskJson[this.aiCallBack[0]]
|
|
|
+
|
|
|
let message1 = `NOTICE
|
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
|
Language: ${this.getLang()}
|
|
|
@@ -18387,6 +18379,7 @@ ${msg}
|
|
|
|
|
|
## 参考资料
|
|
|
学习任务内容:${this.courseTextE}
|
|
|
+你所在的活动:教学活动${this.aiCallBack[0]+1}:${_task.task} 活动描述:${_task.taskDetail}
|
|
|
|
|
|
# 输出格式与要求
|
|
|
任务描述(告诉学生他们需要做什么):
|
|
|
@@ -18451,6 +18444,8 @@ ${msg3}
|
|
|
let _this = this
|
|
|
function processNext() {
|
|
|
if (ij < _this.unitJson[0].chapterInfo[0].taskJson.length) {
|
|
|
+ let _task = _this.unitJson[0].chapterInfo[0].taskJson[ij]
|
|
|
+
|
|
|
if(!_this.taskGLoading[ij][1]){
|
|
|
_this.taskGLoading[ij][1] = false
|
|
|
ij++;
|
|
|
@@ -18470,6 +18465,7 @@ ${msg2}
|
|
|
|
|
|
## 参考资料
|
|
|
学习任务内容:${_this.courseTextE}
|
|
|
+你所在的活动:教学活动${ij+1}:${_task.task} 活动描述:${_task.taskDetail}
|
|
|
|
|
|
# 输出格式与要求
|
|
|
互动工具列表
|
|
|
@@ -18499,7 +18495,7 @@ ${_this.languageSetting == 2 ? '还有以下工具:Mind Map Tool、Spreadsheet
|
|
|
|
|
|
|
|
|
}else{
|
|
|
-
|
|
|
+ let _task = _this.unitJson[0].chapterInfo[0].taskJson[this.aiCallBack]
|
|
|
let message2 = `NOTICE
|
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
|
Language: ${this.getLang()}
|
|
|
@@ -18513,6 +18509,7 @@ ${msg2}
|
|
|
|
|
|
## 参考资料
|
|
|
学习任务内容:${this.courseTextE}
|
|
|
+你所在的活动:教学活动${this.aiCallBack+1}:${_task.task} 活动描述:${_task.taskDetail}
|
|
|
|
|
|
# 输出格式与要求
|
|
|
互动工具列表
|
|
|
@@ -18556,7 +18553,7 @@ ${msg}
|
|
|
学习任务内容:${this.courseTextE}
|
|
|
|
|
|
# Format example
|
|
|
-[{"task": "任务1的名字"}, {"task": "任务2的名字"}, {"task": "任务3的名字"}, {"task": "任务n的名字"}]`
|
|
|
+[{"task":"活动名/任务名/环节名","taskDetail":"活动描述/任务描述/环节描述"},{"task":"活动名/任务名/环节名","taskDetail":"活动描述/任务描述/环节描述"},{"task":"活动名/任务名/环节名","taskDetail":"活动描述/任务描述/环节描述"},{"task":"活动名/任务名/环节名","taskDetail":"活动描述/任务描述/环节描述"}]`
|
|
|
this.loading = true
|
|
|
this.aiGetTaskName(message, this.aiCallBack)
|
|
|
} else if (this.aitype == "aiDetail1") {
|
|
|
@@ -20359,16 +20356,20 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
|
|
|
|
|
|
for(var i = 0; i < _this.unitJson[0].chapterInfo[0].taskJson.length; i++){
|
|
|
_this.unitJson[0].chapterInfo[0].taskJson[i].task = ""
|
|
|
+ _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = ""
|
|
|
}
|
|
|
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].task = _task.task.replaceAll('任务'+(i+1),'').replaceAll('任务'+_this.numberToChinese(i+1),'').replaceAll(':','').replaceAll(':','')
|
|
|
+ _this.unitJson[0].chapterInfo[0].taskJson[i].task = _task.task
|
|
|
+ _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.taskDetail
|
|
|
+ // .replaceAll('任务'+(i+1),'').replaceAll('任务'+_this.numberToChinese(i+1),'').replaceAll(':','').replaceAll(':','')
|
|
|
_this.unitJson[0].chapterInfo[0].taskJson[i].isFold = 0
|
|
|
}else {
|
|
|
_this.unitJson[0].chapterInfo[0].taskJson.push({
|
|
|
- task: _task.task.replaceAll('任务'+(i+1),'').replaceAll('任务'+_this.numberToChinese(i+1),'').replaceAll(':','').replaceAll(':',''),
|
|
|
- taskDetail: "",
|
|
|
+ task: _task.task,
|
|
|
+ // .replaceAll('任务'+(i+1),'').replaceAll('任务'+_this.numberToChinese(i+1),'').replaceAll(':','').replaceAll(':',''),
|
|
|
+ taskDetail: _task.taskDetail,
|
|
|
taskDetail2: "",
|
|
|
taskDetail3: "",
|
|
|
chapterData: [],
|
|
|
@@ -20629,7 +20630,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
|
|
|
return el
|
|
|
})
|
|
|
_this.unitJson[0].chapterInfo[0].taskJson[index].eList = _task.elist
|
|
|
- _this.unitJson[0].chapterInfo[0].taskJson[index].chapterData = []
|
|
|
+ // _this.unitJson[0].chapterInfo[0].taskJson[index].chapterData = []
|
|
|
if(!_task.toolChoose || (_task.detail && _task.detail.length < 20) || !_task.detail){
|
|
|
console.log("error_________________JSON不对重新生成");
|
|
|
_this.$message.error('哎呀,网络波动了...小可正在为您重新生成中...')
|
|
|
@@ -20753,7 +20754,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
|
|
|
}
|
|
|
console.log(data.message);
|
|
|
_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail = tArray.detail
|
|
|
- _this.unitJson[0].chapterInfo[0].taskJson[index].chapterData = []
|
|
|
+ // _this.unitJson[0].chapterInfo[0].taskJson[index].chapterData = []
|
|
|
// _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
|
|
|
_this.$forceUpdate();
|
|
|
_this.createTeacherAn(index);
|
|
|
@@ -20866,7 +20867,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
|
|
|
this.isTaskCancelSource1[index].close();
|
|
|
this.isTaskCancelSource1[index] = null;
|
|
|
this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail = _mdText;
|
|
|
- this.unitJson[0].chapterInfo[0].taskJson[index].chapterData = []
|
|
|
+ // this.unitJson[0].chapterInfo[0].taskJson[index].chapterData = []
|
|
|
// this.createTeacherAn(index);
|
|
|
this.taskGLoading[index][0] = false
|
|
|
this.ttaskGLoading[index][0] = false
|
|
|
@@ -25284,6 +25285,7 @@ ${msg}
|
|
|
const newWidth = startWidth + dx;
|
|
|
if (newWidth >= 350 && newWidth <= maxWidth) {
|
|
|
resizable.style.minWidth = `${newWidth}px`;
|
|
|
+ this.newWidth = newWidth;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -25310,6 +25312,7 @@ ${msg}
|
|
|
const newWidth = startWidth + dx;
|
|
|
if (newWidth >= 350 && newWidth <= maxWidth2) {
|
|
|
resizable.style.minWidth = `${newWidth}px`;
|
|
|
+ this.newWidth = newWidth;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -25343,6 +25346,7 @@ ${msg}
|
|
|
// this.selectType();
|
|
|
this.selectEva();
|
|
|
if(this.istemplate == 1){
|
|
|
+ this.steps = 3
|
|
|
this.isOutline = true
|
|
|
this.isOutline2 = true
|
|
|
this.courseTextBool = true
|
|
|
@@ -26553,6 +26557,8 @@ ${msg}
|
|
|
margin: 0 15px 0px auto;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+ min-width: 175px;
|
|
|
+ justify-content: flex-end;
|
|
|
}
|
|
|
|
|
|
.chapter_upload_ic_l {
|
|
|
@@ -26619,13 +26625,25 @@ ${msg}
|
|
|
text-overflow: ellipsis;
|
|
|
white-space: nowrap;
|
|
|
overflow: hidden;
|
|
|
- width: 55%;
|
|
|
+ width: 100%;
|
|
|
margin-left: 10px;
|
|
|
cursor: pointer;
|
|
|
margin-top: 2px;
|
|
|
align-items: center;
|
|
|
}
|
|
|
|
|
|
+.chapter_upload_n > .chapter_upload_box{
|
|
|
+ border: none;
|
|
|
+ outline: none;
|
|
|
+ max-width: 100%;
|
|
|
+ z-index: 99;
|
|
|
+ font-size: 14px;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ color: #757575;
|
|
|
+}
|
|
|
+
|
|
|
.chapter_upload_l_i2,
|
|
|
.chapter_upload_l_i3,
|
|
|
.chapter_upload_l_i8,
|
|
|
@@ -30123,4 +30141,15 @@ ol {
|
|
|
font-size: 13px;
|
|
|
color: #898989;
|
|
|
}
|
|
|
+
|
|
|
+.stepBox {
|
|
|
+ position: relative; /* 确保子元素可以绝对定位 */
|
|
|
+}
|
|
|
+
|
|
|
+.confirmBtn{
|
|
|
+ z-index: 1000;
|
|
|
+ position: fixed;
|
|
|
+ /* right: 45px; */
|
|
|
+ bottom: 20px;
|
|
|
+}
|
|
|
</style>
|