diff --git a/package.json b/package.json index d6fd157d..9a3707ab 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "event-source-polyfill": "^1.0.31", "global": "^4.4.0", "jetlinks-store": "^0.0.3", - "jetlinks-ui-components": "^1.0.34-2", + "jetlinks-ui-components": "^1.0.34-3", "js-cookie": "^3.0.1", "jsencrypt": "^3.3.2", "less": "^4.1.3", diff --git a/src/components/AMapComponent/index.vue b/src/components/AMapComponent/index.vue index 6dec0ed4..8de55a2e 100644 --- a/src/components/AMapComponent/index.vue +++ b/src/components/AMapComponent/index.vue @@ -22,6 +22,8 @@ import '@vuemap/vue-amap/dist/style.css'; import { getAMapUiPromise } from './utils'; import { useSystem } from '@/store/system'; +const emit = defineEmits('init') + const system = useSystem(); interface AMapProps { style?: CSSProperties; @@ -65,8 +67,9 @@ const initMap = (e: any) => { if (isOpenUi.value) { getAMapUI(); } + emit('init', e) }; \ No newline at end of file + diff --git a/src/views/init-home/data/baseMenu.ts b/src/views/init-home/data/baseMenu.ts index 0ef0cc04..e4cdbae8 100644 --- a/src/views/init-home/data/baseMenu.ts +++ b/src/views/init-home/data/baseMenu.ts @@ -4132,7 +4132,7 @@ export default [ sortIndex: 12, url: '/system/region', icon: 'FormOutlined', - showPage: ['region'], + showPage: ['area'], permissions: [], buttons: [ { @@ -4140,7 +4140,7 @@ export default [ name: "新增", permissions: [ { - permission: "region", + permission: "area", actions: [ "save" ] @@ -4152,7 +4152,7 @@ export default [ name: "删除", permissions: [ { - permission: "region", + permission: "area", actions: [ "delete" ] @@ -4164,7 +4164,7 @@ export default [ name: "编辑", permissions: [ { - permission: "region", + permission: "area", actions: [ "save" ] diff --git a/src/views/system/Region/MapTool/map.vue b/src/views/system/Region/MapTool/map.vue index 13a496d1..86f53450 100644 --- a/src/views/system/Region/MapTool/map.vue +++ b/src/views/system/Region/MapTool/map.vue @@ -1,7 +1,99 @@ - diff --git a/src/views/system/Region/index.vue b/src/views/system/Region/index.vue index e804fb0d..c067a39e 100644 --- a/src/views/system/Region/index.vue +++ b/src/views/system/Region/index.vue @@ -12,7 +12,7 @@
- +
@@ -29,6 +29,7 @@ import FullPage from "components/Layout/FullPage.vue"; const searchValue = ref() const visible = ref(false) const current = ref({}) +const path = ref([[121.5273285, 31.21515044], [121.5293285, 31.21515044], [121.5293285, 31.21915044], [121.5273285, 31.21515044]]) const onSearch = () => { diff --git a/yarn.lock b/yarn.lock index ee9c801e..3351b663 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3738,10 +3738,10 @@ jetlinks-store@^0.0.3: resolved "https://registry.npmjs.org/jetlinks-store/-/jetlinks-store-0.0.3.tgz" integrity sha512-AZf/soh1hmmwjBZ00fr1emuMEydeReaI6IBTGByQYhTmK1Zd5pQAxC7WLek2snRAn/HHDgJfVz2hjditKThl6Q== -jetlinks-ui-components@^1.0.34-2: - version "1.0.34-2" - resolved "https://registry.npmjs.org/jetlinks-ui-components/-/jetlinks-ui-components-1.0.34-2.tgz#8acd9f5dd4e5baa89703391620c80545c60ea98d" - integrity sha512-Z8/TRoJut1CuGsXXkzUYwvmKdQ1FhvXc46uK308M76Ezv4iJIGphwt1ancqVst0+WRBWoG6ps2ZsBbqCSQB7Rg== +jetlinks-ui-components@^1.0.34-3: + version "1.0.34-3" + resolved "https://registry.npmjs.org/jetlinks-ui-components/-/jetlinks-ui-components-1.0.34-3.tgz#c4f8182ce7419db40ed6d937ab0a7040bfb1549a" + integrity sha512-9jzzGOIR5ICCBdCVYfQoWyZCIFcauLuvIF+WN/djR1glC4lsBdegN06HpzxcGMfsJlWODxzjRXEq+UDNqiL4zg== dependencies: "@vueuse/core" "^9.12.0" "@vueuse/router" "^9.13.0"