Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
agcs2.0-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
liang
agcs2.0-web
Commits
74501d35
Commit
74501d35
authored
Apr 03, 2023
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
无数据清空所有formRecordId
parent
b09b4707
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
user.js
src/api/user.js
+7
-0
index.vue
src/layouts/components/NavBar/index.vue
+9
-3
FormTab.vue
src/views/screening/components/FormTab.vue
+3
-0
No files found.
src/api/user.js
View file @
74501d35
...
@@ -199,3 +199,10 @@ export function getRefuteMessage(params) {
...
@@ -199,3 +199,10 @@ export function getRefuteMessage(params) {
// params,
// params,
})
})
}
}
// 设置已读消息
export
function
setReadMessege
(
id
)
{
return
request
({
url
:
`/disease-data/sys/message/read/
${
id
}
`
,
method
:
"
put
"
,
})
}
src/layouts/components/NavBar/index.vue
View file @
74501d35
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<div
<div
class=
"main-text ml-8"
class=
"main-text ml-8"
style=
"cursor: pointer"
style=
"cursor: pointer"
@
click=
"goSearch(item.bizType)"
@
click=
"goSearch(item.bizType
, item.id
)"
>
>
{{
item
.
content
}}
{{
item
.
content
}}
</div>
</div>
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
<
script
>
<
script
>
import
{
mapGetters
}
from
"
vuex
"
import
{
mapGetters
}
from
"
vuex
"
import
{
getMessage
}
from
"
@/api/user
"
import
{
getMessage
,
setReadMessege
}
from
"
@/api/user
"
import
Message
from
"
@/mixins/getMessage
"
import
Message
from
"
@/mixins/getMessage
"
import
{
import
{
Avatar
,
Avatar
,
...
@@ -196,7 +196,13 @@ export default {
...
@@ -196,7 +196,13 @@ export default {
this
.
getMessage
()
this
.
getMessage
()
}
}
},
},
goSearch
(
val
)
{
goSearch
(
val
,
id
)
{
// 消息已读
setReadMessege
(
id
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
getMessage
()
}
})
if
(
val
==
"
screen
"
)
{
if
(
val
==
"
screen
"
)
{
this
.
$router
.
push
(
"
/screening/index?checkStatus=2
"
)
this
.
$router
.
push
(
"
/screening/index?checkStatus=2
"
)
}
}
...
...
src/views/screening/components/FormTab.vue
View file @
74501d35
...
@@ -434,6 +434,9 @@ export default {
...
@@ -434,6 +434,9 @@ export default {
this
.
formData
.
formEdit
=
form
this
.
formData
.
formEdit
=
form
}
}
this
.
formData
.
formRecordId
=
d
.
formRecordId
this
.
formData
.
formRecordId
=
d
.
formRecordId
if
(
!
this
.
formData
.
formRecordId
)
{
this
.
newformRecordId
=
""
}
this
.
formData
.
percent
=
d
.
percent
||
{}
this
.
formData
.
percent
=
d
.
percent
||
{}
const
index
=
this
.
formCacheList
.
findIndex
(
const
index
=
this
.
formCacheList
.
findIndex
(
(
_
)
=>
_
.
formRecordId
===
d
.
formRecordId
(
_
)
=>
_
.
formRecordId
===
d
.
formRecordId
...
...
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