|
@ -209,6 +209,24 @@ export default { |
|
|
cadreFlag: this.dataForm.cadreFlag, |
|
|
cadreFlag: this.dataForm.cadreFlag, |
|
|
remark: this.dataForm.remark |
|
|
remark: this.dataForm.remark |
|
|
} |
|
|
} |
|
|
|
|
|
if (postData.state === '3') { |
|
|
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'post']('/app-user/user/auditPass/', postData).then(({ data: res }) => { |
|
|
|
|
|
if (res.code !== 0) { |
|
|
|
|
|
return this.$message.error(res.msg) |
|
|
|
|
|
} |
|
|
|
|
|
// 审核通过之后触发发短信 |
|
|
|
|
|
// this.registerResult(this.dataForm.id) |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: this.$t('prompt.success'), |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
duration: 500, |
|
|
|
|
|
onClose: () => { |
|
|
|
|
|
this.visible = false |
|
|
|
|
|
this.$emit('refreshDataList') |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}).catch(() => { }) |
|
|
|
|
|
} else { |
|
|
this.$http[!this.dataForm.id ? 'post' : 'post']('/app-user/user/audit/', postData).then(({ data: res }) => { |
|
|
this.$http[!this.dataForm.id ? 'post' : 'post']('/app-user/user/audit/', postData).then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
@ -225,6 +243,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}).catch(() => { }) |
|
|
}).catch(() => { }) |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, 1000, { 'leading': true, 'trailing': false }), |
|
|
}, 1000, { 'leading': true, 'trailing': false }), |
|
|
registerResult (userId) { |
|
|
registerResult (userId) { |
|
|