|
@@ -1267,7 +1267,9 @@
|
|
|
</div>
|
|
|
<div style="width: 100%; padding: 0px 20px; box-sizing: border-box;display:flex;">
|
|
|
<div style="width: calc(100%);height: 100%" class='op_task_box inter_voiceBox'>
|
|
|
- <recordV></recordV>
|
|
|
+ <recordV
|
|
|
+ :videoText2.sync="recordVideoText"
|
|
|
+ :audioUrl2.sync="recordAudioUrl"></recordV>
|
|
|
</div>
|
|
|
<div class="inter_box" v-show="interPan" style="margin: 0 0 0 10px">
|
|
|
<aiBoxCourseDetail
|
|
@@ -7718,6 +7720,8 @@ export default {
|
|
|
taskCancelToken2: [],
|
|
|
isDisplay: true,
|
|
|
isDialog: 0,
|
|
|
+ recordVideoText: "",
|
|
|
+ recordAudioUrl: "",
|
|
|
};
|
|
|
},
|
|
|
directives: {
|
|
@@ -12335,6 +12339,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
knowFileids: this.knowFileids,
|
|
|
knowInfoData2: this.knowInfoData2,
|
|
|
knowFileids2: this.knowFileids2,
|
|
|
+ recordVideoText: this.recordVideoText,
|
|
|
+ recordAudioUrl: this.recordAudioUrl,
|
|
|
}),
|
|
|
iresearch: this.isFileSearch ? 1 : 2,
|
|
|
},
|
|
@@ -12612,6 +12618,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
knowFileids: this.knowFileids,
|
|
|
knowInfoData2: this.knowInfoData2,
|
|
|
knowFileids2: this.knowFileids2,
|
|
|
+ recordVideoText: this.recordVideoText,
|
|
|
+ recordAudioUrl: this.recordAudioUrl,
|
|
|
}),
|
|
|
iresearch: this.isFileSearch ? 1 : 2,
|
|
|
},
|
|
@@ -14763,6 +14771,9 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
this.knowFileids = (JSON.parse(res.data[0][0].setting).knowFileids) ? JSON.parse(res.data[0][0].setting).knowFileids : [];
|
|
|
this.knowInfoData2 = (JSON.parse(res.data[0][0].setting).knowInfoData2) ? JSON.parse(res.data[0][0].setting).knowInfoData2 : [];
|
|
|
this.knowFileids2 = (JSON.parse(res.data[0][0].setting).knowFileids2) ? JSON.parse(res.data[0][0].setting).knowFileids2 : [];
|
|
|
+ this.recordVideoText = (JSON.parse(res.data[0][0].setting).recordVideoText) ? JSON.parse(res.data[0][0].setting).recordVideoText : "";
|
|
|
+ this.recordAudioUrl = (JSON.parse(res.data[0][0].setting).recordAudioUrl) ? JSON.parse(res.data[0][0].setting).recordAudioUrl : "";
|
|
|
+
|
|
|
if(this.targetCourseText2 || (!this.teacherCourseText)){
|
|
|
this.courseTextBool = true
|
|
|
}
|
|
@@ -14918,6 +14929,9 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
this.knowFileids = (JSON.parse(res.data[0][0].setting).knowFileids) ? JSON.parse(res.data[0][0].setting).knowFileids : [];
|
|
|
this.knowInfoData2 = (JSON.parse(res.data[0][0].setting).knowInfoData2) ? JSON.parse(res.data[0][0].setting).knowInfoData2 : [];
|
|
|
this.knowFileids2 = (JSON.parse(res.data[0][0].setting).knowFileids2) ? JSON.parse(res.data[0][0].setting).knowFileids2 : [];
|
|
|
+ this.recordVideoText = (JSON.parse(res.data[0][0].setting).recordVideoText) ? JSON.parse(res.data[0][0].setting).recordVideoText : "";
|
|
|
+ this.recordAudioUrl = (JSON.parse(res.data[0][0].setting).recordAudioUrl) ? JSON.parse(res.data[0][0].setting).recordAudioUrl : "";
|
|
|
+
|
|
|
if(this.targetCourseText2 || (!this.teacherCourseText)){
|
|
|
this.courseTextBool = true
|
|
|
}
|
|
@@ -16907,45 +16921,60 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
- allEvaCan(){
|
|
|
+ allEvaCan() {
|
|
|
if (this.taskLoading.length) {
|
|
|
let _pan = 1
|
|
|
- for(var k = 0; k < this.taskLoading.length; k++){
|
|
|
- if(this.taskLoading[k]){
|
|
|
+ for (var k = 0; k < this.taskLoading.length; k++) {
|
|
|
+ if (this.taskLoading[k]) {
|
|
|
this.$message({
|
|
|
- message: `请等待任务${k+1}回答完毕后再继续`,
|
|
|
+ message: `请等待任务${k + 1}回答完毕后再继续`,
|
|
|
type: "warning"
|
|
|
});
|
|
|
_pan = 2
|
|
|
}
|
|
|
}
|
|
|
- if(_pan == 2){
|
|
|
+ if (_pan == 2) {
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- if(this.taskGLoading.length){
|
|
|
+ if (this.taskGLoading.length) {
|
|
|
let _pan = 1
|
|
|
- for(var k = 0; k < this.taskGLoading.length; k++){
|
|
|
- if(this.taskGLoading[k] && (this.taskGLoading[k][0] || this.taskGLoading[k][1] || this.taskGLoading[k][2])){
|
|
|
+ for (var k = 0; k < this.taskGLoading.length; k++) {
|
|
|
+ if (this.taskGLoading[k] && (this.taskGLoading[k][0] || this.taskGLoading[k][1] || this.taskGLoading[k][2])) {
|
|
|
this.$message({
|
|
|
- message: `请等待任务${k+1}回答完毕后再继续`,
|
|
|
+ message: `请等待任务${k + 1}回答完毕后再继续`,
|
|
|
type: "warning"
|
|
|
});
|
|
|
_pan = 2
|
|
|
}
|
|
|
}
|
|
|
- if(_pan == 2){
|
|
|
+ if (_pan == 2) {
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- let taskJson = this.unitJson[0].chapterInfo[0].taskJson
|
|
|
- for(var index = 0; index < taskJson.length; index++){
|
|
|
- for (var j = 0; j < taskJson[index].toolChoose.length; j++) {
|
|
|
- if(this.panTaskElist() == 0 && this.pjIndex.indexOf(taskJson[index].toolChoose[j].tool[0]) != -1){
|
|
|
- this.$refs['evalist'+index+j][0].openAiDialog('elist');
|
|
|
+ this.$confirm("是否一键生成所有工具的评价设置?会占用您一些时间。", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ customClass: 'custom-confirm-box'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+
|
|
|
+ let taskJson = this.unitJson[0].chapterInfo[0].taskJson
|
|
|
+ for (var index = 0; index < taskJson.length; index++) {
|
|
|
+ for (var j = 0; j < taskJson[index].toolChoose.length; j++) {
|
|
|
+ if (this.panTaskElist() == 0 && this.pjIndex.indexOf(taskJson[index].toolChoose[j].tool[0]) != -1) {
|
|
|
+ this.$refs['evalist' + index + j][0].openAiDialog('elist');
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+
|
|
|
+ });
|
|
|
+ setTimeout(() => {
|
|
|
+ this.setTipsIndex()
|
|
|
+ }, 500)
|
|
|
},
|
|
|
setAiJson(pan,string,string2,string3){
|
|
|
if(pan == 'aiTeacher2'){
|
|
@@ -17258,6 +17287,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
this.courseTextB = true
|
|
|
}
|
|
|
}
|
|
|
+ this.interSetting = false
|
|
|
},
|
|
|
changeLang(){
|
|
|
window.course_lang = this.languageSetting
|