Browse Source

积分埋点 接口拆分

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

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

@ -209,22 +209,41 @@ export default {
cadreFlag: this.dataForm.cadreFlag, cadreFlag: this.dataForm.cadreFlag,
remark: this.dataForm.remark remark: this.dataForm.remark
} }
this.$http[!this.dataForm.id ? 'post' : 'post']('/app-user/user/audit/', postData).then(({ data: res }) => { if (postData.state === '3') {
if (res.code !== 0) { this.$http[!this.dataForm.id ? 'post' : 'post']('/app-user/user/auditPass/', postData).then(({ data: res }) => {
return this.$message.error(res.msg) 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(() => { }) // 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)
}
//
// this.registerResult(this.dataForm.id)
this.$message({
message: this.$t('prompt.success'),
type: 'success',
duration: 500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
}).catch(() => { })
}
}) })
}, 1000, { 'leading': true, 'trailing': false }), }, 1000, { 'leading': true, 'trailing': false }),
registerResult (userId) { registerResult (userId) {

Loading…
Cancel
Save