|
@@ -3,7 +3,7 @@
|
|
|
<div class="container">
|
|
|
<div class="gradient-text title">{{ title }}</div>
|
|
|
<div class="box-left">
|
|
|
- <el-input v-model="queryParams.keyword" class="custom-input" placeholder="搜索" @input="initData">
|
|
|
+ <el-input v-model="queryParams.video_name" class="custom-input" placeholder="搜索" @input="initData">
|
|
|
<template #prefix>
|
|
|
<el-icon class="el-input__icon"><search /></el-icon>
|
|
|
</template>
|
|
@@ -15,7 +15,7 @@
|
|
|
<div class="td">
|
|
|
<div style="width: 240px">
|
|
|
<el-select
|
|
|
- v-model="queryParams.area"
|
|
|
+ v-model="queryParams.area_code"
|
|
|
placeholder="所有区县"
|
|
|
size="large"
|
|
|
class="custom-select2"
|
|
@@ -24,7 +24,7 @@
|
|
|
@change="initData"
|
|
|
>
|
|
|
<el-option label="所有区县" value="" />
|
|
|
- <el-option v-for="item in district_type" :key="item.value" :label="item.label" :value="item.label" />
|
|
|
+ <el-option v-for="item in district_type2" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -32,7 +32,7 @@
|
|
|
</div>
|
|
|
<div class="table-content">
|
|
|
<div v-for="(item, index) in listData" :key="index" class="tr" @click="handleShowDialog(item)">
|
|
|
- <div class="td">{{ item.area }}</div>
|
|
|
+ <div class="td">{{ item.area_code }}</div>
|
|
|
<div class="td">{{ item.name }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -48,19 +48,20 @@
|
|
|
|
|
|
<script lang="ts" setup name="CommonVideo">
|
|
|
import { Search } from '@element-plus/icons-vue';
|
|
|
-import { getRescue } from '@/api/globalMap/mitigation';
|
|
|
import { deepClone } from '@/utils';
|
|
|
+import { getVideoListNew } from '@/api/videoMonitor';
|
|
|
|
|
|
const props = defineProps({
|
|
|
+ id: String,
|
|
|
title: String
|
|
|
});
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
-const { district_type } = toRefs<any>(proxy?.useDict('district_type'));
|
|
|
+const { district_type2 } = toRefs<any>(proxy?.useDict('district_type2'));
|
|
|
const queryParams = reactive({
|
|
|
current: 1,
|
|
|
size: 10,
|
|
|
- keyword: '',
|
|
|
- area: ''
|
|
|
+ video_name: '',
|
|
|
+ area_code: ''
|
|
|
});
|
|
|
const total = ref(0);
|
|
|
|
|
@@ -77,19 +78,14 @@ const handleShowDialog = (row) => {
|
|
|
};
|
|
|
const initData = () => {
|
|
|
let newQueryParams = deepClone(queryParams);
|
|
|
- newQueryParams.query = {
|
|
|
- area: queryParams.area,
|
|
|
- keyword: queryParams.keyword
|
|
|
- };
|
|
|
- delete newQueryParams.area;
|
|
|
- delete newQueryParams.keyword;
|
|
|
- getRescue(newQueryParams).then((res) => {
|
|
|
- listData.value = res.rows;
|
|
|
+ newQueryParams.video_tag = props.id;
|
|
|
+ getVideoListNew(newQueryParams).then((res) => {
|
|
|
+ listData.value = res.data;
|
|
|
total.value = res.total;
|
|
|
});
|
|
|
};
|
|
|
const handleCancel = () => {
|
|
|
- queryParams.keyword = '';
|
|
|
+ queryParams.video_name = '';
|
|
|
initData();
|
|
|
};
|
|
|
initData();
|