智慧农业后台管理页面
guoshilong
2022-08-16 3c124094ad06306dcb2dbbace5af8a4a1e26e3ac
修正错误
1 files modified
22 ■■■■ changed files
src/views/statistics/stock.vue 22 ●●●● patch | view | raw | blame | history
src/views/statistics/stock.vue
@@ -261,17 +261,17 @@
      // this.query['endTime'] = thisDay;
      return thisDay;
    },
    initData() {
      var that = this;
      //获取农产品数据
      getStrainList(0).then((res) => {
        if (res.data.code == 200) {
          var strainId = that.findObject(that.option.column, "strainId");
          strainId.dicData = res.data.data;
        }
      });
    }
    ,
    // initData() {
    //   var that = this;
    //   //获取农产品数据
    //   getStrainList(0).then((res) => {
    //     if (res.data.code == 200) {
    //       var strainId = that.findObject(that.option.column, "strainId");
    //       strainId.dicData = res.data.data;
    //     }
    //   });
    // }
    // ,
    //新增
    rowSave(row, done, loading) {
      row["strainType"] = 0;