Commit 88aeab98 authored by 仇晓婷's avatar 仇晓婷

消息优化

parent 68194d3b
......@@ -1688,5 +1688,17 @@ export default {
file:'文件',
status:'状态',
remark:'备注',
}
},
UserMessage:{
title:'标题',
creationTime:'接受时间',
content:'内容',
senderId:'发送人',
receiverId:'接受人',
status:'状态',
messageType:'类别',
content:'内容',
}
}
......@@ -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 = "resource" + "." + key;
let vkey = "UserMessage" + "." + key;
return this.$t(vkey) || key;
},
search() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment