dianlixunjian
徐景良 2024-11-15 17:30:12 +08:00
parent 7ad1891f02
commit 720ccf3535
5 changed files with 16 additions and 6 deletions

View File

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

View File

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

View File

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

View File

@ -26,7 +26,7 @@
<div class="filter-item" v-for="(item,index) in filters" :key="index" @click="handlerCheckedFilter(item.name)">{{item.name}}</div>
</div>
</div> -->
<div class="selection-button" v-show="false">
<div class="selection-button" v-show="true">
<div v-if="!darwState" @click="handlerDraw(true)">
<ShareAltOutlined style="font-size:16px;" /> &nbsp;绘制范围
</div>

View File

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