修改国际化配置
This commit is contained in:
@@ -928,7 +928,115 @@ export default {
|
||||
|
||||
},
|
||||
|
||||
//=====================系统管理:用户管理=====================
|
||||
systemManagement_UserManagement: {
|
||||
//--------------数据表标题--------------
|
||||
userId: 'UserId',
|
||||
userName: 'UserName',
|
||||
password: 'Password',
|
||||
nickName: 'NickName',
|
||||
deptName: 'DeptName',
|
||||
phoneNumber: 'PhoneNumber',
|
||||
status: 'Status',
|
||||
creatTime: 'CreatTime',
|
||||
operation: 'Operation',
|
||||
email: 'Email',
|
||||
post: 'Post',
|
||||
role: 'Role',
|
||||
gender: 'Gender',
|
||||
remark: 'Remark',
|
||||
|
||||
//--------------交互框操作提示--------------
|
||||
placeholderDeptName: 'Enter DeptName',
|
||||
placeholderUserId: 'Enter UserId',
|
||||
placeholderUserName: 'Enter UserName',
|
||||
placeholderPassword: 'Enter Password',
|
||||
placeholderNickName: 'Enter NickName',
|
||||
placeholderPhoneNumber: 'Enter PhoneNumber',
|
||||
placeholderStatus: 'Enter Status',
|
||||
placeholderCreatTime: 'Enter CreatTime',
|
||||
placeholderDateStart: 'DateStart',
|
||||
placeholderDateEnd: 'DateEnd',
|
||||
placeholderEmail: 'Enter Email',
|
||||
placeholderPost: 'Select Post',
|
||||
placeholderRole: 'Select Role',
|
||||
placeholderGender: 'Select Gender',
|
||||
placeholderRemark: 'Enter Remark',
|
||||
|
||||
//--------------交互按钮--------------
|
||||
btnSearch: 'Search',
|
||||
btnReset: 'Reset',
|
||||
btnAdd: 'Add',
|
||||
btnEdit: 'Edit',
|
||||
btnDelete: 'Delete',
|
||||
btnImport: 'Import',
|
||||
btnExport: 'Export',
|
||||
btnSubmit: 'Submit',
|
||||
btnCancel: 'Cancel',
|
||||
btnMore: 'More',
|
||||
btnResetPassword: 'Reset Password',
|
||||
btnAssignRole: 'Assign Role',
|
||||
|
||||
//--------------二级窗口标题--------------
|
||||
addUserItem: 'Add User',
|
||||
editUserItem: 'Edit User',
|
||||
|
||||
//--------------提示文本--------------
|
||||
//---布局---
|
||||
textDragOrClick1: 'Drag file here, or ',
|
||||
textDragOrClick2: 'click to upload',
|
||||
textUpdateExistingData: 'Do you want to update existing user data?',
|
||||
textUploadTip: 'Only xlsx and xls files are allowed.',
|
||||
textDownloadTemplate: 'Download Template',
|
||||
|
||||
//---函数:handleStatusChange---
|
||||
textEnable: 'enable',
|
||||
textDisable: 'disable',
|
||||
textUserConfirm1:"Are you sure you want to \"",
|
||||
textUserConfirm2:"\" user?",
|
||||
textSuccess: 'success',
|
||||
|
||||
//---函数:handleResetPwd---
|
||||
textInputPassword1: 'Please enter the new password for the \"',
|
||||
textInputPassword2: '\" user',
|
||||
textTips: 'Tip',
|
||||
textConfirm: 'Confirm',
|
||||
textCancel: 'Cancel',
|
||||
textResetPassword: 'The change was successful and the new password is:',
|
||||
|
||||
//---函数:handleDelete---
|
||||
textDeleteConfirm1: 'Is it confirmed to delete the data item with user number "',
|
||||
textDeleteConfirm2: '"?',
|
||||
|
||||
//---函数:handleImport---
|
||||
textImportTitle: 'Import User Data',
|
||||
|
||||
//---函数:textUploadTitle---
|
||||
textImportResult: 'Result',
|
||||
|
||||
|
||||
//--------------操作提示--------------
|
||||
addSuccessInfo: 'Add Success',
|
||||
editSuccessInfo: 'Edit Success',
|
||||
deleteSuccessInfo: 'Delete Success',
|
||||
resetPasswordSuccessInfo: 'Reset Password Success',
|
||||
assignRoleSuccessInfo: 'Assign Role Success',
|
||||
|
||||
//--------------校验提示--------------
|
||||
checkUserNameIsNull: 'UserName cannot be null!',
|
||||
checkUserNameLength: 'UserName length must be between 2-20 characters!',
|
||||
checkNickNameIsNull: 'NickName cannot be null!',
|
||||
checkPasswordIsNull: 'Password cannot be null!',
|
||||
checkPasswordLength: 'Password length must be between 5-20 characters!',
|
||||
checkPasswordCharacter: "Password cannot contain illegal characters: < > \" \' \\\ |",
|
||||
checkEmailFormat: 'Please enter a valid email address!',
|
||||
checkPhoneNumberFormat: 'Please enter a valid phone number!',
|
||||
|
||||
//--------------其他--------------
|
||||
lblWidthUserName: '80px',
|
||||
lblWidthPhoneNumber: '90px',
|
||||
|
||||
},
|
||||
|
||||
//=====================系统管理:角色管理=====================
|
||||
systemManagement_RoleManagement: {
|
||||
@@ -1124,6 +1232,185 @@ export default {
|
||||
|
||||
},
|
||||
|
||||
//=====================系统管理:部门管理=====================
|
||||
systemManagement_DeptManagement: {
|
||||
//--------------数据表标题--------------
|
||||
deptName: 'DeptName',
|
||||
orderNum: 'OrderNum',
|
||||
status: 'Status',
|
||||
createTime: 'CreateTime',
|
||||
operation: 'Operation',
|
||||
|
||||
//--------------交互框操作提示--------------
|
||||
placeholderDeptName: 'Enter DeptName',
|
||||
placeholderStatus: 'Select Status',
|
||||
|
||||
//--------------二级窗口标题--------------
|
||||
addDeptItem: 'Add Department',
|
||||
editDeptItem: 'Edit Department',
|
||||
|
||||
parentDept: 'Parent Department',
|
||||
setOrderNum: 'OrderNumber',
|
||||
leader : 'Leader',
|
||||
phoneNumber: 'PhoneNumber',
|
||||
email: 'Email',
|
||||
|
||||
//--------------二级窗口操作提示--------------
|
||||
placeholderParentDept: 'Select Parent Department',
|
||||
placeholderLeader : 'Enter Leader',
|
||||
placeholderPhoneNumber: 'Enter PhoneNumber',
|
||||
placeholderEmail: 'Enter Email',
|
||||
|
||||
//--------------交互按钮--------------
|
||||
btnSearch: 'Search',
|
||||
btnReset: 'Reset',
|
||||
btnAdd: 'Add',
|
||||
btnEdit: 'Edit',
|
||||
btnDelete: 'Delete',
|
||||
btnImport: 'Import',
|
||||
btnExport: 'Export',
|
||||
btnSubmit: 'Submit',
|
||||
btnCancel: 'Cancel',
|
||||
btnExpandOrCollapse: 'Expand/Collapse',
|
||||
|
||||
//--------------提示文本--------------
|
||||
|
||||
//---handleDelete---
|
||||
textDeleteConfirm1: 'Are you sure to delete the data item with dept name "',
|
||||
textDeleteConfirm2: '"?',
|
||||
|
||||
//--------------操作提示--------------
|
||||
addSuccessInfo: 'Add Success',
|
||||
editSuccessInfo: 'Edit Success',
|
||||
deleteSuccessInfo: 'Delete Success',
|
||||
|
||||
//--------------校验提示--------------
|
||||
checkParentDeptIsNull: 'Parent Department cannot be null',
|
||||
checkDeptNameIsNull: 'Department Name cannot be null',
|
||||
checkOrderNumIsNull: 'Order Number cannot be null',
|
||||
checkPhoneNumberFormat: 'Please enter a valid phone number',
|
||||
checkEmailFormat: 'Please enter a valid email address',
|
||||
|
||||
},
|
||||
|
||||
|
||||
//=====================系统管理:岗位管理=====================
|
||||
systemManagement_PostManagement: {
|
||||
//--------------数据表标题--------------
|
||||
postId: 'PostId',
|
||||
postCode: 'PostCode',
|
||||
postName: 'PostName',
|
||||
postSort: 'PostSort',
|
||||
status: 'Status',
|
||||
createTime: 'CreateTime',
|
||||
operation: 'Operation',
|
||||
remark: 'Remark',
|
||||
|
||||
//--------------交互框操作提示--------------
|
||||
placeholderPostCode: 'Enter PostCode',
|
||||
placeholderPostName: 'Enter PostName',
|
||||
placeholderRemark: 'Enter Remark',
|
||||
|
||||
//--------------二级窗口标题--------------
|
||||
addPostItem: 'Add Department',
|
||||
editPostItem: 'Edit Department',
|
||||
|
||||
//--------------二级窗口操作提示--------------
|
||||
placeholderPostSort: 'Enter PostSort',
|
||||
placeholderStatus : 'Select Status',
|
||||
|
||||
//--------------交互按钮--------------
|
||||
btnSearch: 'Search',
|
||||
btnReset: 'Reset',
|
||||
btnAdd: 'Add',
|
||||
btnEdit: 'Edit',
|
||||
btnDelete: 'Delete',
|
||||
btnImport: 'Import',
|
||||
btnExport: 'Export',
|
||||
btnSubmit: 'Submit',
|
||||
btnCancel: 'Cancel',
|
||||
btnExpandOrCollapse: 'Expand/Collapse',
|
||||
|
||||
//--------------提示文本--------------
|
||||
|
||||
//---handleDelete---
|
||||
textDeleteConfirm1: 'Are you sure to delete the data item with post name "',
|
||||
textDeleteConfirm2: '"?',
|
||||
|
||||
//--------------操作提示--------------
|
||||
addSuccessInfo: 'Add Success',
|
||||
editSuccessInfo: 'Edit Success',
|
||||
deleteSuccessInfo: 'Delete Success',
|
||||
|
||||
//--------------校验提示--------------
|
||||
checkPostNameIsNull: 'PostName Can Not Be Null',
|
||||
checkPostCodeIsNull: 'PostCode Can Not Be Null',
|
||||
checkPostSortIsNull: 'PostSort Can Not Be Null',
|
||||
|
||||
|
||||
},
|
||||
|
||||
// =====================系统管理:字典管理=====================
|
||||
systemManagement_DictManagement: {
|
||||
//--------------数据表标题--------------
|
||||
dictId: 'DictId',
|
||||
dictName: 'DictName',
|
||||
dictType: 'DictType',
|
||||
status: 'Status',
|
||||
remark: 'Remark',
|
||||
createTime: 'CreateTime',
|
||||
operation: 'Operation',
|
||||
|
||||
//--------------交互框操作提示--------------
|
||||
placeholderDictName: 'Enter DictName',
|
||||
placeholderDictType: 'Enter DictType',
|
||||
placeholderStatus: 'Select Status',
|
||||
placeholderCreateTime: 'Select CreateTime',
|
||||
placeholderDateStart: 'Date Start',
|
||||
placeholderDateEnd: 'Date End',
|
||||
|
||||
//--------------二级窗口标题--------------
|
||||
addDictTypeItem: 'Add DictType',
|
||||
editDictTypeItem: 'Edit DictType',
|
||||
|
||||
//--------------二级窗口操作提示--------------
|
||||
placeholderRemark: 'Enter Remark',
|
||||
|
||||
//--------------交互按钮--------------
|
||||
btnSearch: 'Search',
|
||||
btnReset: 'Reset',
|
||||
btnAdd: 'Add',
|
||||
btnEdit: 'Edit',
|
||||
btnDelete: 'Delete',
|
||||
btnImport: 'Import',
|
||||
btnExport: 'Export',
|
||||
btnSubmit: 'Submit',
|
||||
btnCancel: 'Cancel',
|
||||
btnExpandOrCollapse: 'Expand/Collapse',
|
||||
btnRefreshCache: 'Refresh Cache',
|
||||
|
||||
//--------------提示文本--------------
|
||||
|
||||
//---handleDelete---
|
||||
textDeleteConfirm1: 'Are you sure you want to delete the data item "',
|
||||
textDeleteConfirm2: '"?',
|
||||
|
||||
//--------------操作提示--------------
|
||||
addSuccessInfo: 'Add success',
|
||||
editSuccessInfo: 'Edit success',
|
||||
deleteSuccessInfo: 'Delete success',
|
||||
|
||||
//--------------校验提示--------------
|
||||
checkDictNameIsNull: 'DictName cannot be Null',
|
||||
checkDictTypeIsNull: 'DictType cannot be Null',
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ***************出库作业流水查询*************
|
||||
searchViewOutJobFlow: {
|
||||
title: '出库作业流水查询',
|
||||
@@ -1646,124 +1933,5 @@ export default {
|
||||
},
|
||||
|
||||
|
||||
//=====================系统管理:部门管理=====================
|
||||
systemManagement_DeptManagement: {
|
||||
//--------------数据表标题--------------
|
||||
deptName: 'DeptName',
|
||||
orderNum: 'OrderNum',
|
||||
status: 'Status',
|
||||
createTime: 'CreateTime',
|
||||
operation: 'Operation',
|
||||
|
||||
//--------------交互框操作提示--------------
|
||||
placeholderDeptName: 'Enter DeptName',
|
||||
placeholderStatus: 'Select Status',
|
||||
|
||||
//--------------二级窗口标题--------------
|
||||
addDeptItem: 'Add Department',
|
||||
editDeptItem: 'Edit Department',
|
||||
|
||||
parentDept: 'Parent Department',
|
||||
setOrderNum: 'OrderNumber',
|
||||
leader : 'Leader',
|
||||
phoneNumber: 'PhoneNumber',
|
||||
email: 'Email',
|
||||
|
||||
//--------------二级窗口操作提示--------------
|
||||
placeholderParentDept: 'Select Parent Department',
|
||||
placeholderLeader : 'Enter Leader',
|
||||
placeholderPhoneNumber: 'Enter PhoneNumber',
|
||||
placeholderEmail: 'Enter Email',
|
||||
|
||||
//--------------交互按钮--------------
|
||||
btnSearch: 'Search',
|
||||
btnReset: 'Reset',
|
||||
btnAdd: 'Add',
|
||||
btnEdit: 'Edit',
|
||||
btnDelete: 'Delete',
|
||||
btnImport: 'Import',
|
||||
btnExport: 'Export',
|
||||
btnSubmit: 'Submit',
|
||||
btnCancel: 'Cancel',
|
||||
btnExpandOrCollapse: 'Expand/Collapse',
|
||||
|
||||
//--------------提示文本--------------
|
||||
|
||||
//---handleDelete---
|
||||
textDeleteConfirm1: 'Are you sure to delete the data item with dept name "',
|
||||
textDeleteConfirm2: '"?',
|
||||
|
||||
//--------------操作提示--------------
|
||||
addSuccessInfo: 'Add Success',
|
||||
editSuccessInfo: 'Edit Success',
|
||||
deleteSuccessInfo: 'Delete Success',
|
||||
|
||||
//--------------校验提示--------------
|
||||
checkParentDeptIsNull: 'Parent Department cannot be null',
|
||||
checkDeptNameIsNull: 'Department Name cannot be null',
|
||||
checkOrderNumIsNull: 'Order Number cannot be null',
|
||||
checkPhoneNumberFormat: 'Please enter a valid phone number',
|
||||
checkEmailFormat: 'Please enter a valid email address',
|
||||
|
||||
},
|
||||
|
||||
|
||||
//=====================系统管理:岗位管理=====================
|
||||
systemManagement_PostManagement: {
|
||||
//--------------数据表标题--------------
|
||||
postId: 'PostId',
|
||||
postCode: 'PostCode',
|
||||
postName: 'PostName',
|
||||
postSort: 'PostSort',
|
||||
status: 'Status',
|
||||
createTime: 'CreateTime',
|
||||
operation: 'Operation',
|
||||
remark: 'Remark',
|
||||
|
||||
//--------------交互框操作提示--------------
|
||||
placeholderPostCode: 'Enter PostCode',
|
||||
placeholderPostName: 'Enter PostName',
|
||||
placeholderRemark: 'Enter Remark',
|
||||
|
||||
//--------------二级窗口标题--------------
|
||||
addPostItem: 'Add Department',
|
||||
editPostItem: 'Edit Department',
|
||||
|
||||
//--------------二级窗口操作提示--------------
|
||||
placeholderPostSort: 'Enter PostSort',
|
||||
placeholderStatus : 'Select Status',
|
||||
|
||||
//--------------交互按钮--------------
|
||||
btnSearch: 'Search',
|
||||
btnReset: 'Reset',
|
||||
btnAdd: 'Add',
|
||||
btnEdit: 'Edit',
|
||||
btnDelete: 'Delete',
|
||||
btnImport: 'Import',
|
||||
btnExport: 'Export',
|
||||
btnSubmit: 'Submit',
|
||||
btnCancel: 'Cancel',
|
||||
btnExpandOrCollapse: 'Expand/Collapse',
|
||||
|
||||
//--------------提示文本--------------
|
||||
|
||||
//---handleDelete---
|
||||
textDeleteConfirm1: 'Are you sure to delete the data item with post name "',
|
||||
textDeleteConfirm2: '"?',
|
||||
|
||||
//--------------操作提示--------------
|
||||
addSuccessInfo: 'Add Success',
|
||||
editSuccessInfo: 'Edit Success',
|
||||
deleteSuccessInfo: 'Delete Success',
|
||||
|
||||
//--------------校验提示--------------
|
||||
checkPostNameIsNull: 'PostName Can Not Be Null',
|
||||
checkPostCodeIsNull: 'PostCode Can Not Be Null',
|
||||
checkPostSortIsNull: 'PostSort Can Not Be Null',
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -929,6 +929,117 @@ export default {
|
||||
lockedIsNull: '是否可用不能为空',
|
||||
},
|
||||
|
||||
//=====================系统管理:用户管理=====================
|
||||
systemManagement_UserManagement: {
|
||||
//--------------数据表标题--------------
|
||||
userId: '用户编号',
|
||||
userName: '用户名称',
|
||||
password: '密码',
|
||||
nickName: '用户昵称',
|
||||
deptName: '部门',
|
||||
phoneNumber: '手机号',
|
||||
status: '状态',
|
||||
creatTime: '创建时间',
|
||||
operation: '操作',
|
||||
email: '邮箱',
|
||||
post: '岗位',
|
||||
role: '角色',
|
||||
gender: '性别',
|
||||
remark: '备注',
|
||||
|
||||
//--------------交互框操作提示--------------
|
||||
placeholderDeptName: '请输入部门名称',
|
||||
placeholderUserId: '请输入用户编号',
|
||||
placeholderUserName: '请输入用户名称',
|
||||
placeholderPassword: '请输入密码',
|
||||
placeholderNickName: '请输入用户昵称',
|
||||
placeholderPhoneNumber: '请输入手机号',
|
||||
placeholderStatus: '请选择状态',
|
||||
placeholderCreatTime: '请选择创建时间',
|
||||
placeholderDateStart: '开始日期',
|
||||
placeholderDateEnd: '结束日期',
|
||||
placeholderEmail: '请输入邮箱',
|
||||
placeholderPost: '请选择岗位',
|
||||
placeholderRole: '请选择角色',
|
||||
placeholderGender: '请选择性别',
|
||||
placeholderRemark: '请输入备注信息',
|
||||
|
||||
//--------------交互按钮--------------
|
||||
btnSearch: '搜索',
|
||||
btnReset: '重置',
|
||||
btnAdd: '新增',
|
||||
btnEdit: '修改',
|
||||
btnDelete: '删除',
|
||||
btnImport: '导入',
|
||||
btnExport: '导出',
|
||||
btnSubmit: '确定',
|
||||
btnCancel: '取消',
|
||||
btnMore: '更多',
|
||||
btnResetPassword: '重置密码',
|
||||
btnAssignRole: '分配角色',
|
||||
|
||||
//--------------二级窗口标题--------------
|
||||
addUserItem: '添加用户',
|
||||
editUserItem: '修改用户',
|
||||
|
||||
//--------------提示文本--------------
|
||||
//---布局---
|
||||
textDragOrClick1: '将文件拖到此处,或',
|
||||
textDragOrClick2: '点击上传',
|
||||
textUpdateExistingData: '是否更新已经存在的用户数据?',
|
||||
textUploadTip: '仅允许导入xls、xlsx格式文件。',
|
||||
textDownloadTemplate: '下载模板',
|
||||
|
||||
//---函数:handleStatusChange---
|
||||
textEnable: '启用',
|
||||
textDisable: '禁用',
|
||||
textUserConfirm1:"确认要\"",
|
||||
textUserConfirm2:"\"用户吗?",
|
||||
textSuccess: '成功',
|
||||
|
||||
//---函数:handleResetPwd---
|
||||
textInputPassword1: '请输入',
|
||||
textInputPassword2: '的新密码',
|
||||
textTips: '提示',
|
||||
textConfirm: '确认',
|
||||
textCancel: '取消',
|
||||
textResetPassword: '修改成功,新密码是:',
|
||||
|
||||
//---函数:handleDelete---
|
||||
textDeleteConfirm1: '是否确认删除用户编号为"',
|
||||
textDeleteConfirm2: '"的数据项?',
|
||||
|
||||
//---函数:handleImport---
|
||||
textImportTitle: '导入成功',
|
||||
|
||||
//---函数:textUploadTitle---
|
||||
textImportResult: '导入结果',
|
||||
|
||||
|
||||
//--------------操作提示--------------
|
||||
addSuccessInfo: '新增成功',
|
||||
editSuccessInfo: '编辑成功',
|
||||
deleteSuccessInfo: '删除成功',
|
||||
resetPasswordSuccessInfo: '重置密码成功',
|
||||
assignRoleSuccessInfo: '分配角色成功',
|
||||
|
||||
//--------------校验提示--------------
|
||||
checkUserNameIsNull: '用户名称不能为空',
|
||||
checkUserNameLength: '用户名称长度必须介于2-20个字符',
|
||||
checkNickNameIsNull: '用户昵称不能为空',
|
||||
checkPasswordIsNull: '密码不能为空',
|
||||
checkPasswordLength: '密码长度必须介于5-20个字符',
|
||||
checkPasswordCharacter: "不能包含非法字符:< > \" ' \\\ |",
|
||||
checkEmailFormat: '请输入正确的邮箱地址',
|
||||
checkPhoneNumberFormat: '请输入正确的手机号',
|
||||
|
||||
//--------------其他--------------
|
||||
lblWidthUserName: '68px',
|
||||
lblWidthPhoneNumber: '68px',
|
||||
lblWidthDialog: '80px',
|
||||
|
||||
},
|
||||
|
||||
//=====================系统管理:角色管理=====================
|
||||
systemManagement_RoleManagement: {
|
||||
//--------------数据表标题--------------
|
||||
@@ -1257,6 +1368,62 @@ export default {
|
||||
|
||||
},
|
||||
|
||||
// =====================系统管理:字典管理=====================
|
||||
systemManagement_DictManagement: {
|
||||
//--------------数据表标题--------------
|
||||
dictId: '字典编号',
|
||||
dictName: '字典名称',
|
||||
dictType: '字典类型',
|
||||
status: 'Sta状态tus',
|
||||
remark: '备注',
|
||||
createTime: '创建时间',
|
||||
operation: '人工操作',
|
||||
|
||||
//--------------交互框操作提示--------------
|
||||
placeholderDictName: '请输入字典名称',
|
||||
placeholderDictType: '请输入字典类型',
|
||||
placeholderStatus: '选择状态',
|
||||
placeholderCreateTime: '创建时间',
|
||||
placeholderDateStart: '开始时间',
|
||||
placeholderDateEnd: '结束时间',
|
||||
|
||||
//--------------二级窗口标题--------------
|
||||
addDictTypeItem: '新增字典类型',
|
||||
editDictTypeItem: '编辑字典类型',
|
||||
|
||||
//--------------二级窗口操作提示--------------
|
||||
placeholderRemark: '请输入内容',
|
||||
|
||||
//--------------交互按钮--------------
|
||||
btnSearch: '搜索',
|
||||
btnReset: '重置',
|
||||
btnAdd: '新增',
|
||||
btnEdit: '修改',
|
||||
btnDelete: '删除',
|
||||
btnImport: '导入',
|
||||
btnExport: '导出',
|
||||
btnSubmit: '确定',
|
||||
btnCancel: '取消',
|
||||
btnExpandOrCollapse: '展开/折叠',
|
||||
btnRefreshCache: '刷新缓存',
|
||||
|
||||
//--------------提示文本--------------
|
||||
|
||||
//---handleDelete---
|
||||
textDeleteConfirm1: '是否确认删除字典类型为"',
|
||||
textDeleteConfirm2: '"的数据项?',
|
||||
|
||||
//--------------操作提示--------------
|
||||
addSuccessInfo: '新增成功',
|
||||
editSuccessInfo: '编辑成功',
|
||||
deleteSuccessInfo: '删除成功',
|
||||
|
||||
//--------------校验提示--------------
|
||||
checkDictNameIsNull: '字典名称不能为空',
|
||||
checkDictTypeIsNull: '字典类型不能为空',
|
||||
|
||||
},
|
||||
|
||||
|
||||
// ***************出库作业流水查询*************
|
||||
searchViewOutJobFlow: {
|
||||
|
||||
@@ -1,28 +1,32 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<!-- 查询表单 -->
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="字典名称" prop="dictName">
|
||||
<!-- 字典名称 -->
|
||||
<el-form-item :label="$t('systemManagement_DictManagement.dictName')" prop="dictName">
|
||||
<el-input
|
||||
v-model="queryParams.dictName"
|
||||
placeholder="请输入字典名称"
|
||||
:placeholder="$t('systemManagement_DictManagement.placeholderDictName')"
|
||||
clearable
|
||||
style="width: 240px"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="字典类型" prop="dictType">
|
||||
<!-- 字典类型 -->
|
||||
<el-form-item :label="$t('systemManagement_DictManagement.dictType')" prop="dictType">
|
||||
<el-input
|
||||
v-model="queryParams.dictType"
|
||||
placeholder="请输入字典类型"
|
||||
:placeholder="$t('systemManagement_DictManagement.placeholderDictType')"
|
||||
clearable
|
||||
style="width: 240px"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="状态" prop="status">
|
||||
<!-- 状态 -->
|
||||
<el-form-item :label="$t('systemManagement_DictManagement.status')" prop="status">
|
||||
<el-select
|
||||
v-model="queryParams.status"
|
||||
placeholder="字典状态"
|
||||
:placeholder="$t('systemManagement_DictManagement.placeholderStatus')"
|
||||
clearable
|
||||
style="width: 240px"
|
||||
>
|
||||
@@ -34,25 +38,30 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间">
|
||||
<!-- 创建时间 -->
|
||||
<el-form-item :label="$t('systemManagement_DictManagement.createTime')" :label-width="$t('systemManagement_DictManagement.null')">
|
||||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
style="width: 240px"
|
||||
value-format="yyyy-MM-dd"
|
||||
type="daterange"
|
||||
range-separator="-"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:start-placeholder="$t('systemManagement_DictManagement.placeholderDateStart')"
|
||||
:end-placeholder="$t('systemManagement_DictManagement.placeholderDateEnd')"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
<!-- 查询按钮 -->
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('systemManagement_DictManagement.btnSearch') }}</el-button>
|
||||
<!-- 重置按钮 -->
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('systemManagement_DictManagement.btnReset') }}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<!-- 操作按钮 -->
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<!-- 新增按钮 -->
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
@@ -60,9 +69,10 @@
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['system:dict:add']"
|
||||
>新增</el-button>
|
||||
>{{ $t('systemManagement_DictManagement.btnAdd') }}</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<!-- 编辑按钮 -->
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
@@ -71,9 +81,10 @@
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['system:dict:edit']"
|
||||
>修改</el-button>
|
||||
>{{ $t('systemManagement_DictManagement.btnEdit') }}</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<!-- 删除按钮 -->
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
@@ -82,9 +93,10 @@
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['system:dict:remove']"
|
||||
>删除</el-button>
|
||||
>{{ $t('systemManagement_DictManagement.btnDelete') }}</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<!-- 导出按钮 -->
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
@@ -92,9 +104,10 @@
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['system:dict:export']"
|
||||
>导出</el-button>
|
||||
>{{ $t('systemManagement_DictManagement.btnExport') }}</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<!-- 刷新缓存 -->
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
@@ -102,34 +115,38 @@
|
||||
size="mini"
|
||||
@click="handleRefreshCache"
|
||||
v-hasPermi="['system:dict:remove']"
|
||||
>刷新缓存</el-button>
|
||||
>{{ $t('systemManagement_DictManagement.btnRefreshCache') }}</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<!-- 表格 -->
|
||||
<el-table v-loading="loading" :data="typeList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="字典编号" align="center" prop="dictId" />
|
||||
<el-table-column label="字典名称" align="center" prop="dictName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="字典类型" align="center" :show-overflow-tooltip="true">
|
||||
<!-- 字典编号 -->
|
||||
<el-table-column :label="$t('systemManagement_DictManagement.dictId')" align="center" prop="dictId" />
|
||||
<!-- 字典名称 -->
|
||||
<el-table-column :label="$t('systemManagement_DictManagement.dictName')" align="center" prop="dictName" :show-overflow-tooltip="true" />
|
||||
<!-- 字典类型 -->
|
||||
<el-table-column :label="$t('systemManagement_DictManagement.dictType')" align="center" :show-overflow-tooltip="true">
|
||||
<template slot-scope="scope">
|
||||
<router-link :to="'/system/dict-data/index/' + scope.row.dictId" class="link-type">
|
||||
<span>{{ scope.row.dictType }}</span>
|
||||
</router-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" align="center" prop="status">
|
||||
<el-table-column :label="$t('systemManagement_DictManagement.status')" align="center" prop="status">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
||||
<el-table-column :label="$t('systemManagement_DictManagement.remark')" align="center" prop="remark" :show-overflow-tooltip="true" />
|
||||
<el-table-column :label="$t('systemManagement_DictManagement.createTime')" align="center" prop="createTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.createTime) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<el-table-column :label="$t('systemManagement_DictManagement.operation')" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
@@ -137,18 +154,19 @@
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:dict:edit']"
|
||||
>修改</el-button>
|
||||
>{{ $t('systemManagement_DictManagement.btnEdit') }}</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:dict:remove']"
|
||||
>删除</el-button>
|
||||
>{{ $t('systemManagement_DictManagement.btnDelete') }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<!-- 分页 -->
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
@@ -160,13 +178,16 @@
|
||||
<!-- 添加或修改参数配置对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="字典名称" prop="dictName">
|
||||
<el-input v-model="form.dictName" placeholder="请输入字典名称" />
|
||||
<!-- 字典名称 -->
|
||||
<el-form-item :label="$t('systemManagement_DictManagement.dictName')" prop="dictName">
|
||||
<el-input v-model="form.dictName" :placeholder="$t('systemManagement_DictManagement.placeholderDictName')" />
|
||||
</el-form-item>
|
||||
<el-form-item label="字典类型" prop="dictType">
|
||||
<el-input v-model="form.dictType" placeholder="请输入字典类型" />
|
||||
<!-- 字典类型 -->
|
||||
<el-form-item :label="$t('systemManagement_DictManagement.dictType')" prop="dictType">
|
||||
<el-input v-model="form.dictType" :placeholder="$t('systemManagement_DictManagement.placeholderDictType')" />
|
||||
</el-form-item>
|
||||
<el-form-item label="状态" prop="status">
|
||||
<!-- 状态 -->
|
||||
<el-form-item :label="$t('systemManagement_DictManagement.status')" prop="status">
|
||||
<el-radio-group v-model="form.status">
|
||||
<el-radio
|
||||
v-for="dict in dict.type.sys_normal_disable"
|
||||
@@ -175,13 +196,16 @@
|
||||
>{{dict.label}}</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容"></el-input>
|
||||
<!-- 备注 -->
|
||||
<el-form-item :label="$t('systemManagement_DictManagement.remark')" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" :placeholder="$t('systemManagement_DictManagement.placeholderRemark')" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
<!-- 确定按钮 -->
|
||||
<el-button type="primary" @click="submitForm">{{ $t('systemManagement_DictManagement.btnSubmit') }}</el-button>
|
||||
<!-- 取消按钮 -->
|
||||
<el-button @click="cancel">{{ $t('systemManagement_DictManagement.btnCancel') }}</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
@@ -228,10 +252,12 @@ export default {
|
||||
// 表单校验
|
||||
rules: {
|
||||
dictName: [
|
||||
{ required: true, message: "字典名称不能为空", trigger: "blur" }
|
||||
// 字典名称不能为空
|
||||
{ required: true, message: this.$t('systemManagement_DictManagement.checkDictNameIsNull'), trigger: "blur" }
|
||||
],
|
||||
dictType: [
|
||||
{ required: true, message: "字典类型不能为空", trigger: "blur" }
|
||||
// 字典类型不能为空
|
||||
{ required: true, message: this.$t('systemManagement_DictManagement.checkDictTypeIsNull'), trigger: "blur" }
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -281,12 +307,13 @@ export default {
|
||||
handleAdd() {
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = "添加字典类型"
|
||||
// 设置标题:添加字典类型
|
||||
this.title = this.$t('systemManagement_DictManagement.addDictTypeItem')
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.dictId)
|
||||
this.single = selection.length!=1
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
@@ -296,22 +323,25 @@ export default {
|
||||
getType(dictId).then(response => {
|
||||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = "修改字典类型"
|
||||
// 设置标题:修改字典类型
|
||||
this.title = this.$t('systemManagement_DictManagement.editDictTypeItem')
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm: function() {
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.dictId != undefined) {
|
||||
updateType(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功")
|
||||
// 提示:编辑成功
|
||||
this.$modal.msgSuccess(this.$t('systemManagement_DictManagement.editSuccessInfo'))
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addType(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功")
|
||||
// 提示:新增成功
|
||||
this.$modal.msgSuccess(this.$t('systemManagement_DictManagement.addSuccessInfo'))
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
@@ -322,11 +352,13 @@ export default {
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const dictIds = row.dictId || this.ids
|
||||
this.$modal.confirm('是否确认删除字典编号为"' + dictIds + '"的数据项?').then(function() {
|
||||
const deleteConfirmText = `${this.$t('systemManagement_DictManagement.textDeleteConfirm1')}${dictIds}${this.$t('systemManagement_DictManagement.textDeleteConfirm2')}`
|
||||
this.$modal.confirm(deleteConfirmText).then(() => {
|
||||
return delType(dictIds)
|
||||
}).then(() => {
|
||||
this.getList()
|
||||
this.$modal.msgSuccess("删除成功")
|
||||
// 提示:删除成功
|
||||
this.$modal.msgSuccess(this.$t('systemManagement_DictManagement.deleteSuccessInfo'))
|
||||
}).catch(() => {})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
@@ -338,10 +370,11 @@ export default {
|
||||
/** 刷新缓存按钮操作 */
|
||||
handleRefreshCache() {
|
||||
refreshCache().then(() => {
|
||||
this.$modal.msgSuccess("刷新成功")
|
||||
// 提示:刷新成功
|
||||
this.$modal.msgSuccess(this.$t('systemManagement_DictManagement.refreshSuccessInfo'))
|
||||
this.$store.dispatch('dict/cleanDict')
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user