|
@@ -20,7 +20,7 @@ function body() {
|
20
|
20
|
title: '类型名称',
|
21
|
21
|
dataIndex: 'buildingTypeName',
|
22
|
22
|
key: 'buildingTypeName',
|
23
|
|
- render: (_, record) => <Tag color="blue" onClick={() => toEdi(record.buildingTypeId)}>{ record.buildingTypeName }</Tag>,
|
|
23
|
+ render: (_, record) => <Tag color="blue" onClick={() => toEdi(record.buildingTypeId)}>{record.buildingTypeName}</Tag>,
|
24
|
24
|
},
|
25
|
25
|
{
|
26
|
26
|
title: '创建时间',
|
|
@@ -35,9 +35,9 @@ function body() {
|
35
|
35
|
render: (_, record) => (
|
36
|
36
|
<span onClick={() => deleteType(record)}>
|
37
|
37
|
<span style={{
|
38
|
|
- color: '#FF4A4A', right: '0',
|
|
38
|
+ color: '#FF4A4A', right: '0',
|
39
|
39
|
}} >
|
40
|
|
- 删除
|
|
40
|
+ 删除
|
41
|
41
|
<Icon type="rest" style={{ color: '#C0C4CC', marginLeft: '8px' }} />
|
42
|
42
|
</span>
|
43
|
43
|
</span>
|
|
@@ -97,7 +97,7 @@ function body() {
|
97
|
97
|
return (
|
98
|
98
|
<>
|
99
|
99
|
<Button type="danger" onClick={() => toEdi()}>新增类型</Button>
|
100
|
|
- <Table style={{marginTop:'30px'}} dataSource={data.records} columns={columns} pagination={false}/>
|
|
100
|
+ <Table style={{ marginTop: '30px' }} dataSource={data.records} columns={columns} pagination={false} />
|
101
|
101
|
{/* 分页 */}
|
102
|
102
|
<div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
|
103
|
103
|
<Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={onChange} />
|