Compare commits

...

2 Commits

Author SHA1 Message Date
徐景良 a021b97505 merge 2024-11-15 17:33:22 +08:00
徐景良 720ccf3535 merge 2024-11-15 17:30:12 +08:00
5 changed files with 14 additions and 5 deletions

View File

@ -996,7 +996,6 @@
return name; return name;
}; };
async function changeTask() { async function changeTask() {
alert(caseInfo.value.geomid)
let getGeomPrams = { let getGeomPrams = {
TableName: 'drone_shp_data ', TableName: 'drone_shp_data ',
FieldName: 'gid', FieldName: 'gid',

View File

@ -29,7 +29,7 @@
<div class="data-container" v-show="false"> <div class="data-container" v-show="false">
<!-- tif list --> <!-- tif list -->
<TifList ref="TifListComponent"></TifList> <TifList ref="TifListComponent" @changeTifLayer="changeTifLayer"></TifList>
<!-- case list --> <!-- case list -->
<CaseList v-show="false" @handlerLayerButtonClick="handlerLayerButtonClick" @toPosition="toPosition"></CaseList> <CaseList v-show="false" @handlerLayerButtonClick="handlerLayerButtonClick" @toPosition="toPosition"></CaseList>
<!-- uav --> <!-- uav -->
@ -116,6 +116,11 @@ function toPosition(lngLat){
MapboxComponent.value.handlerLocation(lngLat,17); MapboxComponent.value.handlerLocation(lngLat,17);
} }
function changeTifLayer(layer){
console.log("changeTifLayer",layer);
MapboxComp
}
// //
function handlerDraw(state){ function handlerDraw(state){
if(state){ if(state){

View File

@ -1103,6 +1103,10 @@ const handlerQueryIntersectTif = (wkt:string)=>{
}) })
} }
function handlerChangeTifLayer(item){
}
// //
const handlerDeletePolygon = ()=>{ const handlerDeletePolygon = ()=>{
mp.deleteDraw(); mp.deleteDraw();
@ -1117,8 +1121,10 @@ const handlerDeletePolygon = ()=>{
handlerUpdateUavLayer, // handlerUpdateUavLayer, //
handlerDrawPolygon, // handlerDrawPolygon, //
handlerDeletePolygon, // handlerDeletePolygon, //
handlerChangeTifLayer,
}); });
</script> </script>
<style type="less" scoped> <style type="less" scoped>
.map-container { .map-container {

View File

@ -30,7 +30,6 @@
<div v-if="!darwState" @click="handlerDraw(true)"> <div v-if="!darwState" @click="handlerDraw(true)">
<ShareAltOutlined style="font-size:16px;" /> &nbsp;绘制范围 <ShareAltOutlined style="font-size:16px;" /> &nbsp;绘制范围
</div> </div>
<div v-else @click="handlerDraw(false)"> <div v-else @click="handlerDraw(false)">
<CloseOutlined style="font-size:16px;" /> &nbsp;取消绘制 <CloseOutlined style="font-size:16px;" /> &nbsp;取消绘制
</div> </div>

View File

@ -31,7 +31,7 @@
const tifList = ref([]) const tifList = ref([])
const emits = defineEmits([""]) const emits = defineEmits(['changeTifLayer'])
const handlerQueryIntersectTif = (wkt:string)=>{ const handlerQueryIntersectTif = (wkt:string)=>{
@ -52,7 +52,7 @@
const layerChange = (item)=>{ const layerChange = (item)=>{
console.log(item); emits("changeTifLayer",item);
} }
// //