|
@@ -275,6 +275,7 @@ CommonPage({
|
|
let testContent1 = getScore(data.testContent1)
|
|
let testContent1 = getScore(data.testContent1)
|
|
let testContent2 = getScore(data.testContent2)
|
|
let testContent2 = getScore(data.testContent2)
|
|
this.setData({
|
|
this.setData({
|
|
|
|
+ roleName: data.roleName,
|
|
newLesson: data.newLesson.powerName,
|
|
newLesson: data.newLesson.powerName,
|
|
unfinish,
|
|
unfinish,
|
|
testContent1,
|
|
testContent1,
|
|
@@ -282,6 +283,7 @@ CommonPage({
|
|
})
|
|
})
|
|
} else if (this.data.curUser.role == ROLE_TYPE.teacher) {
|
|
} else if (this.data.curUser.role == ROLE_TYPE.teacher) {
|
|
this.setData({
|
|
this.setData({
|
|
|
|
+ roleName: data.roleName,
|
|
newLesson: data.newLesson.powerName,
|
|
newLesson: data.newLesson.powerName,
|
|
unfinishedPeople: data.unfinishedPeople,
|
|
unfinishedPeople: data.unfinishedPeople,
|
|
})
|
|
})
|
|
@@ -289,6 +291,7 @@ CommonPage({
|
|
let rate = data.apply / data.people
|
|
let rate = data.apply / data.people
|
|
if (data.people == 0) rate = 0
|
|
if (data.people == 0) rate = 0
|
|
this.setData({
|
|
this.setData({
|
|
|
|
+ roleName: data.roleName,
|
|
people: data.people,
|
|
people: data.people,
|
|
applyNum: data.apply,
|
|
applyNum: data.apply,
|
|
appKey: data.appKey,
|
|
appKey: data.appKey,
|
|
@@ -298,6 +301,7 @@ CommonPage({
|
|
})
|
|
})
|
|
} else if (this.data.curUser.role == ROLE_TYPE.manager) {
|
|
} else if (this.data.curUser.role == ROLE_TYPE.manager) {
|
|
this.setData({
|
|
this.setData({
|
|
|
|
+ roleName: data.roleName,
|
|
team: data.company,
|
|
team: data.company,
|
|
applyList: data.deviceApplyActivateList
|
|
applyList: data.deviceApplyActivateList
|
|
})
|
|
})
|