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