|
@@ -191,22 +191,9 @@ const getList = (flag?: boolean) => {
|
|
|
});
|
|
|
};
|
|
|
const getVideoInfoList = () => {
|
|
|
- if (mapStore.AMapType.includes()) {
|
|
|
- // 获取当前可视区域的Bounds对象
|
|
|
- var bounds = map.getBounds();
|
|
|
-
|
|
|
- // Bounds对象包含西南角(southWest)和东北角(northEast)
|
|
|
- var southWest = bounds.southWest; // 右下角(实际是西南角)
|
|
|
- var northEast = bounds.northEast; // 左上角(实际是东北角)
|
|
|
-
|
|
|
- // 注意:高德地图的坐标系中:
|
|
|
- // - 左上角(西北角)的纬度是 northEast.lat,经度是 southWest.lng
|
|
|
- // - 右下角(东南角)的纬度是 southWest.lat,经度是 northEast.lng
|
|
|
- var topLeft = [southWest.lng, northEast.lat]; // 左上角经纬度
|
|
|
- var bottomRight = [northEast.lng, southWest.lat]; // 右下角经纬度
|
|
|
- }
|
|
|
- getVideoList(queryParams).then((res) => {
|
|
|
- mapStore.setTrackState(res.data);
|
|
|
+ mapStore.setVideoPointParams({
|
|
|
+ flag: true,
|
|
|
+ dict_value: queryParams.dict_value
|
|
|
});
|
|
|
};
|
|
|
const selectItem = (item) => {
|
|
@@ -233,7 +220,7 @@ const reset = () => {
|
|
|
const handleQuery = () => {
|
|
|
queryParams.current = 1;
|
|
|
getList();
|
|
|
- // getVideoInfoList();
|
|
|
+ getVideoInfoList();
|
|
|
};
|
|
|
|
|
|
/** 重置按钮操作 */
|