H5报告查询增加loading

main
yanzai 9 months ago
parent a0068357e5
commit ae911b6cff

@ -28,10 +28,14 @@
},
});
const ReportList = async () => {
uni.showLoading({
title: '加载中...'
});
const response = await ReportListAction({
id_number: $props.id_number
})
$response(response, () => {
uni.hideLoading();
report_list.value = response.data.list
})
}

@ -40,10 +40,14 @@
})
}
const ReportInfo = async () => {
uni.showLoading({
title: '加载中...'
});
const response = await ReportInfoAction({
id: $props.id
})
$response(response, () => {
uni.hideLoading();
report_content.value = {
content: response.data.content,
conclusion: response.data.conclusion,

Loading…
Cancel
Save