feat(BUG 540): 新增免疫登记功能
- 添加免疫登记对话框和相关表单 - 实现免疫信息的添加和更新功能 - 优化表单样式,调整标签宽度和对齐方式
This commit is contained in:
@@ -75,7 +75,8 @@ export default {
|
||||
},
|
||||
submit() {
|
||||
this.$refs.detail.validate().then(() => {
|
||||
this.instance.post("/api/breed/immunity/update", this.form).then(res => {
|
||||
const action = !this.form.id ? "/api/breed/immunity/add" : "/api/breed/immunity/update"
|
||||
this.instance.post(action, this.form).then(res => {
|
||||
if (res?.code == 0) {
|
||||
this.dialog = false
|
||||
this.getDetail()
|
||||
|
||||
Reference in New Issue
Block a user