H5报告查询增加loading

main
yanzai 9 months ago
parent a0068357e5
commit ae911b6cff

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

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

Loading…
Cancel
Save