更改医院接口
This commit is contained in:
parent
5a93cf0122
commit
a4375e062f
@ -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',
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user