上传
This commit is contained in:
@@ -239,16 +239,14 @@ const loading = ref(false)
|
||||
const tableList = ref([])
|
||||
const total = ref(0)
|
||||
|
||||
const totalNum = ref(0)
|
||||
const totalAmount = ref(0)
|
||||
const totalInfo = ref({})
|
||||
async function getList() {
|
||||
loading.value = true
|
||||
try {
|
||||
const data = await SettleApi.getSchoolSettlePage(removeNullField(searchForm.value))
|
||||
tableList.value = data.list
|
||||
total.value = data.total
|
||||
totalNum.value = data.totalNum
|
||||
totalAmount.value = data.totalAmount
|
||||
totalInfo.value = data.totalData
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
@@ -261,9 +259,9 @@ function getSummaries(param) {
|
||||
if (index === 0) {
|
||||
sums[index] = '合计'
|
||||
} else if (column.property == 'settlementNum') {
|
||||
sums[index] = totalNum.value
|
||||
sums[index] = totalInfo.value.totalNum
|
||||
} else if (column.property == 'settlementMoney') {
|
||||
sums[index] = totalAmount.value
|
||||
sums[index] = totalInfo.value.totalAmount
|
||||
} else {
|
||||
sums[index] = ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user