From 901af4988666a82bdda2c5143c11db1df2e91e96 Mon Sep 17 00:00:00 2001 From: yangzhe Date: Wed, 9 Apr 2025 16:58:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=A1=E5=88=92=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/apiList.js | 4 ++ pages/index/cleanPlan.vue | 104 ++++++++++++++++++++++++++++++-------- utils/request.js | 2 +- utils/utils.js | 15 ++++++ 4 files changed, 103 insertions(+), 22 deletions(-) diff --git a/api/apiList.js b/api/apiList.js index 9b26e8c..5c0116b 100644 --- a/api/apiList.js +++ b/api/apiList.js @@ -16,6 +16,10 @@ this.$api.getList(params).then(res => { export const GetPlanByDate = (data) => request.get("/api/App/GetPlanByDate", data); +// 根据日期获取计划 +export const GetTodayPlanList = (data) => + request.get("/api/App/GetTodayPlanList", data); + // 今日完成情况 export const TodayCompletion = (data) => request.post("/api/App/TodayCompletion", data); diff --git a/pages/index/cleanPlan.vue b/pages/index/cleanPlan.vue index b0b52d5..a234b66 100644 --- a/pages/index/cleanPlan.vue +++ b/pages/index/cleanPlan.vue @@ -10,15 +10,24 @@ - 2024年11月21号 - 08:30~11:30 + {{ + dataInfo.planDate ? dataInfo.planDate.split("T")[0] : "" + }} + + + {{ minutesToTime(dataInfo.beginTime) }}~{{ + minutesToTime(dataInfo.endTime) + }} + + - - 待保洁 + + 待保洁 + 已完成 + - 东大门北侧_门2 + {{ item.aeraNmae }} 区域类型 - + + - {{ "需要清理整个户外通道/保持跑道整洁花坛边落叶清扫" }} + {{ item.note }} @@ -57,14 +71,16 @@