|
@ -5,25 +5,25 @@ |
|
|
<div> |
|
|
<div> |
|
|
<a-row :gutter="24" :style="{ padding: '30px 140px' }"> |
|
|
<a-row :gutter="24" :style="{ padding: '30px 140px' }"> |
|
|
<a-col :span="8"> |
|
|
<a-col :span="8"> |
|
|
<router-link target="_blank" :to="{ name: 'VideoMonitor' }"> |
|
|
<!-- <router-link target="_blank" :to="{ name: 'VideoMonitor' }"> --> |
|
|
<a-card hoverable class="a-card" @mouseenter="mouseOver($event, 1)" @mouseleave="mouseLeave($event, 1)"> |
|
|
<a-card hoverable class="a-card" @mouseenter="mouseOver($event, 1)" @mouseleave="mouseLeave($event, 1)" @click="jumpTo('videoMonitor')"> |
|
|
<template #cover><img slot="cover" alt="example" src="@/assets/earthMap/photoelectricity.png" |
|
|
<template #cover><img slot="cover" alt="example" src="@/assets/earthMap/photoelectricity.png" |
|
|
class="cardImg" ref="photoelectricImg" /></template> |
|
|
class="cardImg" ref="photoelectricImg" /></template> |
|
|
<span class="a-card-title" ref="cardTitle">视频监控</span> |
|
|
<span class="a-card-title" ref="cardTitle">视频监控</span> |
|
|
</a-card> |
|
|
</a-card> |
|
|
</router-link> |
|
|
<!-- </router-link> --> |
|
|
</a-col> |
|
|
</a-col> |
|
|
|
|
|
|
|
|
<a-col :span="8"> |
|
|
<a-col :span="8"> |
|
|
<router-link target="_blank" :to="{ name: 'ElectronicMap' }"> |
|
|
<!-- <router-link target="_blank" :to="{ name: 'ElectronicMap' }"> --> |
|
|
<a-card hoverable class="a-card" @mouseenter="mouseOver($event, 2)" @mouseleave="mouseLeave($event, 2)"> |
|
|
<a-card hoverable class="a-card" @mouseenter="mouseOver($event, 2)" @mouseleave="mouseLeave($event, 2)" @click="jumpTo('electronicMap')"> |
|
|
<template #cover> |
|
|
<template #cover> |
|
|
<img slot="cover" alt="example" src="@/assets/earthMap/map.png" class="cardImg" ref="cardImg" /> |
|
|
<img slot="cover" alt="example" src="@/assets/earthMap/map.png" class="cardImg" ref="cardImg" /> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<span class="a-card-title" ref="cardTitle">电子地图</span> |
|
|
<span class="a-card-title" ref="cardTitle">电子地图</span> |
|
|
</a-card> |
|
|
</a-card> |
|
|
</router-link> |
|
|
<!-- </router-link> --> |
|
|
</a-col> |
|
|
</a-col> |
|
|
<a-col :span="8"> |
|
|
<a-col :span="8"> |
|
|
<a-card hoverable class="a-card" @mouseenter="mouseOver($event, 3)" @mouseleave="mouseLeave($event, 3)" |
|
|
<a-card hoverable class="a-card" @mouseenter="mouseOver($event, 3)" @mouseleave="mouseLeave($event, 3)" |
|
@ -31,7 +31,7 @@ |
|
|
<template #cover> <img slot="cover" alt="example" src="@/assets/earthMap/scene.png" class="cardImg" |
|
|
<template #cover> <img slot="cover" alt="example" src="@/assets/earthMap/scene.png" class="cardImg" |
|
|
ref="cardImg" /></template> |
|
|
ref="cardImg" /></template> |
|
|
|
|
|
|
|
|
<span class="a-card-title" ref="cardTitle">场景配置</span> |
|
|
<span class="a-card-title" ref="cardTitle">区域配置</span> |
|
|
</a-card> |
|
|
</a-card> |
|
|
</a-col> |
|
|
</a-col> |
|
|
|
|
|
|
|
@ -76,8 +76,6 @@ |
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import { ref } from 'vue'; |
|
|
import { ref } from 'vue'; |
|
|
import { defHttp } from '/@/utils/http/axios'; |
|
|
import { defHttp } from '/@/utils/http/axios'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import photoelectricity_hover from "@/assets/earthMap/photoelectricity_hover.png" |
|
|
import photoelectricity_hover from "@/assets/earthMap/photoelectricity_hover.png" |
|
|
import map_hover from "@/assets/earthMap/map_hover.png" |
|
|
import map_hover from "@/assets/earthMap/map_hover.png" |
|
|
import scene_hover from "@/assets/earthMap/scene_hover.png" |
|
|
import scene_hover from "@/assets/earthMap/scene_hover.png" |
|
@ -92,7 +90,7 @@ import scene from "@/assets/earthMap/scene.png" |
|
|
import camera_management from "@/assets/earthMap/camera_management.png" |
|
|
import camera_management from "@/assets/earthMap/camera_management.png" |
|
|
import warnInfo from "@/assets/earthMap/warnInfo.png" |
|
|
import warnInfo from "@/assets/earthMap/warnInfo.png" |
|
|
import { useRouter, useRoute } from 'vue-router'; |
|
|
import { useRouter, useRoute } from 'vue-router'; |
|
|
|
|
|
const { ipcRenderer } = require('electron'); |
|
|
// 当前路由 |
|
|
// 当前路由 |
|
|
const route = useRoute(); |
|
|
const route = useRoute(); |
|
|
const router = useRouter(); |
|
|
const router = useRouter(); |
|
@ -181,17 +179,17 @@ function openPage(index) { |
|
|
break |
|
|
break |
|
|
case 3: |
|
|
case 3: |
|
|
// routePath = '/device/SiteView' |
|
|
// routePath = '/device/SiteView' |
|
|
routePath = '/defence/ElectronicMap/flyto/config' |
|
|
routePath = '/scene/manage' |
|
|
break |
|
|
break |
|
|
case 4: |
|
|
case 4: |
|
|
routePath = '/device/MsDeviceInfoList' |
|
|
routePath = '/device/info' |
|
|
break |
|
|
break |
|
|
case 5: |
|
|
case 5: |
|
|
// routePath = '/device/PerimeterAlarmView' |
|
|
// routePath = '/device/PerimeterAlarmView' |
|
|
routePath = '/camera/cameraSet' |
|
|
routePath = '/cameraManage' |
|
|
break |
|
|
break |
|
|
case 6: |
|
|
case 6: |
|
|
routePath = '/statistics/warnList' |
|
|
routePath = '/prewarn/manage' |
|
|
break |
|
|
break |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -204,7 +202,24 @@ function openPage(index) { |
|
|
}) */ |
|
|
}) */ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//跳转地址 |
|
|
|
|
|
function jumpTo(pathName){ |
|
|
|
|
|
let url = '' |
|
|
|
|
|
switch (pathName) { |
|
|
|
|
|
case "videoMonitor": |
|
|
|
|
|
url = "http://192.168.1.50:3122/" |
|
|
|
|
|
break; |
|
|
|
|
|
case "electronicMap": |
|
|
|
|
|
url = "http://192.168.1.50:3500/" |
|
|
|
|
|
break; |
|
|
|
|
|
default: |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
// // let path=window.location.protocol+'//'+url |
|
|
|
|
|
// // window.location.href=path |
|
|
|
|
|
// window.open(url,'_blank') |
|
|
|
|
|
ipcRenderer.send('jumpTo',url) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|