From ba32259881f5a6e66bd8bd2ebe3d69a2e70ef2c0 Mon Sep 17 00:00:00 2001 From: ChenQiuYu Date: Wed, 28 May 2025 10:46:03 +0800 Subject: [PATCH] dev --- src/components/registration/Edit.vue | 5 +++-- src/views/registration/index.vue | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/registration/Edit.vue b/src/components/registration/Edit.vue index e3d9a01..f4ca63c 100644 --- a/src/components/registration/Edit.vue +++ b/src/components/registration/Edit.vue @@ -350,7 +350,8 @@ const registrationCancel = () => { const doctorList = ref([]) const getDoctorList = () => { let query = { - role: 1 + role: 1, + keyword: '', } post(API.Organization.Member.Search, {query: query}).then((res: any) => { doctorList.value = res @@ -442,7 +443,7 @@ const hide = () => { const sectionList = ref([]) const getSectionList = () => { if (!edit_data.value.organizationDoctorId) return - post(API.Organization.Member.List, {memberId: edit_data.value.organizationDoctorId}).then((res: any) => { + post(API.Organization.Section.ListByMemberId, {memberId: edit_data.value.organizationDoctorId}).then((res: any) => { sectionList.value = res if (res.length > 0) { edit_data.value.organizationSectionId = res[0].id diff --git a/src/views/registration/index.vue b/src/views/registration/index.vue index a410d20..3510e66 100644 --- a/src/views/registration/index.vue +++ b/src/views/registration/index.vue @@ -94,7 +94,7 @@ import {nextTick, onMounted, ref} from 'vue' import Edit from "@/components/registration/Edit.vue"; import List from "@/components/registration/List.vue"; import {post} from "@/utils/request"; -import {getEndOfDay, getToday, formatDateArray, getPrevious30Days} from "@/utils/dateUtils.ts"; +import {getEndOfDay, getToday, formatDateArray, getPrevious30Days, getCurrentDate} from "@/utils/dateUtils.ts"; import Calendar from "@/components/common/Calendar.vue"; import Panel from "@/components/common/Panel.vue"; import {Search} from "@element-plus/icons-vue"; @@ -128,7 +128,7 @@ const isShowNum = ref(-1) const roleList = ref([]) onMounted(() => { - selectedDate.value = [getPrevious30Days(), getToday().end] + selectedDate.value = [getPrevious30Days(), getCurrentDate()] initDoctor() getPatientList() doctorId.value = null @@ -140,7 +140,7 @@ const initDoctor = () => { keyword: keyword.value, role: 1 } - post(API.Patient.Registration.List, {query: query}).then((res: any) => { + post(API.Organization.Member.Search, {query: query}).then((res: any) => { roleList.value = res }) }