From d2643a3697ac1b8f2a17405f0c87d0af5176b249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E5=BC=BA?= <357099073@qq.com> Date: Wed, 9 Sep 2026 09:55:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E7=A8=8B=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/api/oaSchedule.js | 9 + .../apps/oa/schedule/components/detail.vue | 296 +++++++++++++++++- .../apps/oa/schedule/components/edit.vue | 4 +- backend/src/views/apps/oa/schedule/index.vue | 114 ++++++- go/controllers/backend_oa_schedule.go | 99 ++++++ go/models/oa_schedule.go | 5 +- go/routers/backend/backend.go | 1 + 7 files changed, 513 insertions(+), 15 deletions(-) diff --git a/backend/src/api/oaSchedule.js b/backend/src/api/oaSchedule.js index 3880d51..5038114 100644 --- a/backend/src/api/oaSchedule.js +++ b/backend/src/api/oaSchedule.js @@ -57,6 +57,15 @@ export function carrySchedule(id, data) { }) } +// 更新日程的相关图片:images 为 [{id, url, name}],由后端序列化存储 +export function updateScheduleImages(id, images) { + return request({ + url: `/backend/oa/schedule/images/${id}`, + method: 'post', + data: { images } + }) +} + // 批量顺延指定日期的全部未完成日程 export function carryPendingSchedules(data) { return request({ diff --git a/backend/src/views/apps/oa/schedule/components/detail.vue b/backend/src/views/apps/oa/schedule/components/detail.vue index 556f57d..1c52a27 100644 --- a/backend/src/views/apps/oa/schedule/components/detail.vue +++ b/backend/src/views/apps/oa/schedule/components/detail.vue @@ -52,6 +52,52 @@ {{ formatDateTime(schedule.create_time) }} + + +
+
+ 相关图片 + 支持粘贴截图 + + 上传图片 + +
+
+
+ + +
+
+
暂无相关图片
+