更改医院接口

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

View File

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

View File

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

View File

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