|
|
@@ -65,6 +65,11 @@
|
|
|
<span class="switch-label" :class="{ active: freeBrowse }">{{ freeBrowse ? lang.ssFreeBrowse :
|
|
|
lang.ssFollowMode }}</span>
|
|
|
</div>
|
|
|
+ <div class="free-browse-switch" v-if="courseDetail.userid == userid">
|
|
|
+ <el-switch v-model="isCan" :active-value="true" :inactive-value="false" class="custom-switch"
|
|
|
+ active-color="#03ae2b" inactive-color="#d8d8d8" @change="onIsCanChange"></el-switch>
|
|
|
+ <span class="switch-label" :class="{ active: isCan }">{{ isCan ? lang.ssShowResult : lang.ssHideResult }}</span>
|
|
|
+ </div>
|
|
|
<div class="free-browse-switch" v-if="tType == 2">
|
|
|
<span class="switch-label" :class="{ active: freeBrowse }">{{ freeBrowse ? lang.ssFreeBrowse :
|
|
|
lang.ssFollowMode }}</span>
|
|
|
@@ -125,7 +130,6 @@ import selectTeachingClassDialog from "../dialog/selectTeachingClassDialog2.vue"
|
|
|
import messageInstruction from '../components/messageInstruction.vue';
|
|
|
import confirmInstruction from '../components/confirmInstruction.vue';
|
|
|
import shareDialog from './shareDialog.vue';
|
|
|
-
|
|
|
export default {
|
|
|
mixins: [myMixin],
|
|
|
components: {
|
|
|
@@ -186,6 +190,8 @@ export default {
|
|
|
// 录音时间记录
|
|
|
recordingStartTime: "", // 开始录音时间
|
|
|
recordingEndTime: "", // 结束录音时间
|
|
|
+ isResultArray: [],
|
|
|
+ isCan: false,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -834,6 +840,19 @@ export default {
|
|
|
console.log('自由浏览模式已切换为1:', this.freeBrowse);
|
|
|
this.$refs.ppt.contentWindow.PPTistStudent.toggleFollowMode()
|
|
|
},
|
|
|
+ onIsCanChange(value) {
|
|
|
+ this.isCan = value;
|
|
|
+ for(var i = 0; i < this.isResultArray.length; i++){
|
|
|
+ let item = this.isResultArray[i];
|
|
|
+ if(value && item.isTool){
|
|
|
+ item.can = true
|
|
|
+ }else if(!item.isTool){
|
|
|
+ item.can = false
|
|
|
+ item.like = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$refs.ppt.contentWindow.PPTistStudent.setCan(this.isResultArray)
|
|
|
+ },
|
|
|
setOperationTime() {
|
|
|
let _this = this;
|
|
|
if (_this.opertimer) {
|
|
|
@@ -931,10 +950,12 @@ export default {
|
|
|
// }
|
|
|
}
|
|
|
},
|
|
|
+ // 打开分享弹窗
|
|
|
openShareDialog() {
|
|
|
let code = this.userJson.oidCode || this.userJson.orgCode
|
|
|
this.$refs.shareDialogRef.open(code, this.inviteCode)
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
destroyed() {
|
|
|
clearInterval(this.opertimer);
|
|
|
@@ -955,6 +976,20 @@ export default {
|
|
|
this.freeBrowse = value;
|
|
|
console.log('自由浏览模式已切换为:', this.freeBrowse);
|
|
|
}
|
|
|
+ window.setIsResultArray = (value) => {
|
|
|
+ this.isResultArray = value;
|
|
|
+ // 判断数组中isTool为true的项的can是否都为true
|
|
|
+ const toolItems = value.filter(item => item.isTool);
|
|
|
+ if (toolItems.length > 0) {
|
|
|
+ const allCanTrue = toolItems.every(item => item.can === true);
|
|
|
+ const allCanFalse = toolItems.every(item => item.can === false);
|
|
|
+ if (allCanTrue) {
|
|
|
+ this.isCan = true;
|
|
|
+ } else if (allCanFalse) {
|
|
|
+ this.isCan = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if (!this.userJson || !this.userJson.accountNumber) {
|
|
|
let res = await this.ajax.get(this.$store.state.api + "selectUser", {
|
|
|
userid: this.$route.query.userid
|
|
|
@@ -1155,7 +1190,6 @@ export default {
|
|
|
height: 100%;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
.class-info-group {
|
|
|
display: flex;
|
|
|
align-items: center;
|