fix:菜单管理、角色管理、字典管理页面内容的中文改为英文

This commit is contained in:
orgin 2023-05-23 18:27:53 +08:00
parent 9362b403a1
commit ac8acd3d38
3 changed files with 91 additions and 91 deletions

View File

@ -6,33 +6,33 @@
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="12">
<a-col :md="7" :sm="8">
<a-form-item label="字典名称" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}">
<a-input placeholder="请输入字典名称" v-model="queryParam.dictName"></a-input>
<a-form-item label="DictName" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}">
<a-input placeholder="Please Enter DictName" v-model="queryParam.dictName"></a-input>
</a-form-item>
</a-col>
<a-col :md="7" :sm="8">
<a-form-item label="字典编号" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}">
<a-input placeholder="请输入字典编号" v-model="queryParam.dictCode"></a-input>
<a-form-item label="DictCode" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}">
<a-input placeholder="Please Enter DictCode" v-model="queryParam.dictCode"></a-input>
</a-form-item>
</a-col>
<a-col :md="7" :sm="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">Search</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">Reload</a-button>
</span>
</a-col>
</a-row>
</a-form>
<div class="table-operator" style="border-top: 5px">
<a-button @click="handleAdd" type="primary" icon="plus">添加</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('字典信息')">导出</a-button>
<a-button @click="handleAdd" type="primary" icon="plus">Add</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('字典信息')">Export</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
<a-button type="primary" icon="import">Import</a-button>
</a-upload>
<a-button type="primary" icon="sync" @click="refleshCache()">刷新缓存</a-button>
<a-button type="primary" icon="sync" @click="refleshCache()">RefleshCache</a-button>
<a-button type="primary" icon="hdd" @click="openDeleteList">回收站</a-button>
<a-button type="primary" icon="hdd" @click="openDeleteList">RecycleBin</a-button>
</div>
<a-table
@ -47,13 +47,13 @@
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">
<a-icon type="edit"/>
编辑
Edit
</a>
<a-divider type="vertical"/>
<a @click="editDictItem(record)"><a-icon type="setting"/> 字典配置</a>
<a @click="editDictItem(record)"><a-icon type="setting"/> EditDict</a>
<a-divider type="vertical"/>
<a-popconfirm title="确定删除吗?" @confirm="() =>handleDelete(record.id)">
<a>删除</a>
<a-popconfirm title="Do You Want To Delete This Item?" @confirm="() =>handleDelete(record.id)">
<a>Delete</a>
</a-popconfirm>
</span>
</a-table>
@ -101,22 +101,22 @@
}
},
{
title: '字典名称',
title: 'DICTNAME',
align: "left",
dataIndex: 'dictName',
},
{
title: '字典编号',
title: 'DICTCODE',
align: "left",
dataIndex: 'dictCode',
},
{
title: '描述',
title: 'DESCRIPTION',
align: "left",
dataIndex: 'description',
},
{
title: '操作',
title: 'ACTION',
dataIndex: 'action',
align: "center",
scopedSlots: {customRender: 'action'},
@ -188,11 +188,11 @@
Vue.ls.set(UI_CACHE_DB_DICT_DATA, res.result, 7 * 24 * 60 * 60 * 1000)
}
})
this.$message.success("刷新缓存完成");
this.$message.success("Flush cache succeeded");
}
}).catch(e=>{
this.$message.warn("刷新缓存失败");
console.log("刷新失败",e)
this.$message.warn("Cache refresh failure");
console.log("Refresh failure",e)
})
}
},

View File

