|
|
@@ -12,7 +12,6 @@ import {
|
|
|
PullToRefresh,
|
|
|
ListView,
|
|
|
Drawer,
|
|
|
- List,
|
|
|
Button, Toast,
|
|
|
} from 'antd-mobile'
|
|
|
import './currency-list.less'
|
|
|
@@ -84,7 +83,7 @@ class CurrencyList extends Component {
|
|
|
}
|
|
|
|
|
|
render () {
|
|
|
- const { listState: { tabList, tabSelect, listData }, rowCount } = this.props
|
|
|
+ const { listState: { tabList, tabSelect, listData }, rowCount, addAble } = this.props
|
|
|
const { listDataSource, height, hasNextPage, filterOpen } = this.state
|
|
|
|
|
|
const refreshLayout = this.getRefreshLayout()
|
|
|
@@ -146,11 +145,14 @@ class CurrencyList extends Component {
|
|
|
onEndReached={hasNextPage ? this.loadDataList : null}
|
|
|
pageSize={LIST_PAGE_SIZE}
|
|
|
/>
|
|
|
- <UasIcon
|
|
|
- type={'uas-add-doc'}
|
|
|
- className='com-hover-button'
|
|
|
- onClick={this.onDocAdd}
|
|
|
- />
|
|
|
+ {
|
|
|
+ addAble && <UasIcon
|
|
|
+ type={'uas-add-doc'}
|
|
|
+ className='com-hover-button'
|
|
|
+ onClick={this.onDocAdd}
|
|
|
+ />
|
|
|
+ }
|
|
|
+
|
|
|
</div>
|
|
|
)
|
|
|
}
|