From fae3a64b35314430ac50c0f058e91bc6b728469e Mon Sep 17 00:00:00 2001 From: "@0Melon0" <576788380@qq.com> Date: Wed, 10 Jul 2024 18:13:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=AE=8C=E6=88=90=E6=89=8B=E6=9C=AF?= =?UTF-8?q?=E6=8E=92=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 6 + src/views/scheduleList/index.vue | 258 +++++++++++++++++++++++++++++++ src/views/waitList/index.vue | 41 ++--- 3 files changed, 285 insertions(+), 20 deletions(-) create mode 100644 src/views/scheduleList/index.vue diff --git a/src/router/index.js b/src/router/index.js index 46e1676..819c434 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -46,6 +46,12 @@ const routes = [ meta: { title: '家属等候大屏' }, component: () => import('@/views/waitList/index.vue'), }, + { + path: '/scheduleList', + name: 'scheduleList', + meta: { title: '手术排程' }, + component: () => import('@/views/scheduleList/index.vue'), + }, ]; const router = new VueRouter({ diff --git a/src/views/scheduleList/index.vue b/src/views/scheduleList/index.vue new file mode 100644 index 0000000..efdba37 --- /dev/null +++ b/src/views/scheduleList/index.vue @@ -0,0 +1,258 @@ + + + + + diff --git a/src/views/waitList/index.vue b/src/views/waitList/index.vue index 7f4d09b..5ae2618 100644 --- a/src/views/waitList/index.vue +++ b/src/views/waitList/index.vue @@ -25,17 +25,17 @@
状态
- -
@@ -95,7 +95,6 @@ export default { textToColor, onGetPageData() { let today = dayjs().format('YYYY-MM-DD'); - today = '2024-06-06'; getAnesPatientList({ ScheduledDateTime: today, Status: -1, @@ -110,17 +109,19 @@ export default { }) .then(res => { this.patientList = []; - for (let index = 0; index < res['Data']['Data']['AnesPatientLists'].length; index++) { - const element = res['Data']['Data']['AnesPatientLists'][index]; - const groupIndex = parseInt(index / this.showItemNum); - if (this.patientList[groupIndex]) { - this.patientList[groupIndex].push(element); - } else { - this.patientList[groupIndex] = [element]; + if (res['Data']['Data']) { + for (let index = 0; index < res['Data']['Data']['AnesPatientLists'].length; index++) { + const element = res['Data']['Data']['AnesPatientLists'][index]; + const groupIndex = parseInt(index / this.showItemNum); + if (this.patientList[groupIndex]) { + this.patientList[groupIndex].push(element); + } else { + this.patientList[groupIndex] = [element]; + } + } + if (!this.carouselTimer) { + this.onCarouselTimer(); } - } - if (!this.carouselTimer) { - this.onCarouselTimer(); } }) .finally(() => {