|
|
@@ -948,7 +948,7 @@ export function buildComponent(name, column, preview, vm) {
|
|
|
// 港大新首页打卡处理逻辑
|
|
|
handleClockFromTabNew() {
|
|
|
const { userInfo } = this.$store.getters || {}
|
|
|
- const buMen = userInfo.mainPosition?.id || ''
|
|
|
+ const buMen = userInfo.mainPosition?.id || userInfo.positions[0]?.id || ''
|
|
|
const params = {
|
|
|
"pageNo": 1,
|
|
|
"limit": 50,
|
|
|
@@ -964,7 +964,7 @@ export function buildComponent(name, column, preview, vm) {
|
|
|
if (data.length > 0) {
|
|
|
this.$emit('action-event', 'daka', data)
|
|
|
} else {
|
|
|
- this.$message.warning('您所在部门目前没有配置班次,无法打卡')
|
|
|
+ this.$message.warning('您所在部门目前没有配置生效的班次,无法打卡')
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|