Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
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
front-end-dev
techbook
Commits
93343d95
Commit
93343d95
authored
Sep 20, 2019
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息已读
parent
25ecedfe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
23 deletions
+35
-23
api.js
src/views/announce/api/api.js
+5
-0
list.vue
src/views/announce/pages/list.vue
+30
-23
No files found.
src/views/announce/api/api.js
View file @
93343d95
...
...
@@ -11,5 +11,10 @@ export default {
postAllReadAxios
(
params
){
return
api
.
fetchPost
(
baseUrl
+
"/message/setReadAll?"
+
Qs
.
stringify
(
params
));
},
//设置已读
setHasReadAxios
(
params
){
return
api
.
fetchPost
(
baseUrl
+
"/message/setReadStatus?"
+
Qs
.
stringify
(
params
));
}
}
src/views/announce/pages/list.vue
View file @
93343d95
...
...
@@ -144,39 +144,46 @@
},
handleToElse
(
data
,
index
){
if
(
this
.
userInfo
.
empType
==
0
){
if
(
data
.
requirementPurposeId
>
0
){
this
.
$router
.
push
({
path
:
"/recommenddetail"
,
query
:{
purposeId
:
data
.
requirementPurposeId
}})
}
if
(
data
.
projectPurposeId
>
0
){
this
.
$router
.
push
({
path
:
"/contentdetarl"
,
query
:{
purposeId
:
data
.
projectPurposeId
}})
}
}
else
if
(
this
.
userInfo
.
empType
==
1
){
if
(
data
.
requirementPurposeId
>
0
){
this
.
$router
.
push
({
path
:
"/bigBusiness/selfdetail"
,
query
:{
id
:
data
.
requirementPurposeId
}})
}
if
(
data
.
projectPurposeId
>
0
){
this
.
$router
.
push
({
path
:
"/bigBusiness/intentiondetail"
,
query
:{
id
:
data
.
projectPurposeId
}})
}
}
else
{
if
(
this
.
userInfo
.
roleList
[
0
].
roleType
==
2
){
let
params
=
{
messageIds
:
data
.
messageId
};
api
.
setHasReadAxios
(
params
).
then
((
res
)
=>
{
if
(
this
.
userInfo
.
empType
==
0
){
if
(
data
.
requirementPurposeId
>
0
){
this
.
$router
.
push
({
path
:
"/
projectinside"
,
query
:{
purposeId
:
data
.
requirementPurposeId
,
type
:
0
}})
this
.
$router
.
push
({
path
:
"/
recommenddetail"
,
query
:{
purposeId
:
data
.
requirementPurposeId
}})
}
if
(
data
.
projectPurposeId
>
0
){
this
.
$router
.
push
({
path
:
"/
projectinside"
,
query
:{
purposeId
:
data
.
projectPurposeId
,
type
:
1
}})
this
.
$router
.
push
({
path
:
"/
contentdetarl"
,
query
:{
purposeId
:
data
.
projectPurposeId
}})
}
}
else
if
(
this
.
userInfo
.
roleList
[
0
].
roleType
==
5
){
}
else
if
(
this
.
userInfo
.
empType
==
1
){
if
(
data
.
requirementPurposeId
>
0
){
this
.
$router
.
push
({
path
:
"/
saleproject/active"
,
query
:{
id
:
data
.
requirementPurposeId
,
type
:
0
}})
this
.
$router
.
push
({
path
:
"/
bigBusiness/selfdetail"
,
query
:{
id
:
data
.
requirementPurposeId
}})
}
if
(
data
.
projectPurposeId
>
0
){
this
.
$router
.
push
({
path
:
"/
saleproject/active"
,
query
:{
id
:
data
.
projectPurposeId
,
type
:
1
}})
this
.
$router
.
push
({
path
:
"/
bigBusiness/intentiondetail"
,
query
:{
id
:
data
.
projectPurposeId
}})
}
}
else
{
if
(
this
.
userInfo
.
roleList
[
0
].
roleType
==
2
){
if
(
data
.
requirementPurposeId
>
0
){
this
.
$router
.
push
({
path
:
"/projectinside"
,
query
:{
purposeId
:
data
.
requirementPurposeId
,
type
:
0
}})
}
if
(
data
.
projectPurposeId
>
0
){
this
.
$router
.
push
({
path
:
"/projectinside"
,
query
:{
purposeId
:
data
.
projectPurposeId
,
type
:
1
}})
}
}
else
if
(
this
.
userInfo
.
roleList
[
0
].
roleType
==
5
){
if
(
data
.
requirementPurposeId
>
0
){
this
.
$router
.
push
({
path
:
"/saleproject/active"
,
query
:{
id
:
data
.
requirementPurposeId
,
type
:
0
}})
}
if
(
data
.
projectPurposeId
>
0
){
this
.
$router
.
push
({
path
:
"/saleproject/active"
,
query
:{
id
:
data
.
projectPurposeId
,
type
:
1
}})
}
}
}
})
}
},
//分页
...
...
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