石超 2025-03-08 09:05:32 +08:00
commit 5168b53b23
2 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,7 @@
size="small" size="small"
height="500" height="500"
bordered bordered
:loading="loading"
:pagination="pagination.pagination" :pagination="pagination.pagination"
> >
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
@ -52,6 +53,7 @@
currentListQuery: Object; currentListQuery: Object;
}>(); }>();
const caseId = ref(''); const caseId = ref('');
const loading = ref(false)
let columns = reactive({ let columns = reactive({
data: [], data: [],
col: [ col: [
@ -175,6 +177,7 @@
); );
function handleGetList() { function handleGetList() {
loading.value = true
getLoadCaseInfoListOffence(props.currentListQuery).then((res) => { getLoadCaseInfoListOffence(props.currentListQuery).then((res) => {
res.items.forEach((item) => { res.items.forEach((item) => {
item.area = dataProcessingCount(item.area); item.area = dataProcessingCount(item.area);
@ -182,6 +185,8 @@
}); });
columns.data = res.items; columns.data = res.items;
total.value = res.total; total.value = res.total;
}).finally(() => {
loading.value = false
}); });
} }

View File

@ -5,6 +5,7 @@
size="small" size="small"
height="500" height="500"
bordered bordered
:loading="loading"
:pagination="pagination.pagination" :pagination="pagination.pagination"
> >
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
@ -52,6 +53,7 @@
currentListQuery: Object; currentListQuery: Object;
}>(); }>();
const caseId = ref(''); const caseId = ref('');
const loading = ref(false)
let columns = reactive({ let columns = reactive({
data: [], data: [],
col: [ col: [
@ -175,6 +177,7 @@
); );
function handleGetList() { function handleGetList() {
loading.value = true
getLoadCaseInfoListOffence(props.currentListQuery).then((res) => { getLoadCaseInfoListOffence(props.currentListQuery).then((res) => {
res.items.forEach((item) => { res.items.forEach((item) => {
item.area = dataProcessingCount(item.area); item.area = dataProcessingCount(item.area);
@ -182,6 +185,8 @@
}); });
columns.data = res.items; columns.data = res.items;
total.value = res.total; total.value = res.total;
}).finally(() => {
loading.value = false
}); });
} }