Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
psa-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高滢
psa-web
Commits
b82ddf70
Commit
b82ddf70
authored
Mar 28, 2025
by
Mr.Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DOM渲染错误bug修复
parent
776b2b1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
index.vue
src/views/staffmanage/onboardmanage/index.vue
+13
-4
No files found.
src/views/staffmanage/onboardmanage/index.vue
View file @
b82ddf70
...
@@ -124,11 +124,10 @@
...
@@ -124,11 +124,10 @@
</div>
</div>
</div>
</div>
<el-alert
<el-alert
v-if=
"
birthdayPersonCount > 0
"
v-if=
"
showBirthdayAlert
"
type=
"info"
type=
"info"
show-icon
show-icon
:class=
"'custom-blue-bg'"
:class=
"'custom-blue-bg'"
v-hasRole=
"['hr']"
>
>
<template
#
default
>
<template
#
default
>
<span
class=
"custom-blue-text"
>
今日要过生日的人数:
{{
birthdayPersonCount
}}
</span>
<span
class=
"custom-blue-text"
>
今日要过生日的人数:
{{
birthdayPersonCount
}}
</span>
...
@@ -137,11 +136,10 @@
...
@@ -137,11 +136,10 @@
</el-alert>
</el-alert>
<!-- 季度提醒 -->
<!-- 季度提醒 -->
<el-alert
<el-alert
v-if=
"
currentQuarterBirthCount > 0
"
v-if=
"
showSeasonCardAlert
"
type=
"info"
type=
"info"
show-icon
show-icon
class=
"custom-orange-bg"
class=
"custom-orange-bg"
v-hasRole=
"['hr']"
>
>
<
template
#
default
>
<
template
#
default
>
<span
class=
"custom-blue-text"
>
<span
class=
"custom-blue-text"
>
...
@@ -386,6 +384,16 @@ const data = reactive({
...
@@ -386,6 +384,16 @@ const data = reactive({
const
{
queryParams
,
form
,
rules
}
=
toRefs
(
data
);
const
{
queryParams
,
form
,
rules
}
=
toRefs
(
data
);
const
userStore
=
useUserStore
();
const
showBirthdayAlert
=
computed
(()
=>
{
// 同时满足角色权限和业务条件
return
userStore
.
roles
[
0
]
===
'hr'
&&
birthdayPersonCount
.
value
>
0
;
}
);
const
showSeasonCardAlert
=
computed
(()
=>
{
// 同时满足角色权限和业务条件
return
userStore
.
roles
[
0
]
===
'hr'
&&
currentQuarterBirthCount
.
value
>
0
;
}
);
// 获取当前日期
// 获取当前日期
const
today
=
new
Date
();
const
today
=
new
Date
();
...
@@ -710,6 +718,7 @@ function handleExport() {
...
@@ -710,6 +718,7 @@ function handleExport() {
onMounted
(()
=>
{
onMounted
(()
=>
{
const
userStore
=
useUserStore
();
const
userStore
=
useUserStore
();
userStore
.
getInfo
();
// 确保用户信息已加载
userStore
.
getInfo
();
// 确保用户信息已加载
console
.
log
(
"用户信息:"
,
userStore
.
getInfo
());
const
currentUserId
=
userStore
.
id
;
// 获取当前用户的 id
const
currentUserId
=
userStore
.
id
;
// 获取当前用户的 id
console
.
log
(
"当前用户 ID:"
,
currentUserId
);
console
.
log
(
"当前用户 ID:"
,
currentUserId
);
getList
();
getList
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment