diff --git a/src/views/modules/user/user-add-or-update.vue b/src/views/modules/user/user-add-or-update.vue index e796b139..67d8561f 100644 --- a/src/views/modules/user/user-add-or-update.vue +++ b/src/views/modules/user/user-add-or-update.vue @@ -180,6 +180,8 @@ export default { if (res.code !== 0) { return this.$message.error(res.msg) } + // 审核通过之后触发发短信 + this.registerResult(this.dataForm.id, this.dataForm.pass) this.$message({ message: this.$t('prompt.success'), type: 'success', @@ -191,7 +193,14 @@ export default { }) }).catch(() => { }) }) - }, 1000, { 'leading': true, 'trailing': false }) + }, 1000, { 'leading': true, 'trailing': false }), + registerResult (userId, state) { + this.$http.get(`api/message/sms/registerResult?userId=` + userId + '&state=' + state).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + }).catch(() => { }) + } } }