This commit is contained in:
牛子源 2025-05-23 10:25:20 +08:00
parent bd542a6cb4
commit 900cf23055
1 changed files with 5 additions and 2 deletions

View File

@ -170,8 +170,11 @@ const save = () => {
)
}
const removeTableRow = (row: any) => {
list.value = list.value.filter((item: any) => item.id !== row.id);
const index = list.value.findIndex(item => item === row);
if (index !== -1) {
list.value.splice(index, 1);
calculateTotalPrices();
}
}
const pageNum = ref<any>(1)
const pageSize = ref<any>(20)