|
@@ -358,59 +358,55 @@ const Contact = () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <>
|
|
|
|
|
- <div className={styles.tableContent}>
|
|
|
|
|
- <ProTable
|
|
|
|
|
- rowKey={record => record.id}
|
|
|
|
|
- bordered
|
|
|
|
|
- columns={columns}
|
|
|
|
|
- dataSource={state.data}
|
|
|
|
|
- summary={() => (
|
|
|
|
|
- <ProTable.Summary.Row>
|
|
|
|
|
- <ProTable.Summary.Cell>统计: 总数</ProTable.Summary.Cell>
|
|
|
|
|
- <ProTable.Summary.Cell />
|
|
|
|
|
- <ProTable.Summary.Cell>未填写: {state.tail.department}</ProTable.Summary.Cell>
|
|
|
|
|
- <ProTable.Summary.Cell>未填写: {state.tail.telephone}</ProTable.Summary.Cell>
|
|
|
|
|
- <ProTable.Summary.Cell>未填写: {state.tail.email}</ProTable.Summary.Cell>
|
|
|
|
|
- </ProTable.Summary.Row>
|
|
|
|
|
- )}
|
|
|
|
|
- pagination={{
|
|
|
|
|
- pageSize: consts.PAGE_SIZE,
|
|
|
|
|
- total: state.total,
|
|
|
|
|
- onChange: (page, size) => initData({ page, size })
|
|
|
|
|
- }}
|
|
|
|
|
- tableAlertRender={({ selectedRowKeys }) => {
|
|
|
|
|
- return <div>2222</div>
|
|
|
|
|
- }}
|
|
|
|
|
- rowSelection={{
|
|
|
|
|
- onChange: hanleRowSelectChange,
|
|
|
|
|
- type: 'checkbox'
|
|
|
|
|
- }}
|
|
|
|
|
- search={false}
|
|
|
|
|
- toolbar={{
|
|
|
|
|
- search: {
|
|
|
|
|
- allowClear: true,
|
|
|
|
|
- onSearch: handleSearch,
|
|
|
|
|
- onChange: handleSearchInputChange
|
|
|
|
|
- },
|
|
|
|
|
- actions: [
|
|
|
|
|
- <LazyCascader onChange={onDistrictChange} key="lazyCascader" />,
|
|
|
|
|
- <Addcontact onConfirm={handleAddClient} key="addContactBtn" />
|
|
|
|
|
- ]
|
|
|
|
|
- }}
|
|
|
|
|
- scroll={getScrollRef}
|
|
|
|
|
- columnsStateMap={columnsStateMap}
|
|
|
|
|
- onColumnsStateChange={map => setColumnsStateMap(map)}
|
|
|
|
|
- headerTitle="联系人"
|
|
|
|
|
- // toolBarRender={() => [
|
|
|
|
|
- // <Button key="button" type="primary">
|
|
|
|
|
- // <SvgIcon type="icon-plus" />
|
|
|
|
|
- // 联系人
|
|
|
|
|
- // </Button>
|
|
|
|
|
- // ]}
|
|
|
|
|
- />
|
|
|
|
|
- </div>
|
|
|
|
|
- </>
|
|
|
|
|
|
|
+ <ProTable
|
|
|
|
|
+ rowKey={record => record.id}
|
|
|
|
|
+ bordered
|
|
|
|
|
+ columns={columns}
|
|
|
|
|
+ dataSource={state.data}
|
|
|
|
|
+ summary={() => (
|
|
|
|
|
+ <ProTable.Summary.Row>
|
|
|
|
|
+ <ProTable.Summary.Cell>统计: 总数</ProTable.Summary.Cell>
|
|
|
|
|
+ <ProTable.Summary.Cell />
|
|
|
|
|
+ <ProTable.Summary.Cell>未填写: {state.tail.department}</ProTable.Summary.Cell>
|
|
|
|
|
+ <ProTable.Summary.Cell>未填写: {state.tail.telephone}</ProTable.Summary.Cell>
|
|
|
|
|
+ <ProTable.Summary.Cell>未填写: {state.tail.email}</ProTable.Summary.Cell>
|
|
|
|
|
+ </ProTable.Summary.Row>
|
|
|
|
|
+ )}
|
|
|
|
|
+ pagination={{
|
|
|
|
|
+ pageSize: consts.PAGE_SIZE,
|
|
|
|
|
+ total: state.total,
|
|
|
|
|
+ onChange: (page, size) => initData({ page, size })
|
|
|
|
|
+ }}
|
|
|
|
|
+ tableAlertRender={({ selectedRowKeys }) => {
|
|
|
|
|
+ return <div>2222</div>
|
|
|
|
|
+ }}
|
|
|
|
|
+ rowSelection={{
|
|
|
|
|
+ onChange: hanleRowSelectChange,
|
|
|
|
|
+ type: 'checkbox'
|
|
|
|
|
+ }}
|
|
|
|
|
+ search={false}
|
|
|
|
|
+ toolbar={{
|
|
|
|
|
+ search: {
|
|
|
|
|
+ allowClear: true,
|
|
|
|
|
+ onSearch: handleSearch,
|
|
|
|
|
+ onChange: handleSearchInputChange
|
|
|
|
|
+ },
|
|
|
|
|
+ actions: [
|
|
|
|
|
+ <LazyCascader onChange={onDistrictChange} key="lazyCascader" />,
|
|
|
|
|
+ <Addcontact onConfirm={handleAddClient} key="addContactBtn" />
|
|
|
|
|
+ ]
|
|
|
|
|
+ }}
|
|
|
|
|
+ scroll={getScrollRef}
|
|
|
|
|
+ columnsStateMap={columnsStateMap}
|
|
|
|
|
+ onColumnsStateChange={map => setColumnsStateMap(map)}
|
|
|
|
|
+ headerTitle="联系人"
|
|
|
|
|
+ // toolBarRender={() => [
|
|
|
|
|
+ // <Button key="button" type="primary">
|
|
|
|
|
+ // <SvgIcon type="icon-plus" />
|
|
|
|
|
+ // 联系人
|
|
|
|
|
+ // </Button>
|
|
|
|
|
+ // ]}
|
|
|
|
|
+ />
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|