Browse Source

积分埋点 接口拆分

feature/syp_points
songyunpeng 5 years ago
parent
commit
b99f5caf60
  1. 19
      src/views/modules/user/user-add-or-update.vue

19
src/views/modules/user/user-add-or-update.vue

@ -209,6 +209,24 @@ export default {
cadreFlag: this.dataForm.cadreFlag,
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 }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
@ -225,6 +243,7 @@ export default {
}
})
}).catch(() => { })
}
})
}, 1000, { 'leading': true, 'trailing': false }),
registerResult (userId) {

Loading…
Cancel
Save