Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
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
TFMOM
TF-MOM-WEB
Commits
0dc54e03
Commit
0dc54e03
authored
Apr 29, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页增加我的消息
parent
7a8d4684
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
6 deletions
+38
-6
message-icon.png
...tions/architecture-dee/public/icons/home/message-icon.png
+0
-0
index.vue
applications/dee-task-center/src/views/home/index.vue
+38
-6
No files found.
applications/architecture-dee/public/icons/home/message-icon.png
0 → 100644
View file @
0dc54e03
1.02 KB
applications/dee-task-center/src/views/home/index.vue
View file @
0dc54e03
...
@@ -11,7 +11,10 @@
...
@@ -11,7 +11,10 @@
<!-- 左侧 -->
<!-- 左侧 -->
<div
class=
"Left-pane"
>
<div
class=
"Left-pane"
>
<div
v-for=
"(item, i) in cardList"
:key=
"i"
class=
"card"
:class=
"item.title===activeTitle?'dee-active-card':''"
@
click=
"handClick(item.title)"
>
<div
v-for=
"(item, i) in cardList"
:key=
"i"
class=
"card"
:class=
"item.title===activeTitle?'dee-active-card':''"
@
click=
"handClick(item.title)"
>
<div
class=
"icon"
>
<el-badge
v-if=
"item.title==='我的消息'&&messageInfo.unReadCount"
:value=
"messageInfo.unReadCount"
class=
"item"
>
<img
:src=
"item.icon"
alt=
"Icon"
>
</el-badge>
<div
v-else
class=
"icon"
>
<img
:src=
"item.icon"
alt=
"Icon"
>
<img
:src=
"item.icon"
alt=
"Icon"
>
</div>
</div>
<div
class=
"title"
>
<div
class=
"title"
>
...
@@ -27,7 +30,7 @@
...
@@ -27,7 +30,7 @@
@
tabClick=
"tabClick"
@
tabClick=
"tabClick"
>
>
<div
:slot=
"activeTitle"
style=
"height: 100%;"
>
<div
:slot=
"activeTitle"
style=
"height: 100%;"
>
<MyTask
ref=
"myTask"
/>
<MyTask
v-if=
"activeTitle!=='我的消息'"
ref=
"myTask"
/>
</div>
</div>
<div
slot=
"批量签审"
style=
"height: 100%;"
>
<div
slot=
"批量签审"
style=
"height: 100%;"
>
<module-task-list
ref=
"moduleTaskList"
@
goModuleTaskDetail=
"getTaskDetail"
/>
<module-task-list
ref=
"moduleTaskList"
@
goModuleTaskDetail=
"getTaskDetail"
/>
...
@@ -77,8 +80,10 @@ import ApplyApp from './compontents/apply-app.vue'
...
@@ -77,8 +80,10 @@ import ApplyApp from './compontents/apply-app.vue'
import
PersonalAssistant
from
'./compontents/personal-assistant.vue'
import
PersonalAssistant
from
'./compontents/personal-assistant.vue'
import
RightCenterPaneTop
from
'./compontents/rightCenterPaneTop.vue'
import
RightCenterPaneTop
from
'./compontents/rightCenterPaneTop.vue'
import
RightCenterPaneBottom
from
'./compontents/rightCenterPaneBottom.vue'
import
RightCenterPaneBottom
from
'./compontents/rightCenterPaneBottom.vue'
import
{
get
}
from
'@/utils/http'
export
default
{
export
default
{
name
:
'NewHome'
,
components
:
{
MyTask
,
ModuleTaskList
,
ApplyApp
,
PersonalAssistant
,
RightCenterPaneTop
,
RightCenterPaneBottom
},
components
:
{
MyTask
,
ModuleTaskList
,
ApplyApp
,
PersonalAssistant
,
RightCenterPaneTop
,
RightCenterPaneBottom
},
data
()
{
data
()
{
return
{
return
{
...
@@ -90,6 +95,10 @@ export default {
...
@@ -90,6 +95,10 @@ export default {
{
{
icon
:
'/icons/home/已办任务.png'
,
icon
:
'/icons/home/已办任务.png'
,
title
:
'已办任务'
title
:
'已办任务'
},
{
icon
:
'/icons/home/message-icon.png'
,
title
:
'我的消息'
}
}
],
],
materialLists
:
[
materialLists
:
[
...
@@ -101,7 +110,8 @@ export default {
...
@@ -101,7 +110,8 @@ export default {
],
],
activeTitle
:
'我的待办'
,
activeTitle
:
'我的待办'
,
userInfo
:
localStorage
.
getItem
(
'user'
)
userInfo
:
localStorage
.
getItem
(
'user'
),
messageInfo
:
{}
}
}
},
},
computed
:
{
computed
:
{
...
@@ -115,11 +125,9 @@ export default {
...
@@ -115,11 +125,9 @@ export default {
watch
:
{},
watch
:
{},
created
()
{
created
()
{
// 初始化数据
// 初始化数据
this
.
getMessageInfo
()
},
},
mounted
()
{
mounted
()
{
// this.$nextTick(() => {
// this.$refs.myTask && this.$refs.myTask.getTasks(1, '我的待办')
// })
},
},
methods
:
{
methods
:
{
tabClick
(
val
)
{
tabClick
(
val
)
{
...
@@ -136,6 +144,20 @@ export default {
...
@@ -136,6 +144,20 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
title
===
'已办任务'
)
{
if
(
title
===
'已办任务'
)
{
this
.
$refs
.
myTask
.
getTasks
(
1
,
this
.
activeTitle
)
this
.
$refs
.
myTask
.
getTasks
(
1
,
this
.
activeTitle
)
}
else
if
(
title
===
'我的消息'
)
{
this
.
$router
.
push
({
path
:
`/dee-message/message/home`
,
query
:
{
title
:
'我的消息'
}
})
this
.
$store
.
dispatch
(
'menu/activeModel'
,
{
appId
:
'myMessage'
,
pageInfo
:
{
path
:
'/dee-message/message/home'
}
})
}
}
})
})
},
},
...
@@ -146,6 +168,16 @@ export default {
...
@@ -146,6 +168,16 @@ export default {
path
:
`/task-detail-
${
this
.
id
}
`
,
path
:
`/task-detail-
${
this
.
id
}
`
,
query
:
{
id
:
this
.
id
,
insId
:
this
.
processInstanceId
,
title
:
this
.
title
,
showMenu
:
false
}
query
:
{
id
:
this
.
id
,
insId
:
this
.
processInstanceId
,
title
:
this
.
title
,
showMenu
:
false
}
})
})
},
getMessageInfo
()
{
const
params
=
{
receiver
:
localStorage
.
getItem
(
'userId'
)
}
get
(
`/Notify/findIsReadNum`
,
params
).
then
(
res
=>
{
this
.
messageInfo
=
{
unReadCount
:
res
.
items
.
unReadCount
}
})
}
}
}
}
}
}
...
...
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