diff --git a/src/components/management/StuffDetail.jsx b/src/components/management/StuffDetail.jsx index 43089124..6d3a83ee 100644 --- a/src/components/management/StuffDetail.jsx +++ b/src/components/management/StuffDetail.jsx @@ -1128,9 +1128,10 @@ export default function StuffDetail() { // 수정모드일때는 PUT await promisePut({ url: apiUrl, data: params }).then((res) => { if (res.status === 201) { + setFloorPlanObjectNo({ floorPlanObjectNo: res.data.objectNo }) alert(getMessage('stuff.detail.save')) - setFloorPlanObjectNo({ floorPlanObjectNo: objectNo }) - router.refresh() + // router.refresh() + router.push(`/management/stuff/detail?objectNo=${res.data.objectNo.toString()}`) } }) } @@ -1182,7 +1183,6 @@ export default function StuffDetail() { // if (height === '0') { // return alert(getMessage('stuff.detail.save.valierror2')) // } - await promisePost({ url: '/api/object/save-object', data: params }).then((res) => { if (res.status === 201) { alert(getMessage('stuff.detail.tempSave.message1')) diff --git a/src/components/management/StuffSearchCondition.jsx b/src/components/management/StuffSearchCondition.jsx index 3e5b07f6..421f806f 100644 --- a/src/components/management/StuffSearchCondition.jsx +++ b/src/components/management/StuffSearchCondition.jsx @@ -144,6 +144,7 @@ export default function StuffSearchCondition() { }) const allList = res const favList = res.filter((row) => row.priority !== 'B') + setSchSelSaleStoreList(allList) setFavoriteStoreList(favList) setShowSaleStoreList(favList) @@ -263,6 +264,7 @@ export default function StuffSearchCondition() { onChange={(e) => { setSaleStoreName(saleStoreNameRef.current.value) }} + onKeyUp={handleByOnKeyUp} /> @@ -277,6 +279,7 @@ export default function StuffSearchCondition() { onChange={(e) => { setAddress(addressRef.current.value) }} + onKeyUp={handleByOnKeyUp} /> @@ -293,6 +296,7 @@ export default function StuffSearchCondition() { onChange={(e) => { setobjectName(objectNameRef.current.value) }} + onKeyUp={handleByOnKeyUp} /> @@ -307,6 +311,7 @@ export default function StuffSearchCondition() { onChange={(e) => { setDispCompanyName(dispCompanyNameRef.current.value) }} + onKeyUp={handleByOnKeyUp} /> @@ -363,6 +368,7 @@ export default function StuffSearchCondition() { onChange={(e) => { setReceiveUser(receiveUserRef.current.value) }} + onKeyUp={handleByOnKeyUp} />