From 71076e0df073a6b609374b656aa06de1a696f2d8 Mon Sep 17 00:00:00 2001 From: zyh <2066096076@qq.com> Date: Thu, 17 Jul 2025 10:02:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BE=8A=E5=8F=AA=EF=BC=8C?= =?UTF-8?q?=E8=BD=AC=E7=BE=A4=EF=BC=8C=E4=BF=AE=E8=B9=84=EF=BC=8C=E5=8E=BB?= =?UTF-8?q?=E5=8A=BF=E9=A1=B5=E9=9D=A2=E5=93=81=E7=A7=8D=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E7=9A=84=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage_sheep/trans_group/trans_group.js | 8 +- src/api/produce/other/fixHoof/fixHoof.js | 3 +- .../produce/manage_sheep/add_sheep/index.vue | 223 ++++++++------ .../manage_sheep/trans_group/index.vue | 278 ++++++++---------- src/views/produce/other/castrate/index.vue | 156 +++++----- src/views/produce/other/fixHoof/index.vue | 200 +++++++------ 6 files changed, 465 insertions(+), 403 deletions(-) diff --git a/src/api/produce/manage_sheep/trans_group/trans_group.js b/src/api/produce/manage_sheep/trans_group/trans_group.js index e29e992..e8e3eba 100644 --- a/src/api/produce/manage_sheep/trans_group/trans_group.js +++ b/src/api/produce/manage_sheep/trans_group/trans_group.js @@ -36,17 +36,17 @@ export function updateTrans_group(data) { } // 删除转群记录 -export function delTrans_group(id) { +export function delTrans_group(ids) { + const idStr = Array.isArray(ids) ? ids.join(',') : String(ids) return request({ - url: '/produce/manage_sheep/trans_group/' + id, + url: `/produce/manage_sheep/trans_group/${idStr}`, method: 'delete' }) } - // 获取羊舍列表 export function listSheepfold() { return request({ - url: '/produce/sheepfold/list', + url: '/sheepfold_management/sheepfold_management/list', method: 'get', }); } diff --git a/src/api/produce/other/fixHoof/fixHoof.js b/src/api/produce/other/fixHoof/fixHoof.js index ed0a56c..828746c 100644 --- a/src/api/produce/other/fixHoof/fixHoof.js +++ b/src/api/produce/other/fixHoof/fixHoof.js @@ -33,8 +33,9 @@ export function updateFixHoof(data) { } // 删除修蹄 export function delFixHoof(ids) { + const idStr = Array.isArray(ids) ? ids.join(',') : String(ids) return request({ - url: `/produce/other/fixHoof/${ids.join(',')}`, + url: `/produce/other/fixHoof/${idStr}`, method: 'delete' }) } diff --git a/src/views/produce/manage_sheep/add_sheep/index.vue b/src/views/produce/manage_sheep/add_sheep/index.vue index 2e41ad3..dddd5f8 100644 --- a/src/views/produce/manage_sheep/add_sheep/index.vue +++ b/src/views/produce/manage_sheep/add_sheep/index.vue @@ -1,13 +1,16 @@