From 4733e790197a9acd84bb2bbc1acd350cc4b17f11 Mon Sep 17 00:00:00 2001 From: lijingjia Date: Tue, 5 Nov 2024 09:58:25 +0800 Subject: [PATCH] vxetable --- src/components/Table/src/BasicTable.vue | 3 ++- src/views/operation/seaexport/index.vue | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/Table/src/BasicTable.vue b/src/components/Table/src/BasicTable.vue index 9cb885cf..71b9d262 100644 --- a/src/components/Table/src/BasicTable.vue +++ b/src/components/Table/src/BasicTable.vue @@ -17,7 +17,7 @@ @@ -152,6 +152,7 @@ export default defineComponent({ 'columns-change' ], setup(props, { attrs, emit, slots, expose }) { + console.log(props) const tableElRef = ref(null) const tableData = ref([]) diff --git a/src/views/operation/seaexport/index.vue b/src/views/operation/seaexport/index.vue index cddab6bb..9e146038 100644 --- a/src/views/operation/seaexport/index.vue +++ b/src/views/operation/seaexport/index.vue @@ -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) => {