|
|
@ -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 } |
|
|
|