Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
88aeab98
Commit
88aeab98
authored
Aug 28, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息优化
parent
68194d3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
18 deletions
+41
-18
zh-CN.js
i18n/locale/zh-CN.js
+13
-1
msgRecord.vue
pages/home/msgRecord.vue
+28
-17
No files found.
i18n/locale/zh-CN.js
View file @
88aeab98
...
...
@@ -1688,5 +1688,17 @@ export default {
file
:
'文件'
,
status
:
'状态'
,
remark
:
'备注'
,
}
},
UserMessage
:{
title
:
'标题'
,
creationTime
:
'接受时间'
,
content
:
'内容'
,
senderId
:
'发送人'
,
receiverId
:
'接受人'
,
status
:
'状态'
,
messageType
:
'类别'
,
content
:
'内容'
,
}
}
pages/home/msgRecord.vue
View file @
88aeab98
...
...
@@ -18,12 +18,23 @@
<Modal
v-model=
"modal"
title=
"查看详情"
width=
"1200"
footer-hide
>
<div
class=
"detail"
>
<Row>
<Filed
:span=
"12"
name=
"标题"
>
{{entity.title}}
</Filed>
<Filed
:span=
"12"
name=
"接受时间"
>
{{entity.creationTime}}
</Filed>
<Filed
:span=
"24"
name=
"内容"
>
{{entity.content}}
</Filed>
<Filed
:span=
"12"
name=
"发送人"
>
{{entity.senderId}}
</Filed>
<Filed
:span=
"12"
name=
"接受人"
>
{{entity.receiverId}}
</Filed>
<Filed
:span=
"24"
name=
"状态"
style=
"color:red"
>
{{entity.messageType== 1 ? "已读" : ""}}
</Filed>
<Filed
:span=
"12"
:name=
"l('title')"
>
{{entity.title}}
</Filed>
<Filed
:span=
"12"
:name=
"l('creationTime')"
>
{{entity.creationTime}}
</Filed>
<Filed
:span=
"12"
:name=
"l('senderId')"
>
<User
:value=
"entity.senderId"
></User>
</Filed>
<Filed
:span=
"12"
:name=
"l('receiverId')"
>
<User
:value=
"entity.receiverId"
></User>
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
>
<state
code=
"message.status"
:value=
"entity.status+''"
type=
"text"
/>
</Filed>
<Filed
:span=
"12"
:name=
"l('messageType')"
style=
"color:red"
>
{{entity.messageType== 1 ? "已读" : ""}}
</Filed>
<Filed
:span=
"24"
:name=
"l('content')"
>
{{entity.content}}
</Filed>
</Row>
</div>
</Modal>
...
...
@@ -106,21 +117,21 @@ export default {
width
:
70
,
align
:
"center"
,
},
{
title
:
"状态"
,
{
title
:
this
.
l
(
"status"
)
,
key
:
"status"
,
width
:
70
,
code
:
"message.status"
,
},
{
title
:
"类别"
,
title
:
this
.
l
(
"messageType"
)
,
key
:
"messageType"
,
width
:
70
,
code
:
"message.status"
,
},
{
title
:
"标题"
,
key
:
"title"
,
title
:
this
.
l
(
"title"
)
,
key
:
"title"
,
},
// {
// title: "内容",
...
...
@@ -131,24 +142,24 @@ export default {
{
key
:
"creationTime"
,
title
:
"发送时间"
,
title
:
this
.
l
(
"creationTime"
)
,
width
:
200
,
},
{
title
:
"接受人"
,
title
:
this
.
l
(
"receiverId"
)
,
key
:
"receiverId"
,
width
:
120
,
type
:
"user"
,
},
{
title
:
"发送人"
,
title
:
this
.
l
(
"senderId"
)
,
key
:
"senderId"
,
width
:
120
,
type
:
"user"
,
},
{
title
:
this
.
l
(
"action"
)
,
title
:
"操作"
,
key
:
"action"
,
width
:
150
,
align
:
"center"
,
...
...
@@ -230,7 +241,7 @@ export default {
this
.
$refs
.
form
.
resetFields
();
},
l
(
key
)
{
let
vkey
=
"
resourc
e"
+
"."
+
key
;
let
vkey
=
"
UserMessag
e"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
},
search
()
{
...
...
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