|
@@ -5,7 +5,7 @@ import StaffHeader from '../../common/staffHeader'
|
|
|
import { Table, Input,Radio } from 'antd';
|
|
|
import 'antd/dist/antd.css';
|
|
|
import { actionCreators } from './store';
|
|
|
-import Popups from '../../common/lockDetail';
|
|
|
+import Popups from '../../common/popupslockDetail';
|
|
|
//import { AudioOutlined } from '@ant-design/icons';
|
|
|
|
|
|
const radioStyle = {
|
|
@@ -78,7 +78,7 @@ class lock_store extends PureComponent {
|
|
|
</ul>
|
|
|
<ul className="list-unstyled px-3 pt-2 mb-0 border-top">
|
|
|
<li className="mb-2">
|
|
|
- <Radio.Group onChange={(e) => handleLockstoreSort(pagination.toJS(), this.props, e)} value={sort}>
|
|
|
+ <Radio.Group onChange={(e) => handleLockstoreSort(pagination.toJS(), this.props,e)} value={sort}>
|
|
|
<Radio style={radioStyle} value='DESC'>
|
|
|
降序
|
|
|
</Radio>
|
|
@@ -94,7 +94,7 @@ class lock_store extends PureComponent {
|
|
|
<div className="panel-container show">
|
|
|
<div className="panel-content">
|
|
|
<Table
|
|
|
- onChange={(pagination,sorter) => handleLockstoreList(pagination,sorter,this.props)}
|
|
|
+ onChange={(pagination,sorter) => handleLockstoreList(pagination,this.props)}
|
|
|
pagination={pagination.toJS()}
|
|
|
bordered
|
|
|
dataSource={dataSource.toJS()}
|
|
@@ -116,6 +116,7 @@ class lock_store extends PureComponent {
|
|
|
const{handleLockstoreList,pagination,initData}= this.props;
|
|
|
// console.log(pagination.toJS());
|
|
|
handleLockstoreList(pagination.toJS(),this.props);
|
|
|
+ // console.log(this.props);
|
|
|
initData();
|
|
|
}
|
|
|
}
|
|
@@ -135,7 +136,7 @@ const mapStateToProps = (state) => {
|
|
|
columnsNum:state.getIn(['lockstore', 'columnsNum']),
|
|
|
sortField: state.getIn(['lockstore', 'sortField']),
|
|
|
sort: state.getIn(['lockstore', 'sort']),
|
|
|
- // locksotreDetail: state.getIn(['popups', 'locksotreDetail']),
|
|
|
+ locksotreDetail: state.getIn(['lockDetailPopups', 'locksotreDetail']),
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -146,7 +147,6 @@ const mapStateToProps = (state) => {
|
|
|
const mapDispathToProps = (dispatch) => {
|
|
|
return {
|
|
|
handleColumnsShow(index) {
|
|
|
- // console.log('kkk');
|
|
|
dispatch(actionCreators.toggleColumns(index));
|
|
|
},
|
|
|
initData(){
|
|
@@ -154,7 +154,9 @@ const mapDispathToProps = (dispatch) => {
|
|
|
dispatch(actionCreators.toggleSorter());
|
|
|
},
|
|
|
handleLockstoreList(pagination,support){
|
|
|
+ // console.log(support)
|
|
|
dispatch(actionCreators.getLockstoreList(pagination,support));
|
|
|
+
|
|
|
},
|
|
|
//排序设置
|
|
|
handleLockstoreSortField(pagination, support, e) {
|
|
@@ -184,10 +186,9 @@ const mapDispathToProps = (dispatch) => {
|
|
|
},
|
|
|
handlelockDetailPopups(key) {
|
|
|
popupsObj.handlelockDetailPopups(key);
|
|
|
- // console.log('kjjj');
|
|
|
// console.log(255);
|
|
|
},
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+//mapStateToProps接收,mapDispathToProps发送
|
|
|
export default connect(mapStateToProps, mapDispathToProps)(lock_store);
|