|
@@ -948,17 +948,19 @@
|
|
|
<button class="c_pub_button_return" @click="cancelInterSetting">取消</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <button class="c_pub_button_confirm" style="margin: 0 0 0 auto;" @click="interPan = !interPan">{{ interPan ? '折叠' : '展开'}}</button>
|
|
|
+ <button class="c_pub_button_confirm" style="margin: 0 0 0 auto;" @click="interPan = !interPan,forceUpdate2()">{{ interPan ? '折叠' : '展开'}}</button>
|
|
|
</div>
|
|
|
<div style="width: 100%; padding: 0px 20px; box-sizing: border-box;display:flex;">
|
|
|
<div class="inter_box" v-show="interPan">
|
|
|
- <iframe :src="interUrl" frameborder="0" v-if="interFlash" class="interIframe"></iframe>
|
|
|
+ <iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;" :src="interUrl" frameborder="0" v-if="interFlash && chatid" class="interIframe"></iframe>
|
|
|
</div>
|
|
|
<div style="width: calc(100%);height: 100%" class='op_task_box'>
|
|
|
<textarea style="height: 500px" class="binfo_input binfo_textarea" cols v-model="courseText"
|
|
|
- placeholder="请输入课程简要描述" v-if="courseTextB"></textarea>
|
|
|
- <div class="markBox vditor-reset" style="white-space:pre-wrap;height: 500px;overflow-y:auto" v-text="courseText" v-else-if="textLoading"></div>
|
|
|
- <div class="markBox vditor-reset" style="height: 500px;overflow-y:auto" v-html="MarkdownT(courseText)" v-else></div>
|
|
|
+ placeholder="请输入课程简要描述" v-if="courseTextB && interPan"></textarea>
|
|
|
+ <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText"
|
|
|
+ placeholder="请输入课程简要描述" v-else-if="courseTextB && !interPan"></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">
|
|
|
<div class="op_remark"></div>
|
|
|
<div style="display: flex;">
|
|
@@ -5405,8 +5407,8 @@
|
|
|
<aiTips ttitle="任务详情" title="任务评价优化" :detail="aiJson.aiDetail4" pan="aiDetail4" @setAiJson="setAiJson" />
|
|
|
<aiTips ttitle="任务详情" title="生成评价细则" :detail="aiJson.aiRateRule" pan="aiRateRule" @setAiJson="setAiJson"/>
|
|
|
</div>
|
|
|
- <div class="leftBar2" v-if="istemplate != 1 && templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'">
|
|
|
- <aiBoxRight :courseId="cid" :unitJson="unitJson"></aiBoxRight>
|
|
|
+ <div class="leftBar2" v-if="istemplate != 1 && templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2' && chatid">
|
|
|
+ <aiBoxRight :courseId="chatid" :unitJson="unitJson"></aiBoxRight>
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
|
|
@@ -7412,7 +7414,8 @@ export default {
|
|
|
interPan: true,
|
|
|
interFlash: true,
|
|
|
agentid: "",
|
|
|
- interSetting: false
|
|
|
+ interSetting: false,
|
|
|
+ chatid: ""
|
|
|
};
|
|
|
},
|
|
|
directives: {
|
|
@@ -7580,9 +7583,9 @@ export default {
|
|
|
let sagentid = this.aiJson.sagentid
|
|
|
let url = ''
|
|
|
if(sagentid){
|
|
|
- url = 'https://beta.cloud.cocorobo.cn/aigpt/#/js?muti_agent_id='+sagentid+'&isPbl=true'//+'&muti_agent_id2='+agentid
|
|
|
+ url = `https://beta.cloud.cocorobo.cn/aigpt/#/js?muti_agent_id=${agentid}&isPbl=true&session_id=${this.chatid}`//+'&muti_agent_id2='+agentid
|
|
|
}else{
|
|
|
- url = 'https://beta.cloud.cocorobo.cn/aigpt/#/js?muti_agent_id='+agentid+'&isPbl=true'//+'&muti_agent_id2='+agentid
|
|
|
+ url = `https://beta.cloud.cocorobo.cn/aigpt/#/js?muti_agent_id=${agentid}&isPbl=true&session_id=${this.chatid}`//+'&muti_agent_id2='+agentid
|
|
|
}
|
|
|
return url;
|
|
|
},
|
|
@@ -7739,6 +7742,16 @@ export default {
|
|
|
);
|
|
|
}
|
|
|
},
|
|
|
+ courseName(newVal, oldVal) {
|
|
|
+ this.setCourseInfo();
|
|
|
+ },
|
|
|
+ courseTypeId: {
|
|
|
+ immediate: true,
|
|
|
+ deep: true,
|
|
|
+ handler(newValue, oldValue) {
|
|
|
+ this.setCourseInfo();
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
@@ -11411,6 +11424,7 @@ export default {
|
|
|
isuseT: this.isuseT,
|
|
|
mode: this.mode,
|
|
|
targetCourseText2: this.targetCourseText2,
|
|
|
+ chatid: this.chatid,
|
|
|
}),
|
|
|
iresearch: this.isFileSearch ? 1 : 2,
|
|
|
},
|
|
@@ -11679,6 +11693,7 @@ export default {
|
|
|
isuseT: this.isuseT,
|
|
|
mode: this.mode,
|
|
|
targetCourseText2: this.targetCourseText2,
|
|
|
+ chatid: this.chatid,
|
|
|
}),
|
|
|
iresearch: this.isFileSearch ? 1 : 2,
|
|
|
},
|
|
@@ -13666,6 +13681,8 @@ export default {
|
|
|
}
|
|
|
console.log("这是新增课程");
|
|
|
this.selectAllType();
|
|
|
+ this.chatid = uuidv4();
|
|
|
+ this.courseTextB = false
|
|
|
} else {
|
|
|
this.isOutline = true
|
|
|
this.isOutline2 = true
|
|
@@ -13805,6 +13822,7 @@ export default {
|
|
|
this.isuseT = JSON.parse(res.data[0][0].setting).isuseT ? JSON.parse(res.data[0][0].setting).isuseT : JSON.parse(res.data[0][0].setting).isuseT === false ? false : 1;
|
|
|
this.mode = JSON.parse(res.data[0][0].setting).mode ? JSON.parse(res.data[0][0].setting).mode : 1;
|
|
|
this.targetCourseText2 = JSON.parse(res.data[0][0].setting).targetCourseText2 ? JSON.parse(res.data[0][0].setting).targetCourseText2 : '';
|
|
|
+ this.chatid = JSON.parse(res.data[0][0].setting).chatid ? JSON.parse(res.data[0][0].setting).chatid : uuidv4();
|
|
|
if(this.targetCourseText2 || (!this.teacherCourseText)){
|
|
|
this.courseTextBool = true
|
|
|
}
|
|
@@ -13953,6 +13971,7 @@ export default {
|
|
|
this.isuseT = JSON.parse(res.data[0][0].setting).isuseT ? JSON.parse(res.data[0][0].setting).isuseT : JSON.parse(res.data[0][0].setting).isuseT === false ? false : 1;
|
|
|
this.mode = JSON.parse(res.data[0][0].setting).mode ? JSON.parse(res.data[0][0].setting).mode : 1;
|
|
|
this.targetCourseText2 = JSON.parse(res.data[0][0].setting).targetCourseText2 ? JSON.parse(res.data[0][0].setting).targetCourseText2 : '';
|
|
|
+ this.chatid = JSON.parse(res.data[0][0].setting).chatid ? JSON.parse(res.data[0][0].setting).chatid : uuidv4();
|
|
|
if(this.targetCourseText2 || (!this.teacherCourseText)){
|
|
|
this.courseTextBool = true
|
|
|
}
|
|
@@ -15417,6 +15436,37 @@ export default {
|
|
|
iframe.contentWindow.work_area_text = ''
|
|
|
}
|
|
|
},
|
|
|
+ setCourseInfo(){
|
|
|
+ let courseInfo = ''
|
|
|
+ let sub = []
|
|
|
+ let mclass = []
|
|
|
+ if (this.courseTypeId.length) {
|
|
|
+ for (var i = 0; i < this.courseTypeId.length; i++) {
|
|
|
+ let _sid = this.courseTypeId[i]
|
|
|
+ for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
|
|
|
+ if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
|
|
|
+ sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
|
|
|
+ if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
|
|
|
+ mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(this.courseName){
|
|
|
+ courseInfo = `课程名称:${this.courseName} `
|
|
|
+ }
|
|
|
+ if(mclass.length){
|
|
|
+ courseInfo += `年级:${mclass.join(',')} `
|
|
|
+ }
|
|
|
+ if(sub.length){
|
|
|
+ courseInfo += `学科:${sub.join(',')} `
|
|
|
+ }
|
|
|
+ console.log(courseInfo)
|
|
|
+ window.course_info = courseInfo
|
|
|
+ },
|
|
|
setCover() {
|
|
|
var _this = this;
|
|
|
if(_this.cover.length){
|