|
|
@ -281,7 +281,11 @@ const RoadNameList = (props) => { |
|
|
|
return { |
|
|
|
onClick: () => { |
|
|
|
if (record) { |
|
|
|
setSelectRoad(record.rId); |
|
|
|
let id = record.rId |
|
|
|
if(selectRoad == record.rId){ |
|
|
|
id = null |
|
|
|
} |
|
|
|
setSelectRoad(id); |
|
|
|
onChange(record); |
|
|
|
} |
|
|
|
}, |
|
|
@ -413,7 +417,7 @@ const FileTable = (props) => { |
|
|
|
}} |
|
|
|
> |
|
|
|
<Row> |
|
|
|
<Button onClick={() => { setUploadVisible(true) }} type="primary" style={{ width: 160, marginBottom: 8 }} >上传</Button> |
|
|
|
<Button onClick={() => { setUploadVisible(true) }} type="primary" style={{ width: 160, marginBottom: 8, visibility: record ? 'visible': "hidden" }} >上传</Button> |
|
|
|
</Row> |
|
|
|
<Card style={{ flex: 1 }}> |
|
|
|
<DetailList fileList={fileList} record={record} loading={fileListLoading} dispatch={dispatch} handelRefresh={handelRefresh} onPageChange={onPageChange} /> |
|
|
|