|
|
@@ -10,7 +10,13 @@
|
|
|
<div @click.stop="back" class="backBtn" v-if="screenType != 2 && noLogin != 2 ">
|
|
|
<img src="../../assets/icon/newIcon/return.svg" alt="" />
|
|
|
</div>
|
|
|
- <div @click.stop="gotoCourseManage" class="backBtn" v-if="screenType == 2 && tType == 1 && noLogin != 2">
|
|
|
+ <div @click.stop="gotoCourseManage" class="backBtn" v-if="screenType == 2 && tType == 1 && noLogin != 2 && noLogin != 4 && noLogin != 3">
|
|
|
+ <img src="../../assets/icon/newIcon/return.svg" alt="" />
|
|
|
+ </div>
|
|
|
+ <div @click.stop="gotoCourseManage2" class="backBtn" v-if="screenType == 2 && tType == 1 && noLogin == 3">
|
|
|
+ <img src="../../assets/icon/newIcon/return.svg" alt="" />
|
|
|
+ </div>
|
|
|
+ <div @click.stop="gotoCourseManage3" class="backBtn" v-if="screenType == 2 && tType == 1 && noLogin == 4">
|
|
|
<img src="../../assets/icon/newIcon/return.svg" alt="" />
|
|
|
</div>
|
|
|
<div v-if="tcid" class="class-info-group">
|
|
|
@@ -758,7 +764,7 @@ export default {
|
|
|
}
|
|
|
this.setPptIframe()
|
|
|
this.classList = res.data[2]
|
|
|
- if(!this.tcid2 && this.tType == '1' && this.noLogin != 2 && this.noLogin != 3){
|
|
|
+ if(!this.tcid2 && this.tType == '1' && this.noLogin != 2 && this.noLogin != 3 && this.noLogin != 4){
|
|
|
this.pptCheckDialog = true
|
|
|
this.$refs.selectTeachingClassDialogRef.open({classList:this.classList})
|
|
|
}
|
|
|
@@ -848,6 +854,12 @@ export default {
|
|
|
gotoCourseManage(){
|
|
|
this.doSyncClassData(2);
|
|
|
},
|
|
|
+ gotoCourseManage2(){
|
|
|
+ this.doSyncClassData(3);
|
|
|
+ },
|
|
|
+ gotoCourseManage3(){
|
|
|
+ this.doSyncClassData(4);
|
|
|
+ },
|
|
|
afterClass() {
|
|
|
if (this.recordedForm.status == 1) {
|
|
|
this.toggleRecording().then((flag) => {
|
|
|
@@ -976,6 +988,9 @@ export default {
|
|
|
}, 600000);
|
|
|
},
|
|
|
async setoTime(time) {
|
|
|
+ if(this.noLogin == 4 || this.noLogin == 3){
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.startTime = await this.getServerTime()
|
|
|
this.doSyncClassData();
|
|
|
let params = [
|
|
|
@@ -1003,6 +1018,43 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
async doSyncClassData(type) {
|
|
|
+ if( type == 3 ){
|
|
|
+ parent.setCourseUrl();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if( type == 4 ){
|
|
|
+ let endTime = await this.getServerTime()
|
|
|
+ let courseTime = Math.max(1, Math.ceil((new Date(endTime) - new Date(this.startTime)) / (1000 * 60)))
|
|
|
+ if (this.courseDetail.userid == this.userid && (this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840' || userArray.includes(this.userid))) {
|
|
|
+ this.syncClassData2({
|
|
|
+ courseId: this.id,
|
|
|
+ title: this.courseDetail.title,
|
|
|
+ ctitle: this.courseDetail.copyTitle || this.courseDetail.title,
|
|
|
+ courseGrade: this.tcid2 ? this.tcid2 : '',
|
|
|
+ courseTime: courseTime,
|
|
|
+ startTime: this.startTime,
|
|
|
+ endTime: endTime,
|
|
|
+ }, 'selectUser', ()=>{
|
|
|
+ parent.setCourseUrl()
|
|
|
+ })
|
|
|
+ console.log('同步数据')
|
|
|
+ }
|
|
|
+ let params = [
|
|
|
+ {
|
|
|
+ uid: this.userid,
|
|
|
+ cid: this.id,
|
|
|
+ type: "5",
|
|
|
+ time: courseTime * 60,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.api + "addOperationTimeT2", params)
|
|
|
+ .then((res) => { })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
let userArray = ['6fbc6471-1d48-11ed-8c78-005056b86db5','333d0dfc-1cd9-11ef-bee5-005056b86db5','6fbce5ef-1d48-11ed-8c78-005056b86db5','66feffcc-ad35-11ed-b13d-005056b86db5']
|
|
|
if (this.courseDetail.userid == this.userid && (this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840' || userArray.includes(this.userid))) {
|
|
|
let endTime = await this.getServerTime()
|
|
|
@@ -1019,8 +1071,6 @@ export default {
|
|
|
type == 2 ? parent.setCourseUrl() : '';
|
|
|
})
|
|
|
console.log('同步数据')
|
|
|
- } else {
|
|
|
- type == 2 ? parent.setCourseUrl() : '';
|
|
|
}
|
|
|
},
|
|
|
// 直接上传录制音频/视频
|