小程序提交

This commit is contained in:
2025-08-04 16:27:52 +08:00
parent fa2a7b3499
commit 5c2082adf4
10 changed files with 465 additions and 75 deletions

View File

@ -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
})
},
})