diff --git a/src/assets/config/apiConfig.ts b/src/assets/config/apiConfig.ts index af5c5f7..3f3ebf9 100644 --- a/src/assets/config/apiConfig.ts +++ b/src/assets/config/apiConfig.ts @@ -19,4 +19,5 @@ export enum apiConfig{ "organizationMemberSearch"="organization/member/search",//搜索成员 "OrganizationSectionAllList"="organization/section/allList",//获取所有科室列表 "OrganizationSectionListByMemberId"="organization/section/listByMemberId",//获取当前成员所属科室列表 + "OrganizationMemberListBySectionId"="organization/member/listBySectionId",//获取当前科室的所有医生列表 } diff --git a/src/components/registration/Edit.vue b/src/components/registration/Edit.vue index 0b564e3..971afca 100644 --- a/src/components/registration/Edit.vue +++ b/src/components/registration/Edit.vue @@ -35,19 +35,9 @@ - - - - - + + + @@ -67,6 +57,22 @@ + + + + + + + + @@ -86,11 +92,7 @@ - - - - - + @@ -327,6 +329,9 @@ const sectionList = ref([]) const getSectionList = () => { post(apiConfig.OrganizationSectionListByMemberId,{memberId:edit_data.value.organizationDoctorId}).then((res: any) => { sectionList.value = res + if (res.length > 0) { + edit_data.value.organizationSectionId = res[0].id + } }) } const loading = ref(false)