|
@@ -363,7 +363,7 @@ export default {
|
|
|
delete data.schedule
|
|
|
data.school = item.stuCourse.school
|
|
|
data.scope = item.stuCourse.scope
|
|
|
- data.unique = 'person' + item.course.no + sch.time[m].week + sch.time[m].id + sI + m
|
|
|
+ data.unique = 'person' + item.course.no + sch.time[m].week + sch.time[m].id + sI + m + Math.floor(Math.random() * 10000)
|
|
|
personList.push(this.getNewClass(data, sch, m))
|
|
|
}
|
|
|
}
|
|
@@ -373,7 +373,7 @@ export default {
|
|
|
delete datas.schedule
|
|
|
datas.school = item.stuCourse.school
|
|
|
datas.scope = item.stuCourse.scope
|
|
|
- datas.unique = 'person' + item.course.no + "008" + "000" + sI + "-1"
|
|
|
+ datas.unique = 'person' + item.course.no + Math.floor(Math.random() * 100000000)
|
|
|
datas.classId = sch.classId
|
|
|
datas.room = sch.room
|
|
|
datas.teacherId = sch.teacherId
|
|
@@ -411,7 +411,7 @@ export default {
|
|
|
delete data.schedule
|
|
|
data.school = item.stuCourse.school
|
|
|
data.scope = item.stuCourse.scope
|
|
|
- data.unique = 'person' + item.course.no + sch.time[m].week + sch.time[m].id + j + m
|
|
|
+ data.unique = 'person' + item.course.no + sch.time[m].week + sch.time[m].id + j + m + Math.floor(Math.random() * 10000)
|
|
|
personList.push(this.getNewClass(data, sch, m))
|
|
|
}
|
|
|
}
|
|
@@ -421,7 +421,7 @@ export default {
|
|
|
delete datas.schedule
|
|
|
datas.school = item.stuCourse.school
|
|
|
datas.scope = item.stuCourse.scope
|
|
|
- datas.unique = 'person' + item.course.no + "008" + "000" + Math.round(Math.random()*10) + "-1"
|
|
|
+ datas.unique = 'person' + item.course.no + Math.floor(Math.random() * 100000000)
|
|
|
datas.classId = sch.classId
|
|
|
datas.room = sch.room
|
|
|
datas.teacherId = sch.teacherId
|
|
@@ -448,9 +448,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
- console.log(fixList)
|
|
|
- console.log(personList)
|
|
|
this.fixList = fixList
|
|
|
this.personList = personList
|
|
|
this.getClassTime()
|