[update]系统管理-双语处理;角色授权树形结构增加英文字段

This commit is contained in:
fengchenchen
2024-07-16 17:34:15 +08:00
parent 6cd9c01b38
commit bde3b95fea
6 changed files with 90 additions and 86 deletions
+8 -7
View File
@@ -20,7 +20,7 @@ module.exports = {
delete: 'Delete', delete: 'Delete',
more: 'More', more: 'More',
areYouSure: 'Confirm to delete?', areYouSure: 'Confirm to delete?',
details: 'Details', details: 'View',
serialNumber: 'No.', serialNumber: 'No.',
operation: 'Operation', operation: 'Operation',
confirm: 'Confirm', confirm: 'Confirm',
@@ -33,12 +33,12 @@ module.exports = {
batchDelete: 'Delete in Batch', batchDelete: 'Delete in Batch',
total: 'Total', total: 'Total',
strip: 'Items', strip: 'Items',
createTime: 'Time of Creation', createTime: 'Creation Time',
selectARecord: 'Please select a record!', selectARecord: 'Please select a record!',
confirmDeletion: 'Confirm Deletion', confirmDeletion: 'Confirm Deletion',
deleteAData: 'Delete Selected Data?', deleteAData: 'Delete Selected Data?',
description: 'Description', description: 'Description',
enable: 'Enable', enable: ' Enable',
disable: 'Disabled', disable: 'Disabled',
normal: 'Normal', normal: 'Normal',
startTime: 'Start Time', startTime: 'Start Time',
@@ -286,7 +286,7 @@ module.exports = {
confirmPassword: 'Confirm Password', confirmPassword: 'Confirm Password',
reenterLoginPassword: 'Please re-enter your login password', reenterLoginPassword: 'Please re-enter your login password',
roleAssignment: 'Role Assignment', roleAssignment: 'Role Assignment',
departmentAllocation: 'Department Allocation', departmentAllocation: 'Department',
identity: 'Identity', identity: 'Identity',
ordinaryUsers: 'Ordinary Users', ordinaryUsers: 'Ordinary Users',
superior: 'Superior', superior: 'Superior',
@@ -364,8 +364,8 @@ module.exports = {
roleManage: { roleManage: {
roleName: 'Role Name', roleName: 'Role Name',
newRole: 'Create New Role', newRole: 'Create New Role',
userBtn: 'Users', userBtn: 'User(s)',
toGrantAuthorization: 'Authorized', toGrantAuthorization: 'Authorization',
newUser: 'New User', newUser: 'New User',
existingUsers: 'Existing Users', existingUsers: 'Existing Users',
roleCode: 'Role Code', roleCode: 'Role Code',
@@ -380,7 +380,8 @@ module.exports = {
youHavePermissions: 'The permissions you have', youHavePermissions: 'The permissions you have',
saveOnly: 'Save Only', saveOnly: 'Save Only',
saveAndClose: 'Save And Close', saveAndClose: 'Save And Close',
rolePermissionConfig: 'Role Permission Configuration' rolePermissionConfig: 'Role Permission Configuration',
addUser: 'Add User(s)'
}, },
// 数据字典列表、新增编辑 // 数据字典列表、新增编辑
dict: { dict: {
+50 -50
View File
@@ -2,57 +2,57 @@
module.exports = { module.exports = {
// 标签管理 // 标签管理
tag: { tag: {
tagItemManagement: '标签项管理', tagItemManagement: 'Tag Item Management', // '标签项管理'
labelContentManagement: '标签内容管理', labelContentManagement: ' Tag Content Management', // '标签内容管理'
attributeName: '属性名称', attributeName: 'Attribute Name',
attributeNameEnglish: '英文名称', attributeNameEnglish: 'English Name',
fieldName: '字段名称', fieldName: 'Field Name',
attributeType: '属性类型', attributeType: 'Attribute Type',
fieldLength: '字段长度', fieldLength: 'Field Length',
displayOrder: '展示顺序', displayOrder: 'Display Order',
showArea: '展示区域', showArea: 'Display Area',
exhibitionAreaManagement: '展示区域管理', exhibitionAreaManagement: 'Display Area Management', // '展示区域管理'
labelName: '标签名称', labelName: 'Tag Name',
labelType: '标签类型', labelType: 'Tag Type',
essentialInformation: '基本信息', essentialInformation: 'Basis',
domesticLaws: '国内法规', domesticLaws: '国内法规',
foreignStandards: '海外标准', foreignStandards: '海外标准',
foreignStandardRegulations: '外来标准法规', foreignStandardRegulations: 'External Standard and Regulation',
enterpriseStandards: '企业标准', enterpriseStandards: 'Enterprise Standard',
clauseSplitting: '条款拆分', clauseSplitting: 'Regulation Split',
// 新增模态框中字段 // 新增模态框中字段
module: '所属模块', module: 'Module',
required: '是否必填', required: 'Required',
optionContent: '选项内容', optionContent: 'Option Content',
documentLibraryModuleDisplay: '文档库模块展示', documentLibraryModuleDisplay: ' Texts Library Exist',
documentLibraryListDisplay: '文档库列表展示', documentLibraryListDisplay: ' Texts Library List Exist',
selectWhetherDisplayList: '请选择是否文档库列表展示', selectWhetherDisplayList: 'please select whether to display on the Texts Library List',
isShowDetail: '详情页展示', isShowDetail: 'Details Exist',
isShowDetailMessage: '请选择是否详情页展示', isShowDetailMessage: 'Please select whether to display on the details',
isShowAddForm: '新增是否展示', isShowAddForm: 'Add Exist',
isShowAddFormMessage: '请选择是否新增表单显示', isShowAddFormMessage: 'Please select whether to display on the add form',
search: '是否搜索', search: 'Searchable',
isSort: '是否排序', isSort: 'Sortable',
displayOtherModules: '其它模块展示', displayOtherModules: 'Other Modules',
regulationsListDisplay: '法规清单展示', regulationsListDisplay: '法规清单展示',
selectDisplayListRegulations: '请选择法规清单是否展示', selectDisplayListRegulations: '请选择法规清单是否展示',
searchCenterDisplay: '搜索中心展示', searchCenterDisplay: ' Search Exist',
selectSearchCenterDisplayed: '请选择搜索中心是否展示', selectSearchCenterDisplayed: 'Please select whether to display on the Search',
selectWhetherRequired: '请选择是否必填', selectWhetherRequired: 'Please select whether to required',
describe: '描述', describe: 'Description',
dictionaryConfiguration: '字典配置', dictionaryConfiguration: 'Dictionary Configuration',
documentSplitDisplay: '文档拆分模块展示', documentSplitDisplay: 'Regulation Split Exist',
documentSplitList: '文档拆分列表展示', documentSplitList: 'Regulation Split List Exist',
selectSplitListDisplay: '请选择是否文档拆分列表展示', selectSplitListDisplay: 'Please select whether to display on the Regulation Split',
// 标签项内容管理 // 标签项内容管理
labelItemName: '标签名称', labelItemName: 'Tag Name',
// 字段列表 // 字段列表
name: '名称', name: 'Name',
dataValue: '数据值', dataValue: 'Value',
parentName: '父级名称', parentName: 'Parent Name',
select: '下拉选择', select: 'select',
tree: '树形结构', tree: 'Tree',
pleaseEnterYourEnglishName: '请输入英文字段名称' pleaseEnterYourEnglishName: 'Please input english name'
}, },
// 内部工作组 // 内部工作组
internalWorkGroup: { internalWorkGroup: {
@@ -77,15 +77,15 @@ module.exports = {
}, },
// 友情链接管理 // 友情链接管理
friendshipLink: { friendshipLink: {
name: 'Link Name', name: 'Blogroll Name',
shelfStatus: 'Shelf Status', shelfStatus: 'Shelf Status',
linkName: 'Link Name', linkName: 'Blogroll Name',
link: 'Link', link: 'Blogroll',
isShelf: 'Shelf Or Not', isShelf: 'Shelf Or Not',
sort: 'Sort', sort: 'Sort',
shelfWarn: 'the link is empty please fill in the link first', shelfWarn: 'the blogroll is empty please fill in the link first',
maxLinksReached: 'The current link listing limit has been reached!', maxLinksReached: 'The current blogroll listing limit has been reached!',
logo: 'LOGO' logo: 'Logo'
}, },
// 联络人管理 // 联络人管理
contact: { contact: {
+2 -1
View File
@@ -408,7 +408,8 @@ module.exports = {
youHavePermissions: '所拥有的权限', youHavePermissions: '所拥有的权限',
saveOnly: '仅保存', saveOnly: '仅保存',
saveAndClose: '保存并关闭', saveAndClose: '保存并关闭',
rolePermissionConfig: '角色权限配置' rolePermissionConfig: '角色权限配置',
addUser: '添加已有用户'
}, },
// 数据字典列表、新增编辑 // 数据字典列表、新增编辑
dict: { dict: {
+14 -14
View File
@@ -8,7 +8,7 @@
switchFullscreen switchFullscreen
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭"> :cancelText="$t('close')">
<!-- 查询区域 --> <!-- 查询区域 -->
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
@@ -16,19 +16,19 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="8"> <a-col :span="8">
<a-form-item label="用户账号"> <a-form-item :label="$t('user.userAccount')">
<j-input placeholder="请输入用户账号" v-model="queryParam.username"></j-input> <j-input :placeholder="$t('pleaseEnter') + $t('user.userAccount')" v-model="queryParam.username"></j-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="用户名称"> <a-form-item :label="$t('user.userName')">
<j-input placeholder="请输入用户名称" v-model="queryParam.realname"></j-input> <j-input :placeholder="$t('pleaseEnter') + $t('user.userName')" v-model="queryParam.realname"></j-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">{{ $t('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">{{ $t('reset') }}</a-button>
</span> </span>
</a-col> </a-col>
@@ -65,7 +65,7 @@ export default {
name: 'SelectUserModal', name: 'SelectUserModal',
data () { data () {
return { return {
title: '添加已有用户', title: this.$t('roleManage.addUser'),
names: [], names: [],
visible: false, visible: false,
placement: 'right', placement: 'right',
@@ -75,7 +75,7 @@ export default {
// 表头 // 表头
columns1: [ columns1: [
{ {
title: '序号', title: this.$t('serialNumber'),
dataIndex: '', dataIndex: '',
key: 'rowIndex', key: 'rowIndex',
width: 50, width: 50,
@@ -85,31 +85,31 @@ export default {
} }
}, },
{ {
title: '用户账号', title: this.$t('user.userAccount'),
align: 'center', align: 'center',
width: 100, width: 100,
dataIndex: 'username' dataIndex: 'username'
}, },
{ {
title: '用户名称', title: this.$t('user.userName'),
align: 'center', align: 'center',
width: 100, width: 100,
dataIndex: 'realname' dataIndex: 'realname'
}, },
{ {
title: '性别', title: this.$t('user.gender'),
align: 'center', align: 'center',
width: 100, width: 100,
dataIndex: 'sex_dictText' dataIndex: 'sex_dictText'
}, },
{ {
title: '电话', title: this.$t('phoneNumber'),
align: 'center', align: 'center',
width: 100, width: 100,
dataIndex: 'phone' dataIndex: 'phone'
}, },
{ {
title: '部门', title: this.$t('organization'),
align: 'center', align: 'center',
width: 150, width: 150,
dataIndex: 'orgCodeTxt' dataIndex: 'orgCodeTxt'
+11 -11
View File
@@ -118,18 +118,18 @@
</a-form-model-item> </a-form-model-item>
<!-- update--end--autor:wangshuai-----date:20200108------for新增身份和负责部门------ --> <!-- update--end--autor:wangshuai-----date:20200108------for新增身份和负责部门------ -->
<!--手写章用于企标制修订流程最后一个节点在线编辑的手写章信息维护--> <!--手写章用于企标制修订流程最后一个节点在线编辑的手写章信息维护-->
<a-form-model-item :label="$t('user.handStamp')" :labelCol="labelCol" :wrapperCol="wrapperCol"> <!--<a-form-model-item :label="$t('user.handStamp')" :labelCol="labelCol" :wrapperCol="wrapperCol">-->
<j-image-upload class="avatar-uploader" <!-- <j-image-upload class="avatar-uploader"-->
:text="$t('upload')" <!-- :text="$t('upload')"-->
v-model="model.avatar" <!-- v-model="model.avatar"-->
:disabled="disableSubmit" <!-- :disabled="disableSubmit"-->
:number=1 <!-- :number=1-->
accept='.png,.PNG,.jpg,.JPG'></j-image-upload> <!-- accept='.png,.PNG,.jpg,.JPG'></j-image-upload>-->
</a-form-model-item> <!--</a-form-model-item>-->
<a-form-model-item :label="$t('user.gender')" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-model-item :label="$t('user.gender')" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-select v-model="model.sex" <a-select v-model="model.sex"
:placeholder="$t('pleaseSelect') + $t('user.gender')" :placeholder="disableSubmit ? '' : $t('pleaseSelect') + $t('user.gender')"
:getPopupContainer="(target) => target.parentNode" :getPopupContainer="(target) => target.parentNode"
:disabled="disableSubmit"> :disabled="disableSubmit">
<a-select-option :value="1">{{ $t('user.male') }}</a-select-option> <a-select-option :value="1">{{ $t('user.male') }}</a-select-option>
@@ -138,14 +138,14 @@
</a-form-model-item> </a-form-model-item>
<a-form-model-item :label="$t('user.mailbox')" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="email"> <a-form-model-item :label="$t('user.mailbox')" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="email">
<a-input :placeholder="$t('pleaseEnter') + $t('user.mailbox')" <a-input :placeholder="disableSubmit || !!model.id ? '' : $t('pleaseEnter') + $t('user.mailbox')"
v-model="model.email" v-model="model.email"
:maxLength="50" :maxLength="50"
:disabled="disableSubmit || !!model.id" /> :disabled="disableSubmit || !!model.id" />
</a-form-model-item> </a-form-model-item>
<a-form-model-item :label="$t('phoneNumber')" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="phone"> <a-form-model-item :label="$t('phoneNumber')" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="phone">
<a-input :placeholder="$t('pleaseEnter') + $t('phoneNumber')" <a-input :placeholder="isDisabledAuth('user:form:phone') || disableSubmit || !!model.id ? '' : $t('pleaseEnter') + $t('phoneNumber')"
:disabled="isDisabledAuth('user:form:phone') || disableSubmit || !!model.id" :disabled="isDisabledAuth('user:form:phone') || disableSubmit || !!model.id"
v-model="model.phone" /> v-model="model.phone" />
</a-form-model-item> </a-form-model-item>
+5 -3
View File
@@ -21,8 +21,8 @@
:selectedKeys="selectedKeys" :selectedKeys="selectedKeys"
:expandedKeys="expandedKeysss" :expandedKeys="expandedKeysss"
:checkStrictly="checkStrictly"> :checkStrictly="checkStrictly">
<span slot="hasDatarule" slot-scope="{slotTitle,ruleFlag}"> <span slot="hasDatarule" slot-scope="{slotTitle,ruleFlag, dataRef}">
{{ slotTitle }}<a-icon v-if="ruleFlag" type="align-left" style="margin-left:5px;color: red;"></a-icon> {{dataRef[showKey] || slotTitle}}<a-icon v-if="ruleFlag" type="align-left" style="margin-left:5px;color: red;"></a-icon>
</span> </span>
</a-tree> </a-tree>
</a-form-item> </a-form-item>
@@ -69,7 +69,9 @@ export default {
title: this.$t('roleManage.rolePermissionConfig'), title: this.$t('roleManage.rolePermissionConfig'),
visible: false, visible: false,
loading: false, loading: false,
selectedKeys: [] selectedKeys: [],
// 树形结构显示的信息,处理双语
showKey: localStorage.language === 'en-us' ? 'slotTitleEn' : 'slotTitle'
} }
}, },
methods: { methods: {