style: 部门改为班级

This commit is contained in:
TsMask
2024-06-20 10:27:28 +08:00
parent fd1d2a5bad
commit eb38211e3b
3 changed files with 52 additions and 52 deletions

View File

@@ -337,7 +337,7 @@ export default {
profile: { profile: {
phonenumber: "Phone", phonenumber: "Phone",
email: "Email", email: "Email",
deptName: "Department", deptName: "Class",
postGroup: "Possession of posts", postGroup: "Possession of posts",
roleGroup: "Ownership", roleGroup: "Ownership",
loginIp: "Log in", loginIp: "Log in",
@@ -1605,7 +1605,7 @@ export default {
account: 'Account', account: 'Account',
userName: 'Nick Name', userName: 'Nick Name',
permission: 'Role', permission: 'Role',
className: 'Department', className: 'Class',
loginIp: 'Login Address', loginIp: 'Login Address',
loginTime: 'Login Time', loginTime: 'Login Time',
status: 'Status', status: 'Status',
@@ -1630,7 +1630,7 @@ export default {
userTop:'User profile', userTop:'User profile',
sex:'User Gender', sex:'User Gender',
email:'E-mail', email:'E-mail',
fromClass:'Department', fromClass:'Class',
userWork:'User position', userWork:'User position',
userWorkPlease: 'Please select user post', userWorkPlease: 'Please select user post',
userTip:'User Description', userTip:'User Description',
@@ -1727,8 +1727,8 @@ export default {
role:{ role:{
allScopeOptions:'All data permissions', allScopeOptions:'All data permissions',
byMyselfScopeOptions:'Custom data permissions', byMyselfScopeOptions:'Custom data permissions',
onlyClassScopeOptions:'Data permissions of this department', onlyClassScopeOptions:'Data permissions of this class',
classAllScopeOptions:'Data permissions for this department and the following', classAllScopeOptions:'Data permissions for this class and the following',
myselfScopeOptions:'Only personal data permissions', myselfScopeOptions:'Only personal data permissions',
roleId:'Role Number', roleId:'Role Number',
roleName:'Role Name', roleName:'Role Name',
@@ -1769,20 +1769,20 @@ export default {
batchCancel:'Batch cancellation of authorization', batchCancel:'Batch cancellation of authorization',
}, },
dept:{ dept:{
classInfo:' Department Information', classInfo:' Class Information',
className:'Department Name', className:'Class Name',
classId:'Department Number', classId:'Class Number',
classSort:'Department Sorting', classSort:'Class Sorting',
status:'Department Status', status:'Class Status',
createTime:'Creation Time', createTime:'Creation Time',
highClass:'Higher Office', highClass:'Higher Office',
emailTip:'Please input the correct email address', emailTip:'Please input the correct email address',
phoneTip:'Please enter the correct phone number', phoneTip:'Please enter the correct phone number',
node:'Root Node', node:'Root Node',
delSure:'Are you sure to delete the data item with department number [{deptId}]?', delSure:'Are you sure to delete the data item with class number [{deptId}]?',
open:'Exhibition', open:'Exhibition',
close:'Fold', close:'Fold',
addClass:'Add new sub-department', addClass:'Add new sub-class',
admin:'Principal', admin:'Principal',
phone:'Contact Number', phone:'Contact Number',
email:'Mail', email:'Mail',

View File

@@ -337,8 +337,8 @@ export default {
profile: { profile: {
phonenumber: "手机号码", phonenumber: "手机号码",
email: "用户邮箱", email: "用户邮箱",
deptName: "所属部门", deptName: "所属班级",
postGroup: "拥有位", postGroup: "拥有位",
roleGroup: "拥有角色", roleGroup: "拥有角色",
loginIp: "登录地址", loginIp: "登录地址",
loginDate: "登录时间", loginDate: "登录时间",
@@ -1605,7 +1605,7 @@ export default {
account: '登录账号', account: '登录账号',
userName: '用户昵称', userName: '用户昵称',
permission: '用户权限', permission: '用户权限',
className: '部门名称', className: '班级名称',
loginIp: '登录地址', loginIp: '登录地址',
loginTime: '登录时间', loginTime: '登录时间',
status: '用户状态', status: '用户状态',
@@ -1630,9 +1630,9 @@ export default {
userTop:'用户头像', userTop:'用户头像',
sex:'用户性别', sex:'用户性别',
email:'电子邮箱', email:'电子邮箱',
fromClass:'所属部门', fromClass:'所属班级',
userWork:'用户位', userWork:'用户位',
userWorkPlease: '请选择用户位', userWorkPlease: '请选择用户位',
userTip:'用户说明', userTip:'用户说明',
loginPwd:'登录密码', loginPwd:'登录密码',
updateSure:'是否更新已经存在的数据', updateSure:'是否更新已经存在的数据',
@@ -1727,8 +1727,8 @@ export default {
role:{ role:{
allScopeOptions:'全部数据权限', allScopeOptions:'全部数据权限',
byMyselfScopeOptions:'自定数据权限', byMyselfScopeOptions:'自定数据权限',
onlyClassScopeOptions:'本部门数据权限', onlyClassScopeOptions:'本班级数据权限',
classAllScopeOptions:'本部门及以下数据权限', classAllScopeOptions:'本班级及以下数据权限',
myselfScopeOptions:'仅本人数据权限', myselfScopeOptions:'仅本人数据权限',
roleId:'角色编号', roleId:'角色编号',
roleName:'角色名称', roleName:'角色名称',
@@ -1769,36 +1769,36 @@ export default {
batchCancel:'批量取消授权', batchCancel:'批量取消授权',
}, },
dept:{ dept:{
classInfo:'部门信息', classInfo:'班级信息',
className:'部门名称', className:'班级名称',
classId:'部门编号', classId:'班级编号',
classSort:'部门排序', classSort:'班级排序',
status:'部门状态', status:'班级状态',
createTime:'创建时间', createTime:'创建时间',
highClass:'上级部门', highClass:'上级班级',
emailTip:'请输入正确的邮箱地址', emailTip:'请输入正确的邮箱地址',
phoneTip:'请输入正确的手机号码', phoneTip:'请输入正确的手机号码',
node:'根节点', node:'根节点',
delSure:'确认删除部门编号为 【{deptId}】 的数据项?', delSure:'确认删除班级编号为 【{deptId}】 的数据项?',
open:'展', open:'展',
close:'折', close:'折',
addClass:'新增子部门', addClass:'新增子班级',
admin:'负责人', admin:'负责人',
phone:'联系电话', phone:'联系电话',
email:'邮箱', email:'邮箱',
}, },
post:{ post:{
positionInfo:'位信息', positionInfo:'位信息',
positionId:'位编号', positionId:'位编号',
positionCode:'位编码', positionCode:'位编码',
positionName:'位名称', positionName:'位名称',
positionSort:'位排序', positionSort:'位排序',
positionStatus:'位状态', positionStatus:'位状态',
positionMark:'位说明', positionMark:'位说明',
createTime:'创建时间', createTime:'创建时间',
codeTip:'请正确输入位编码', codeTip:'请正确输入位编码',
nameTip:'请正确输入位名称', nameTip:'请正确输入位名称',
delSure:'确认删除位编号为 【{postId}】 的数据项?', delSure:'确认删除位编号为 【{postId}】 的数据项?',
}, },
log:{ log:{
operate:{ operate:{

View File

@@ -32,9 +32,9 @@ let dict: {
/**查询参数 */ /**查询参数 */
let queryParams = reactive({ let queryParams = reactive({
/**部门名称 */ /**班级名称 */
deptName: '', deptName: '',
/**部门状态 */ /**班级状态 */
status: undefined, status: undefined,
}); });
@@ -135,7 +135,7 @@ function fnTableExpandedRowsChange(expandedRows: (string | number)[]) {
tableState.expandedRowKeys = expandedRows; tableState.expandedRowKeys = expandedRows;
} }
/**初始上级部门选择树 */ /**初始上级班级选择树 */
let treeDataAll: Record<string, any>[] = []; let treeDataAll: Record<string, any>[] = [];
/**对话框对象信息状态类型 */ /**对话框对象信息状态类型 */
@@ -150,7 +150,7 @@ type ModalStateType = {
from: Record<string, any>; from: Record<string, any>;
/**确定按钮 loading */ /**确定按钮 loading */
confirmLoading: boolean; confirmLoading: boolean;
/**上级部门选择树 */ /**上级班级选择树 */
treeData: Record<string, any>[]; treeData: Record<string, any>[];
}; };
@@ -158,7 +158,7 @@ type ModalStateType = {
let modalState: ModalStateType = reactive({ let modalState: ModalStateType = reactive({
visibleByView: false, visibleByView: false,
visibleByEdit: false, visibleByEdit: false,
title: '部门', title: '班级',
from: { from: {
deptId: undefined, deptId: undefined,
deptName: '', deptName: '',
@@ -212,7 +212,7 @@ const modalStateFrom = Form.useForm(
/** /**
* 对话框弹出显示为 查看 * 对话框弹出显示为 查看
* @param deptId 部门编号id * @param deptId 班级编号id
*/ */
function fnModalVisibleByVive(deptId: string | number) { function fnModalVisibleByVive(deptId: string | number) {
if (!deptId) { if (!deptId) {
@@ -244,8 +244,8 @@ function fnModalVisibleByVive(deptId: string | number) {
/** /**
* 对话框弹出显示为 新增或者修改 * 对话框弹出显示为 新增或者修改
* @param deptId 部门编号id, 不传为新增 * @param deptId 班级编号id, 不传为新增
* @param parentId 上级部门id * @param parentId 上级班级id
*/ */
function fnModalVisibleByEdit( function fnModalVisibleByEdit(
deptId?: string | number, deptId?: string | number,
@@ -263,7 +263,7 @@ function fnModalVisibleByEdit(
if (modalState.confirmLoading) return; if (modalState.confirmLoading) return;
const hide = message.loading(t('common.loading'), 0); const hide = message.loading(t('common.loading'), 0);
modalState.confirmLoading = true; modalState.confirmLoading = true;
// 获取部门信息同时查询部门列表(排除节点) // 获取班级信息同时查询班级列表(排除节点)
Promise.all([getDept(deptId), listDeptExcludeChild(deptId)]) Promise.all([getDept(deptId), listDeptExcludeChild(deptId)])
.then(resArr => { .then(resArr => {
if (resArr[0].code === RESULT_CODE_SUCCESS && resArr[0].data) { if (resArr[0].code === RESULT_CODE_SUCCESS && resArr[0].data) {
@@ -318,7 +318,7 @@ function fnModalOk() {
duration: 2, duration: 2,
}); });
modalState.visibleByEdit = false; modalState.visibleByEdit = false;
// 新增时清空上级部门树重新获取 // 新增时清空上级班级树重新获取
if (!from.deptId) { if (!from.deptId) {
treeDataAll = []; treeDataAll = [];
} }
@@ -352,8 +352,8 @@ function fnModalCancel() {
} }
/** /**
* 部门删除 * 班级删除
* @param deptId 部门编号id * @param deptId 班级编号id
*/ */
function fnRecordDelete(deptId: string | number) { function fnRecordDelete(deptId: string | number) {
Modal.confirm({ Modal.confirm({
@@ -380,14 +380,14 @@ function fnRecordDelete(deptId: string | number) {
}); });
} }
/**查询部门列表 */ /**查询班级列表 */
function fnGetList() { function fnGetList() {
if (tableState.loading) return; if (tableState.loading) return;
tableState.loading = true; tableState.loading = true;
listDept(toRaw(queryParams)).then(res => { listDept(toRaw(queryParams)).then(res => {
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) { if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
const treeData = parseDataToTree(res.data, 'deptId'); const treeData = parseDataToTree(res.data, 'deptId');
// 初始上级部门和展开编号key // 初始上级班级和展开编号key
if (treeDataAll.length <= 0) { if (treeDataAll.length <= 0) {
// 转换树状数据 // 转换树状数据
treeDataAll = treeData; treeDataAll = treeData;