智慧农业后台管理页面
shuishen
2022-07-18 937ab15b5e62f83b2f190ece0134c4dffb784be5
src/views/wel/index.vue
@@ -224,7 +224,7 @@
    //本年农事操作记录
    getFarmingCount() {
      var that = this;
      getFarmingCount(this.userInfo.dept_id).then((res) => {
      getFarmingCount(this.userInfo.farmId).then((res) => {
        that.total = res.data.data;
        // that.total = 0;
        if (that.total > 0) {
@@ -235,13 +235,13 @@
    //本年农事操作记录,分组统计
    getFarmingStatis() {
      var that = this;
      getFarmingStatis(this.userInfo.dept_id).then((res) => {
      getFarmingStatis(this.userInfo.farmId).then((res) => {
        that.farmingList = res.data.data;
      });
    },
    StockCount() {
      var that = this;
      StockCount(this.userInfo.dept_id).then((res) => {
      StockCount(this.userInfo.farmId).then((res) => {
        that.stockList= res.data.data;
        console.log(that.stockList)
      });
@@ -249,7 +249,7 @@
    //地块使用率统计
    getCountStatis() {
      var that = this;
      selectCount(this.userInfo.dept_id).then((res) => {
      selectCount(this.userInfo.farmId).then((res) => {
        var data = res.data.data;
        that.landInfo = data;
      });
@@ -263,7 +263,7 @@
        status: 1,
      };
      params['tenantId'] = this.userInfo.tenant_id;
      params['deptId'] = this.userInfo.dept_id;
      params['farmId'] = this.userInfo.farmId;
      getList(1, 10, Object.assign(params)).then((res) => {
        const data = res.data.data;
        this.farmPlanList = data.records;