Compare commits

...

2 Commits

Author SHA1 Message Date
徐景良 93ab7751cf Merge branch 'main' of http://123.132.248.154:10000/HC_YFZX/CaiYuanYiTiHua 2024-07-19 14:34:17 +08:00
徐景良 136a9e4501 merge 2024-07-19 14:34:13 +08:00
3 changed files with 23 additions and 13 deletions

View File

@ -29,17 +29,23 @@
<!-- 根据输入坐标定位 -->
<div class="position-by-lnglat">
<div class="to-location" @click="handlerToPosition()">
<a-tooltip>
<template #title>图斑定位</template>
<div class="to-location" @click="handlerToPosition()"></div>
</a-tooltip>
</div>
<div class="draw-polygon" @click="LocationShow = true">
<a-tooltip>
<template #title>坐标定位</template>
<div class="draw-polygon" @click="LocationShow = true"></div>
</a-tooltip>
</div>
<div class="split-line" @click="handlerDrawLineString()">
<a-tooltip>
<template #title>线分割图斑</template>
<div class="split-line" @click="handlerDrawLineString()" v-if="props.splitPlugin"></div>
</a-tooltip>
</div>
<div class="split-polygon" @click="handlerDrawPolygon()">
<div class="split-polygon" @click="handlerDrawPolygon()" v-if="false">
</div>
@ -53,7 +59,7 @@
&nbsp;
<a-button type="default" size="small" @click="handlerClearLocationItem"><ClearOutlined />清空</a-button>
&nbsp;
<a-button type="default" size="small" @click="onHandlerSplitPolygon"><SplitCellsOutlined />分割图斑</a-button>
<a-button type="default" size="small" v-if="props.splitPlugin" @click="onHandlerSplitPolygon"><SplitCellsOutlined />分割图斑</a-button>
<span style="float:right;">
<CloseOutlined @click="handlerLocationClose" />
</span>
@ -168,6 +174,10 @@
type: String,
default: '',
},
splitPlugin:{
type:Boolean,
default:false,
}
});
let nextMapControl: Array<any> = reactive([]);
@ -1369,7 +1379,6 @@
}
.position-by-lnglat{
width:116px;
height:29px;
background:#fff;
position:absolute;

View File

@ -427,11 +427,10 @@ const getCollectList = () => {
};
const showSplitPolygon = ref(false);
const handlerRevertPolygon = (item)=>{
}
const handlerSplitPolygon = (item) => {
getCaseInfoById({id:item.processid}).then(res => {
if(res){
showInfoData.value = res
showInfoData.value['processid'] = item.processid;
@ -678,6 +677,7 @@ const handleOperateClick = (e: Event) => {
background: #fff;
padding: 10px;
// border-radius:6px;
border:2px solid #fff;
margin-bottom: 1px;
.data-list-layout-div {
@ -781,7 +781,7 @@ const handleOperateClick = (e: Event) => {
border-bottom-right-radius: 6px;
}
.data-list-item.checked {
border: 1px solid #139af8;
border: 2px solid #139af8;
}
.data-list-item.close-div {
background: #eff3fc;

View File

@ -8,6 +8,7 @@
@handlerDrawComplete="handlerDrawComplete"
@handlerSplitPolygon="handlerSplitPolygon"
@mapOnLoad="onMapboxLoad"
:splitPlugin="true"
@onFeatureClick="onFeatureClick"
ref="MapboxComponent"
/>
@ -739,7 +740,7 @@
cursor:pointer;
background:#fff;
padding:10px;
border:1px solid #fff;
border:2px solid #fff;
width: calc( 100% - 22px);
border-radius: 12px;
// border-radius:6px;