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