|
@@ -49,11 +49,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <Dialog v-if="showDialog" v-model="showDialog" type="md" draggable title="路网视频" hide-footer>
|
|
|
- <div style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center">
|
|
|
- <HKVideo :dot_data="videoMonitorData" />
|
|
|
- </div>
|
|
|
- </Dialog>
|
|
|
+ <pagination
|
|
|
+ v-show="total > 0"
|
|
|
+ v-model:page="queryParams.current"
|
|
|
+ v-model:limit="queryParams.size"
|
|
|
+ :total="total"
|
|
|
+ layout="total, prev, pager, next"
|
|
|
+ @pagination="initData"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -63,6 +66,7 @@ import { getRoadVideoList } from '@/api/globalMap/roadNetworkVideo';
|
|
|
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const { district_type } = toRefs<any>(proxy?.useDict('district_type'));
|
|
|
+const showDetail = inject('showDetail');
|
|
|
const queryParams = reactive({
|
|
|
current: 1,
|
|
|
size: 10,
|
|
@@ -79,19 +83,20 @@ const options = reactive([
|
|
|
{ label: '高速公路', value: '2', checked: true },
|
|
|
{ label: '国道', value: '3', checked: true },
|
|
|
{ label: '省市县际道路', value: '4', checked: true },
|
|
|
- { label: '乡道', value: '5', checked: true },
|
|
|
+ { label: '乡道', value: '5', checked: true }
|
|
|
// { label: '高速服务区', value: '高速服务区', checked: true }
|
|
|
]);
|
|
|
const listData = ref([]);
|
|
|
|
|
|
-let showDialog = ref(false);
|
|
|
-let videoMonitorData = ref({});
|
|
|
const handleShowDialog = (row) => {
|
|
|
- showDialog.value = false;
|
|
|
- nextTick(() => {
|
|
|
- videoMonitorData.value = row;
|
|
|
- showDialog.value = true;
|
|
|
- });
|
|
|
+ showDetail(
|
|
|
+ {
|
|
|
+ id: row.video_code,
|
|
|
+ lng: row.longitude,
|
|
|
+ lat: row.latitude
|
|
|
+ },
|
|
|
+ 'video'
|
|
|
+ );
|
|
|
};
|
|
|
const initData = () => {
|
|
|
getRoadVideoList(queryParams).then((res) => {
|
|
@@ -136,7 +141,7 @@ initData();
|
|
|
.custom-table {
|
|
|
width: 100%;
|
|
|
.table-content {
|
|
|
- height: 570px;
|
|
|
+ height: 500px;
|
|
|
overflow-y: auto;
|
|
|
overflow-x: hidden;
|
|
|
}
|