首页筛选和最大放大修改
parent
5439357d27
commit
c24dd2247d
|
|
@ -33,6 +33,7 @@ import {ref,onMounted,defineExpose,defineEmits,watch} from "vue";
|
|||
import {CaretDownOutlined,CaretUpOutlined} from "@ant-design/icons-vue";
|
||||
import axios from 'axios'
|
||||
import { getLoadDroneCaseInfoDetail,getPolygonCenter } from '@/api/tiankongdi/index.ts';
|
||||
import { loadCaseInfoTuBanList } from '@/api/demo/system';
|
||||
const emits = defineEmits(["toPosition","handlerFilter"])
|
||||
import { WktToGeojson } from "@/components/MapboxMaps/src/WktGeojsonTransform";
|
||||
async function toPosition(item){
|
||||
|
|
@ -121,8 +122,8 @@ const keyword = ref("");
|
|||
|
||||
async function searchArea() {
|
||||
|
||||
if(keyword.value.match(/^-?\d+$/)){
|
||||
let res = await getLoadDroneCaseInfoDetail({caseNo:keyword.value,page:1,limit:10});
|
||||
if(keyword.value.match(/^[0-9A-Z]+$/)){
|
||||
let res = await loadCaseInfoTuBanList({caseNo:keyword.value,page:1,limit:10});
|
||||
searchResult.value = [];
|
||||
res?.items?.forEach((item,index)=>{
|
||||
let obj = {
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ const initMap = () => {
|
|||
},
|
||||
],
|
||||
},
|
||||
maxZoom:18,
|
||||
maxZoom:17,
|
||||
minZoom:1,
|
||||
zoom: 10,
|
||||
pitch:0,
|
||||
|
|
|
|||
Loading…
Reference in New Issue