Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
1 changed file
with
22 additions
and
18 deletions
... | @@ -175,31 +175,35 @@ export default { | ... | @@ -175,31 +175,35 @@ export default { |
175 | // 左键双击事件 | 175 | // 左键双击事件 |
176 | dbclick(item) { | 176 | dbclick(item) { |
177 | clearTimeout(this.time); | 177 | clearTimeout(this.time); |
178 | if(item.type == 'zd' || item.type == 'zrz' ||item.type == 'dz'){ | 178 | //此处不要将$router移到if的外面,因为可能是双击行政区,就不知道去哪儿了 |
179 | if (item.type == 'zd') { | ||
180 | this.$store.state.zdbsm = item.bsm; | ||
179 | this.$router.push({ | 181 | this.$router.push({ |
180 | path: '/'+item.type, | 182 | path: '/'+item.type, |
183 | query:{ | ||
184 | source: 2, | ||
185 | bsm:item.bsm | ||
186 | } | ||
187 | }); | ||
188 | }else if(item.type == 'zrz'){ | ||
189 | this.$store.state.zrzbsm = item.bsm; | ||
190 | this.$router.push({ | ||
191 | path: '/'+item.type, | ||
192 | query:{ | ||
193 | source: 2, | ||
194 | bsm:item.bsm | ||
195 | } | ||
196 | }); | ||
197 | }else if(item.type == 'dz'){ | ||
198 | this.$store.state.dzbsm = item.bsm; | ||
199 | this.$router.push({ | ||
200 | path: '/'+item.type, | ||
181 | query:{ | 201 | query:{ |
182 | source: 2, | 202 | source: 2, |
183 | bsm:item.bsm | 203 | bsm:item.bsm |
184 | } | 204 | } |
185 | }); | 205 | }); |
186 | } | 206 | } |
187 | // if (item.type == 'zd') { | ||
188 | // this.$router.push({ | ||
189 | // path: '/zd', | ||
190 | // query:{ | ||
191 | // source: 2, | ||
192 | // bsm:item.bsm | ||
193 | // } | ||
194 | // }); | ||
195 | // }else if(item.type == 'zrz'){ | ||
196 | // this.$router.push({ | ||
197 | // path: '/zrz', | ||
198 | // query:{ | ||
199 | // bsm:item.bsm | ||
200 | // } | ||
201 | // }); | ||
202 | // } | ||
203 | }, | 207 | }, |
204 | closeMenu() { | 208 | closeMenu() { |
205 | this.$emit("changeVisible", false); | 209 | this.$emit("changeVisible", false); | ... | ... |
-
Please register or sign in to post a comment