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))