From 4b24e9404114650b387b42536d83108c48be77a9 Mon Sep 17 00:00:00 2001 From: ZuoZuo <68836346+Mrz-sakura@users.noreply.github.com> Date: Wed, 15 Apr 2026 11:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8B=E6=8B=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/src/api/legacy/approval.ts | 6 + apps/src/api/request.ts | 1 + .../components/account-handle-modal.vue | 36 +- apps/src/views/legacy/common/user-details.vue | 4 +- .../activity-template-attr-editor.vue | 209 ++++ .../activity-template-editor-modal.vue | 154 ++- .../activity-template-lang-editor.vue | 134 ++ .../components/activity-template-shared.d.ts | 26 + .../components/activity-template-shared.js | 1101 +++++++++++++++++ .../components/user-balance-handle-modal.vue | 59 +- .../src/request-client/request-client.ts | 2 +- 11 files changed, 1666 insertions(+), 66 deletions(-) create mode 100644 apps/src/views/operate/components/activity-template-attr-editor.vue create mode 100644 apps/src/views/operate/components/activity-template-lang-editor.vue create mode 100644 apps/src/views/operate/components/activity-template-shared.d.ts create mode 100644 apps/src/views/operate/components/activity-template-shared.js 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 }}天 - - +