Browse Source

核酸检测点、疫苗接种点 PC 管理

master
wanggongfeng 3 years ago
parent
commit
b96eff559c
  1. 41
      src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue

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

Loading…
Cancel
Save