更改医院接口

This commit is contained in:
zoujiandong 2024-09-10 09:37:14 +08:00
parent 5a93cf0122
commit a4375e062f
3 changed files with 11 additions and 5 deletions

View File

@ -33,7 +33,13 @@ export function getHospitalList(data){
params
})
}
export function getAdminAreaList(params){
return request({
url:'/admin/basic/area/list',
method: 'get',
params
})
}
export function addArea(data){//新增医院
return request({
url:'/admin/basic/area',

View File

@ -160,7 +160,7 @@
</template>
<script setup>
import { ref, toRefs, watch, getCurrentInstance } from 'vue';
import { getAreaList, addHospital, updateHospital } from '@/api/basic/list';
import { getAdminAreaList, addHospital, updateHospital } from '@/api/basic/list';
const { proxy } = getCurrentInstance();
const props = defineProps({
//
@ -185,7 +185,7 @@ const countryData = ref([]);
//
const handelAreaList = (area_id = '', parent_id = '', area_type) => {
getAreaList({
getAdminAreaList({
area_id,
area_type,
parent_id,

View File

@ -91,7 +91,7 @@
<script setup>
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch, computed } from 'vue';
import { getHospitalList,getHospitalDetail,getAreaList} from '@/api/basic/list';
import { getHospitalList,getHospitalDetail,getAdminAreaList} from '@/api/basic/list';
import { downloadFile } from '@/utils/downloadFile';
// Akiraka 20230210
const deleteData = ref([])
@ -130,7 +130,7 @@
const countryData = ref([]);
//
const handelAreaList = (area_id = '', parent_id = '', area_type) => {
getAreaList({
getAdminAreaList({
area_id,
area_type,
parent_id