zth
lijingjia 3 weeks ago
parent 9371dd450d
commit 03dc405831

@ -206,9 +206,7 @@ export default defineComponent({
) )
// vxe // vxe
function getVxeSelectRows () { function getVxeSelectRows () {
console.log(tableElRef.value) return tableElRef.value.getCheckboxRecords()
// console.log(tableElRef.value.getCheckboxRecords())
// return tableElRef.value.getCheckboxRecords()
} }
function handleTableChange(...args) { function handleTableChange(...args) {
onTableChange.call(undefined, ...args) onTableChange.call(undefined, ...args)
@ -393,6 +391,7 @@ export default defineComponent({
getEmptyDataIsShowTable, getEmptyDataIsShowTable,
handleTableChange, handleTableChange,
getRowClassName, getRowClassName,
getVxeSelectRows,
tableHeightRef, tableHeightRef,
wrapRef, wrapRef,
tableAction, tableAction,

@ -3,8 +3,8 @@
<BasicTable class="ds-table" @register="registerTable" @rowDbClick="handledbclick"> <BasicTable class="ds-table" @register="registerTable" @rowDbClick="handledbclick">
<template #tableTitle> <template #tableTitle>
<div> <div>
<TableActionBar :selectRow="getSelectRows" :reload="reload"> <TableActionBar :selectRow="getVxeSelectRows" :reload="reload">
<tableActionBarRight :selectRow="getSelectRows" :reload="reload"></tableActionBarRight> <tableActionBarRight :selectRow="getVxeSelectRows" :reload="reload"></tableActionBarRight>
<Divider type="vertical" style="margin-top: 11px; background-color: #CED5D9;" /> <Divider type="vertical" style="margin-top: 11px; background-color: #CED5D9;" />
</TableActionBar> </TableActionBar>
</div> </div>
@ -425,7 +425,7 @@ const calcColumns = [
] ]
// //
const calcData = ref([{}]) const calcData = ref([{}])
const [registerTable, { reload, getForm, setLoading, getSelectRows, setColumns }] = useTable({ const [registerTable, { reload, getVxeSelectRows, setLoading, setColumns }] = useTable({
title: '', title: '',
api: async (p) => { api: async (p) => {
// //
@ -468,6 +468,7 @@ const [registerTable, { reload, getForm, setLoading, getSelectRows, setColumns }
appStore.setIds(ids, 'hyck') appStore.setIds(ids, 'hyck')
} }
resolve({ data: [...res.data.list], total: res.data.totalCount }) resolve({ data: [...res.data.list], total: res.data.totalCount })
console.log(getVxeSelectRows)
}) })
}, },
// //

Loading…
Cancel
Save