|
@@ -13,7 +13,7 @@ import AuthButton from '../../../components/AuthButton';
|
13
|
13
|
const data = []
|
14
|
14
|
|
15
|
15
|
const header = (props) => {
|
16
|
|
- const drainageId = props.location.query.drainageId
|
|
16
|
+ const { drainageId, name } = props.location.query
|
17
|
17
|
|
18
|
18
|
|
19
|
19
|
const [datas, setDatas] = useState([])
|
|
@@ -43,6 +43,7 @@ const header = (props) => {
|
43
|
43
|
setColumns(tableTitle(data.records))
|
44
|
44
|
}
|
45
|
45
|
else {
|
|
46
|
+ setDatas([])
|
46
|
47
|
message.info('数据为空')
|
47
|
48
|
}
|
48
|
49
|
|
|
@@ -155,16 +156,18 @@ const header = (props) => {
|
155
|
156
|
</Button>
|
156
|
157
|
|
157
|
158
|
<div>
|
158
|
|
- {/* H5项目名称 style={{ float: 'right', margin: '20px 0', zIndex: 1 }} */}
|
159
|
|
- <AuthButton name="admin.taDrainageRecord.export.get" noRight={null}>
|
160
|
|
- <Button type="primary" style={{ marginLeft: '30px', float: 'right', marginTop: '30px', marginBottom: '30px', zIndex: 1 }} onClick={excelPort}>导出数据</Button>
|
161
|
|
- </AuthButton>
|
162
|
|
- {
|
163
|
|
- console.log("datas", datas)}
|
|
159
|
+ <div style={{ display: 'flex', justifyContent: 'space-between' }}>
|
|
160
|
+ <div style={{ lineHeight: '92px', width: '600px', fontWeight: 'bold', fontSize: '18px' }}>
|
|
161
|
+ H5项目:{ name }
|
|
162
|
+ </div>
|
|
163
|
+ {/* H5项目名称 style={{ float: 'right', margin: '20px 0', zIndex: 1 }} */}
|
|
164
|
+ <AuthButton name="admin.taDrainageRecord.export.get" noRight={null}>
|
|
165
|
+ <Button type="primary" style={{ marginLeft: '30px', float: 'right', marginTop: '30px', marginBottom: '30px', zIndex: 1 }} onClick={excelPort}>导出数据</Button>
|
|
166
|
+ </AuthButton>
|
|
167
|
+ </div>
|
164
|
168
|
<Table columns={columns} dataSource={datas} pagination={false} />
|
165
|
169
|
<div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
|
166
|
|
- <Pagination showQuickJumper defaultCurrent={1} total={total.total} onChange={(e) => changePageNum(e)} current={total.current}
|
167
|
|
-/>
|
|
170
|
+ <Pagination showQuickJumper defaultCurrent={1} total={total.total} onChange={(e) => changePageNum(e)} current={total.current}/>
|
168
|
171
|
</div>
|
169
|
172
|
</div>
|
170
|
173
|
|