智慧农业后台管理页面
src/views/recovery/recovery.vue
@@ -272,7 +272,7 @@
        }
    },
    computed: {
        ...mapGetters(["permission", "userInfo"]),
        ...mapGetters(["permission", "userInfo","$farmId"]),
        // permissionList() {
        //   return {
        //     addBtn: this.vaildData(this.permission.social_add, true),
@@ -289,13 +289,29 @@
            return ids.join(",")
        },
    },
    watch:{
        '$farmId':{
            handler (newName, oldName) {
                //获取农地数据
                getLandList(this.$farmId).then((res) => {
                    if (res.data.code == 200) {
                        var landIdcolumn = this.findObject(this.option.column, "landId")
                        this.landList = res.data.data
                        landIdcolumn.dicData = res.data.data
                    }
                })
                this.query={}
                this.onLoad(this.page)
            }
        }
    },
    mounted () { },
    methods: {
        //初始化数据
        initData () {
            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
@@ -438,7 +454,7 @@
              params['landId'] = this.landId
            }
            params['tenantId'] = this.userInfo.tenant_id
            params['deptId'] = this.userInfo.dept_id
            params['farmId'] = this.$farmId
            this.loading = true
            getList(
                page.currentPage,