Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
precision-effect
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
耿迪迪
precision-effect
Commits
8025bc57
Commit
8025bc57
authored
Jul 08, 2023
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息通知查看
parent
93485df5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
Message.vue
...sion-effect-web/src/layout/components/Message/Message.vue
+29
-2
No files found.
precision-effect-web/src/layout/components/Message/Message.vue
View file @
8025bc57
...
...
@@ -25,7 +25,7 @@
<el-dropdown-item>
类型
</el-dropdown-item>
</el-col>
<el-col
:span=
"6"
>
<el-dropdown-item>
标记
</el-dropdown-item>
<el-dropdown-item>
操作
</el-dropdown-item>
</el-col>
</el-row>
<el-row
v-for=
"item in msgInfo"
>
...
...
@@ -40,7 +40,10 @@
<el-dropdown-item
v-if=
"item.noticeType == '2'"
>
公告
</el-dropdown-item>
</el-col>
<el-col
:span=
"6"
>
<el-dropdown-item><el-button
type=
"text"
@
click=
"isRead(item.noticeId)"
>
已读
</el-button></el-dropdown-item>
<el-dropdown-item>
<el-button
type=
"text"
@
click=
"isRead(item.noticeId)"
>
已读
</el-button>
<el-button
type=
"text"
v-if=
"item.relationType"
@
click=
"messageView(item.relationType)"
>
查看
</el-button>
</el-dropdown-item>
</el-col>
</el-row>
</div>
...
...
@@ -89,6 +92,30 @@
this
.
$message
.
error
(
"标记失败"
)
}
})
},
messageView
(
relationType
){
//1.项目交易中心 2. 物品采购 3.服务费用 4.借贷
if
(
relationType
==
'1'
){
if
(
this
.
$route
.
path
!=
'/trade'
){
this
.
$router
.
replace
({
path
:
"/trade"
})
}
}
if
(
relationType
==
'2'
){
if
(
this
.
$route
.
path
!=
'/purchase/thing'
){
this
.
$router
.
replace
({
path
:
"/purchase/thing"
})
}
}
if
(
relationType
==
'3'
){
if
(
this
.
$route
.
path
!=
'/purchase/service'
){
this
.
$router
.
replace
({
path
:
"/purchase/service"
})
}
}
if
(
relationType
==
'4'
){
if
(
this
.
$route
.
path
!=
'/debit'
){
this
.
$router
.
replace
({
path
:
"/debit"
})
}
}
this
.
$refs
.
dropDown
.
visible
=
false
;
}
}
...
...
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