|
@ -295,6 +295,10 @@ const EmployeeAuth = (props) => { |
|
|
dispatch(actions.humanAffairs.delRole(data)).then(e => { |
|
|
dispatch(actions.humanAffairs.delRole(data)).then(e => { |
|
|
if (e.success) { |
|
|
if (e.success) { |
|
|
getRoleList() |
|
|
getRoleList() |
|
|
|
|
|
setAllChecked(false); |
|
|
|
|
|
setTwo({}) |
|
|
|
|
|
setCheckedList([]); |
|
|
|
|
|
setDataRange(1); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -315,6 +319,7 @@ const EmployeeAuth = (props) => { |
|
|
two[e.resId] = true |
|
|
two[e.resId] = true |
|
|
return e.resId |
|
|
return e.resId |
|
|
}) |
|
|
}) |
|
|
|
|
|
setDataRange(res.payload.data.rows[0].role.dataRange || 1); |
|
|
setCheckedList(checkList) |
|
|
setCheckedList(checkList) |
|
|
setTwo(two) |
|
|
setTwo(two) |
|
|
const resourceIdAll = getResourceIdAll(); |
|
|
const resourceIdAll = getResourceIdAll(); |
|
|