修改监控

new-map
ihzero 2022-12-09 17:16:20 +08:00
parent 85bfdd9cea
commit a44195517d
14 changed files with 19 additions and 86 deletions

View File

@ -98,13 +98,6 @@
}, },
}, },
], ],
dataZoom: [
{
type: 'inside', //sliderinside
show: false,
xAxisIndex: 0,
},
],
}) })
} }
}, },

View File

@ -111,13 +111,6 @@
}, },
}, },
], ],
dataZoom: [
{
type: 'inside', //sliderinside
show: false,
xAxisIndex: 0,
},
],
}) })
} }
}, },

View File

@ -97,13 +97,6 @@
}, },
}, },
], ],
dataZoom: [
{
type: 'inside', //sliderinside
show: false,
xAxisIndex: 0,
},
],
}) })
} }
}, },

View File

@ -95,13 +95,6 @@
data: Object.values(e), data: Object.values(e),
}, },
], ],
dataZoom: [
{
type: 'inside', //sliderinside
show: false,
xAxisIndex: 0,
},
],
}) })
} }
}, },

View File

@ -97,13 +97,6 @@
}, },
}, },
], ],
dataZoom: [
{
type: 'inside', //sliderinside
show: false,
xAxisIndex: 0,
},
],
}) })
} }
}, },

View File

@ -97,13 +97,6 @@
}, },
}, },
], ],
dataZoom: [
{
type: 'inside', //sliderinside
show: false,
xAxisIndex: 0,
},
],
}) })
} }
}, },

View File

@ -97,13 +97,6 @@
}, },
}, },
], ],
dataZoom: [
{
type: 'inside', //sliderinside
show: false,
xAxisIndex: 0,
},
],
}) })
} }
}, },

View File

@ -97,13 +97,6 @@
}, },
}, },
], ],
dataZoom: [
{
type: 'inside', //sliderinside
show: false,
xAxisIndex: 0,
},
],
}) })
} }
}, },

View File

@ -95,13 +95,6 @@
data: Object.values(e), data: Object.values(e),
}, },
], ],
dataZoom: [
{
type: 'inside', //sliderinside
show: false,
xAxisIndex: 0,
},
],
}) })
} }
}, },

View File

@ -118,13 +118,6 @@
data: Object.values(e), data: Object.values(e),
}, },
], ],
dataZoom: [
{
type: 'inside', //sliderinside
show: false,
xAxisIndex: 0,
},
],
}) })
} }
}, },

View File

@ -111,13 +111,6 @@
}, },
}, },
], ],
dataZoom: [
{
type: 'inside', //sliderinside
show: false,
xAxisIndex: 0,
},
],
}) })
} }
}, },

View File

@ -19,6 +19,7 @@
:total="pageTotal" :total="pageTotal"
show-less-items show-less-items
showSizeChanger showSizeChanger
:pageSizeOptions="['8']"
:show-total="(total) => `共 ${total} 条数据`" :show-total="(total) => `共 ${total} 条数据`"
@change="getData" @change="getData"
/> />
@ -129,8 +130,8 @@
setup() { setup() {
const paginationParams = reactive({ const paginationParams = reactive({
pageCurrent: 1, pageCurrent: 1,
pageTotal: 5000, pageTotal: 0,
pageSize: 10, pageSize: 8,
}) })
const list = ref([]) const list = ref([])

View File

@ -33,15 +33,21 @@
</div> </div>
<div class="flex-1 px-11px flex flex-col"> <div class="flex-1 px-11px flex flex-col">
<div class="flex-1"> <div class="flex-1">
<VideoFlv v-if="currentVido" :url="currentVido.url" :name="currentVido.base_name" /> <VideoFlv
class="cursor-pointer"
v-if="currentVido"
:url="currentVido.url"
:name="currentVido.base_name"
/>
</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
class="cursor-pointer"
:url="item.url" :url="item.url"
:name="item.base_name" :name="item.base_name"
:screen="false" :screen="false"
@click.prevent.stop="onChangeVideo(item)" @onClick="onChangeVideo(item)"
/> />
<!-- <img <!-- <img
:src="item.img" :src="item.img"
@ -131,6 +137,7 @@
} }
function onChangeVideo(e) { function onChangeVideo(e) {
if (currentVido.value.url == e.url) return
currentVido.value = e currentVido.value = e
} }

View File

@ -1,12 +1,12 @@
<template> <template>
<div class="w-full h-full relative"> <div class="w-full h-full relative">
<SvgIcon <!-- <SvgIcon
v-if="isScreen && false" v-if="isScreen && false"
name="full-screen" name="full-screen"
class="text-white absolute left-15px top-15px z-20 cursor-pointer" class="text-white absolute left-15px top-15px z-20 cursor-pointer"
size="20" size="20"
@click="visibleModal = true" @click="visibleModal = true"
/> /> -->
<video class="w-full h-full" autoplay controls ref="videoRef" muted></video> <video class="w-full h-full" autoplay controls ref="videoRef" muted></video>
<div class="absolute left-0 w-full top-0 h-full" @click.prevent.stop="onScreen"></div> <div class="absolute left-0 w-full top-0 h-full" @click.prevent.stop="onScreen"></div>
@ -24,12 +24,12 @@
<script lang="ts"> <script lang="ts">
import flvjs from 'flv.js' import flvjs from 'flv.js'
import { defineComponent, ref, unref, onMounted, watch, onBeforeUnmount, computed } from 'vue' import { defineComponent, ref, unref, onMounted, watch, onBeforeUnmount, computed } from 'vue'
import { SvgIcon } from '/@/components/Icon' // import { SvgIcon } from '/@/components/Icon'
import LinkModal from '../LinkModal.vue' import LinkModal from '../LinkModal.vue'
export default defineComponent({ export default defineComponent({
name: 'VideoFlv', name: 'VideoFlv',
components: { components: {
SvgIcon, // SvgIcon,
LinkModal, LinkModal,
}, },
props: { props: {
@ -46,7 +46,7 @@
default: '', default: '',
}, },
}, },
setup(props) { setup(props, { emit }) {
const videoRef = ref<HTMLDivElement | null>(null) const videoRef = ref<HTMLDivElement | null>(null)
let player: any | null = null let player: any | null = null
const pUrl = ref(props.url) const pUrl = ref(props.url)
@ -80,6 +80,8 @@
function onScreen() { function onScreen() {
if (isScreen.value) { if (isScreen.value) {
visibleModal.value = true visibleModal.value = true
} else {
emit('onClick')
} }
} }