Showing
3 changed files
with
26 additions
and
0 deletions
@@ -119,6 +119,9 @@ import {mapActions } from 'vuex' | @@ -119,6 +119,9 @@ import {mapActions } from 'vuex' | ||
119 | methods: { | 119 | methods: { |
120 | ...mapActions(['updateBadgeTotal']), | 120 | ...mapActions(['updateBadgeTotal']), |
121 | inputChanged(e) { | 121 | inputChanged(e) { |
122 | + if (getApp().getBindNot()) { | ||
123 | + return | ||
124 | + } | ||
122 | this.resetQuery(); | 125 | this.resetQuery(); |
123 | this.topBack(); | 126 | this.topBack(); |
124 | this.queryCondition.searchAlarmText = e; | 127 | this.queryCondition.searchAlarmText = e; |
@@ -203,12 +206,20 @@ import {mapActions } from 'vuex' | @@ -203,12 +206,20 @@ import {mapActions } from 'vuex' | ||
203 | this.show = false; | 206 | this.show = false; |
204 | }, | 207 | }, |
205 | openSearchDialog() { | 208 | openSearchDialog() { |
209 | + if (getApp().getBindNot()) { | ||
210 | + uni.$u.toast('请进行账号绑定') | ||
211 | + return | ||
212 | + } | ||
206 | this.show = true; | 213 | this.show = true; |
207 | this.$nextTick(() => { | 214 | this.$nextTick(() => { |
208 | this.resetQuery(); | 215 | this.resetQuery(); |
209 | }) | 216 | }) |
210 | }, | 217 | }, |
211 | openOrg() { | 218 | openOrg() { |
219 | + if (getApp().getBindNot()) { | ||
220 | + uni.$u.toast('请进行账号绑定') | ||
221 | + return | ||
222 | + } | ||
212 | useNavigateTo('/pages/organization/organization') | 223 | useNavigateTo('/pages/organization/organization') |
213 | }, | 224 | }, |
214 | //跳转告警详情 | 225 | //跳转告警详情 |
@@ -91,6 +91,9 @@ | @@ -91,6 +91,9 @@ | ||
91 | }, | 91 | }, |
92 | methods: { | 92 | methods: { |
93 | inputChanged(e) { | 93 | inputChanged(e) { |
94 | + if (getApp().getBindNot()) { | ||
95 | + return | ||
96 | + } | ||
94 | this.page.num = 1; | 97 | this.page.num = 1; |
95 | this.deviceName = e; | 98 | this.deviceName = e; |
96 | this.conditions = { | 99 | this.conditions = { |
@@ -163,12 +166,20 @@ | @@ -163,12 +166,20 @@ | ||
163 | } | 166 | } |
164 | }, | 167 | }, |
165 | openOrg() { | 168 | openOrg() { |
169 | + if (getApp().getBindNot()) { | ||
170 | + uni.$u.toast('请进行账号绑定') | ||
171 | + return | ||
172 | + } | ||
166 | useNavigateTo('/pages/organization/organization') | 173 | useNavigateTo('/pages/organization/organization') |
167 | }, | 174 | }, |
168 | close() { | 175 | close() { |
169 | this.show = false; | 176 | this.show = false; |
170 | }, | 177 | }, |
171 | openSearchDialog() { | 178 | openSearchDialog() { |
179 | + if (getApp().getBindNot()) { | ||
180 | + uni.$u.toast('请进行账号绑定') | ||
181 | + return | ||
182 | + } | ||
172 | this.show = true; | 183 | this.show = true; |
173 | this.$nextTick(() => { | 184 | this.$nextTick(() => { |
174 | this.resetQuery(); | 185 | this.resetQuery(); |
@@ -131,6 +131,10 @@ | @@ -131,6 +131,10 @@ | ||
131 | useNavigateTo('components/visualBoard/index') | 131 | useNavigateTo('components/visualBoard/index') |
132 | }, | 132 | }, |
133 | handleEvent(event) { | 133 | handleEvent(event) { |
134 | + if (getApp().getBindNot()) { | ||
135 | + uni.$u.toast('请进行账号绑定') | ||
136 | + return | ||
137 | + } | ||
134 | if(event==='visualBoard') { | 138 | if(event==='visualBoard') { |
135 | this.openVisualBoard() | 139 | this.openVisualBoard() |
136 | }else if (event === 'openCamera') this.openCamera() | 140 | }else if (event === 'openCamera') this.openCamera() |