|
@@ -923,7 +923,7 @@ export default {
|
|
|
let userArray = ['6fbc6471-1d48-11ed-8c78-005056b86db5','333d0dfc-1cd9-11ef-bee5-005056b86db5','6fbce5ef-1d48-11ed-8c78-005056b86db5','66feffcc-ad35-11ed-b13d-005056b86db5']
|
|
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))) {
|
|
if (this.courseDetail.userid == this.userid && (this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840' || userArray.includes(this.userid))) {
|
|
|
let endTime = await this.getServerTime()
|
|
let endTime = await this.getServerTime()
|
|
|
- let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
|
|
|
|
|
|
|
+ let courseTime = Math.max(1, Math.ceil((new Date(endTime) - new Date(this.startTime)) / (1000 * 60)))
|
|
|
this.syncClassData({
|
|
this.syncClassData({
|
|
|
courseId: this.id,
|
|
courseId: this.id,
|
|
|
title: this.courseDetail.title,
|
|
title: this.courseDetail.title,
|
|
@@ -1010,7 +1010,7 @@ export default {
|
|
|
this.stopIdleDetection(this.resetIdleOp);
|
|
this.stopIdleDetection(this.resetIdleOp);
|
|
|
},
|
|
},
|
|
|
async mounted() {
|
|
async mounted() {
|
|
|
- this.setoTime("1");
|
|
|
|
|
|
|
+ // this.setoTime("1");
|
|
|
this.startTime = await this.getServerTime()
|
|
this.startTime = await this.getServerTime()
|
|
|
console.log('this.startTime', this.startTime)
|
|
console.log('this.startTime', this.startTime)
|
|
|
this.timeoutPan = setTimeout(() => {
|
|
this.timeoutPan = setTimeout(() => {
|