| | |
| | | created() { |
| | | this.initData(); |
| | | }, |
| | | watch: { |
| | | '$farmId':{ |
| | | handler (newName, oldName) { |
| | | this.query={} |
| | | this.onLoad(this.page) |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | ...mapGetters(["permission", "userInfo","$farmId"]), |
| | | // permissionList() { |
| | | // return { |
| | | // addBtn: this.vaildData(this.permission.social_add, true), |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | onLoads(){ |
| | | this.onLoad(this.page, this.query); |
| | | // this.onLoad(this.page, this.query); |
| | | this.onLoad(this.page); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | params['tenantId'] = this.userInfo.tenant_id; |
| | | params['deptId'] = this.userInfo.dept_id; |
| | | params.deptId = this.$farmId |
| | | this.loading = true; |
| | | getList( |
| | | page.currentPage, |