From f4e2100882c0a8bcec31fc0e3a3ebe09c4860034 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 14 Jan 2025 11:50:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(542):=20=E4=BF=AE=E5=A4=8D=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=A1=B5=E9=9D=A2=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=92=8C=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 AppDeathManage 和 AppOutManage 的 add.vue 文件中,为 ai-eartag-remote 组件添加 class="row",优化布局 - 在 AppOutManage 的 add.vue 文件中,修正出栏接口参数 outTime 之前错误使用 deathTime - 在 AiEartagRemote 组件中,简化 API 请求参数结构 --- project/xumu/AppDeathManage/add.vue | 2 +- project/xumu/AppOutManage/add.vue | 4 ++-- project/xumu/components/AiEartagRemote.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/project/xumu/AppDeathManage/add.vue b/project/xumu/AppDeathManage/add.vue index db585f37..868dc821 100644 --- a/project/xumu/AppDeathManage/add.vue +++ b/project/xumu/AppDeathManage/add.vue @@ -89,7 +89,7 @@ export default {
- + diff --git a/project/xumu/AppOutManage/add.vue b/project/xumu/AppOutManage/add.vue index 8b8b6b63..2d0bcb9d 100644 --- a/project/xumu/AppOutManage/add.vue +++ b/project/xumu/AppOutManage/add.vue @@ -56,7 +56,7 @@ export default { this.$refs.detail.validate().then(() => { const {biochipEarNumber, id, outTime, heightPic, biochipPic, preventionPic, otherPic, reason, remarks} = this.detail this.instance.post("/api/breed/out/addOrEdit", { - biochipEarNumber, id, deathTime, picture: JSON.stringify({heightPic, biochipPic, preventionPic, otherPic}), reason, remarks + biochipEarNumber, id, outTime, picture: JSON.stringify({heightPic, biochipPic, preventionPic, otherPic}), reason, remarks }).then(res => { if (res?.code == 0 && res?.data != 1) { this.$confirm("是否返回列表页?", "提交成功").then(() => this.back()).catch(() => this.getDetail(biochipEarNumber)) @@ -91,7 +91,7 @@ export default {
- + diff --git a/project/xumu/components/AiEartagRemote.vue b/project/xumu/components/AiEartagRemote.vue index f26d2d0e..d6d2cfb3 100644 --- a/project/xumu/components/AiEartagRemote.vue +++ b/project/xumu/components/AiEartagRemote.vue @@ -14,7 +14,7 @@ export default { methods: { getText(biochipEarNumber) { this.info = {} - return this.instance.post("/api/breed/earTag/page", {params: {biochipEarNumber, pageSize: 10, pageNum: 1}}).then(res => { + return this.instance.post("/api/breed/earTag/page", {biochipEarNumber, pageSize: 10, pageNum: 1}).then(res => { if (res?.data?.records) { this.info = res.data.records[0] this.$emit('enter', this.info)