From eb60d7057b0911c0cb135a260c8ba2cd067b3d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=87=E5=B3=B0?= Date: Wed, 8 Apr 2026 13:44:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BB=91=E5=8A=A8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=97=A5=E7=A8=8B=E7=9A=84=E7=99=BB=E5=BD=95=E5=88=A4?= =?UTF-8?q?=E6=96=AD=EF=BC=8C=E4=BF=AE=E5=A4=8D=E9=80=89=E6=8B=A9=E6=A1=86?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/ops_vue_js/src/views/ScheduleView.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/ops_vue_js/src/views/ScheduleView.vue b/frontend/ops_vue_js/src/views/ScheduleView.vue index cc29aa0..af1e494 100644 --- a/frontend/ops_vue_js/src/views/ScheduleView.vue +++ b/frontend/ops_vue_js/src/views/ScheduleView.vue @@ -315,7 +315,14 @@ const calendarOptions = ref({ if (info.end - info.start > 86400000) { //选择了多日 //console.log("选择了多日:", info); - openEventModal(info.startStr, info.endStr); + //先判断是否登录 + if (userStore.isLoggedIn) { + openEventModal(info.startStr, info.endStr); + } else { + toast.warning(t("message.login_to_your_account")); + //router.replace("/login?redirect=/schedule"); + } + } else { //选择单日 无功能 //console.log("选择单日:", info); @@ -528,7 +535,7 @@ const getEvents = () => { start: item.StartDate, // 开始日期 end: item.StartDate === item.EndDate ? item.EndDate : DateUtils.toCalendarEnd(item.EndDate), // 结束日期 backgroundColor: item.BgColor, // 背景色 - borderColor: item.BgColor, // 边框色(一般和背景一样) + borderColor: item.ID===pageData.seleEventID?"#000000":item.BgColor, // 边框色(一般和背景一样) allDay: true, // 全天事件 editable: item.edit, });