From 5f1a969db826cdf81379a2e248b0c10726428c43 Mon Sep 17 00:00:00 2001 From: wyt <414651037@qq.com> Date: Wed, 16 Jul 2025 18:24:18 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E7=BB=84?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=BE=8A=E5=8F=AA=E5=88=86=E7=BB=84=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/fileManagement/group_management.js | 8 + src/api/fileManagement/sheep_grouping.js | 44 +++ .../fileManagement/sheep_grouping/index.vue | 285 ++++++++++++++++++ 3 files changed, 337 insertions(+) create mode 100644 src/api/fileManagement/sheep_grouping.js create mode 100644 src/views/fileManagement/sheep_grouping/index.vue diff --git a/src/api/fileManagement/group_management.js b/src/api/fileManagement/group_management.js index c8fc036..0484803 100644 --- a/src/api/fileManagement/group_management.js +++ b/src/api/fileManagement/group_management.js @@ -42,3 +42,11 @@ export function delGroup_management(groupId) { method: 'delete' }) } + +// 查询所有叶子分组 +export function listLeafGroup() { + return request({ + url: '/group_management/group_management/leaf', + method: 'get' + }) +} diff --git a/src/api/fileManagement/sheep_grouping.js b/src/api/fileManagement/sheep_grouping.js new file mode 100644 index 0000000..2af0cba --- /dev/null +++ b/src/api/fileManagement/sheep_grouping.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询羊只分组关联列表 +export function listSheep_grouping(query) { + return request({ + url: '/sheep_grouping/sheep_grouping/list', + method: 'get', + params: query + }) +} + +// 查询羊只分组关联详细 +export function getSheep_grouping(id) { + return request({ + url: '/sheep_grouping/sheep_grouping/' + id, + method: 'get' + }) +} + +// 新增羊只分组关联 +export function addSheep_grouping(data) { + return request({ + url: '/sheep_grouping/sheep_grouping', + method: 'post', + data: data + }) +} + +// 修改羊只分组关联 +export function updateSheep_grouping(data) { + return request({ + url: '/sheep_grouping/sheep_grouping', + method: 'put', + data: data + }) +} + +// 删除羊只分组关联 +export function delSheep_grouping(id) { + return request({ + url: '/sheep_grouping/sheep_grouping/' + id, + method: 'delete' + }) +} diff --git a/src/views/fileManagement/sheep_grouping/index.vue b/src/views/fileManagement/sheep_grouping/index.vue new file mode 100644 index 0000000..62519dd --- /dev/null +++ b/src/views/fileManagement/sheep_grouping/index.vue @@ -0,0 +1,285 @@ + + + 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 2/5] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BE=8A=E5=8F=AA?= =?UTF-8?q?=EF=BC=8C=E8=BD=AC=E7=BE=A4=EF=BC=8C=E4=BF=AE=E8=B9=84=EF=BC=8C?= =?UTF-8?q?=E5=8E=BB=E5=8A=BF=E9=A1=B5=E9=9D=A2=E5=93=81=E7=A7=8D=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=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 @@ +/* -------------------- 入口 -------------------- */ +onMounted(() => { + getVarietyOptions() + getList() +}) + \ No newline at end of file diff --git a/src/views/produce/other/fixHoof/index.vue b/src/views/produce/other/fixHoof/index.vue index 028e4ca..78729f5 100644 --- a/src/views/produce/other/fixHoof/index.vue +++ b/src/views/produce/other/fixHoof/index.vue @@ -2,8 +2,8 @@
- - + + @@ -19,12 +19,8 @@ - + @@ -37,19 +33,19 @@ 新增 + v-hasPermi="['fixHoof:fixHoof:add']">新增 修改 + v-hasPermi="['fixHoof:fixHoof:edit']">修改 删除 + v-hasPermi="['fixHoof:fixHoof:remove']">删除 导出 + v-hasPermi="['fixHoof:fixHoof:export']">导出 @@ -57,7 +53,7 @@ - + @@ -71,24 +67,21 @@ - + - - + + @@ -118,9 +111,9 @@ \ No newline at end of file