From 082613d446e29e4ec1c16bfaa52345106a498b23 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 08 Nov 2022 09:03:49 +0800
Subject: [PATCH] 农事操作隐藏后四个,地图模式2d改为3d
---
src/views/traceability/traceability.vue | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/views/traceability/traceability.vue b/src/views/traceability/traceability.vue
index 4ffed82..c7ec1d7 100644
--- a/src/views/traceability/traceability.vue
+++ b/src/views/traceability/traceability.vue
@@ -215,8 +215,16 @@
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),
@@ -384,11 +392,12 @@
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,
--
Gitblit v1.9.3