地图右键菜单

This commit is contained in:
Teo
2025-04-24 18:00:57 +08:00
parent 0ab7056dd1
commit c061111280
3 changed files with 177 additions and 77 deletions

View File

@ -261,7 +261,12 @@
</el-dialog>
<!-- 选取方阵地址 -->
<el-dialog title="设置方阵" v-model="polygonStatus" width="1400px">
<open-layers-map :tree-data="jsonData" :project-id="projectId"></open-layers-map>
<open-layers-map :tree-data="jsonData" :project-id="projectId" v-if="polygonStatus"></open-layers-map>
<el-radio-group v-model="layerType" class="ml-100">
<el-radio value="1" size="large">光伏板</el-radio>
<el-radio value="2" size="large">桩点/支架</el-radio>
<el-radio value="3" size="large">方阵</el-radio>
</el-radio-group>
<template #footer>
<span>
<el-button @click="polygonStatus = false">取消</el-button>
@ -280,9 +285,6 @@ const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { sys_normal_disable, project_category_type, project_type } = toRefs<any>(
proxy?.useDict('sys_normal_disable', 'project_category_type', 'project_type')
);
const change = (val: any) => {
console.log(val, 1212, form.value.playCardStart);
};
const projectList = ref<ProjectVO[]>([]);
const buttonLoading = ref(false);
const loading = ref(true);
@ -297,6 +299,7 @@ const projectFormRef = ref<ElFormInstance>();
const polygonStatus = ref(false);
const dxfFile = ref(null);
const projectId = ref<string>('');
const layerType = ref(null);
const dialog = reactive<DialogOption>({
visible: false,
title: ''
@ -460,7 +463,9 @@ const handleShowUpload = (row?: ProjectVO) => {
};
const handleOpenLayer = async (row: ProjectVO) => {
if (projectId.value == row.id) return (polygonStatus.value = true);
fullscreenLoading.value = true;
const res = await listDXFProject(row.designId);
projectId.value = row.id;
jsonData.value = res.data.layers;