Compare commits

...

2 Commits

Author SHA1 Message Date
牛子源 937b597a2e Merge remote-tracking branch 'origin/main' 2025-05-23 10:25:30 +08:00
牛子源 900cf23055 dev 2025-05-23 10:25:20 +08:00
1 changed files with 5 additions and 2 deletions

View File

@ -170,9 +170,12 @@ const save = () => {
) )
} }
const removeTableRow = (row: any) => { 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(); calculateTotalPrices();
} }
}
const pageNum = ref<any>(1) const pageNum = ref<any>(1)
const pageSize = ref<any>(20) const pageSize = ref<any>(20)
const total = ref<any>(0) const total = ref<any>(0)