Merge branch 'hi-ucs-dev' of http://192.168.124.50:3000/wuhongjian/hi-ucs into hi-ucs-dev
This commit is contained in:
commit
6cfde21605
|
@ -109,7 +109,7 @@ export function getListForPOI(params) {
|
||||||
//西海岸 获取左侧标签树
|
//西海岸 获取左侧标签树
|
||||||
export function getPlaceType() {
|
export function getPlaceType() {
|
||||||
return axios.get(
|
return axios.get(
|
||||||
'http://10.134.135.92:9537/data_service/placeTypes/getPlaceType',
|
`http://${_cameraUrl}/data_service/placeTypes/getPlaceType`,
|
||||||
config2
|
config2
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -117,7 +117,7 @@ export function getPlaceType() {
|
||||||
//西海岸 根据标签树查询视频列表
|
//西海岸 根据标签树查询视频列表
|
||||||
export function CameraConditionPlaceType(params) {
|
export function CameraConditionPlaceType(params) {
|
||||||
return axios.post(
|
return axios.post(
|
||||||
'http://10.134.135.92:9537/data_service/getCamera/CameraConditionPlaceType' ,
|
`http://${_cameraUrl}/data_service/getCamera/CameraConditionPlaceType'`,
|
||||||
params,
|
params,
|
||||||
config2
|
config2
|
||||||
)
|
)
|
||||||
|
@ -126,7 +126,7 @@ export function CameraConditionPlaceType(params) {
|
||||||
// 西海岸视频wss流获取
|
// 西海岸视频wss流获取
|
||||||
export function getCameraLiveStream(params) {
|
export function getCameraLiveStream(params) {
|
||||||
return axios.get(
|
return axios.get(
|
||||||
'http://10.134.135.92:9537/data_service/getCamera/getCameraLiveStream?cameraIndexCode=' +
|
`http://${_cameraUrl}/data_service/getCamera/getCameraLiveStream?cameraIndexCode=` +
|
||||||
params.channelId +
|
params.channelId +
|
||||||
'&protocol=' +
|
'&protocol=' +
|
||||||
'wss' + '&transmode=1&streamType=1',
|
'wss' + '&transmode=1&streamType=1',
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: Light
|
* @Author: Light
|
||||||
* @Date: 2022-11-18 11:53:43
|
* @Date: 2022-11-18 11:53:43
|
||||||
* @LastEditors: Light
|
* @LastEditors: Light
|
||||||
* @LastEditTime: 2022-11-22 14:50:32
|
* @LastEditTime: 2022-11-22 19:28:55
|
||||||
* @Description: 告诉大家这是什么
|
* @Description: 告诉大家这是什么
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -39,14 +39,18 @@
|
||||||
<a-list size="small" bordered :data-source="dataList.requested">
|
<a-list size="small" bordered :data-source="dataList.requested">
|
||||||
<template #renderItem="{ item }">
|
<template #renderItem="{ item }">
|
||||||
<a-list-item>
|
<a-list-item>
|
||||||
<div class="name" @click="selectItem(item)">
|
<div class="name">
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>{{ item.cameraInfo.channelName }}</template>
|
<template #title>{{ item.cameraInfo.channelName }}</template>
|
||||||
{{ item.cameraInfo.channelName }}
|
{{ item.cameraInfo.channelName }}
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<a-tag color="cyan" style="margin-right: 0">
|
<a-tag
|
||||||
{{ item.approveStatus }}
|
color="cyan"
|
||||||
|
style="margin-right: 0"
|
||||||
|
@click="selectItem(item)"
|
||||||
|
>
|
||||||
|
{{ item.approveStatus == '通过' ? '预览' : item.approveStatus }}
|
||||||
</a-tag>
|
</a-tag>
|
||||||
<a-popconfirm
|
<a-popconfirm
|
||||||
v-if="item.approveStatus == '通过'"
|
v-if="item.approveStatus == '通过'"
|
||||||
|
@ -69,7 +73,10 @@
|
||||||
</a-list-item>
|
</a-list-item>
|
||||||
</template>
|
</template>
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="title">已申请列表</div>
|
<div class="title">
|
||||||
|
已申请列表
|
||||||
|
<a-button type="link" @click="goToApply">详情</a-button>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</a-list>
|
</a-list>
|
||||||
</div>
|
</div>
|
||||||
|
@ -104,8 +111,7 @@
|
||||||
@cancel="clear"
|
@cancel="clear"
|
||||||
>
|
>
|
||||||
<div style="width: 100%; display: flex; justify-content: center">
|
<div style="width: 100%; display: flex; justify-content: center">
|
||||||
<div
|
<div style="width: 100%; height: 100%; position: relative">
|
||||||
style="width: 100%; height: 100%; position: relative">
|
|
||||||
<div class="waterMark waterMark-left-top">
|
<div class="waterMark waterMark-left-top">
|
||||||
{{ userInfo.usernameShow }}
|
{{ userInfo.usernameShow }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -243,10 +249,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const goToApply = () => {
|
||||||
|
router.push({
|
||||||
|
path: '/personalCenter',
|
||||||
|
query: {
|
||||||
|
type: 'apply',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
const selectItem = (item) => {
|
const selectItem = (item) => {
|
||||||
if (item.approveStatus == '通过') {
|
if (item.approveStatus == '通过') {
|
||||||
dataList.selectItem = item
|
dataList.selectItem = item
|
||||||
getVideoUrl(item.cameraInfo);
|
getVideoUrl(item.cameraInfo)
|
||||||
} else {
|
} else {
|
||||||
dataList.selectItem = {}
|
dataList.selectItem = {}
|
||||||
showVisible.value = false
|
showVisible.value = false
|
||||||
|
@ -303,11 +317,11 @@
|
||||||
const videoUrl = ref('')
|
const videoUrl = ref('')
|
||||||
//获取视频控件所需播放地址
|
//获取视频控件所需播放地址
|
||||||
const getVideoUrl = (data) => {
|
const getVideoUrl = (data) => {
|
||||||
let param = data;
|
let param = data
|
||||||
getCameraLiveStream(param).then((res) => {
|
getCameraLiveStream(param).then((res) => {
|
||||||
//console.log('555555rrrrr',res)
|
//console.log('555555rrrrr',res)
|
||||||
if (res.data.data) {
|
if (res.data.data) {
|
||||||
videoUrl.value = res.data.data.url;
|
videoUrl.value = res.data.data.url
|
||||||
}
|
}
|
||||||
showVisible.value = true
|
showVisible.value = true
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue