|
|
|
@ -426,15 +426,16 @@ const calcColumns = [
|
|
|
|
|
// 只调用一次设置列接口
|
|
|
|
|
const fieldFlag = ref(true)
|
|
|
|
|
// 合计数据
|
|
|
|
|
console.log(columns)
|
|
|
|
|
const calcData = ref([{}])
|
|
|
|
|
const [registerTable, { reload, getVxeSelectRows, setLoading, setColumns }] = useTable({
|
|
|
|
|
title: '',
|
|
|
|
|
api: async (p) => {
|
|
|
|
|
// 如果存在改变的列,设置列
|
|
|
|
|
if (fieldFlag.value) {
|
|
|
|
|
updateTableField(setColumns)
|
|
|
|
|
fieldFlag.value = false
|
|
|
|
|
}
|
|
|
|
|
// if (fieldFlag.value) {
|
|
|
|
|
// updateTableField(setColumns)
|
|
|
|
|
// fieldFlag.value = false
|
|
|
|
|
// }
|
|
|
|
|
const res: API.DataResult = await PageDataByBooking(p)
|
|
|
|
|
calcData.value = [res.data?.dataTotal]
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|