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