Sfoglia il codice sorgente

锁库内容套取

outaozhen 5 anni fa
parent
commit
90d55c4a62

+ 1 - 0
config/webpack.prod.config.js

@@ -103,6 +103,7 @@ module.exports = merge(common, {
           from: /^\/company/, to: '/',
           from: /^\/product\/lockStatistics/, to: '/product',
           from: /^\/product/, to: '/product',
+          
           //客户相关
           from: /^\/contact/, to: '/contact',
           from: /^\/contact\/company/, to: '/contact',

+ 5 - 4
src/product/lock_count/index.js

@@ -8,6 +8,7 @@ import { actionCreators } from './store';
 class lock_count extends PureComponent {
     render() {
       const { lockCount } = this.props;
+      console.log(lockCount);
         return (
             <div>
                 <StaffHeader />
@@ -128,9 +129,9 @@ class lock_count extends PureComponent {
     //组件即将要被挂在的时候执行的方法--
     componentDidMount(){
         //逻辑代码可以写在mapDispathToProps里 this.props.方法
-        const { lockCount,lockcount } = this.props;
+        const { lockCount,handleLockcount } = this.props;
       
-        lockcount(lockCount);
+        handleLockcount(lockCount);
     }
 
 }
@@ -141,7 +142,7 @@ class lock_count extends PureComponent {
 const mapStateToProps = (state) => {
 
     return {
-      lockCount:state.getIn(['product', 'lockCount']),
+      lockCount:state.getIn(['lockcount', 'lockCount']),
       menu: state.getIn(['submenu', 'menu']),
       list: state.getIn(['submenu', 'list']),
       inputValue: state.getIn(['submenu', 'inputValue']),
@@ -154,7 +155,7 @@ const mapStateToProps = (state) => {
  */
 const mapDispathToProps = (dispatch) => {
     return {
-      lockcount(lockCount){
+      handleLockcount(lockCount){
           (lockCount.size === 0) && dispatch(actionCreators.getLockcountLIst());
         },
         handleInputFocus(list) {

+ 1 - 1
src/product/lock_store/index.js

@@ -202,7 +202,7 @@ class lock_store extends PureComponent {
 const mapStateToProps = (state) => {
 
     return {
-      lockStore:state.getIn(['product', 'lockStore']),
+      lockStore:state.getIn(['lockstore', 'lockStore']),
       menu: state.getIn(['submenu', 'menu']),
       list: state.getIn(['submenu', 'list']),
       inputValue: state.getIn(['submenu', 'inputValue']),