diff --git a/project/xumu/AppEarTag/etAdd.vue b/project/xumu/AppEarTag/etAdd.vue index eddb8caf..fce658df 100644 --- a/project/xumu/AppEarTag/etAdd.vue +++ b/project/xumu/AppEarTag/etAdd.vue @@ -55,6 +55,10 @@ export default { }, submit() { this.$refs.detail.validate().then(() => { + if (this.isEdit) { + const {biochipEarNumber, electronicEarNumber, originalEarNumber, picture, variety, category, age, weight} = this.detail + this.detail.detailList = [{biochipEarNumber, electronicEarNumber, originalEarNumber, picture, variety, category, age, weight}] + } this.instance.post("/api/breed/earTag/addOrEdit", this.detail).then(res => { if (res?.code == 0) { this.$confirm("是否要返回列表?", "提交成功").then(() => this.back())