From f730850d933d245480a72058c261bee2e92bf97b Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 14 Jan 2025 11:28:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(BUG=20540):=20=E6=96=B0=E5=A2=9E=E5=85=8D?= =?UTF-8?q?=E7=96=AB=E7=99=BB=E8=AE=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加免疫登记对话框和相关表单 - 实现免疫信息的添加和更新功能 - 优化表单样式,调整标签宽度和对齐方式 --- project/xumu/AppImmunityManage/add.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/project/xumu/AppImmunityManage/add.vue b/project/xumu/AppImmunityManage/add.vue index 28ca43ee..ddd8e464 100644 --- a/project/xumu/AppImmunityManage/add.vue +++ b/project/xumu/AppImmunityManage/add.vue @@ -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() @@ -163,7 +164,7 @@ export default { - +