From e65d6c82a235d40b2db16cc687251b58f335b039 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Tue, 19 Jul 2022 18:10:17 +0800
Subject: [PATCH] 首页农场切换功能,刷新数据
---
src/api/farm/farmingrecord.js | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/api/farm/farmingrecord.js b/src/api/farm/farmingrecord.js
index d4d9aba..8c7d355 100644
--- a/src/api/farm/farmingrecord.js
+++ b/src/api/farm/farmingrecord.js
@@ -89,22 +89,22 @@
})
}
-export const getFarmingCount = (deptId) => {
+export const getFarmingCount = (farmId) => {
return request({
url: '/farmingRecord/getFarmingCount',
method: 'get',
params: {
- deptId
+ farmId
}
})
}
-export const getFarmingStatis = (deptId) => {
+export const getFarmingStatis = (farmId) => {
return request({
url: '/farmingRecord/getFarmingStatis',
method: 'get',
params: {
- deptId
+ farmId
}
})
}
@@ -119,10 +119,13 @@
}
})
}
-export const SelectCount = () => {
+export const SelectCount = (farmId) => {
return request({
url: '/farm/SelectCount',
- method: 'get'
+ method: 'get',
+ params: {
+ farmId
+ }
})
}
--
Gitblit v1.9.3