-
{resourceInfo.name}
-
{resourceInfo.location}
+ return (
+
+ 차량 관리
+
+
+
+
+ {carInfo.name}
+ {carInfo.location}
+
+ {
+ setOptionViewShowing(!isShowingOptions)
+ }}/>
+
+ {
+ window.location.href = `/admin/cars/edit/${carId}`
+ }}>수정
+ 삭제
+
+
+
+
+
+
+
- {
- setOptionViewShowing(!isShowingOptions)
- }}/>
-
- {
- window.location.href = `/admin/resources/edit/${resourceId}`
- }}>수정
- 삭제
-
-
-
-
-
-
-
-
-
-
-
- 요청자 |
- 예약일자 |
- 목적 |
- 상태 |
-
- {bookingsInfo.map(function (info) {
- return (
-
- {info.reservatorName} ({info.reservatorPhone})
- {info.startDateTime} ~
{info.endDateTime}
- {info.goal}
- {info.bookingStatus}
-
- )
- })}
-
-
-
-
+
+
+
+ 요청자 |
+ 예약일자 |
+ 목적 |
+ 상태 |
+
+ {bookingsInfo.map(function (info) {
+ return (
+
+ {info.reservatorName} ({info.reservatorPhone})
+ {info.startDateTime} ~
{info.endDateTime}
+
+ {info.memo}
+ {info.bookingStatus}
+
+ )
+ })}
+
+
+
+
+ )
}
export default CarManageDetail;
diff --git a/src/pages/admin/resource/ResourceManageDetail.js b/src/pages/admin/resource/ResourceManageDetail.js
index 6b1e481..1420e9d 100644
--- a/src/pages/admin/resource/ResourceManageDetail.js
+++ b/src/pages/admin/resource/ResourceManageDetail.js
@@ -106,12 +106,11 @@ function ResourceManageDetail() {
.then((Response) => {
if (Response.data.status === 200) {
alert('장비을 성공적으로 삭제하였습니다.')
- window.history.back()
+ window.location.href = `/admin/resources`
}
})
.catch((Error) => {
basicError(Error)
- console.log(Error)
})
setOptionViewShowing(false)
}