This commit is contained in:
parent
b66917f999
commit
5848304307
@ -1,7 +1,6 @@
|
||||
import {
|
||||
MyButtons,
|
||||
MyColumns,
|
||||
MyImportModal,
|
||||
MyPageContainer,
|
||||
MyProTableProps,
|
||||
} from '@/common';
|
||||
@ -37,15 +36,15 @@ export default function Index({ title = '账单明细' }) {
|
||||
MyProTableProps.request(params, sort, Apis.Bill.HouseBills.List)
|
||||
}
|
||||
toolBarRender={(action) => [
|
||||
<MyImportModal
|
||||
key="ImportHouse"
|
||||
title="账单导入"
|
||||
type="default"
|
||||
size="middle"
|
||||
templateApi={Apis.Bill.HouseBills.DownloadTemplate}
|
||||
importApi={Apis.Bill.HouseBills.Import}
|
||||
reload={action?.reload}
|
||||
/>,
|
||||
// <MyImportModal
|
||||
// key="ImportHouse"
|
||||
// title="账单导入"
|
||||
// type="default"
|
||||
// size="middle"
|
||||
// templateApi={Apis.Bill.HouseBills.DownloadTemplate}
|
||||
// importApi={Apis.Bill.HouseBills.Import}
|
||||
// reload={action?.reload}
|
||||
// />,
|
||||
<BillCreate key="Create" reload={action?.reload} title={title} />,
|
||||
]}
|
||||
columns={[
|
||||
@ -61,10 +60,10 @@ export default function Index({ title = '账单明细' }) {
|
||||
render: (_, record) => {
|
||||
return (
|
||||
<MyButtons.View
|
||||
title={`${record.asset_house.full_name}`}
|
||||
title={record?.asset_house?.full_name || '-'}
|
||||
type="link"
|
||||
onClick={() => {
|
||||
navigate(`/bills/summary/show/${record.asset_houses_id}`);
|
||||
navigate(`/bills/summary/show/${record?.asset_houses_id}`);
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user