diff --git a/web/src/apis/requests.ts b/web/src/apis/requests.ts index 20b9781..b2c14a1 100644 --- a/web/src/apis/requests.ts +++ b/web/src/apis/requests.ts @@ -42,3 +42,11 @@ export const deleteRequestAPI = async (id: number): Promise => { export const handleRequestAPI = async (id: number): Promise => { return http.post(`/requests/${id}/handle`).then((res) => res.data); }; + +export const resolveRequestAPI = async (id: number): Promise => { + return http.post(`/requests/${id}/resolve`).then((res) => res.data); +}; + +export const cancelRequestAPI = async (id: number): Promise => { + return http.post(`/requests/${id}/cancel`).then((res) => res.data); +}; diff --git a/web/src/types/request.d.ts b/web/src/types/request.d.ts index bd53e73..0f9abc3 100644 --- a/web/src/types/request.d.ts +++ b/web/src/types/request.d.ts @@ -1,8 +1,10 @@ export type Request = { userId: number; + userName: string; info: string; status: string; handlerId: number; + handlerName: string; createdAt: string; updatedAt: string; }; diff --git a/web/src/views/home/airline/FlightView.vue b/web/src/views/home/airline/FlightView.vue index 62521a3..b969cde 100644 --- a/web/src/views/home/airline/FlightView.vue +++ b/web/src/views/home/airline/FlightView.vue @@ -149,7 +149,7 @@ const columns = [ }} > Modify - {" "} + {" "} + {" "} + {" "} +