From 7762eb6d24abc06020560c59c108994af0ab0c33 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 9 Jan 2025 16:43:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(xumu):=20=E4=BF=AE=E5=A4=8D=E6=AD=BB?= =?UTF-8?q?=E4=BA=A1=E7=AE=A1=E7=90=86=E5=92=8C=E5=87=BA=E6=A0=8F=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=B8=AD=E7=9A=84=E5=9B=BE=E7=89=87=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=9B=9E=E6=98=BE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 AppDeathManage 和 AppOutManage 组件中,将图片数据转换为 JSON 字符串后提交 - 修复了后端接口对图片数据的接收问题 --- project/xumu/AppDeathManage/add.vue | 2 +- project/xumu/AppOutManage/add.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project/xumu/AppDeathManage/add.vue b/project/xumu/AppDeathManage/add.vue index f9114170..db585f37 100644 --- a/project/xumu/AppDeathManage/add.vue +++ b/project/xumu/AppDeathManage/add.vue @@ -55,7 +55,7 @@ export default { this.$refs.detail.validate().then(() => { const {biochipEarNumber, id, deathTime, heightPic, biochipPic, preventionPic, otherPic, reason, remarks} = this.detail this.instance.post("/api/breed/death/addOrEdit", { - biochipEarNumber, id, deathTime, picture: {heightPic, biochipPic, preventionPic, otherPic}, reason, remarks + biochipEarNumber, id, deathTime, 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)) diff --git a/project/xumu/AppOutManage/add.vue b/project/xumu/AppOutManage/add.vue index 9f3ffa57..8b8b6b63 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, outTime, picture: {heightPic, biochipPic, preventionPic, otherPic}, reason, remarks + biochipEarNumber, id, deathTime, 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))