diff --git a/package.json b/package.json index 158bb8c..929db2d 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,8 @@ "vue": "3.4.31", "vue-cropper": "1.1.1", "vue-router": "4.4.0", - "vuedraggable": "4.1.0" + "vuedraggable": "4.1.0", + "vuex": "^4.0.2" }, "devDependencies": { "@vitejs/plugin-vue": "5.0.5", diff --git a/src/api/produce/sheep/sheep.js b/src/api/produce/sheep/sheep.js new file mode 100644 index 0000000..bd2c361 --- /dev/null +++ b/src/api/produce/sheep/sheep.js @@ -0,0 +1,10 @@ +import request from '@/utils/request'; + +// 新增羊只基本信息 +export function addSheep(data) { + return request({ + url: '/produce/sheep', // 确保这是正确的后端接口地址 + method: 'post', + data: data + }); +} \ No newline at end of file diff --git a/src/views/dairyProducts/rawMilkTest/rawMilkTest/index.vue b/src/views/dairyProducts/rawMilkTest/rawMilkTest/index.vue index 94b0ea1..cc368f9 100644 --- a/src/views/dairyProducts/rawMilkTest/rawMilkTest/index.vue +++ b/src/views/dairyProducts/rawMilkTest/rawMilkTest/index.vue @@ -17,142 +17,6 @@ @keyup.enter="handleQuery" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 搜索 重置 @@ -198,36 +62,49 @@ v-hasPermi="['rawMilkTest:rawMilkTest:export']" >导出 + + 字段显示 + - - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +onMounted(() => { + initVisibleColumns() + getList() +}) + \ No newline at end of file diff --git a/src/views/produce/manage_sheep/add_sheep/index.vue b/src/views/produce/manage_sheep/add_sheep/index.vue index 9ac7adf..2e41ad3 100644 --- a/src/views/produce/manage_sheep/add_sheep/index.vue +++ b/src/views/produce/manage_sheep/add_sheep/index.vue @@ -109,7 +109,7 @@ diff --git a/src/views/produce/other/castrate/index.vue b/src/views/produce/other/castrate/index.vue index 3c6ea8b..2260028 100644 --- a/src/views/produce/other/castrate/index.vue +++ b/src/views/produce/other/castrate/index.vue @@ -94,7 +94,7 @@