|
@ -220,6 +220,22 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</common-modal> |
|
|
</common-modal> |
|
|
|
|
|
<common-modal |
|
|
|
|
|
v-model="warringState" |
|
|
|
|
|
:title="currentMenu.menuItem" |
|
|
|
|
|
width="600" |
|
|
|
|
|
> |
|
|
|
|
|
<div style="width: 100%; display: flex; flex-wrap: wrap"> |
|
|
|
|
|
<div |
|
|
|
|
|
class="menu-item" |
|
|
|
|
|
@click="toWarring(item)" |
|
|
|
|
|
v-for="(item, index) in currentMenu.children" |
|
|
|
|
|
:key="index" |
|
|
|
|
|
> |
|
|
|
|
|
<span>{{ item.menuItem }}</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</common-modal> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -249,6 +265,7 @@ export default { |
|
|
let self = this; |
|
|
let self = this; |
|
|
return { |
|
|
return { |
|
|
title: "翠屏区智慧广电示范区", |
|
|
title: "翠屏区智慧广电示范区", |
|
|
|
|
|
warringState: false, |
|
|
areaCode: window.$localStorage.getItem("areaCode"), |
|
|
areaCode: window.$localStorage.getItem("areaCode"), |
|
|
videoUrl: "/localImage/home/home.mp4", |
|
|
videoUrl: "/localImage/home/home.mp4", |
|
|
logUrl: "/localImage/smartserver/yj.glb", |
|
|
logUrl: "/localImage/smartserver/yj.glb", |
|
@ -304,10 +321,30 @@ export default { |
|
|
{ |
|
|
{ |
|
|
menuItem: "人流预警", |
|
|
menuItem: "人流预警", |
|
|
isShowTwon: true, |
|
|
isShowTwon: true, |
|
|
|
|
|
children: [ |
|
|
|
|
|
{ |
|
|
|
|
|
menuItem: "人流1", |
|
|
|
|
|
areaCode: "", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
menuItem: "人流2", |
|
|
|
|
|
areaCode: "", |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
menuItem: "车流预警", |
|
|
menuItem: "车流预警", |
|
|
isShowTwon: true, |
|
|
isShowTwon: true, |
|
|
|
|
|
children: [ |
|
|
|
|
|
{ |
|
|
|
|
|
menuItem: "车流1", |
|
|
|
|
|
areaCode: "", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
menuItem: "车流2", |
|
|
|
|
|
areaCode: "", |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
menuItem: "视频结构化", |
|
|
menuItem: "视频结构化", |
|
@ -575,6 +612,30 @@ export default { |
|
|
this.getTownMemu(); |
|
|
this.getTownMemu(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
toWarring(item) { |
|
|
|
|
|
switch (this.currentType) { |
|
|
|
|
|
case "person": |
|
|
|
|
|
this.$router.push({ |
|
|
|
|
|
path: "/person-warring", |
|
|
|
|
|
query: { |
|
|
|
|
|
areaName: item.menuItem, |
|
|
|
|
|
areaCode: item.areaCode, |
|
|
|
|
|
}, |
|
|
|
|
|
}); |
|
|
|
|
|
break; |
|
|
|
|
|
case "car": |
|
|
|
|
|
this.$router.push({ |
|
|
|
|
|
path: "/car-warring", |
|
|
|
|
|
query: { |
|
|
|
|
|
areaName: item.menuItem, |
|
|
|
|
|
areaCode: item.areaCode, |
|
|
|
|
|
}, |
|
|
|
|
|
}); |
|
|
|
|
|
break; |
|
|
|
|
|
default: |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
jumpSystem(item) { |
|
|
jumpSystem(item) { |
|
|
this.currentMenu = item; |
|
|
this.currentMenu = item; |
|
|
this.appState = true; |
|
|
this.appState = true; |
|
@ -1053,26 +1114,35 @@ export default { |
|
|
switch (item.menuItem) { |
|
|
switch (item.menuItem) { |
|
|
case "镇级": |
|
|
case "镇级": |
|
|
this.currentType = "town"; |
|
|
this.currentType = "town"; |
|
|
|
|
|
this.townModal = true; |
|
|
break; |
|
|
break; |
|
|
case "村级": |
|
|
case "村级": |
|
|
this.currentType = "village"; |
|
|
this.currentType = "village"; |
|
|
|
|
|
this.townModal = true; |
|
|
break; |
|
|
break; |
|
|
case "乡村治理": |
|
|
case "乡村治理": |
|
|
this.currentType = "governance"; |
|
|
this.currentType = "governance"; |
|
|
|
|
|
this.townModal = true; |
|
|
break; |
|
|
break; |
|
|
case "网格管理": |
|
|
case "网格管理": |
|
|
this.currentType = "grid"; |
|
|
this.currentType = "grid"; |
|
|
|
|
|
this.townModal = true; |
|
|
break; |
|
|
break; |
|
|
case "人流预警": |
|
|
case "人流预警": |
|
|
this.currentType = "person"; |
|
|
this.currentType = "person"; |
|
|
|
|
|
this.appState = false; |
|
|
|
|
|
this.currentMenu = item; |
|
|
|
|
|
this.warringState = true; |
|
|
break; |
|
|
break; |
|
|
case "车流预警": |
|
|
case "车流预警": |
|
|
this.currentType = "car"; |
|
|
this.currentType = "car"; |
|
|
|
|
|
this.appState = false; |
|
|
|
|
|
this.currentMenu = item; |
|
|
|
|
|
this.warringState = true; |
|
|
break; |
|
|
break; |
|
|
default: |
|
|
default: |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
this.townModal = true; |
|
|
|
|
|
} else if (item.url) { |
|
|
} else if (item.url) { |
|
|
window.open(item.url); |
|
|
window.open(item.url); |
|
|
} |
|
|
} |
|
|