new-map
parent
53e283f483
commit
8aa68903c3
|
|
@ -1,35 +1,38 @@
|
||||||
<template>
|
<template>
|
||||||
<a-modal
|
<div class="linkmodel">
|
||||||
v-bind="$attrs"
|
<a-modal
|
||||||
:bodyStyle="{ background: '#233741', color: '#fff' }"
|
v-bind="getBindValue"
|
||||||
:width="800"
|
:bodyStyle="{ background: '#233741', color: '#fff' }"
|
||||||
destroyOnClose
|
:width="1200"
|
||||||
>
|
destroyOnClose
|
||||||
<template #closeIcon>
|
:getContainer="getContainer"
|
||||||
<img
|
>
|
||||||
class="w-22px h-22px inline text-0"
|
<template #closeIcon>
|
||||||
src="../../assets/images/model-close-icon.png"
|
<img
|
||||||
alt=""
|
class="w-22px h-22px inline text-0"
|
||||||
srcset=""
|
src="../../assets/images/model-close-icon.png"
|
||||||
/>
|
alt=""
|
||||||
</template>
|
srcset=""
|
||||||
<div>
|
/>
|
||||||
<div class="relative -mt-6px h-30px flex items-center">
|
</template>
|
||||||
<div
|
<div>
|
||||||
class="absolute top-0 left-40px right-40px bg-clip-text text-transparent bg-gradient-to-t from-[#76E9F0] to-[#A7E6EE] text-24px text-center"
|
<div class="relative -mt-6px h-30px flex items-center">
|
||||||
>
|
<div
|
||||||
{{ title1 }}
|
class="absolute top-0 left-40px right-40px bg-clip-text text-transparent bg-gradient-to-t from-[#76E9F0] to-[#A7E6EE] text-24px text-center"
|
||||||
|
>
|
||||||
|
{{ title1 }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="bg-[#1D2D35] mt-14px p-10px">
|
||||||
|
<slot name="content"></slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bg-[#1D2D35] mt-14px p-10px">
|
</a-modal>
|
||||||
<slot name="content"></slot>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a-modal>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue'
|
import { defineComponent, computed, ref, unref, watchEffect } from 'vue'
|
||||||
import { Modal } from 'ant-design-vue'
|
import { Modal } from 'ant-design-vue'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
|
@ -40,9 +43,36 @@
|
||||||
title1: {
|
title1: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
|
visible: {
|
||||||
|
type: Boolean,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
setup() {
|
setup(props, { attrs }) {
|
||||||
return {}
|
const modelVisible = ref(false)
|
||||||
|
|
||||||
|
const getBindValue = computed(() => {
|
||||||
|
const attr = {
|
||||||
|
...attrs,
|
||||||
|
...unref(props),
|
||||||
|
visible: unref(modelVisible),
|
||||||
|
maskClosable: false,
|
||||||
|
}
|
||||||
|
return attr
|
||||||
|
})
|
||||||
|
|
||||||
|
watchEffect(() => {
|
||||||
|
modelVisible.value = !!props.visible
|
||||||
|
})
|
||||||
|
|
||||||
|
const getContainer = () => {
|
||||||
|
if (document.body.clientWidth < 3000) return document.body
|
||||||
|
return document.body.querySelector(`.linkmodel`)
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
getBindValue,
|
||||||
|
getContainer,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -163,6 +163,7 @@
|
||||||
...attrs,
|
...attrs,
|
||||||
...unref(props),
|
...unref(props),
|
||||||
visible: unref(modelVisible),
|
visible: unref(modelVisible),
|
||||||
|
maskClosable: false,
|
||||||
}
|
}
|
||||||
return attr
|
return attr
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -305,6 +305,7 @@
|
||||||
...attrs,
|
...attrs,
|
||||||
...unref(props),
|
...unref(props),
|
||||||
visible: unref(modelVisible),
|
visible: unref(modelVisible),
|
||||||
|
maskClosable: false,
|
||||||
}
|
}
|
||||||
return attr
|
return attr
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,9 @@
|
||||||
</div>
|
</div>
|
||||||
<LinkModal v-model:visible="visibleModal" :footer="null" :title1="current.name">
|
<LinkModal v-model:visible="visibleModal" :footer="null" :title1="current.name">
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="max-h-500px overflow-auto">
|
<div class="h-500px overflow-auto h-full">
|
||||||
<div v-if="current.type == 3" v-html="current.content"> </div>
|
<div v-if="current.type == 3" v-html="current.content"> </div>
|
||||||
<div v-if="current.type == 2">
|
<div v-if="current.type == 2" class="h-full">
|
||||||
<video muted autoplay controls :src="current.content" class="w-full h-full"></video>
|
<video muted autoplay controls :src="current.content" class="w-full h-full"></video>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -37,19 +37,19 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-3 gap-x-6px my-10px">
|
<div class="grid grid-cols-3 gap-x-6px my-10px">
|
||||||
<div class="h-66px" v-for="item in list" :key="item.id">
|
<div class="h-66px" v-for="item in list" :key="item.id">
|
||||||
<!-- <VideoFlv
|
<VideoFlv
|
||||||
:url="item.url"
|
:url="item.url"
|
||||||
:name="item.base_name"
|
:name="item.base_name"
|
||||||
:screen="false"
|
:screen="false"
|
||||||
@click.prevent.stop="onChangeVideo(item)"
|
@click.prevent.stop="onChangeVideo(item)"
|
||||||
/> -->
|
/>
|
||||||
<img
|
<!-- <img
|
||||||
:src="item.img"
|
:src="item.img"
|
||||||
class="object-cover w-full h-full"
|
class="object-cover w-full h-full"
|
||||||
alt=""
|
alt=""
|
||||||
srcset=""
|
srcset=""
|
||||||
@click.prevent.stop="onChangeVideo(item)"
|
@click.prevent.stop="onChangeVideo(item)"
|
||||||
/>
|
/> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -114,7 +114,6 @@
|
||||||
status: 1,
|
status: 1,
|
||||||
is_recommend: 1,
|
is_recommend: 1,
|
||||||
})
|
})
|
||||||
// console.log(resData)
|
|
||||||
|
|
||||||
Data.list = resData.splice(0, 3).map((e, index) => {
|
Data.list = resData.splice(0, 3).map((e, index) => {
|
||||||
const { rtsp_url } = e.extends
|
const { rtsp_url } = e.extends
|
||||||
|
|
|
||||||
|
|
@ -8,16 +8,10 @@
|
||||||
@click="visibleModal = true"
|
@click="visibleModal = true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<video
|
<video class="w-full h-full" autoplay controls ref="videoRef" muted></video>
|
||||||
@click.prevent.stop="onScreen"
|
<div class="absolute left-0 w-full top-0 h-full" @click.prevent.stop="onScreen"></div>
|
||||||
class="w-full h-full"
|
|
||||||
autoplay
|
|
||||||
controls
|
|
||||||
ref="videoRef"
|
|
||||||
muted
|
|
||||||
></video>
|
|
||||||
|
|
||||||
<LinkModal v-model:visible="visibleModal" :footer="null" :title1="pName">
|
<LinkModal v-model:visible="visibleModal" :footer="null" :title1="pName" width="1200px">
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<VideoFlv :url="pUrl" :screen="false" :name="pName" />
|
<VideoFlv :url="pUrl" :screen="false" :name="pName" />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue