From 682bd4d3b940f2950efbfbb853d5ee29d8010bf2 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 15 Aug 2022 11:36:58 +0800
Subject: [PATCH] 首页的农事操作和农事操作分组以及农资情况跟随农场选择变化
---
src/views/wel/index.vue | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/views/wel/index.vue b/src/views/wel/index.vue
index 5b8c355..f9d49b9 100644
--- a/src/views/wel/index.vue
+++ b/src/views/wel/index.vue
@@ -253,6 +253,11 @@
this.farm.id = newName
//农场概览 地块使用率
this.getCountStatis ()
+ //本年农事操作记录
+ this.getFarmingCount()
+ //本年农事操作记录,分组
+ this.getFarmingStatis()
+ this.StockCount()
//当前农场种养品种
this.onLoad()
}
@@ -285,7 +290,7 @@
//本年农事操作记录
getFarmingCount () {
var that = this
- getFarmingCount(this.userInfo.dept_id).then((res) => {
+ getFarmingCount(this.$farmId).then((res) => {
that.total = res.data.data
// that.total = 0;
if (that.total > 0) {
@@ -296,14 +301,14 @@
//本年农事操作记录,分组统计
getFarmingStatis () {
var that = this
- getFarmingStatis(this.userInfo.dept_id).then((res) => {
+ getFarmingStatis(this.$farmId).then((res) => {
that.farmingList = res.data.data
})
},
//农资库存
StockCount () {
var that = this
- StockCount(this.userInfo.dept_id).then((res) => {
+ StockCount(this.$farmId).then((res) => {
that.stockList = res.data.data
console.log(that.stockList)
})
--
Gitblit v1.9.3