西海岸bug修复

This commit is contained in:
wuhongjian 2022-12-01 17:39:30 +08:00
parent c07f9bdc4c
commit 73c04f54d0
6 changed files with 235 additions and 97 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ back/dist-西海岸-后台管理-v0.8.2.4.d.zip
*.zip *.zip
front/public/static/config/basicConfig.js front/public/static/config/basicConfig.js
front/public/static/config/basicConfig.js front/public/static/config/basicConfig.js
front/public/static/config/basicConfig.js

View File

@ -74,7 +74,18 @@
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
} }
.ant-message {
z-index: 10010!important;
}
.ant-modal-wrap{
z-index: 10010!important;
}
.ant-notification {
z-index: 10010!important;
}
.ant-popconfirm {
z-index: 10010!important;
}
.model-container .confirmChrome { .model-container .confirmChrome {
width: 140px; width: 140px;
height: 36px; height: 36px;

View File

@ -469,7 +469,7 @@
// padding: 0 1rem; // padding: 0 1rem;
background-color: rgba(0, 0, 25, 0.7); background-color: rgba(0, 0, 25, 0.7);
position: fixed; position: fixed;
z-index: 1000; z-index: 10010;
top: 0; top: 0;
div { div {
@ -673,7 +673,7 @@
top: 0.45rem; top: 0.45rem;
right: 2.4rem; right: 2.4rem;
overflow-y: scroll; overflow-y: scroll;
z-index: 9999999;
.bottom { .bottom {
cursor: pointer; cursor: pointer;
width: 100%; width: 100%;

View File

@ -1,8 +1,8 @@
<!-- <!--
* @Author: Light * @Author: Light
* @Date: 2022-11-18 11:53:43 * @Date: 2022-11-18 11:53:43
* @LastEditors: Light * @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-11-30 11:55:51 * @LastEditTime: 2022-12-01 16:10:15
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
--> -->
<template> <template>
@ -17,6 +17,13 @@
{{ item.channelName }} {{ item.channelName }}
</a-tooltip> </a-tooltip>
</div> </div>
<a-tag
color="cyan"
style="margin-right: 0; cursor: pointer"
@click="selectItem(item, true)"
>
预览
</a-tag>
<a-popconfirm <a-popconfirm
:title="'是否移出' + item.channelName + '?'" :title="'是否移出' + item.channelName + '?'"
ok-text="是" ok-text="是"
@ -132,6 +139,7 @@
</a-modal> </a-modal>
<a-modal <a-modal
v-else v-else
wrapClassName="preview-modal"
v-model:visible="showVisible" v-model:visible="showVisible"
:title="dataList.selectItem.cameraInfo.channelName" :title="dataList.selectItem.cameraInfo.channelName"
:footer="null" :footer="null"
@ -147,9 +155,22 @@
justify-content: center; justify-content: center;
" "
> >
<div class="video-cover-new" @click="videoShowMsg"></div>
<div class="waterMark waterMark-left-top">
{{ '西海岸能力超市' + (deptName || '') + (userName || '') }}
</div>
<div class="waterMark waterMark-right-top">
{{ '西海岸能力超市' + (deptName || '') + (realName || '') }}
</div>
<div class="waterMark waterMark-left-bottom">
{{ '西海岸能力超市' + (deptName || '') + (userName || '') }}
</div>
<div class="waterMark waterMark-right-bottom">
{{ '西海岸能力超市' + (deptName || '') + (realName || '') }}
</div>
<h5-player <h5-player
videoId="preview" videoId="preview"
unStopable="true" :unStopable="unStopable"
:video-url="videoUrl" :video-url="videoUrl"
></h5-player> ></h5-player>
</div> </div>
@ -193,6 +214,11 @@
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import H5Player from '@/views/home/components/H5Player.vue' import H5Player from '@/views/home/components/H5Player.vue'
import { getCameraLiveStream } from '@/api/file' import { getCameraLiveStream } from '@/api/file'
import { useStore } from 'vuex'
const store = useStore()
const userName = store.getters['user/username']
const realName = store.getters['user/realName']
const deptName = store.getters['user/deptName']
const dataList = reactive({ toBeApplied: [], requested: [], selectItem: {} }) const dataList = reactive({ toBeApplied: [], requested: [], selectItem: {} })
const showVisible = ref(false) const showVisible = ref(false)
// //
@ -200,6 +226,7 @@
const delWacFlag = ref(true) const delWacFlag = ref(true)
const delApply = ref(true) const delApply = ref(true)
const visible = ref(false) const visible = ref(false)
const unStopable = ref(true)
const visibleApply = ref(false) const visibleApply = ref(false)
const instanceId = ref('') const instanceId = ref('')
const showArr = ref([]) const showArr = ref([])
@ -264,6 +291,11 @@
}) })
} }
} }
//
const videoShowMsg = () => {
let msg = '请申请后在我的申请中观看视频!'
message.warning(msg)
}
const apply = () => { const apply = () => {
let obj = { let obj = {
arr: [ arr: [
@ -336,8 +368,16 @@
}, },
}) })
} }
const selectItem = (item) => { const selectItem = (item, stopableFlag) => {
if (stopableFlag) {
unStopable.value = false
console.log('111111111111', item)
dataList.selectItem.cameraInfo = item
getVideoUrl(item)
return
} else {
if (item.approveStatus == '通过') { if (item.approveStatus == '通过') {
unStopable.value = true
dataList.selectItem = item dataList.selectItem = item
getVideoUrl(item.cameraInfo) getVideoUrl(item.cameraInfo)
return return
@ -349,6 +389,7 @@
dataList.selectItem = {} dataList.selectItem = {}
showVisible.value = false showVisible.value = false
} }
}
const handleOk = () => { const handleOk = () => {
console.log('id', instanceId.value) console.log('id', instanceId.value)
endProcess({ instanceId: instanceId.value }).then((res) => { endProcess({ instanceId: instanceId.value }).then((res) => {
@ -465,6 +506,7 @@
top: 50%; top: 50%;
right: 0.16rem; right: 0.16rem;
margin-top: -3.9rem; margin-top: -3.9rem;
z-index: 10010;
.bottom { .bottom {
margin-top: 20px; margin-top: 20px;
} }
@ -481,7 +523,14 @@
word-break: break-all; word-break: break-all;
} }
.top .name { .top .name {
width: 1.8rem; width: 1.3rem;
display: flex;
justify-content: space-between;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
word-break: break-all;
} }
:deep(.ant-list-footer) { :deep(.ant-list-footer) {
display: flex; display: flex;
@ -500,6 +549,71 @@
height: 3rem; height: 3rem;
} }
.batch-video-cover {
position: absolute;
left: 0;
top: 0;
background: transparent;
height: 288px;
z-index: 99999999;
width: 512px;
margin-top: 14px;
cursor: pointer;
}
.waterMark {
position: absolute;
z-index: 99999999;
color: #0058e1;
font-size: 22px;
font-weight: bold;
opacity: 0.4;
transform: rotate(-25deg);
width: 470px;
}
//
.waterMark-left-top {
left: 50px;
top: 100px;
text-align: left;
}
//
.waterMark-right-top {
right: 50px;
top: 100px;
text-align: right;
}
//
.waterMark-left-bottom {
left: 50px;
bottom: 100px;
text-align: left;
}
//
.waterMark-right-bottom {
right: 50px;
bottom: 100px;
text-align: right;
}
}
</style>
<style lang="less">
.preview-modal {
z-index: 10010;
.video-cover-new {
width: 798px;
height: 600px;
position: absolute;
left: 22px;
top: 80px;
background: transparent;
z-index: 99999999;
cursor: pointer;
}
.waterMark { .waterMark {
position: absolute; position: absolute;
z-index: 99999999; z-index: 99999999;

View File

@ -407,7 +407,7 @@
class="map-contain" class="map-contain"
v-if="showMap" v-if="showMap"
v-loading="spinningHome" v-loading="spinningHome"
element-loading-text="Loading..." element-loading-text="加载中..."
element-loading-svg-view-box="-10, -10, 50, 50" element-loading-svg-view-box="-10, -10, 50, 50"
element-loading-background="rgba(122, 122, 122, 0.9)" element-loading-background="rgba(122, 122, 122, 0.9)"
:element-loading-svg="svg" :element-loading-svg="svg"

View File

@ -7,9 +7,11 @@
<div :id="mapId" class="normal-map-content"> <div :id="mapId" class="normal-map-content">
<tiled-map v-loading="spinning" element-loading-text="Loading..." <tiled-map v-loading="spinning"
element-loading-text="加载中..."
element-loading-svg-view-box="-10, -10, 50, 50" element-loading-svg-view-box="-10, -10, 50, 50"
element-loading-background="rgba(122, 122, 122, 0.8)" element-loading-background="rgba(122, 122, 122, 0.9)"
:element-loading-svg="svg"
:hi-map="hiMap" :map-id="mapId" /> :hi-map="hiMap" :map-id="mapId" />
</div> </div>
@ -144,6 +146,16 @@
checkboxGroup: [], checkboxGroup: [],
tabList: [], tabList: [],
state: '', state: '',
svg: `
<path class="path" d="
M 30 15
L 28 17
M 25.61 25.61
A 15 15, 0, 0, 1, 15 30
A 15 15, 0, 1, 1, 27.99 7.5
L 15 15
" style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
`,
spinning: false, spinning: false,
timeout: null, timeout: null,
camreaTree: [], camreaTree: [],