|
@@ -1026,20 +1026,6 @@ export default {
|
|
|
if( type == 4 ){
|
|
if( type == 4 ){
|
|
|
let endTime = await this.getServerTime()
|
|
let endTime = await this.getServerTime()
|
|
|
let courseTime = Math.max(1, Math.ceil((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)))
|
|
|
- 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 = [
|
|
let params = [
|
|
|
{
|
|
{
|
|
|
uid: this.userid,
|
|
uid: this.userid,
|
|
@@ -1054,6 +1040,22 @@ export default {
|
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
console.error(err);
|
|
|
});
|
|
});
|
|
|
|
|
+ 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('同步数据')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ parent.setCourseUrl()
|
|
|
|
|
+ }
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
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))) {
|