智慧农业后台管理页面
guoshilong
2022-08-15 20a90d7ceccbaa8600fce74a6435b7b19cf19926
地块获取列表跟随农场选择变化
1 files modified
5 ■■■■■ changed files
src/views/wel/plant.vue 5 ●●●●● patch | view | raw | blame | history
src/views/wel/plant.vue
@@ -246,6 +246,7 @@
  computed: {
    ...mapState({
      userInfo: (state) => state.user.userInfo,
      $farmId: state => state.user.$farmId,
    }),
  },
  methods: {
@@ -283,7 +284,7 @@
      this.visible = true;
      var that = this;
      //获取农地数据
      getLandList(this.userInfo.dept_id).then((res)=>{
      getLandList(this.$farmId).then((res)=>{
          if(res.data.code==200){
              var landIdcolumn = that.findObject(that.option.column,"landId");
              that.landList = res.data.data;
@@ -304,7 +305,7 @@
      row['farmType'] = 0;
      row['createUser'] = this.userInfo.user_id;
      row['tenantId'] = this.userInfo.tenant_id;
      row['deptId'] = this.userInfo.dept_id;
      row['deptId'] = this.$farmId;
      save(row).then(
        () => {
          that.$emit("refreshOnLoad")