Browse Source

弹框关闭

dingxin 5 years ago
parent
commit
6a82424ff9

+ 2
- 2
src/pages/activity/groupActivity/helpRecord.jsx View File

171
    getVerCodeList (params) {
171
    getVerCodeList (params) {
172
     request({ ...apis.groupActivity.verification, params: { ...params } }).then(res => {
172
     request({ ...apis.groupActivity.verification, params: { ...params } }).then(res => {
173
       message.info('核销成功')
173
       message.info('核销成功')
174
+      this.props.onSuccess({groupActivityId: this.state.visibleData.groupActivityId, groupStatus: 0});
174
     }).catch(err => {
175
     }).catch(err => {
175
       <Alert
176
       <Alert
176
         style={{
177
         style={{
191
   verification(e) {
192
   verification(e) {
192
     console.log("asdasdasdasd",this.state.visibleData);
193
     console.log("asdasdasdasd",this.state.visibleData);
193
     this.getVerCodeList({ groupActivityId: this.state.visibleData.groupActivityId, verifyCode: this.state.visibleData.verificationCode, recordId: this.state.visibleData.recordId})
194
     this.getVerCodeList({ groupActivityId: this.state.visibleData.groupActivityId, verifyCode: this.state.visibleData.verificationCode, recordId: this.state.visibleData.recordId})
194
-    this.props.onSuccess({groupActivityId: this.state.visibleData.groupActivityId, groupStatus: 0});
195
   }
195
   }
196
 
196
 
197
   render () {
197
   render () {
207
           onCancel={(e) => this.handleCancel(e)}
207
           onCancel={(e) => this.handleCancel(e)}
208
         >
208
         >
209
           <div><span>核销码:<input onChange={this.verify.bind(this)}/></span>
209
           <div><span>核销码:<input onChange={this.verify.bind(this)}/></span>
210
-           <Button name="admin.taShareRecord.verificate.put" noRight={null} onClick={() => this.verification()}>立即核销</Button>
210
+           <Button name="admin.taShareRecord.verificate.put" noRight={null} style={{ marginLeft: '80px' }} onClick={() => this.verification()}>立即核销</Button>
211
           </div>
211
           </div>
212
         </Modal>
212
         </Modal>
213
       </>
213
       </>

+ 1
- 1
src/pages/activity/helpActivity/helpRecord.jsx View File

181
     request({ ...apis.helpActivity.verification, params: { ...params } }).then(res => {
181
     request({ ...apis.helpActivity.verification, params: { ...params } }).then(res => {
182
       // eslint-disable-next-line no-undef
182
       // eslint-disable-next-line no-undef
183
       message.info('核销成功')
183
       message.info('核销成功')
184
+      this.props.onSuccess({ pageNumber: 1, pageSize: 10, helpActivityId: this.props.visibleData.helpActivityId, status: 'helpSucceed' })
184
     }).catch(err => {
185
     }).catch(err => {
185
       // eslint-disable-next-line no-unused-expressions
186
       // eslint-disable-next-line no-unused-expressions
186
       <Alert
187
       <Alert
202
   // eslint-disable-next-line class-methods-use-this
203
   // eslint-disable-next-line class-methods-use-this
203
   verification(e) {
204
   verification(e) {
204
     this.audit({ helpRecordInitiateId: this.state.visibleData.helpId, verifyCode: this.state.visibleData.verificationCode })
205
     this.audit({ helpRecordInitiateId: this.state.visibleData.helpId, verifyCode: this.state.visibleData.verificationCode })
205
-    this.props.onSuccess({ pageNumber: 1, pageSize: 10, helpActivityId: this.props.visibleData.helpActivityId, status: 'helpSucceed' })
206
   }
206
   }
207
 
207
 
208
   render () {
208
   render () {