Browse Source

添加点击跳转乡镇

master
changtong 6 months ago
parent
commit
0c2ec9858d
  1. 10900
      package-lock.json
  2. 1
      src/App.vue
  3. 1
      src/assets/geojson/town_boundaries.geojson
  4. 4
      src/views/screen/components/gisMapOfCounty.vue
  5. 12
      src/views/screen/county-screen.vue

10900
package-lock.json

File diff suppressed because it is too large

1
src/App.vue

@ -2,7 +2,6 @@
<div id="app">
<router-view :key="key"/>
<emergency-modal v-model="alarmShow" title="摄像头报警" width="988px" @close="cancel">
<!-- <alarmDia></alarmDia>-->
</emergency-modal>
</div>
</template>

1
src/assets/geojson/town_boundaries.geojson

File diff suppressed because one or more lines are too long

4
src/views/screen/components/gisMapOfCounty.vue

@ -311,7 +311,7 @@ export default {
clickable: true,
content: `
<div style="
font-size: 20px;
font-size: 16px;
font-weight: bold;
color: #fff;
width: max-content;
@ -339,7 +339,7 @@ export default {
labelMarker.on('mouseout', () => {
labelMarker.setContent(`
<div style="
font-size: 20px;
font-size: 16px;
font-weight: bold;
color: #fff;
width: max-content;

12
src/views/screen/county-screen.vue

@ -632,7 +632,17 @@ export default {
},
methods: {
enterTown(name) {
console.log(name);
if (name == "李庄镇") {
this.$router.push({
name: "town-screen",
query: {
townName: "李庄镇",
areaCode: "511502101000"
},
});
} else {
this.$Message.info("请选择试点乡镇李庄镇")
}
},
toWarring(item) {
switch (this.currentType) {

Loading…
Cancel
Save