new-map
parent
7cd857619d
commit
e3f9d87416
|
|
@ -1,16 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<BasicForm @register="registerForm" />
|
<BasicForm @register="registerForm" />
|
||||||
<List
|
<div class="min-h-400px">
|
||||||
:grid="{ gutter: 16, xs: 1, sm: 2, md: 2, lg: 3, xl: 4, xxl: 5, column: 8 }"
|
<List
|
||||||
:data-source="list"
|
:grid="{ gutter: 16, xs: 1, sm: 2, md: 2, lg: 3, xl: 4, xxl: 5, column: 8 }"
|
||||||
>
|
:data-source="list"
|
||||||
<template #renderItem="{ item }">
|
>
|
||||||
<List-item>
|
<template #renderItem="{ item }">
|
||||||
<LiveBroadcastItem :url="socketUrl" :item="item" />
|
<List-item>
|
||||||
</List-item>
|
<LiveBroadcastItem :url="socketUrl" :item="item" />
|
||||||
</template>
|
</List-item>
|
||||||
</List>
|
</template>
|
||||||
|
</List>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<a-pagination
|
<a-pagination
|
||||||
size="small"
|
size="small"
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<BasicForm @register="registerForm" />
|
<BasicForm @register="registerForm" />
|
||||||
<List
|
<div class="min-h-400px">
|
||||||
:grid="{ gutter: 16, xs: 1, sm: 2, md: 2, lg: 3, xl: 4, xxl: 5, column: 8 }"
|
<List
|
||||||
:data-source="list"
|
:grid="{ gutter: 16, xs: 1, sm: 2, md: 2, lg: 3, xl: 4, xxl: 5, column: 8 }"
|
||||||
>
|
:data-source="list"
|
||||||
<template #renderItem="{ item }">
|
>
|
||||||
<List-item>
|
<template #renderItem="{ item }">
|
||||||
<LiveBroadcastItem :recommend="false" :url="socketUrl" :item="item" />
|
<List-item>
|
||||||
</List-item>
|
<LiveBroadcastItem :recommend="false" :url="socketUrl" :item="item" />
|
||||||
</template>
|
</List-item>
|
||||||
</List>
|
</template>
|
||||||
|
</List>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<a-pagination
|
<a-pagination
|
||||||
size="small"
|
size="small"
|
||||||
|
|
@ -111,7 +114,10 @@
|
||||||
component: 'RangePicker',
|
component: 'RangePicker',
|
||||||
required: true,
|
required: true,
|
||||||
componentProps: {
|
componentProps: {
|
||||||
format: 'YYYY-MM-DD',
|
format: 'YYYY-MM-DD HH:mm',
|
||||||
|
showTime: {
|
||||||
|
format: 'HH:mm',
|
||||||
|
},
|
||||||
placeholder: ['开始时间', '结束时间'],
|
placeholder: ['开始时间', '结束时间'],
|
||||||
disabledDate: (current) => {
|
disabledDate: (current) => {
|
||||||
return current && current > dayjs().endOf('day')
|
return current && current > dayjs().endOf('day')
|
||||||
|
|
@ -174,7 +180,7 @@
|
||||||
const { username, password, ip, passage } = cur.extends
|
const { username, password, ip, passage } = cur.extends
|
||||||
cur.extends.rtsp_url = `rtsp://${username}:${password}@${ip}:9200/cam/playback?channel=${passage}&subtype=0&starttime=${dayjs(
|
cur.extends.rtsp_url = `rtsp://${username}:${password}@${ip}:9200/cam/playback?channel=${passage}&subtype=0&starttime=${dayjs(
|
||||||
params.start_time,
|
params.start_time,
|
||||||
).format('YYYY_MM_DD_HH_mm_ss')}&endtime=${dayjs(params.start_time).format(
|
).format('YYYY_MM_DD_HH_mm_ss')}&endtime=${dayjs(params.end_time).format(
|
||||||
'YYYY_MM_DD_HH_mm_ss',
|
'YYYY_MM_DD_HH_mm_ss',
|
||||||
)}`
|
)}`
|
||||||
console.log(cur.extends.rtsp_url)
|
console.log(cur.extends.rtsp_url)
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,9 @@
|
||||||
<template v-for="item in achieveList" :key="item.key">
|
<template v-for="item in achieveList" :key="item.key">
|
||||||
<a-tab-pane>
|
<a-tab-pane>
|
||||||
<template #tab>
|
<template #tab>
|
||||||
<span>
|
<span> {{ item.name }}</span>
|
||||||
<component :is="item.iconComponent" />
|
|
||||||
{{ item.name }}</span
|
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<component :is="item.component" />
|
<component :is="item.component" />
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue