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) => {