智慧农业后台管理页面
shuishen
2022-08-02 c7d469efc2bc11d2c54d2aafef90d16e27088eb8
src/views/recovery/recovery.vue
@@ -57,6 +57,7 @@
            },
            selectionList: [],
            landList: [],
            landId:0,
            option: {
                tip: false,
                height: 520,
@@ -64,6 +65,7 @@
                delBtn: true,
                viewBtn: false,
                addBtn: false,
                header:false,
                menuWidth: 200,
                menuAlign: "center",
                align: "center",
@@ -110,6 +112,9 @@
                        props: {
                            label: "landName",
                            value: "id"
                        },
                        change: (val) => {
                          this.landId = val.value
                        },
                        rules: [
                            {
@@ -427,6 +432,11 @@
            this.onLoad(this.page, this.query)
        },
        onLoad (page, params = {}) {
            var datas = this.$route.query.id
            params.landId = datas
            if (this.landId) {
              params['landId'] = this.landId
            }
            params['tenantId'] = this.userInfo.tenant_id
            params['deptId'] = this.userInfo.dept_id
            this.loading = true