|
@@ -171,6 +171,7 @@ class Verifier extends React.Component {
|
171
|
171
|
getVerCodeList (params) {
|
172
|
172
|
request({ ...apis.groupActivity.verification, params: { ...params } }).then(res => {
|
173
|
173
|
message.info('核销成功')
|
|
174
|
+ this.props.onSuccess({groupActivityId: this.state.visibleData.groupActivityId, groupStatus: 0});
|
174
|
175
|
}).catch(err => {
|
175
|
176
|
<Alert
|
176
|
177
|
style={{
|
|
@@ -191,7 +192,6 @@ class Verifier extends React.Component {
|
191
|
192
|
verification(e) {
|
192
|
193
|
console.log("asdasdasdasd",this.state.visibleData);
|
193
|
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
|
197
|
render () {
|
|
@@ -207,7 +207,7 @@ class Verifier extends React.Component {
|
207
|
207
|
onCancel={(e) => this.handleCancel(e)}
|
208
|
208
|
>
|
209
|
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
|
211
|
</div>
|
212
|
212
|
</Modal>
|
213
|
213
|
</>
|