|
@@ -180,7 +180,7 @@
|
|
<!-- <el-switch v-model="isuseT" active-text="是否从已有教案生成"
|
|
<!-- <el-switch v-model="isuseT" active-text="是否从已有教案生成"
|
|
style="justify-content: center; min-width: 175px"></el-switch> -->
|
|
style="justify-content: center; min-width: 175px"></el-switch> -->
|
|
<span>生成模式:</span>
|
|
<span>生成模式:</span>
|
|
- <el-radio-group v-model="isuseT" style="display: flex; align-items: center">
|
|
|
|
|
|
+ <el-radio-group v-model="isuseT" style="display: flex; align-items: center" @change="changeIsuseT">
|
|
<div class="all_choose info_radio">
|
|
<div class="all_choose info_radio">
|
|
<el-radio :label="1">引导模式生成</el-radio>
|
|
<el-radio :label="1">引导模式生成</el-radio>
|
|
</div>
|
|
</div>
|
|
@@ -954,7 +954,7 @@
|
|
<div class="inter_box" v-show="interPan">
|
|
<div class="inter_box" v-show="interPan">
|
|
<iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;" :src="interUrl" frameborder="0" v-if="interFlash && chatid" 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>
|
|
- <div style="width: calc(100%);height: 100%" class='op_task_box'>
|
|
|
|
|
|
+ <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"
|
|
<textarea style="height: 500px" class="binfo_input binfo_textarea" cols v-model="courseText"
|
|
placeholder="请输入课程简要描述" v-if="courseTextB && interPan"></textarea>
|
|
placeholder="请输入课程简要描述" v-if="courseTextB && interPan"></textarea>
|
|
<textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText"
|
|
<textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText"
|
|
@@ -7367,7 +7367,7 @@ export default {
|
|
cankaoInfoData: [],
|
|
cankaoInfoData: [],
|
|
fileSLoading: false,
|
|
fileSLoading: false,
|
|
infoData2: [],
|
|
infoData2: [],
|
|
- isuseT: 1,
|
|
|
|
|
|
+ isuseT: false,
|
|
mode: 1,
|
|
mode: 1,
|
|
targetCourseText2: "",
|
|
targetCourseText2: "",
|
|
targetTextLoading2: false,
|
|
targetTextLoading2: false,
|
|
@@ -13682,7 +13682,7 @@ export default {
|
|
console.log("这是新增课程");
|
|
console.log("这是新增课程");
|
|
this.selectAllType();
|
|
this.selectAllType();
|
|
this.chatid = uuidv4();
|
|
this.chatid = uuidv4();
|
|
- this.courseTextB = false
|
|
|
|
|
|
+ // this.courseTextB = false
|
|
} else {
|
|
} else {
|
|
this.isOutline = true
|
|
this.isOutline = true
|
|
this.isOutline2 = true
|
|
this.isOutline2 = true
|
|
@@ -13819,7 +13819,7 @@ export default {
|
|
this.xuanzeInfoData = JSON.parse(res.data[0][0].setting).xuanzeInfoData ? JSON.parse(res.data[0][0].setting).xuanzeInfoData : [];
|
|
this.xuanzeInfoData = JSON.parse(res.data[0][0].setting).xuanzeInfoData ? JSON.parse(res.data[0][0].setting).xuanzeInfoData : [];
|
|
this.pingjiaInfoData = JSON.parse(res.data[0][0].setting).pingjiaInfoData ? JSON.parse(res.data[0][0].setting).pingjiaInfoData : [];
|
|
this.pingjiaInfoData = JSON.parse(res.data[0][0].setting).pingjiaInfoData ? JSON.parse(res.data[0][0].setting).pingjiaInfoData : [];
|
|
this.infoData2 = JSON.parse(res.data[0][0].setting).infoData2 ? JSON.parse(res.data[0][0].setting).infoData2 : [];
|
|
this.infoData2 = JSON.parse(res.data[0][0].setting).infoData2 ? JSON.parse(res.data[0][0].setting).infoData2 : [];
|
|
- 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.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 : false;
|
|
this.mode = JSON.parse(res.data[0][0].setting).mode ? JSON.parse(res.data[0][0].setting).mode : 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.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();
|
|
this.chatid = JSON.parse(res.data[0][0].setting).chatid ? JSON.parse(res.data[0][0].setting).chatid : uuidv4();
|
|
@@ -13968,7 +13968,7 @@ export default {
|
|
this.xuanzeInfoData = JSON.parse(res.data[0][0].setting).xuanzeInfoData ? JSON.parse(res.data[0][0].setting).xuanzeInfoData : [];
|
|
this.xuanzeInfoData = JSON.parse(res.data[0][0].setting).xuanzeInfoData ? JSON.parse(res.data[0][0].setting).xuanzeInfoData : [];
|
|
this.pingjiaInfoData = JSON.parse(res.data[0][0].setting).pingjiaInfoData ? JSON.parse(res.data[0][0].setting).pingjiaInfoData : [];
|
|
this.pingjiaInfoData = JSON.parse(res.data[0][0].setting).pingjiaInfoData ? JSON.parse(res.data[0][0].setting).pingjiaInfoData : [];
|
|
this.infoData2 = JSON.parse(res.data[0][0].setting).infoData2 ? this.infoData2.length ? this.infoData2 : JSON.parse(res.data[0][0].setting).infoData2 : [...this.infoData2];
|
|
this.infoData2 = JSON.parse(res.data[0][0].setting).infoData2 ? this.infoData2.length ? this.infoData2 : JSON.parse(res.data[0][0].setting).infoData2 : [...this.infoData2];
|
|
- 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.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 : false;
|
|
this.mode = JSON.parse(res.data[0][0].setting).mode ? JSON.parse(res.data[0][0].setting).mode : 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.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();
|
|
this.chatid = JSON.parse(res.data[0][0].setting).chatid ? JSON.parse(res.data[0][0].setting).chatid : uuidv4();
|
|
@@ -16062,6 +16062,17 @@ export default {
|
|
|
|
|
|
this.courseTextBool = true
|
|
this.courseTextBool = true
|
|
},
|
|
},
|
|
|
|
+ changeIsuseT(){
|
|
|
|
+ if(this.isuseT == 1){
|
|
|
|
+ this.courseTextB = false
|
|
|
|
+ }else{
|
|
|
|
+ if(this.courseText){
|
|
|
|
+ this.courseTextB = false
|
|
|
|
+ }else{
|
|
|
|
+ this.courseTextB = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
openInterPanSetting(){
|
|
openInterPanSetting(){
|
|
this.interSetting = !this.interSetting
|
|
this.interSetting = !this.interSetting
|
|
if(this.interSetting){
|
|
if(this.interSetting){
|
|
@@ -17373,7 +17384,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
// });
|
|
// });
|
|
this.isOutlineCancelToken = this.ajax.setCancelSource();
|
|
this.isOutlineCancelToken = this.ajax.setCancelSource();
|
|
let parm = {
|
|
let parm = {
|
|
- assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
|
|
|
+ assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',//
|
|
message: [{"type":"text", "text":messages}],
|
|
message: [{"type":"text", "text":messages}],
|
|
session_name: uuidv4(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
@@ -26961,8 +26972,47 @@ ol {
|
|
min-width: calc(50%);
|
|
min-width: calc(50%);
|
|
min-height: 500px;
|
|
min-height: 500px;
|
|
margin-right: 10px;
|
|
margin-right: 10px;
|
|
|
|
+ border: 1px solid #c7c7c7;
|
|
|
|
+ border-radius: 0px 5px 5px 5px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ position: relative;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.inter_box::before{
|
|
|
|
+ content:'对话区';
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ top: 0;
|
|
|
|
+ display: block;
|
|
|
|
+ padding: 8px 10px;
|
|
|
|
+ background: #e0eafb;
|
|
|
|
+ color: #98a0ac;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ border-radius: 0 15px 15px 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.inter_Detailbox{
|
|
|
|
+ border: 1px solid #c7c7c7;
|
|
|
|
+ border-radius: 0px 5px 5px 5px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ position: relative;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+}
|
|
|
|
|
|
|
|
+.inter_Detailbox::before{
|
|
|
|
+ content:'编辑区';
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ top: 0;
|
|
|
|
+ display: block;
|
|
|
|
+ padding: 8px 10px;
|
|
|
|
+ background: #e0eafb;
|
|
|
|
+ color: #98a0ac;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ border-radius: 0 15px 15px 0;
|
|
}
|
|
}
|
|
|
|
+
|
|
.inter_box > iframe{
|
|
.inter_box > iframe{
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|