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
34a76508
Commit
34a76508
authored
May 14, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并产品【12078】配置了首选项--消息通知还是undefined
parent
ccea77cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
news-detail.vue
...message/src/views/message/home/components/news-detail.vue
+23
-3
No files found.
applications/dee-message/src/views/message/home/components/news-detail.vue
View file @
34a76508
...
@@ -43,14 +43,34 @@ export default {
...
@@ -43,14 +43,34 @@ export default {
getDetail
()
{
getDetail
()
{
msgDetail
(
this
.
id
).
then
(
res
=>
{
msgDetail
(
this
.
id
).
then
(
res
=>
{
this
.
message
=
res
.
items
this
.
message
=
res
.
items
res
.
items
.
templateId
&&
this
.
getTemplate
(
res
.
items
.
templateId
)
if
(
res
.
items
.
templateId
)
{
this
.
getTemplate
(
res
.
items
.
templateId
)
}
else
{
this
.
showObjFlag
=
true
}
})
})
},
},
getTemplate
(
id
)
{
getTemplate
(
id
)
{
getTemplateDetail
(
id
).
then
(
res
=>
{
getTemplateDetail
(
id
).
then
(
res
=>
{
this
.
showObjFlag
=
res
.
items
.
showObjFlag
this
.
showObjFlag
=
res
.
items
?
res
.
items
.
showObjFlag
:
true
const
businessObject
=
JSON
.
parse
(
this
.
message
.
businessObject
)
const
businessObject
=
JSON
.
parse
(
this
.
message
.
businessObject
)
this
.
taskTitle
=
`
${
businessObject
.
subTypeDisplayName
}
-
${
businessObject
.
number
}
${
businessObject
.
name
}
${
businessObject
.
displayVersion
}
`
const
taskTitle
=
[]
this
.
taskTitle
=
''
if
(
businessObject
.
number
)
{
taskTitle
.
push
(
businessObject
.
number
)
}
if
(
businessObject
.
name
)
{
taskTitle
.
push
(
businessObject
.
name
)
}
if
(
businessObject
.
displayVersion
)
{
taskTitle
.
push
(
businessObject
.
displayVersion
)
}
if
(
businessObject
.
subTypeDisplayName
)
{
this
.
taskTitle
=
`
${
businessObject
.
subTypeDisplayName
}
-`
}
if
(
taskTitle
.
length
>
0
)
{
this
.
taskTitle
+=
taskTitle
.
join
(
' '
)
}
})
})
},
},
goDetail
()
{
goDetail
()
{
...
...
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