Compare commits

..

No commits in common. "f0b4493a64cbe7cabf3cb6ecc568cdf16aa08b51" and "4be3c6bc11b685f6d7b1115bff4a116cc741aefd" have entirely different histories.

3 changed files with 9 additions and 26 deletions

View File

@ -90,12 +90,12 @@ const inputSuppliesRoutes = [
component: () => import('@/views/inputSuppliesManage/knowledgeManage/index.vue'),
meta: { title: '知识库', icon: 'Document' },
},
// {
// path: '/sub-government-affairs-service/patrolCaseManage',
// name: 'patrolCaseManage',
// component: () => import('@/views/inputSuppliesManage/patrolCaseManage/index.vue'),
// meta: { title: '巡查与案件管理', icon: 'Document' },
// },
{
path: '/sub-government-affairs-service/patrolCaseManage',
name: 'patrolCaseManage',
component: () => import('@/views/inputSuppliesManage/patrolCaseManage/index.vue'),
meta: { title: '巡查与案件管理', icon: 'Document' },
},
],
},
];

View File

@ -33,7 +33,7 @@ initAMapApiLoader({
AMapUI: {
plugins: ['misc/PathSimplifier'],
},
plugins: ['AMap.MapType', 'AMap.DistrictSearch'],
plugins: ['AMap.MapType'],
});
const app = createApp(App);

View File

@ -1,7 +1,7 @@
<template>
<div class="plant-gs-warp">
<div ref="viewwarp" class="plant-gs-content" :style="{ 'background-image': 'url(' + getAssetsFile('images/plant/bg1.png') + ')' }">
<el-amap ref="mapRef" :zoom="11" :center="[99.402267, 23.538889]" :mask="yunnan" view-mode="3D" @init="initMap">
<el-amap :zoom="11" :center="[99.402267, 23.538889]" ref="mapRef">
<!-- 带孔洞的四边形 -->
<el-amap-layer-satellite :visible="visible" />
<el-amap-polygon :path="polygon" :fill-opacity="0.5" fill-color="#748cb7" stroke-color="transparent" />
@ -13,7 +13,6 @@
import { isEmpty, getAssetsFile } from '@/utils';
import { ref, reactive, onMounted } from 'vue';
import { ElAmap, ElAmapPolygon } from '@vuemap/vue-amap';
import { ElAmapLoca, ElAmapLocaHeatmap } from '@vuemap/vue-amap-loca';
onMounted(() => {});
const zoom = ref(15);
@ -34,23 +33,7 @@ const polygon = reactive([
]);
const mapRef = ref(null);
const yunnan = ref([]);
function initMap(e) {
var opts = {
subdistrict: 0,
extensions: 'all',
level: 'province',
};
var district = new AMap.DistrictSearch(opts);
district.search('云南省', function (status, result) {
console.log('res', result);
var bounds = result.districtList[0].boundaries;
for (var i = 0; i < bounds.length; i += 1) {
yunnan.value.push([bounds[i]]);
}
console.log('mask.value', yunnan.value);
});
}
onMounted(() => {});
</script>
<style lang="scss" scoped>
.plant-gs-warp {