@ -3,13 +3,13 @@
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button @click="handleAdd" type="primary" icon="plus">Add</a-button>
<a-button
@click="batchDel"
v-if="selectedRowKeys.length > 0"
ghost
type="primary"
icon="delete">批量删除
icon="delete">Batch Remove
</a-button>
</div>
@ -17,9 +17,9 @@
<div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"></i>已选择&nbsp;<a style="font-weight: 600">{{
selectedRowKeys.length }}</a>&nbsp;&nbsp;
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
<i class="anticon anticon-info-circle ant-alert-icon"></i>To Select&nbsp;<a style="font-weight: 600">{{
selectedRowKeys.length }}</a> Item&nbsp;&nbsp;
<a style="margin-left: 24px" @click="onClearSelected">Clear</a>
</div>
<a-table
@ -34,27 +34,27 @@
@expandedRowsChange="handleExpandedRowsChange">
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a>
<a @click="handleEdit(record)">Edit</a>
<a-divider type="vertical"/>
<a-dropdown>
<a class="ant-dropdown-link">
更多 <a-icon type="down"/>
More <a-icon type="down"/>
</a>
<a-menu slot="overlay">
<a-menu-item>
<a href="javascript:;" @click="handleDetail(record)">详情</a>
<a href="javascript:;" @click="handleDetail(record)">Detail</a>
</a-menu-item>
<a-menu-item>
<a href="javascript:;" @click="handleAddSub(record)">添加下级</a>
<a href="javascript:;" @click="handleAddSub(record)">AddSub</a>
</a-menu-item>
<a-menu-item>
<a href="javascript:;" @click="handleDataRule(record)">数据规则</a>
<a href="javascript:;" @click="handleDataRule(record)">DataRule</a>
</a-menu-item>
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)" placement="topLeft">
<a>删除</a>
<a-popconfirm title="Do You Want To Delete This Item?'" @confirm="() => handleDelete(record.id)" placement="topLeft">
<a>Delete</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
@ -88,20 +88,20 @@
const columns = [
{
title: '菜单名称',
title: 'NAME',
dataIndex: 'name',
key: 'name'
}, {
title: '菜单类型',
title: 'MENU TYPE',
dataIndex: 'menuType',
key: 'menuType',
customRender: function(text) {
if (text == 0) {
return '菜单'
return 'MENU'
} else if (text == 1) {
return '菜单'
return 'MENU'
} else if (text == 2) {
return '按钮/权限'
return 'BUTTON/PERMS'
} else {
return text
}
@ -111,29 +111,29 @@
dataIndex: 'perms',
key: 'permissionCode',
},*/{
title: 'icon',
title: 'ICON',
dataIndex: 'icon',
key: 'icon'
},
{
title: '组件',
title: 'COMPONENT',
dataIndex: 'component',
key: 'component',
scopedSlots: { customRender: 'component' }
},
{
title: '路径',
title: 'URL',
dataIndex: 'url',
key: 'url',
scopedSlots: { customRender: 'url' }
},
{
title: '排序',
title: 'SORT NO',
dataIndex: 'sortNo',
key: 'sortNo'
},
{
title: '操作',
title: 'ACTION',
dataIndex: 'action',
scopedSlots: { customRender: 'action' },
align: 'center',
@ -213,7 +213,7 @@
this.$refs.PermissionDataRuleList.edit(record)
},
handleAddSub(record) {
this.$refs.modalForm.title = "添加子菜单";
this.$refs.modalForm.title = "Add submenu";
this.$refs.modalForm.disableSubmit = false;
this.$refs.modalForm.edit({status:'1',permsType:'1',route:true,'parentId':record.id,menuType:1});
},

View File

@ -8,7 +8,7 @@
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<a-col :md="12" :sm="8">
<a-form-item label="角色名称" :labelCol="{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-form-item label="RoleName" :labelCol="{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-input placeholder="" v-model="queryParam.roleName"></a-input>
</a-form-item>
</a-col>
@ -23,8 +23,8 @@
-->
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-col :md="12" :sm="24">
<a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 21px">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 21px">Search</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">Reload</a-button>
</a-col>
</span>
</a-row>
@ -32,18 +32,18 @@
</div>
<!-- 操作按钮区域 -->
<div class="table-operator" style="margin: 5px 0 10px 2px">
<a-button @click="handleAdd" type="primary" icon="plus">新建角色</a-button>
<a-button @click="handleAdd" type="primary" icon="plus">ADD</a-button>
<!--<a-button @click="handleEdit(model1)" type="primary" icon="plus">角色编辑</a-button>-->
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
<a-button type="primary" icon="import">Import</a-button>
</a-upload>
<a-button type="primary" icon="download" @click="handleExportXls('角色管理')">导出</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('角色管理')">Export</a-button>
</div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon">
</i> 已选择 <a><b>{{ selectedRowKeys1.length }}</b></a>
<a style="margin-left: 24px" @click="onClearSelected1">清空</a>
</i> To Select <a><b>{{ selectedRowKeys1.length }}</b></a> Item
<a style="margin-left: 24px" @click="onClearSelected1">Clear</a>
</div>
<div style="margin-top: 15px">
@ -60,23 +60,23 @@
:rowSelection="{selectedRowKeys: selectedRowKeys1, onChange: onSelectChange1, type:'radio'}"
@change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a @click="handleOpen(record)">用户</a>
<a @click="handleOpen(record)">User</a>
<a-divider type="vertical"/>
<a-dropdown>
<a class="ant-dropdown-link">
更多 <a-icon type="down"/>
More <a-icon type="down"/>
</a>
<a-menu slot="overlay">
<a-menu-item>
<a @click="handlePerssion(record.id)">授权</a>
<a @click="handlePerssion(record.id)">Perssion</a>
</a-menu-item>
<a-menu-item>
<a @click="handleEdit(record)">编辑</a>
<a @click="handleEdit(record)">Edit</a>
</a-menu-item>
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete1(record.id)">
<a>删除</a>
<a-popconfirm title="Do You Want To Delete This Item?'" @confirm="() => handleDelete1(record.id)">
<a>Delete</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
@ -100,14 +100,14 @@
<a-row :gutter="24">
<a-col :md="12" :sm="12">
<a-form-item label="用户账号">
<a-form-item label="UserName">
<a-input placeholder="" v-model="queryParam2.username"></a-input>
</a-form-item>
</a-col>
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-col :md="9" :sm="24">
<a-button type="primary" @click="searchQuery2" icon="search" style="margin-left: 21px">查询</a-button>
<a-button type="primary" @click="searchReset2" icon="reload" style="margin-left: 8px">重置</a-button>
<a-button type="primary" @click="searchQuery2" icon="search" style="margin-left: 21px">Search</a-button>
<a-button type="primary" @click="searchReset2" icon="reload" style="margin-left: 8px">Reload</a-button>
</a-col>
</span>
@ -116,18 +116,18 @@
</div>
<!-- 操作按钮区域 -->
<div class="table-operator" :md="24" :sm="24">
<a-button @click="handleAdd2" type="primary" icon="plus" style="margin-top: 16px">新增用户</a-button>
<a-button @click="handleAdd2" type="primary" icon="plus" style="margin-top: 16px">Add</a-button>
<!--<a-button @click="handleEdit2" type="primary" icon="edit" style="margin-top: 16px">用户编辑</a-button>-->
<a-button @click="handleAddUserRole" type="primary" icon="plus" style="margin-top: 16px">已有用户</a-button>
<a-button @click="handleAddUserRole" type="primary" icon="plus" style="margin-top: 16px">Existing users</a-button>
<a-dropdown v-if="selectedRowKeys2.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel2">
<a-icon type="delete"/>
取消关联
Unbind
</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作
<a-button style="margin-left: 8px"> Batch operation
<a-icon type="down"/>
</a-button>
</a-dropdown>
@ -135,9 +135,9 @@
<!-- table区域-begin -->
<div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{
selectedRowKeys2.length }}</a>
<a style="margin-left: 24px" @click="onClearSelected2">清空</a>
<i class="anticon anticon-info-circle ant-alert-icon"></i> To Select <a style="font-weight: 600">{{
selectedRowKeys2.length }}</a> Item
<a style="margin-left: 24px" @click="onClearSelected2">Clear</a>
</div>
<a-table
style="height:500px"
@ -152,16 +152,16 @@
:rowSelection="{selectedRowKeys: selectedRowKeys2, onChange: onSelectChange2}"
@change="handleTableChange2">
<span slot="action" slot-scope="text, record">
<a @click="handleEdit2(record)">编辑</a>
<a @click="handleEdit2(record)">Edit</a>
<a-divider type="vertical"/>
<a-dropdown>
<a class="ant-dropdown-link">
更多 <a-icon type="down"/>
More <a-icon type="down"/>
</a>
<a-menu slot="overlay">
<a-menu-item>
<a-popconfirm title="确定取消关联吗?" @confirm="() => handleDelete2(record.id)">
<a>取消关联</a>
<a-popconfirm title="Are you sure you want to unbind?" @confirm="() => handleDelete2(record.id)">
<a>Unbind</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
@ -249,17 +249,17 @@
columns:
[
{
title: '角色编码',
title: 'ROLECODE',
align: 'center',
dataIndex: 'roleCode'
},
{
title: '角色名称',
title: 'ROLENAME',
align: 'center',
dataIndex: 'roleName'
},
{
title: '创建时间',
title: 'CREATETIME',
dataIndex: 'createTime',
align:"center",
sorter: true,
@ -268,33 +268,33 @@
}
},
{
title: '操作',
title: 'ACTION',
dataIndex: 'action',
align: 'center',
scopedSlots: { customRender: 'action' }
}
],
columns2: [{
title: '用户账号',
title: 'USERNAME',
align: 'center',
dataIndex: 'username',
width: 120
},
{
title: '用户名称',
title: 'REALNAME',
align: 'center',
width: 100,
dataIndex: 'realname'
},
{
title: '状态',
title: 'STATUS',
align: 'center',
width: 80,
dataIndex: 'status_dictText'
},
{
title: '操作',
title: 'ACTION',
dataIndex: 'action',
scopedSlots: { customRender: 'action' },
align: 'center',
@ -375,16 +375,16 @@
return str
},
handleEdit2: function(record) {
this.$refs.modalForm2.title = '编辑'
this.$refs.modalForm2.title = 'Edit'
this.$refs.modalForm2.roleDisabled = true
this.$refs.modalForm2.edit(record)
},
handleAdd2: function() {
if (this.currentRoleId == '') {
this.$message.error('请选择一个角色!')
this.$message.error('Please select a role!')
} else {
this.$refs.modalForm2.roleDisabled = true
this.$refs.modalForm2.title = '新增'
this.$refs.modalForm2.title = 'Add'
this.$refs.modalForm2.edit({activitiSync:'1',userIdentity:1,selectedroles:this.currentRoleId})
}
},
@ -394,7 +394,7 @@
},
loadData2(arg) {
if (!this.url.list2) {
this.$message.error('请设置url.list2属性!')
this.$message.error('Please set url.list2 property!')
return
}
// 1
@ -422,7 +422,7 @@
},
handleDelete2: function(id) {
if (!this.url.delete2) {
this.$message.error('请设置url.delete2属性!')
this.$message.error('Please set url.delete2 property!')
return
}
var that = this
@ -438,11 +438,11 @@
batchDel2: function() {
if (!this.url.deleteBatch2) {
this.$message.error('请设置url.deleteBatch2属性!')
this.$message.error('Please set rl.deleteBatch2 property!')
return
}
if (this.selectedRowKeys2.length <= 0) {
this.$message.warning('请选择一条记录')
this.$message.warning('Please select a record')
return
} else {
var ids = ''
@ -452,8 +452,8 @@
var that = this
console.log(this.currentDeptId)
this.$confirm({
title: '确认取消关联',
content: '是否删除选中数据?',
title: 'Confirm unbinding',
content: 'Whether to delete the selected data?',
onOk: function() {
deleteAction(that.url.deleteBatch2, { roleId: that.currentRoleId, userIds: ids }).then((res) => {
if (res.success) {
@ -488,7 +488,7 @@
handleAddUserRole() {
if (this.currentRoleId == '') {
this.$message.error('请选择一个角色!')
this.$message.error('Please select a role!')
} else {
this.$refs.selectUserModal.visible = true
}