zth
lijingjia 3 weeks ago
parent 9371dd450d
commit 03dc405831

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

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

Loading…
Cancel
Save