小程序提交
This commit is contained in:
@ -173,6 +173,39 @@ Page({
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 跳转仪表盘
|
||||
gotoDashboard() {
|
||||
|
||||
const { userRole } = this.data
|
||||
wx.navigateTo({
|
||||
url: `/pages/dashboardModule/overviewPerformance/overviewPerformance?role=${userRole}`,
|
||||
})
|
||||
},
|
||||
|
||||
// 跳转查看绩效
|
||||
checkPerformance() {
|
||||
const { userRole } = this.data
|
||||
|
||||
if (userRole === 'manager' || userRole === 'supervisor') {
|
||||
wx.navigateTo({
|
||||
url: `/pages/dashboardModule/supervisorPerformance/supervisorPerformance?role=${userRole}`,
|
||||
})
|
||||
} else {
|
||||
wx.navigateTo({
|
||||
url: `/pages/dashboardModule/staffPerformance/staffPerformance?role=${userRole}`,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
// 跳转排名
|
||||
gotoRank(e) {
|
||||
console.log(e);
|
||||
const userRole = e.currentTarget.dataset.userrole;
|
||||
wx.navigateTo({
|
||||
url: `/pages/dashboardModule/performanceRanking/performanceRanking?role=${userRole}`,
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
@ -192,5 +225,5 @@ Page({
|
||||
phoneNumber: this.data.phoneNumber
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
})
|
Reference in New Issue
Block a user