This commit is contained in:
2023-04-28 16:00:04 +08:00
parent 05f977fc56
commit 7907a06dad
271 changed files with 5432 additions and 410 deletions

View File

@ -105,7 +105,35 @@
</div>
</div>
<div class="leftFoldDiv" @click="leftFoldClick()">
<el-icon><ArrowRightBold /></el-icon>
<el-tooltip
class="box-item"
:show-arrow="false"
:disabled="leftWraFlag"
hide-after="0"
show-after="200"
effect="dark"
content="展开"
placement="top"
>
<img v-if="!leftWraFlag" src="@/assets/images/close1.png" alt="" />
</el-tooltip>
<el-tooltip
:disabled="!leftWraFlag"
:show-arrow="false"
class="box-item"
show-after="200"
hide-after="0"
effect="dark"
content="收起"
placement="top"
>
<img
class="imgrotate"
v-if="leftWraFlag"
src="@/assets/images/close1.png"
alt=""
/>
</el-tooltip>
</div>
</div>
<div class="rightWra">
@ -163,7 +191,35 @@
<div ref="ASdivisionDiv" class="ASdivision"></div>
</div>
<div class="rightFoldDiv" @click="rightFoldClick()">
<el-icon><ArrowLeftBold /></el-icon>
<el-tooltip
:disabled="!rightWraFlag"
:show-arrow="false"
hide-after="0"
show-after="200"
class="box-item"
effect="dark"
content="收起"
placement="top"
>
<img v-if="rightWraFlag" src="@/assets/images/close1.png" alt="" />
</el-tooltip>
<el-tooltip
:disabled="rightWraFlag"
:show-arrow="false"
hide-after="0"
show-after="200"
class="box-item"
effect="dark"
content="展开"
placement="top"
>
<img
class="imgrotate"
v-if="!rightWraFlag"
src="@/assets/images/close1.png"
alt=""
/>
</el-tooltip>
</div>
</div>
@ -840,6 +896,17 @@ function villageClick(layers, xy, level, cartographic) {
promise.then(data => {
if (data.length > 0) {
let newData = data['0'];
console.log(newData);
viewer.camera.flyTo({
destination: Cesium.Rectangle.fromDegrees(
newData.data.bbox[0],
newData.data.bbox[1],
newData.data.bbox[2],
newData.data.bbox[3]
),
duration: 2,
});
if (newData.properties && newData.properties.XZQDM) {
if (XZQDM !== newData.properties.XZQDM) {
//防止
@ -1144,11 +1211,11 @@ const selectTab = () => {
};
areatext = '8383894';
typesofdata = {
小麦: { value: 12364, percent: '20%' },
花生: { value: 12364, percent: '20%' },
大豆: { value: 12364, percent: '20%' },
地瓜: { value: 12364, percent: '20%' },
花生: { value: 12364, percent: '20%' },
小麦: { value: 30111, percent: '20%' },
花生: { value: 52590, percent: '20%' },
大豆: { value: 1767, percent: '20%' },
地瓜: { value: 797, percent: '20%' },
花生: { value: 1820, percent: '20%' },
};
Pie3D = reactive({
arr: [
@ -2309,6 +2376,7 @@ function back() {
duration: 2,
});
flag.value = false;
hiddenOverlayChart();
}
// 图表点击事件
function ChartClick(item) {
@ -3025,7 +3093,6 @@ function hiddenOverlayChart() {
deleteEntityByName('villageLine');
deleteEntityByName('townLine');
const pop = document.getElementById('pop');
pop.style.display = 'none'; // 清除监听事件
viewer.scene.postRender.removeEventListener(infoWindowPostRender);
@ -3035,7 +3102,9 @@ function hiddenOverlayChart() {
duration: 2,
});
removeWms(['gbznt'], true);
// addWms('shuzisannong:huangdaoqu_town', 'tl');
if (flag.value) {
addWms('shuzisannong:huangdaoqu_town', 'tl');
}
flag.value = false;
}
//显示弹窗
@ -3062,7 +3131,9 @@ $height: calc(100vh - 100px);
.center {
width: 100%;
height: 100%;
.imgrotate {
transform: rotate(180deg);
}
.title {
width: 100%;
height: 45px;
@ -3124,7 +3195,7 @@ $height: calc(100vh - 100px);
width: 30px;
height: 30px;
position: absolute;
right: -12%;
right: -14%;
top: 50%;
transform: translate(-50%, -50%);
font-size: 30px;