|
|
@ -321,6 +321,9 @@ export default { |
|
|
|
if (this.formData.id) { |
|
|
|
putInspectionProjectData(this.formData).then((res) => { |
|
|
|
this.$message.success("保存成功"); |
|
|
|
setTimeout(() => { |
|
|
|
this.$router.go(-1); |
|
|
|
}, 500); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
postInspectionProjectData(this.formData).then((res) => { |
|
|
@ -328,6 +331,9 @@ export default { |
|
|
|
this.formData.id = res.data.id; |
|
|
|
} |
|
|
|
this.$message.success("保存成功"); |
|
|
|
setTimeout(() => { |
|
|
|
this.$router.go(-1); |
|
|
|
}, 500); |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|