From 34d0738ad70ca445e50c5e460c94b9cbec079ca7 Mon Sep 17 00:00:00 2001 From: XaoLi717 <144221124+XaoLi717@users.noreply.github.com> Date: Tue, 22 Oct 2024 16:24:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=8E=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/calendar/agenda/index.ts | 21 +++ src/views/calendar/agenda/AgendaForm.vue | 13 ++ src/views/calendar/agenda/index-bk.vue | 141 +++++++++++++++++++ src/views/calendar/agenda/index-bk2.vue | 136 ++++++++++++++++++ src/views/calendar/agenda/index.vue | 171 +++++++++++++++++++---- src/views/infra/file/index.vue | 10 +- 6 files changed, 461 insertions(+), 31 deletions(-) create mode 100644 src/api/calendar/agenda/index.ts create mode 100644 src/views/calendar/agenda/AgendaForm.vue create mode 100644 src/views/calendar/agenda/index-bk.vue create mode 100644 src/views/calendar/agenda/index-bk2.vue diff --git a/src/api/calendar/agenda/index.ts b/src/api/calendar/agenda/index.ts new file mode 100644 index 0000000..ae264b5 --- /dev/null +++ b/src/api/calendar/agenda/index.ts @@ -0,0 +1,21 @@ +import request from "@/config/axios"; + +export interface CalendarDate { + isSelected: boolean + type: string + day: string + date: Date +} + +/** + * 工作日历API + */ +export const AgendaApi = { + /** + * 获取工作Day + * @param params + */ + getAgendaPage: async (params: any) => { + return await request.get({ url: `/calendar/agenda/page`, params }) + }, +} diff --git a/src/views/calendar/agenda/AgendaForm.vue b/src/views/calendar/agenda/AgendaForm.vue new file mode 100644 index 0000000..3c51db5 --- /dev/null +++ b/src/views/calendar/agenda/AgendaForm.vue @@ -0,0 +1,13 @@ + + + + + + + diff --git a/src/views/calendar/agenda/index-bk.vue b/src/views/calendar/agenda/index-bk.vue new file mode 100644 index 0000000..a37d00e --- /dev/null +++ b/src/views/calendar/agenda/index-bk.vue @@ -0,0 +1,141 @@ + + + + + {{ month }} + + + + + {{ date }} + + + + + + + + + + + + + + + + {{ data.date.getDay() }} + + + + + + + + + + + + + + diff --git a/src/views/calendar/agenda/index-bk2.vue b/src/views/calendar/agenda/index-bk2.vue new file mode 100644 index 0000000..a84e0e3 --- /dev/null +++ b/src/views/calendar/agenda/index-bk2.vue @@ -0,0 +1,136 @@ + + + + + {{ month }} + + + + + {{ date }} + + + + + + + {{ data.date.getDate()}} + + + + + + + + + + + diff --git a/src/views/calendar/agenda/index.vue b/src/views/calendar/agenda/index.vue index 99ceb7d..795ea50 100644 --- a/src/views/calendar/agenda/index.vue +++ b/src/views/calendar/agenda/index.vue @@ -1,40 +1,161 @@ - - - - - {{ date }} - - - 1 - - - - 上年 - 上月 - 今天 - 下年 - 下月 - - - - - + + 上年 + 今年 + 下年 + + + + {{ month }} + + + + + {{ date }} + + + + + + + {{ data.date.getDate()}} + + + + + - - + diff --git a/src/views/infra/file/index.vue b/src/views/infra/file/index.vue index 3fcda6e..da70c7f 100644 --- a/src/views/infra/file/index.vue +++ b/src/views/infra/file/index.vue @@ -65,23 +65,21 @@ 预览 - 下载