|
|
@ -17,7 +17,8 @@ export const BasisGroupApprovalContainer = props => { |
|
|
|
joinListCount, |
|
|
|
joinListCount, |
|
|
|
groupList, |
|
|
|
groupList, |
|
|
|
groupListCount, |
|
|
|
groupListCount, |
|
|
|
selectData, |
|
|
|
// selectData,
|
|
|
|
|
|
|
|
aprvSelect, |
|
|
|
total |
|
|
|
total |
|
|
|
} = useSelector(state => state.groupState); |
|
|
|
} = useSelector(state => state.groupState); |
|
|
|
|
|
|
|
|
|
|
@ -71,7 +72,8 @@ export const BasisGroupApprovalContainer = props => { |
|
|
|
// width: '100px',
|
|
|
|
// width: '100px',
|
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
cell: row => { |
|
|
|
cell: row => { |
|
|
|
return selectData?.groupId === row?.groupId ? ( |
|
|
|
// return selectData?.groupId === row?.groupId ? (
|
|
|
|
|
|
|
|
return aprvSelect?.groupId === row?.groupId ? ( |
|
|
|
<Button.Ripple |
|
|
|
<Button.Ripple |
|
|
|
color='danger' |
|
|
|
color='danger' |
|
|
|
className='badge badge-danger' |
|
|
|
className='badge badge-danger' |
|
|
@ -107,7 +109,10 @@ export const BasisGroupApprovalContainer = props => { |
|
|
|
(user.authId === 'USER' && groupAuthCd === 'MASTER') || |
|
|
|
(user.authId === 'USER' && groupAuthCd === 'MASTER') || |
|
|
|
(user.authId === 'USER' && aprvlYn === 'Y' && groupAuthCd === 'LEADER') |
|
|
|
(user.authId === 'USER' && aprvlYn === 'Y' && groupAuthCd === 'LEADER') |
|
|
|
) { |
|
|
|
) { |
|
|
|
dispatch(Actions.SELECT({ groupId: groupId, groupNm: groupNm })); |
|
|
|
// dispatch(Actions.SELECT({ groupId: groupId, groupNm: groupNm }));
|
|
|
|
|
|
|
|
dispatch( |
|
|
|
|
|
|
|
Actions.GROUP_APRV_SELECT({ groupId: groupId, groupNm: groupNm }) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if (user?.cstmrSno) { |
|
|
|
if (user?.cstmrSno) { |
|
|
|
setParams({ |
|
|
|
setParams({ |
|
|
@ -138,7 +143,8 @@ export const BasisGroupApprovalContainer = props => { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const handlerCancel = () => { |
|
|
|
const handlerCancel = () => { |
|
|
|
dispatch(Actions.SELECT()); |
|
|
|
// dispatch(Actions.SELECT());
|
|
|
|
|
|
|
|
dispatch(Actions.GROUP_APRV_SELECT()); |
|
|
|
|
|
|
|
|
|
|
|
setParams({ |
|
|
|
setParams({ |
|
|
|
...params, |
|
|
|
...params, |
|
|
@ -152,7 +158,8 @@ export const BasisGroupApprovalContainer = props => { |
|
|
|
setParams({ |
|
|
|
setParams({ |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
cstmrSno: user?.cstmrSno, |
|
|
|
cstmrSno: user?.cstmrSno, |
|
|
|
groupId: selectData?.groupId, |
|
|
|
// groupId: selectData?.groupId,
|
|
|
|
|
|
|
|
groupId: aprvSelect?.groupId, |
|
|
|
aprvYn: '' |
|
|
|
aprvYn: '' |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (user.authId === 'SUPER' || user.authId === 'ADMIN') { |
|
|
|
if (user.authId === 'SUPER' || user.authId === 'ADMIN') { |
|
|
@ -161,7 +168,8 @@ export const BasisGroupApprovalContainer = props => { |
|
|
|
dispatch( |
|
|
|
dispatch( |
|
|
|
Actions.JOIN_LIST.request({ |
|
|
|
Actions.JOIN_LIST.request({ |
|
|
|
cstmrSno: user?.cstmrSno, |
|
|
|
cstmrSno: user?.cstmrSno, |
|
|
|
groupId: selectData?.groupId |
|
|
|
// groupId: selectData?.groupId
|
|
|
|
|
|
|
|
groupId: aprvSelect?.groupId |
|
|
|
}) |
|
|
|
}) |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
@ -307,9 +315,9 @@ export const BasisGroupApprovalContainer = props => { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
// useEffect(() => {
|
|
|
|
handlerCancel(); |
|
|
|
// handlerCancel();
|
|
|
|
}, []); |
|
|
|
// }, []);
|
|
|
|
|
|
|
|
|
|
|
|
const handlerSearch = () => { |
|
|
|
const handlerSearch = () => { |
|
|
|
const param = params; |
|
|
|
const param = params; |
|
|
@ -391,7 +399,8 @@ export const BasisGroupApprovalContainer = props => { |
|
|
|
)} |
|
|
|
)} |
|
|
|
</Col> |
|
|
|
</Col> |
|
|
|
<Col sm='12' lg='12'> |
|
|
|
<Col sm='12' lg='12'> |
|
|
|
{!selectData ? ( |
|
|
|
{/* {!selectData ? ( */} |
|
|
|
|
|
|
|
{!aprvSelect ? ( |
|
|
|
<div className='mt-2 no-dataTable'> |
|
|
|
<div className='mt-2 no-dataTable'> |
|
|
|
그룹 목록에서 상세보기를 클릭하세요. |
|
|
|
그룹 목록에서 상세보기를 클릭하세요. |
|
|
|
</div> |
|
|
|
</div> |
|
|
|