Bläddra i källkod

添加医生兼职科室

DESKTOP-0GD05B0\Administrator 2 år sedan
förälder
incheckning
3fbb3b9725

+ 8 - 0
src/api/zhu-yuan-yi-sheng/resident-doctor.js

@@ -0,0 +1,8 @@
+import request from '@/utils/request'
+
+export function getAllWards() {
+    return request({
+        url: '/residentDoctor/getAllWards',
+        method: 'get',
+    })
+}

+ 2 - 2
src/components/zhu-yuan-yi-sheng/public/PatientList.vue

@@ -71,7 +71,6 @@
 
 <script setup name='PatientList'>
 import {computed, onMounted, ref} from "vue";
-import {getWardsApi} from "@/api/login";
 import {getOverView} from "@/api/inpatient/patient";
 import {allWardsVisible} from "@/utils/permission";
 import XcCheckbox from "@/components/xiao-chan/checkbox/XcCheckbox";
@@ -80,6 +79,7 @@ import {getMyPatient, saveTheThirdLevelDoctor} from "@/api/zhu-yuan-yi-sheng/yi-
 import {clickOnThePatient, huanZheXinXi} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
 import XcDialogV2 from "@/components/xiao-chan/dialog/XcDialogV2.vue";
 import SelectStaffCode from "@/components/SelectStaffCode.vue";
+import {getAllWards} from "@/api/zhu-yuan-yi-sheng/resident-doctor";
 
 const myPatient = ref(false)
 const wardsClearable = allWardsVisible()
@@ -139,7 +139,7 @@ const submitToTheThirdLevelDoctor = () => {
 }
 
 onMounted(() => {
-  getWardsApi().then((res) => {
+  getAllWards().then((res) => {
     if (res.length > 0) {
       allWards.value = res
       currentWard.value = wardsClearable ? '' : res[0].code