From 5d2c6f77ba253bbeaf43e7331cdf6130c9851220 Mon Sep 17 00:00:00 2001 From: "2358328281@qq.com" <邮箱地址> Date: Fri, 3 Jul 2026 16:09:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/style/admin-common.scss | 3 +-- src/components/layout/AdminLayout.vue | 10 ++++------ src/views/hospital/LotteryDialog.vue | 1 + src/views/hospital/points.vue | 3 +-- src/views/hospital/workbench.vue | 25 ------------------------- 5 files changed, 7 insertions(+), 35 deletions(-) diff --git a/src/assets/style/admin-common.scss b/src/assets/style/admin-common.scss index d8b6e86..19afa16 100644 --- a/src/assets/style/admin-common.scss +++ b/src/assets/style/admin-common.scss @@ -146,7 +146,6 @@ $primaryLightBlue: #3289fb; border-radius: 8px !important; cursor: pointer; - &.disabled-done { opacity: 0.3; pointer-events: none; @@ -154,7 +153,7 @@ $primaryLightBlue: #3289fb; } &.smaller { - padding: 6px 15px !important; + padding: 5px 11px !important; } &.rosein-sign { diff --git a/src/components/layout/AdminLayout.vue b/src/components/layout/AdminLayout.vue index 2a56a06..23daf09 100644 --- a/src/components/layout/AdminLayout.vue +++ b/src/components/layout/AdminLayout.vue @@ -59,7 +59,7 @@ -
+
@@ -92,12 +92,10 @@ - @@ -519,7 +517,7 @@ const handleCommand = async (cmd) => { } } - .admin-content { + .admin-content { flex: 1; overflow-x: hidden; overflow-y: auto; diff --git a/src/views/hospital/LotteryDialog.vue b/src/views/hospital/LotteryDialog.vue index 131b857..12a5148 100644 --- a/src/views/hospital/LotteryDialog.vue +++ b/src/views/hospital/LotteryDialog.vue @@ -242,6 +242,7 @@ const onClosed = () => { height: 766px; background: transparent; box-shadow: none; + transform: scale(0.75); .el-dialog__header { diff --git a/src/views/hospital/points.vue b/src/views/hospital/points.vue index a071221..5accb70 100644 --- a/src/views/hospital/points.vue +++ b/src/views/hospital/points.vue @@ -399,7 +399,6 @@ const showRule = () => { ElMessage.info("📖 签到 +1 · 抽奖 +1~10 · 提交工单 +1"); }; -// 操作:签到 todo 记得改为 false const signInVisible = ref(false); const handleSignIn = async () => { if (summary.value.isSignIn) { @@ -430,7 +429,7 @@ const onSignInSuccess = async () => { const lotteryVisible = ref(false); const handleDraw = () => { if (summary.value.isDraw) { - ElMessage.info("今日已抽奖,明天再来吧!"); + ElMessage.warning("今日已抽奖,明天再来吧!"); return; } lotteryVisible.value = true; diff --git a/src/views/hospital/workbench.vue b/src/views/hospital/workbench.vue index b9578a8..1856abb 100644 --- a/src/views/hospital/workbench.vue +++ b/src/views/hospital/workbench.vue @@ -373,24 +373,6 @@ const onResize = () => setTimeout(computeStripeTargets, 50); window.addEventListener("resize", onResize); onBeforeUnmount(() => window.removeEventListener("resize", onResize)); -// TODO: 接口暂未返回趋势数据,这里根据时间区间生成 mock 数据用于柱状图样式调试 -const buildMockTrendData = (startDate, endDate) => { - const start = startDate ? dayjs(startDate) : dayjs().startOf("month"); - const end = endDate ? dayjs(endDate) : dayjs().endOf("month"); - const days = []; - let cursor = start; - while (cursor.isBefore(end) || cursor.isSame(end, "day")) { - days.push(cursor.format("YYYY-MM-DD")); - cursor = cursor.add(1, "day"); - } - if (!days.length) days.push(dayjs().format("YYYY-MM-DD")); - return days.map((date, i) => ({ - date, - submitCount: 3 + ((i * 7) % 9), - completeCount: 2 + ((i * 5) % 7), - })); -}; - const loadStats = async () => { // 自定义模式以 isCustom 为准(自定义需点查询才进这里,与 score.vue 一致) const params = {}; @@ -402,18 +384,11 @@ const loadStats = async () => { } try { const data = await getWorkbench(params); - // TODO: 接口返回后删除以下 mock 兜底逻辑,仅保留 data 赋值 if (data && Array.isArray(data.trendData) && data.trendData.length) { stats.value = data; - const { startDate, endDate } = resolveDateRange(); - stats.value = { ...stats.value, trendData: buildMockTrendData(startDate, endDate) }; } else { - const { startDate, endDate } = resolveDateRange(); - stats.value = { ...stats.value, trendData: buildMockTrendData(startDate, endDate) }; } } catch (_) { - const { startDate, endDate } = resolveDateRange(); - stats.value = { ...stats.value, trendData: buildMockTrendData(startDate, endDate) }; } };