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(() => {