diff --git a/apps/src/api/legacy/approval.ts b/apps/src/api/legacy/approval.ts index 9057d6a..ffffbd7 100644 --- a/apps/src/api/legacy/approval.ts +++ b/apps/src/api/legacy/approval.ts @@ -214,6 +214,12 @@ export async function getUserBaseInfo(userId: number | string) { return requestClient.get>(`/user/base/info/${userId}`); } +export async function getUserPhotoWallNormal(userId: number | string) { + return requestClient.get[]>( + `/user/photo/wall/normal/${userId}`, + ); +} + export async function getUserPhotoWallAll(userId: number | string) { return requestClient.get(`/user/photo/wall/all/${userId}`); } diff --git a/apps/src/api/request.ts b/apps/src/api/request.ts index a629073..49e61b4 100644 --- a/apps/src/api/request.ts +++ b/apps/src/api/request.ts @@ -125,6 +125,7 @@ function createRequestClient(baseURL: string, options?: RequestClientOptions) { export const requestClient = createRequestClient(apiURL, { responseReturn: 'data', + timeout: 60_000, }); export const baseRequestClient = requestClient; diff --git a/apps/src/views/approval/components/account-handle-modal.vue b/apps/src/views/approval/components/account-handle-modal.vue index bb8d5d8..c128a5a 100644 --- a/apps/src/views/approval/components/account-handle-modal.vue +++ b/apps/src/views/approval/components/account-handle-modal.vue @@ -16,7 +16,6 @@ import { Input, Modal, Select, - SelectOption, Space, TextArea, message, @@ -71,6 +70,16 @@ const actionOptions = computed(() => { ); return filtered.length > 0 ? filtered : items; }); +const actionSelectOptions = computed(() => + actionOptions.value.map((item) => ({ + label: `${item.group} / ${item.label}`, + value: item.value, + })), +); +const dayOptions = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 30].map((day) => ({ + label: `${day}天`, + value: day, +})); const form = reactive({ accountStatusEnum: '', @@ -176,25 +185,22 @@ async function handleSubmit() { - + - - {{ day }}天 - - +