style: 部门改为班级
This commit is contained in:
@@ -337,7 +337,7 @@ export default {
|
||||
profile: {
|
||||
phonenumber: "Phone",
|
||||
email: "Email",
|
||||
deptName: "Department",
|
||||
deptName: "Class",
|
||||
postGroup: "Possession of posts",
|
||||
roleGroup: "Ownership",
|
||||
loginIp: "Log in",
|
||||
@@ -1605,7 +1605,7 @@ export default {
|
||||
account: 'Account',
|
||||
userName: 'Nick Name',
|
||||
permission: 'Role',
|
||||
className: 'Department',
|
||||
className: 'Class',
|
||||
loginIp: 'Login Address',
|
||||
loginTime: 'Login Time',
|
||||
status: 'Status',
|
||||
@@ -1630,7 +1630,7 @@ export default {
|
||||
userTop:'User profile',
|
||||
sex:'User Gender',
|
||||
email:'E-mail',
|
||||
fromClass:'Department',
|
||||
fromClass:'Class',
|
||||
userWork:'User position',
|
||||
userWorkPlease: 'Please select user post',
|
||||
userTip:'User Description',
|
||||
@@ -1727,8 +1727,8 @@ export default {
|
||||
role:{
|
||||
allScopeOptions:'All data permissions',
|
||||
byMyselfScopeOptions:'Custom data permissions',
|
||||
onlyClassScopeOptions:'Data permissions of this department',
|
||||
classAllScopeOptions:'Data permissions for this department and the following',
|
||||
onlyClassScopeOptions:'Data permissions of this class',
|
||||
classAllScopeOptions:'Data permissions for this class and the following',
|
||||
myselfScopeOptions:'Only personal data permissions',
|
||||
roleId:'Role Number',
|
||||
roleName:'Role Name',
|
||||
@@ -1769,20 +1769,20 @@ export default {
|
||||
batchCancel:'Batch cancellation of authorization',
|
||||
},
|
||||
dept:{
|
||||
classInfo:' Department Information',
|
||||
className:'Department Name',
|
||||
classId:'Department Number',
|
||||
classSort:'Department Sorting',
|
||||
status:'Department Status',
|
||||
classInfo:' Class Information',
|
||||
className:'Class Name',
|
||||
classId:'Class Number',
|
||||
classSort:'Class Sorting',
|
||||
status:'Class Status',
|
||||
createTime:'Creation Time',
|
||||
highClass:'Higher Office',
|
||||
emailTip:'Please input the correct email address',
|
||||
phoneTip:'Please enter the correct phone number',
|
||||
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',
|
||||
close:'Fold',
|
||||
addClass:'Add new sub-department',
|
||||
addClass:'Add new sub-class',
|
||||
admin:'Principal',
|
||||
phone:'Contact Number',
|
||||
email:'Mail',
|
||||
|
||||
@@ -337,8 +337,8 @@ export default {
|
||||
profile: {
|
||||
phonenumber: "手机号码",
|
||||
email: "用户邮箱",
|
||||
deptName: "所属部门",
|
||||
postGroup: "拥有岗位",
|
||||
deptName: "所属班级",
|
||||
postGroup: "拥有职位",
|
||||
roleGroup: "拥有角色",
|
||||
loginIp: "登录地址",
|
||||
loginDate: "登录时间",
|
||||
@@ -1605,7 +1605,7 @@ export default {
|
||||
account: '登录账号',
|
||||
userName: '用户昵称',
|
||||
permission: '用户权限',
|
||||
className: '部门名称',
|
||||
className: '班级名称',
|
||||
loginIp: '登录地址',
|
||||
loginTime: '登录时间',
|
||||
status: '用户状态',
|
||||
@@ -1630,9 +1630,9 @@ export default {
|
||||
userTop:'用户头像',
|
||||
sex:'用户性别',
|
||||
email:'电子邮箱',
|
||||
fromClass:'所属部门',
|
||||
userWork:'用户岗位',
|
||||
userWorkPlease: '请选择用户岗位',
|
||||
fromClass:'所属班级',
|
||||
userWork:'用户职位',
|
||||
userWorkPlease: '请选择用户职位',
|
||||
userTip:'用户说明',
|
||||
loginPwd:'登录密码',
|
||||
updateSure:'是否更新已经存在的数据',
|
||||
@@ -1727,8 +1727,8 @@ export default {
|
||||
role:{
|
||||
allScopeOptions:'全部数据权限',
|
||||
byMyselfScopeOptions:'自定数据权限',
|
||||
onlyClassScopeOptions:'本部门数据权限',
|
||||
classAllScopeOptions:'本部门及以下数据权限',
|
||||
onlyClassScopeOptions:'本班级数据权限',
|
||||
classAllScopeOptions:'本班级及以下数据权限',
|
||||
myselfScopeOptions:'仅本人数据权限',
|
||||
roleId:'角色编号',
|
||||
roleName:'角色名称',
|
||||
@@ -1769,36 +1769,36 @@ export default {
|
||||
batchCancel:'批量取消授权',
|
||||
},
|
||||
dept:{
|
||||
classInfo:'部门信息',
|
||||
className:'部门名称',
|
||||
classId:'部门编号',
|
||||
classSort:'部门排序',
|
||||
status:'部门状态',
|
||||
classInfo:'班级信息',
|
||||
className:'班级名称',
|
||||
classId:'班级编号',
|
||||
classSort:'班级排序',
|
||||
status:'班级状态',
|
||||
createTime:'创建时间',
|
||||
highClass:'上级部门',
|
||||
highClass:'上级班级',
|
||||
emailTip:'请输入正确的邮箱地址',
|
||||
phoneTip:'请输入正确的手机号码',
|
||||
node:'根节点',
|
||||
delSure:'确认删除部门编号为 【{deptId}】 的数据项?',
|
||||
delSure:'确认删除班级编号为 【{deptId}】 的数据项?',
|
||||
open:'展',
|
||||
close:'折',
|
||||
addClass:'新增子部门',
|
||||
addClass:'新增子班级',
|
||||
admin:'负责人',
|
||||
phone:'联系电话',
|
||||
email:'邮箱',
|
||||
},
|
||||
post:{
|
||||
positionInfo:'岗位信息',
|
||||
positionId:'岗位编号',
|
||||
positionCode:'岗位编码',
|
||||
positionName:'岗位名称',
|
||||
positionSort:'岗位排序',
|
||||
positionStatus:'岗位状态',
|
||||
positionMark:'岗位说明',
|
||||
positionInfo:'职位信息',
|
||||
positionId:'职位编号',
|
||||
positionCode:'职位编码',
|
||||
positionName:'职位名称',
|
||||
positionSort:'职位排序',
|
||||
positionStatus:'职位状态',
|
||||
positionMark:'职位说明',
|
||||
createTime:'创建时间',
|
||||
codeTip:'请正确输入岗位编码',
|
||||
nameTip:'请正确输入岗位名称',
|
||||
delSure:'确认删除岗位编号为 【{postId}】 的数据项?',
|
||||
codeTip:'请正确输入职位编码',
|
||||
nameTip:'请正确输入职位名称',
|
||||
delSure:'确认删除职位编号为 【{postId}】 的数据项?',
|
||||
},
|
||||
log:{
|
||||
operate:{
|
||||
|
||||
@@ -32,9 +32,9 @@ let dict: {
|
||||
|
||||
/**查询参数 */
|
||||
let queryParams = reactive({
|
||||
/**部门名称 */
|
||||
/**班级名称 */
|
||||
deptName: '',
|
||||
/**部门状态 */
|
||||
/**班级状态 */
|
||||
status: undefined,
|
||||
});
|
||||
|
||||
@@ -135,7 +135,7 @@ function fnTableExpandedRowsChange(expandedRows: (string | number)[]) {
|
||||
tableState.expandedRowKeys = expandedRows;
|
||||
}
|
||||
|
||||
/**初始上级部门选择树 */
|
||||
/**初始上级班级选择树 */
|
||||
let treeDataAll: Record<string, any>[] = [];
|
||||
|
||||
/**对话框对象信息状态类型 */
|
||||
@@ -150,7 +150,7 @@ type ModalStateType = {
|
||||
from: Record<string, any>;
|
||||
/**确定按钮 loading */
|
||||
confirmLoading: boolean;
|
||||
/**上级部门选择树 */
|
||||
/**上级班级选择树 */
|
||||
treeData: Record<string, any>[];
|
||||
};
|
||||
|
||||
@@ -158,7 +158,7 @@ type ModalStateType = {
|
||||
let modalState: ModalStateType = reactive({
|
||||
visibleByView: false,
|
||||
visibleByEdit: false,
|
||||
title: '部门',
|
||||
title: '班级',
|
||||
from: {
|
||||
deptId: undefined,
|
||||
deptName: '',
|
||||
@@ -212,7 +212,7 @@ const modalStateFrom = Form.useForm(
|
||||
|
||||
/**
|
||||
* 对话框弹出显示为 查看
|
||||
* @param deptId 部门编号id
|
||||
* @param deptId 班级编号id
|
||||
*/
|
||||
function fnModalVisibleByVive(deptId: string | number) {
|
||||
if (!deptId) {
|
||||
@@ -244,8 +244,8 @@ function fnModalVisibleByVive(deptId: string | number) {
|
||||
|
||||
/**
|
||||
* 对话框弹出显示为 新增或者修改
|
||||
* @param deptId 部门编号id, 不传为新增
|
||||
* @param parentId 上级部门id
|
||||
* @param deptId 班级编号id, 不传为新增
|
||||
* @param parentId 上级班级id
|
||||
*/
|
||||
function fnModalVisibleByEdit(
|
||||
deptId?: string | number,
|
||||
@@ -263,7 +263,7 @@ function fnModalVisibleByEdit(
|
||||
if (modalState.confirmLoading) return;
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
modalState.confirmLoading = true;
|
||||
// 获取部门信息同时查询部门列表(排除节点)
|
||||
// 获取班级信息同时查询班级列表(排除节点)
|
||||
Promise.all([getDept(deptId), listDeptExcludeChild(deptId)])
|
||||
.then(resArr => {
|
||||
if (resArr[0].code === RESULT_CODE_SUCCESS && resArr[0].data) {
|
||||
@@ -318,7 +318,7 @@ function fnModalOk() {
|
||||
duration: 2,
|
||||
});
|
||||
modalState.visibleByEdit = false;
|
||||
// 新增时清空上级部门树重新获取
|
||||
// 新增时清空上级班级树重新获取
|
||||
if (!from.deptId) {
|
||||
treeDataAll = [];
|
||||
}
|
||||
@@ -352,8 +352,8 @@ function fnModalCancel() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 部门删除
|
||||
* @param deptId 部门编号id
|
||||
* 班级删除
|
||||
* @param deptId 班级编号id
|
||||
*/
|
||||
function fnRecordDelete(deptId: string | number) {
|
||||
Modal.confirm({
|
||||
@@ -380,14 +380,14 @@ function fnRecordDelete(deptId: string | number) {
|
||||
});
|
||||
}
|
||||
|
||||
/**查询部门列表 */
|
||||
/**查询班级列表 */
|
||||
function fnGetList() {
|
||||
if (tableState.loading) return;
|
||||
tableState.loading = true;
|
||||
listDept(toRaw(queryParams)).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
|
||||
const treeData = parseDataToTree(res.data, 'deptId');
|
||||
// 初始上级部门和展开编号key
|
||||
// 初始上级班级和展开编号key
|
||||
if (treeDataAll.length <= 0) {
|
||||
// 转换树状数据
|
||||
treeDataAll = treeData;
|
||||
|
||||
Reference in New Issue
Block a user