fix:消息页面 中文改为英文

This commit is contained in:
xiaoguangbin 2023-11-30 10:15:26 +08:00
parent 90f0d873a6
commit 3d0ec44a29

View File

@ -6,20 +6,20 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="6"> <a-col :span="6">
<a-form-item label="标题"> <a-form-item label="Title">
<a-input placeholder="请输入标题" v-model="queryParam.titile"></a-input> <a-input placeholder="Please enter the title" v-model="queryParam.titile"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="6"> <a-col :span="6">
<a-form-item label="发布人"> <a-form-item label="sender">
<a-input placeholder="请输入发布人" v-model="queryParam.sender"></a-input> <a-input placeholder="Please enter the sender" v-model="queryParam.sender"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8" > <a-col :span="8" >
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button> <a-button type="primary" @click="searchQuery" icon="search">Query</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">Reset</a-button>
</span> </span>
</a-col> </a-col>
@ -28,7 +28,7 @@
</div> </div>
<div class="table-operator"> <div class="table-operator">
<a-button type="primary" @click="readAll" icon="book">全部标注已读</a-button> <a-button type="primary" @click="readAll" icon="book">Marked Read</a-button>
</div> </div>
<a-table <a-table
@ -42,7 +42,7 @@
:loading="loading" :loading="loading"
@change="handleTableChange"> @change="handleTableChange">
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a @click="showAnnouncement(record)">查看</a> <a @click="showAnnouncement(record)">VIEW</a>
</span> </span>
</a-table> </a-table>
<show-announcement ref="ShowAnnouncement"></show-announcement> <show-announcement ref="ShowAnnouncement"></show-announcement>
@ -69,60 +69,60 @@
description: '系统通告表管理页面', description: '系统通告表管理页面',
queryParam: {}, queryParam: {},
columns: [{ columns: [{
title: '标题', title: 'TITLE',
align:"center", align:"center",
dataIndex: 'titile' dataIndex: 'titile'
},{ },{
title: '消息类型', title: 'MESSAGE TYPE',
align: "center", align: "center",
dataIndex: 'msgCategory', dataIndex: 'msgCategory',
customRender: function (text) { customRender: function (text) {
if (text == '1') { if (text == '1') {
return "通知公告"; return "NOTICE";
} else if (text == "2") { } else if (text == "2") {
return "系统消息"; return "SYSTEM";
} else { } else {
return text; return text;
} }
} }
},{ },{
title: '发布人', title: 'SENDER',
align:"center", align:"center",
dataIndex: 'sender' dataIndex: 'sender'
},{ },{
title: '发布时间', title: 'SEND TIME',
align:"center", align:"center",
dataIndex: 'sendTime' dataIndex: 'sendTime'
},{ },{
title: '优先级', title: 'PRIORTIY',
align:"center", align:"center",
dataIndex: 'priority', dataIndex: 'priority',
customRender:function (text) { customRender:function (text) {
if(text=='L'){ if(text=='L'){
return ""; return "LOW";
}else if(text=="M"){ }else if(text=="M"){
return ""; return "MIDDLE";
}else if(text=="H"){ }else if(text=="H"){
return ""; return "HIGH";
} else { } else {
return text; return text;
} }
} }
},{ },{
title: '阅读状态', title: 'READING STATE',
align:"center", align:"center",
dataIndex: 'readFlag', dataIndex: 'readFlag',
customRender:function (text) { customRender:function (text) {
if(text=='0'){ if(text=='0'){
return "未读"; return "UNREAD";
}else if(text=="1"){ }else if(text=="1"){
return "已读"; return "READ";
} else { } else {
return text; return text;
} }
} }
},{ },{
title: '操作', title: 'ACTION',
dataIndex: 'action', dataIndex: 'action',
align:"center", align:"center",
scopedSlots: { customRender: 'action' }, scopedSlots: { customRender: 'action' },
@ -140,7 +140,7 @@
methods: { methods: {
handleDetail: function(record){ handleDetail: function(record){
this.$refs.sysAnnouncementModal.detail(record); this.$refs.sysAnnouncementModal.detail(record);
this.$refs.sysAnnouncementModal.title="查看"; this.$refs.sysAnnouncementModal.title="VIEW";
}, },
showAnnouncement(record){ showAnnouncement(record){
putAction(this.url.editCementSend,{anntId:record.anntId}).then((res)=>{ putAction(this.url.editCementSend,{anntId:record.anntId}).then((res)=>{
@ -163,8 +163,8 @@
readAll(){ readAll(){
var that = this; var that = this;
that.$confirm({ that.$confirm({
title:"确认操作", title:"Config",
content:"是否全部标注已读?", content:"Whether all marks are read?",
onOk: function(){ onOk: function(){
putAction(that.url.readAllMsg).then((res)=>{ putAction(that.url.readAllMsg).then((res)=>{
if(res.success){ if(res.success){