Browse Source

修改分时段bug

yu_ber 4 years ago
parent
commit
91199f016f

+ 1 - 0
UI/src/pages/sellmanage/keyWordEdit.js

@@ -236,6 +236,7 @@ class KeyWordEdit extends React.Component {
                             {this.state.msgPanes.map((pane,i) => (
                                 <TabPane tab={pane.title} key={pane.key} closable={pane.closable}>
                                       <MsgComponent tabIndex={i} {...self.state.msgList[i]}
+                                        type = { "Component" }
                                         mediaIdChange={(v,imgUrl)=>{self.cb_mediaId(v,i,imgUrl)}}
                                        onChange={(v,av)=>{self.cb_formChange(v,av,i)}}
                                        chooseKeyChange={(v)=>{self.cb_chooseKey(v,i)}}

+ 1 - 0
UI/src/pages/sellmanage/msgComponent.js

@@ -356,6 +356,7 @@ class MsgComponent extends React.Component {
     
   //生命周期
   componentWillReceiveProps(nextProps) {
+      console.log(nextProps);
     if(!nextProps.type){
         this.setState({ chooseKey:nextProps.chooseKey , _ID : nextProps.mediaId ? nextProps.mediaId : null})
     }

BIN
UI/src/pages/sellmanage/pushMessage.zip