讲师管理bug移除跟减

This commit is contained in:
zhangsir
2024-12-26 17:31:19 +08:00
parent 657ca6b112
commit c9adb8d664

View File

@@ -227,7 +227,7 @@ const removeId = (e,i) =>{
}else{
expenseList.value = expenseList.value.filter(item=>item.id !== e.id)
}
forData.value[indexList.value].summaryTotal = (forData.value[indexList.value]?.summaryTotal - e.payableExpense).toFixed(2)
forData.value[indexList.value].summaryTotal = (forData.value[indexList.value]?.summaryTotal - e.expense).toFixed(2)
if(!forData.value[indexList.value].expenseList.length){
forData.value.splice(indexList.value,1)
forData.value.length > 0 && clickItem(forData.value[0],0)