Ver código fonte

Merge branch 'develop' of gitadmin/tuoheng_lc_web into release

pull/213/head
zhangtao 1 ano atrás
pai
commit
1e201676ad
2 arquivos alterados com 9 adições e 5 exclusões
  1. +3
    -0
      src/views/task-manage/all-task/components/DemandDrawer.vue
  2. +6
    -5
      src/views/task-manage/all-task/components/LiveDrawer.vue

+ 3
- 0
src/views/task-manage/all-task/components/DemandDrawer.vue Ver arquivo

@@ -308,6 +308,9 @@ export default defineComponent({
#history-map {
width: 100%;
height: 100%;
:deep(.ol-viewport){
position: absolute !important;
}
}
/* 视频 */
.videobox {

+ 6
- 5
src/views/task-manage/all-task/components/LiveDrawer.vue Ver arquivo

@@ -41,7 +41,7 @@
</template>

<script>
import { defineComponent, computed, ref, reactive, toRefs, watch, nextTick, onBeforeUnmount, onMounted } from 'vue'
import { defineComponent, computed, ref, reactive, toRefs, watch, nextTick, onBeforeUnmount } from 'vue'
import { Map, View, Feature } from 'ol'
import 'ol/ol.css'
import { Tile, Vector as VectorLayer } from 'ol/layer'
@@ -195,6 +195,7 @@ export default defineComponent({
initOriginPlayer()
}
if (!data.mapData) {
initMap()
// 加载机场航线
getLineData().then(({ trackList }) => {
if (trackList.length > 0) {
@@ -367,10 +368,6 @@ export default defineComponent({
data.videoShow = value
}

onMounted(() => {
initMap()
})

onBeforeUnmount(() => {
liveStore.resetList()
originRef.value?.disposeVideo()
@@ -404,10 +401,14 @@ export default defineComponent({
height: 100%;
position: relative;
overflow: hidden;

}
#live-map {
width: 100%;
height: 100%;
:deep(.ol-viewport){
position: absolute !important;
}
}
/* 视频 */
.videobox {

Carregando…
Cancelar
Salvar