|
@@ -6,6 +6,7 @@
|
|
|
ref="searchAreaRef"
|
|
|
:navList="navList"
|
|
|
:tcid="tcid"
|
|
|
+ :openMegaphone="openMegaphone"
|
|
|
:fileId="fileId"
|
|
|
:recordType="recordType"
|
|
|
v-if="itemType == 1"
|
|
@@ -16,12 +17,14 @@
|
|
|
:courseType="courseType"
|
|
|
:taskCount="taskCount"
|
|
|
:worksStudent="worksStudent"
|
|
|
+ :openMegaphone="openMegaphone"
|
|
|
ref="taskAreaRef"
|
|
|
:fileId="fileId"
|
|
|
v-if="itemType == 2"
|
|
|
/>
|
|
|
<dialogArea
|
|
|
:courseDetail="courseDetail"
|
|
|
+ :openMegaphone="openMegaphone"
|
|
|
ref="dialogAreaRef"
|
|
|
:fileId="fileId"
|
|
|
v-if="itemType == 3"
|
|
@@ -286,7 +289,7 @@ export default {
|
|
|
recordType: 0,
|
|
|
recordLoading:false,
|
|
|
fold: false,
|
|
|
-
|
|
|
+ openMegaphone:false,//是否打开喇叭
|
|
|
getFileIdLoading: false
|
|
|
};
|
|
|
},
|
|
@@ -368,15 +371,23 @@ export default {
|
|
|
if(this.recordLoading)return this.$message.info("请稍等...")
|
|
|
this.recordLoading = true;
|
|
|
if (this.recordType == 0) {
|
|
|
- this.$message.info("开启")
|
|
|
+ // this.$message.info("开启")
|
|
|
// this.changeRecordType(1)
|
|
|
this.$refs.levitatedSphereRef.recordStart();
|
|
|
} else if (this.recordType == 1) {
|
|
|
- this.$message.info("关闭")
|
|
|
+ // this.$message.info("关闭")
|
|
|
// this.changeRecordType(0)
|
|
|
this.$refs.levitatedSphereRef.stopRecord();
|
|
|
}
|
|
|
},
|
|
|
+ changeMegaphone(){
|
|
|
+ this.openMegaphone = !this.openMegaphone;
|
|
|
+ if(this.openMegaphone){
|
|
|
+ this.$message.success("已开启AI语音")
|
|
|
+ }else{
|
|
|
+ this.$message.success("已关闭AI语音")
|
|
|
+ }
|
|
|
+ },
|
|
|
// 展开
|
|
|
changeFold(newValue) {
|
|
|
// this.$message.info("展开");
|