|
@@ -1439,7 +1439,7 @@
|
|
|
<div style="width: 100%; padding: 0px 20px; box-sizing: border-box">
|
|
|
<div style="width: calc(100%);" class='op_task_box'>
|
|
|
<textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText"
|
|
|
- placeholder="请输入课程简要描述" v-if="courseTextB"></textarea>
|
|
|
+ placeholder="请输入课程简要描述" v-if="courseTextB" @change="textAreaChange('courseText')"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="courseText" v-else-if="textLoading"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(courseText)" v-else></div>
|
|
|
<div class="op_box" :class="{op_box_isquote: isQuote['aiDetail']}">
|
|
@@ -1482,9 +1482,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="courseText"
|
|
|
- placeholder="请输入课程简要描述" v-if="courseTextB && interPan"></textarea>
|
|
|
+ placeholder="请输入课程简要描述" v-if="courseTextB && interPan" @change="textAreaChange('courseText')"></textarea>
|
|
|
<textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText"
|
|
|
- placeholder="请输入课程简要描述" v-else-if="courseTextB && !interPan"></textarea>
|
|
|
+ placeholder="请输入课程简要描述" v-else-if="courseTextB && !interPan" @change="textAreaChange('courseText')"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="courseText" :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(courseText)" v-else></div>
|
|
|
<div class="op_box" :class="{op_box_isquote: isQuote['aiDetail']}">
|
|
@@ -1661,7 +1661,7 @@
|
|
|
<div style="width: 100%; padding: 0px 20px; box-sizing: border-box">
|
|
|
<div style="width: calc(100%);" class='op_task_box'>
|
|
|
<textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="targetCourseText2"
|
|
|
- placeholder="请输入课程目标" v-if="targetCourseText2B"></textarea>
|
|
|
+ placeholder="请输入课程目标" v-if="targetCourseText2B" @change="textAreaChange('targetCourseText2')"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="targetCourseText2" v-else-if="targetTextLoading2"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(targetCourseText2)" v-else></div>
|
|
|
<div class="op_box" :class="{op_box_isquote: isQuote['aitargetTextDetail2']}">
|
|
@@ -1990,7 +1990,7 @@
|
|
|
<div class="outline_detail" :style="{ minHeight: taskDetailLoading.indexOf('task-' + index) !== -1 ? '250px' : 'auto'}" v-loading="taskDetailLoading.indexOf('task-' + index) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
|
|
|
<div div class="c_pub_button_confirm stopBtn" v-if="taskDetailLoading.indexOf('task-' + index) !== -1 && isOutlineTaskCancelToken[index]" @click="cancelAjax('outlineTask', index)">停止</div>
|
|
|
<textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols
|
|
|
- placeholder="请输入任务描述" v-model="item.taskDetail2" v-if="item.isTask2"></textarea>
|
|
|
+ placeholder="请输入任务描述" v-model="item.taskDetail2" v-if="item.isTask2" @change="textAreaChange('taskDetail2', index)"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="item.taskDetail2" v-else-if="ttaskDetailLoading.indexOf('task-' + index) !== -1"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(item.taskDetail2)" v-else></div>
|
|
|
<div class="op_box" :class="{op_box_isquote: isQuote['aiDetail1-'+index]}">
|
|
@@ -2155,7 +2155,7 @@
|
|
|
<div class="outline_detail" :style="{ minHeight: taskDetailLoading5.indexOf('task-' + index) !== -1 ? '250px' : 'auto'}" v-loading="taskDetailLoading5.indexOf('task-' + index) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
|
|
|
<div div class="c_pub_button_confirm stopBtn" v-if="taskDetailLoading5.indexOf('task-' + index) !== -1" @click="cancelAjax('teacherDetail2', index)">停止</div>
|
|
|
<textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入教案"
|
|
|
- v-model="item.taskDetail3" v-if="item.isTask3"></textarea>
|
|
|
+ v-model="item.taskDetail3" v-if="item.isTask3" @change="textAreaChange('taskDetail3', index)"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="item.taskDetail3" v-else-if="ttaskDetailLoading5.indexOf('task-' + index) !== -1"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(item.taskDetail3)" v-else></div>
|
|
|
<div class="op_box" :class="{op_box_isquote: isQuote['teacherDetail2-'+index]}">
|
|
@@ -9089,6 +9089,7 @@ export default {
|
|
|
this.$message.error("请补充填写课程名称");
|
|
|
return;
|
|
|
} else {
|
|
|
+ this.addCourseBehavior('courseBehavior', `点击确认上传按钮`)
|
|
|
this.addWork();
|
|
|
this.steps++;
|
|
|
}
|
|
@@ -9098,8 +9099,10 @@ export default {
|
|
|
return;
|
|
|
} else {
|
|
|
if (this.userid != this.courseUserid && this.role != "1") {
|
|
|
+ this.addCourseBehavior('courseBehavior', `点击确认上传按钮`)
|
|
|
this.updateWork2();
|
|
|
} else {
|
|
|
+ this.addCourseBehavior('courseBehavior', `点击确认上传按钮`)
|
|
|
this.updateWork();
|
|
|
}
|
|
|
this.steps++;
|
|
@@ -11800,8 +11803,10 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
return commonElements;
|
|
|
},
|
|
|
typeChange(){
|
|
|
+ let courseInfo = ``
|
|
|
let sub = []
|
|
|
let mclass = []
|
|
|
+ let theme = []
|
|
|
if (this.courseTypeId.length) {
|
|
|
for (var i = 0; i < this.courseTypeId.length; i++) {
|
|
|
let _sid = this.courseTypeId[i]
|
|
@@ -11815,6 +11820,11 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
|
|
|
}
|
|
|
}
|
|
|
+ for (var j = 0; j < this.CourseTypeJson['34629bcc-d02f-11ec-8c78-005056b86db5'].length; j++) {
|
|
|
+ if (_sid == this.CourseTypeJson['34629bcc-d02f-11ec-8c78-005056b86db5'][j].id) {
|
|
|
+ theme.push(this.CourseTypeJson['34629bcc-d02f-11ec-8c78-005056b86db5'][j].name)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
sub = JSON.parse(converter(JSON.stringify(sub)))
|
|
@@ -11884,7 +11894,16 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
this.knowFileids.push(_file.fileid)
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ if(mclass.length){
|
|
|
+ courseInfo += `年级:${mclass.join(',')} `
|
|
|
+ }
|
|
|
+ if(sub.length){
|
|
|
+ courseInfo += `学科:${sub.join(',')} `
|
|
|
+ }
|
|
|
+ if(theme.length){
|
|
|
+ courseInfo += `主题:${theme.join(',')} `
|
|
|
+ }
|
|
|
+ this.addCourseBehavior('courseBehavior', `点击选择分类-${courseInfo}`)
|
|
|
},
|
|
|
getChapterData(e, i, j, ic, type) {
|
|
|
e.stopPropagation();
|
|
@@ -16647,7 +16666,21 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
iframe.contentWindow.work_area_text = ''
|
|
|
}
|
|
|
},
|
|
|
- setCourseInfo(){
|
|
|
+ textAreaChange(type, index){
|
|
|
+ if(type == 'courseText'){
|
|
|
+ this.addCourseBehavior('courseBehavior', `手动修改课程概况信息-${this.courseText}`)
|
|
|
+ }
|
|
|
+ if(type == 'targetCourseText2'){
|
|
|
+ this.addCourseBehavior('courseBehavior', `手动修改课程目标信息-${this.targetCourseText2}`)
|
|
|
+ }
|
|
|
+ if(type == 'taskDetail2'){
|
|
|
+ this.addCourseBehavior('courseBehavior', `手动修改任务${index+1}课程大纲信息-${this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail2}`)
|
|
|
+ }
|
|
|
+ if(type == 'taskDetail3'){
|
|
|
+ this.addCourseBehavior('courseBehavior', `手动修改任务${index+1}课程教案信息-${this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3}`)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ setCourseInfo(type){
|
|
|
let courseInfo = ''
|
|
|
let sub = []
|
|
|
let mclass = []
|
|
@@ -16693,6 +16726,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
},
|
|
|
setCover($event, attempts = 0) {
|
|
|
var _this = this;
|
|
|
+ this.addCourseBehavior('courseBehavior', `修改课程名称-${this.courseName}`)
|
|
|
if (_this.cover.length || attempts >= 3) {
|
|
|
return;
|
|
|
}
|