解决一个页面多次调用地图冲突问题

main
刘妍 2025-08-13 16:41:53 +08:00
parent b2661ce3c9
commit a46ff070b2
3 changed files with 1817 additions and 1816 deletions

View File

@ -72,7 +72,7 @@
@loadLiveStreaming="livePreviewVisible = false"
@changeCameraType="changeCameraType"
/>
<!-- <div class="intelligent-patrol">
<div class="intelligent-patrol">
<div @click="patrolVisible = true">
<span> <RadarChartOutlined /> </span>
<span>智能巡检</span>
@ -83,7 +83,7 @@
</div>
</div>
<Patrol v-if="patrolVisible" @changePatrol="patrolVisible = false" />
<Report @changeReport="reportVisible = false" v-if="reportVisible" /> -->
<Report @changeReport="reportVisible = false" v-if="reportVisible" />
</div>
</template>
<script setup lang="ts">

View File

@ -92,7 +92,12 @@
<script setup lang="ts">
import { reactive, ref, watch, onMounted } from 'vue';
import { useMessage } from '@/hooks/web/useMessage';
import { InfoCircleOutlined, DownOutlined, UpOutlined ,PlusOutlined} from '@ant-design/icons-vue';
import {
InfoCircleOutlined,
DownOutlined,
UpOutlined,
PlusOutlined,
} from '@ant-design/icons-vue';
import { Map } from '../index';
const { createMessage } = useMessage();
@ -136,11 +141,14 @@
const drawarea = ref(false);
const getAreaData = (val) => {
console.log(val);
data.area = val;
};
const patrolMapConfirm = () => {
if (!data.area) {
createMessage.warning('请绘制区域');
return;
}
drawarea.value = false;
};
onMounted(() => {});
</script>

File diff suppressed because it is too large Load Diff