Commit 89110b06 authored by 郭铭瑶's avatar 郭铭瑶 🤘

接口测试环境

parent 829acf34
...@@ -130,14 +130,10 @@ export default { ...@@ -130,14 +130,10 @@ export default {
GET_FOCUS_WORK: '/service-special-nandong/public/focusWorks', // 重点工作 GET_FOCUS_WORK: '/service-special-nandong/public/focusWorks', // 重点工作
/** 新版小区屏 */ /** 新版小区屏 */
GET_MONITOR: GET_MONITOR: '/service-special-nandong/public/equipments/0', // 获取监控设备
'http://yapi.omniview.pro/mock/377/service-special-nandong/public/equipments/0', // 获取监控设备 GET_VIDEO_URL: '/service-special-nandong/public/video/{id}', // 根据设备id获取视频流
GET_VIDEO_URL: GET_DISCOVER_SUM: '/service-special-nandong/public/discover/method/count', // 发现方式统计
'http://yapi.omniview.pro/mock/377/service-special-nandong/public/video/{id}', // 根据设备id获取视频流
GET_DISCOVER_SUM:
'http://yapi.omniview.pro/mock/377/service-special-nandong/public/discover/method/count', // 发现方式统计
GET_DISCOVER_STATISTICS: GET_DISCOVER_STATISTICS:
'http://yapi.omniview.pro/mock/377/service-special-nandong/public/discover/category/count', // 发现数据 '/service-special-nandong/public/discover/category/count', // 发现数据
GET_DISCOVER_COUNT: GET_DISCOVER_COUNT: '/service-special-nandong/public/discover/count', // 今日及历史发现数
'http://yapi.omniview.pro/mock/377/service-special-nandong/public/discover/count', // 今日及历史发现数
} }
...@@ -252,44 +252,6 @@ export default defineComponent({ ...@@ -252,44 +252,6 @@ export default defineComponent({
map.value.layer('model_white_zw').visible = false map.value.layer('model_white_zw').visible = false
focusCenterAndAddLayer().layer() focusCenterAndAddLayer().layer()
loading.value = false loading.value = false
// setTimeout(() => {
// map.value.cameraTo({ heading: 180 })
// setTimeout(() => {
// map.value.cameraTo({ heading: 360 })
// }, 500)
// }, 6000)
// setTimeout(() => {
// loading.value = false
// setTimeout(() => {
// map.value.cameraTo({ heading: 180 })
// setTimeout(() => {
// map.value.cameraTo({ heading: 360 })
// setTimeout(() => {
// map.value.focus(...center, zoom)
// }, 1000)
// })
// }, 2000)
// }, 7000)
// let i = -90
// map.value.rotate(i)
// setTimeout(() => {
// loading.value = false
// setTimeout(() => {
// const timer = setInterval(() => {
// i += 10
// if (i > 0) {
// setTimeout(() => {
// map.value.focus(...center, zoom)
// }, 500)
// clearInterval(timer)
// }
// map.value.rotate(i)
// }, 100)
// }, 1000)
// }, 5000)
} }
const btns = computed(() => { const btns = computed(() => {
if (curId.value === '527635870583459841') { if (curId.value === '527635870583459841') {
......
...@@ -71,10 +71,6 @@ ...@@ -71,10 +71,6 @@
<script lang="ts"> <script lang="ts">
import { computed, defineComponent, ref, watch } from 'vue' import { computed, defineComponent, ref, watch } from 'vue'
// import photo1 from '@/assets/images/community1.png'
// import photo2 from '@/assets/images/community2.png'
// import photo3 from '@/assets/images/community3.png'
// import { ajax } from '@/ajax'
import VideoComponent from '../components/video-component.vue' import VideoComponent from '../components/video-component.vue'
import store from '@/store' import store from '@/store'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
...@@ -116,13 +112,13 @@ export default defineComponent({ ...@@ -116,13 +112,13 @@ export default defineComponent({
}) })
.then((res) => { .then((res) => {
list.value = (res?.data?.content || []).map((item: any) => ({ list.value = (res?.data?.content || []).map((item: any) => ({
name: item.buildingAddr, name: `${item.buildingAddr}通道${item.channelNo}`,
...item, ...item,
})) }))
addresses.value.push( addresses.value.push(
...list.value.map((item: any) => ({ ...list.value.map((item: any) => ({
name: item.buildingAddr, name: item.name,
value: item.buildingAddr, value: item.name,
})) }))
) )
Promise.all( Promise.all(
...@@ -139,57 +135,6 @@ export default defineComponent({ ...@@ -139,57 +135,6 @@ export default defineComponent({
videoList.value = [...list.value] videoList.value = [...list.value]
}) })
}) })
// const list = computed(() => {
// if (curId.value === '527635870583459840') {
// // 振兴小区
// return [
// {
// name: '重庆北路后门',
// photo:
// 'http://zhongbang.omniview.pro/file/group1/M00/00/30/CgAG5WB9AXyAIUKZAAIFC2qNmKI384.jpg',
// video:
// 'http://zhongbang.omniview.pro/file/group1/M00/00/1A/CgAG5GB9PlmAH8-oAEmHxWhriqw954.mov',
// },
// {
// name: '大沽路大门',
// photo:
// 'http://zhongbang.omniview.pro/file/group1/M00/00/30/CgAG5WB9AYmAT-A1AAMElShNriM149.jpg',
// video:
// 'http://zhongbang.omniview.pro/file/group1/M00/00/1A/CgAG5GB9QE6AckoPAEM3swvgmFQ182.mov',
// },
// {
// name: '重庆北路177弄64号',
// photo:
// 'http://zhongbang.omniview.pro/file/group1/M00/00/30/CgAG5WB9AQCAEc3pAASC2UqtXWs052.jpg',
// video:
// 'http://zhongbang.omniview.pro/file/group1/M00/00/30/CgAG5WB9AVyAanZkApsdVDHEGc0527.mp4',
// },
// ]
// }
// return [
// {
// name: '62弄朝北',
// photo:
// 'http://zhongbang.omniview.pro/file/group1/M00/00/1A/CgAG5GB5GdOAW6qQAAvNhxSqO-g179.jpg',
// video:
// 'http://zhongbang.omniview.pro/file/group1/M00/00/30/CgAG5WB9OkmAFxVMAS7MAmRH2Xc004.mp4',
// },
// {
// name: '62弄朝东',
// photo:
// 'http://zhongbang.omniview.pro/file/group1/M00/00/30/CgAG5WB5Kj-AX3OMAAwPqHZi_Kg064.jpg',
// video:
// 'http://zhongbang.omniview.pro/file/group1/M00/00/30/CgAG5WB9QIiAaz9fAS3gvWsrxYQ927.mp4',
// },
// {
// name: '62弄朝南',
// photo:
// 'http://zhongbang.omniview.pro/file/group1/M00/00/1A/CgAG5GB5KrOAVcluAAnbZjB7fNA165.jpg',
// video:
// 'http://zhongbang.omniview.pro/file/group1/M00/00/1A/CgAG5GB9P1mALYigATKoQQw6Y8k841.mp4',
// },
// ]
// })
const curScene = ref('all') const curScene = ref('all')
const curAddress = ref('all') const curAddress = ref('all')
const scenes = [{ name: '全部场景', value: 'all' }] const scenes = [{ name: '全部场景', value: 'all' }]
...@@ -201,9 +146,7 @@ export default defineComponent({ ...@@ -201,9 +146,7 @@ export default defineComponent({
if (address === 'all') { if (address === 'all') {
videoList.value = list.value videoList.value = list.value
} else { } else {
videoList.value = list.value.filter( videoList.value = list.value.filter((item) => item.name === address)
(item) => item.buildingAddr === address
)
} }
} }
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment