体检人增加loading

wenjuan
yanzai 1 year ago
parent e8024c97ac
commit b870426279

@ -14,7 +14,9 @@ const person_list = ref([]);
let popup = ref(null); let popup = ref(null);
let unitList = ref([]); // let unitList = ref([]); //
const getPersonList = async () => { const getPersonList = async () => {
uni.showLoading()
const response = await $api("GetPersonList"); const response = await $api("GetPersonList");
uni.hideLoading()
$response(response, () => { $response(response, () => {
person_list.value = response.data.list; person_list.value = response.data.list;
}); });
@ -47,11 +49,13 @@ const choosePersonClick = async (info) => {
}; };
const getGroupCombo = async (info) => { const getGroupCombo = async (info) => {
uni.showLoading()
// //
const response = await $api("GetGroupCombo", { const response = await $api("GetGroupCombo", {
hospital_id: $store.save.hospital, hospital_id: $store.save.hospital,
group_id: info.group_id, group_id: info.group_id,
}); });
uni.hideLoading()
$response(response, () => { $response(response, () => {
console.log(response); console.log(response);
if (response.data.unit.length) { if (response.data.unit.length) {

Loading…
Cancel
Save