diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue index ede57617..789647ca 100644 --- a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue +++ b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue @@ -404,27 +404,26 @@ export default { // 表单提交 dataFormSubmitHandle: debounce( function () { - console.log(this.dataForm); - // this.$refs['dataForm'].validate((valid) => { - // if (!valid) { - // return false - // } - // this.$http[!this.dataForm.id ? 'post' : 'put']('/epmetuser/icPointVaccinesInoculation/', this.dataForm).then(({ data: res }) => { - // if (res.code !== 0) { - // return this.$message.error(res.msg) - // } - // this.$message({ - // message: this.$t('prompt.success'), - // type: 'success', - // duration: 500, - // onClose: () => { - // this.visible = false - // this.$emit('refreshDataList') - // this.closeSubmit() - // } - // }) - // }).catch(() => {}) - // }) + this.$refs['dataForm'].validate((valid) => { + if (!valid) { + return false + } + this.$http[!this.dataForm.id ? 'post' : 'put']('/epmetuser/icPointVaccinesInoculation/', this.dataForm).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + this.closeSubmit() + } + }) + }).catch(() => {}) + }) }, 1000, { leading: true, trailing: false }