فهرست منبع

feat(core): aMap 保存

gemercheung 3 سال پیش
والد
کامیت
588a3b8c71
6فایلهای تغییر یافته به همراه352 افزوده شده و 77 حذف شده
  1. 1 1
      package.json
  2. 285 57
      pnpm-lock.yaml
  3. 1 0
      src/locales/lang/zh-CN/routes/scenes.ts
  4. 1 1
      src/views/scenes/live.vue
  5. 62 17
      src/views/scenes/liveDrawer.vue
  6. 2 1
      vite.config.ts

+ 1 - 1
package.json

@@ -128,7 +128,7 @@
     "ts-jest": "^27.1.2",
     "ts-node": "^10.4.0",
     "typescript": "^4.5.4",
-    "vite": "^2.7.8",
+    "vite": "^2.8.5",
     "vite-plugin-compression": "^0.4.0",
     "vite-plugin-html": "^2.1.2",
     "vite-plugin-imagemin": "^0.5.1",

+ 285 - 57
pnpm-lock.yaml

@@ -98,7 +98,7 @@ specifiers:
   ts-node: ^10.4.0
   typescript: ^4.5.4
   vditor: ^3.8.10
-  vite: ^2.7.8
+  vite: ^2.8.5
   vite-plugin-compression: ^0.4.0
   vite-plugin-html: ^2.1.2
   vite-plugin-imagemin: ^0.5.1
@@ -182,8 +182,8 @@ devDependencies:
   '@types/sortablejs': 1.10.7
   '@typescript-eslint/eslint-plugin': 5.9.0_bd2fd93dbcc607ad2f21b784bccfe0c8
   '@typescript-eslint/parser': 5.9.0_eslint@8.6.0+typescript@4.5.4
-  '@vitejs/plugin-legacy': 1.6.4_vite@2.7.10
-  '@vitejs/plugin-vue': 2.0.1_vite@2.7.10+vue@3.2.26
+  '@vitejs/plugin-legacy': 1.6.4_vite@2.8.6
+  '@vitejs/plugin-vue': 2.0.1_vite@2.8.6+vue@3.2.26
   '@vitejs/plugin-vue-jsx': 1.3.3
   '@vue/compiler-sfc': 3.2.26
   '@vue/test-utils': 2.0.0-rc.18_vue@3.2.26
@@ -221,19 +221,19 @@ devDependencies:
   ts-jest: 27.1.2_9364f2ad0b7b67f00a4d081c662c6871
   ts-node: 10.4.0_faf01e1d5a40372a98081522dcafc186
   typescript: 4.5.4
-  vite: 2.7.10_less@4.1.2
-  vite-plugin-compression: 0.4.0_vite@2.7.10
-  vite-plugin-html: 2.1.2_vite@2.7.10
-  vite-plugin-imagemin: 0.5.1_vite@2.7.10
-  vite-plugin-mock: 2.9.6_mockjs@1.1.0+vite@2.7.10
-  vite-plugin-purge-icons: 0.7.0_vite@2.7.10
-  vite-plugin-pwa: 0.11.12_vite@2.7.10
-  vite-plugin-rewrite-all: 0.1.2_vite@2.7.10
-  vite-plugin-style-import: 1.4.1_vite@2.7.10
-  vite-plugin-svg-icons: 1.1.0_vite@2.7.10
-  vite-plugin-theme: 0.8.1_vite@2.7.10
-  vite-plugin-vue-setup-extend: 0.3.0_vite@2.7.10
-  vite-plugin-windicss: 1.6.2_vite@2.7.10
+  vite: 2.8.6_less@4.1.2
+  vite-plugin-compression: 0.4.0_vite@2.8.6
+  vite-plugin-html: 2.1.2_vite@2.8.6
+  vite-plugin-imagemin: 0.5.1_vite@2.8.6
+  vite-plugin-mock: 2.9.6_mockjs@1.1.0+vite@2.8.6
+  vite-plugin-purge-icons: 0.7.0_vite@2.8.6
+  vite-plugin-pwa: 0.11.12_vite@2.8.6
+  vite-plugin-rewrite-all: 0.1.2_vite@2.8.6
+  vite-plugin-style-import: 1.4.1_vite@2.8.6
+  vite-plugin-svg-icons: 1.1.0_vite@2.8.6
+  vite-plugin-theme: 0.8.1_vite@2.8.6
+  vite-plugin-vue-setup-extend: 0.3.0_vite@2.8.6
+  vite-plugin-windicss: 1.6.2_vite@2.8.6
   vue-eslint-parser: 8.0.1_eslint@8.6.0
   vue-tsc: 0.30.2_typescript@4.5.4
 
@@ -398,7 +398,7 @@ packages:
       '@babel/traverse': 7.16.7
       debug: 4.3.3
       lodash.debounce: 4.0.8
-      resolve: 1.21.0
+      resolve: 1.22.0
       semver: 6.3.0
     transitivePeerDependencies:
       - supports-color
@@ -2067,7 +2067,7 @@ packages:
       builtin-modules: 3.2.0
       deepmerge: 4.2.2
       is-module: 1.0.0
-      resolve: 1.21.0
+      resolve: 1.22.0
       rollup: 2.63.0
     dev: true
 
@@ -2082,7 +2082,7 @@ packages:
       builtin-modules: 3.2.0
       deepmerge: 4.2.2
       is-module: 1.0.0
-      resolve: 1.21.0
+      resolve: 1.22.0
     dev: true
 
   /@rollup/plugin-replace/2.4.2_rollup@2.63.0:
@@ -2579,7 +2579,7 @@ packages:
       eslint-visitor-keys: 3.1.0
     dev: true
 
-  /@vitejs/plugin-legacy/1.6.4_vite@2.7.10:
+  /@vitejs/plugin-legacy/1.6.4_vite@2.8.6:
     resolution: {integrity: sha512-geH2F3hTRN++E4n9NZ0JFumxIWUKqW4FA9PAgM7Q6RvUOUUYW4tlURhEmCBYfZSN24H/yX3mEolX+wFVErsAYQ==}
     engines: {node: '>=12.0.0'}
     peerDependencies:
@@ -2590,7 +2590,7 @@ packages:
       magic-string: 0.25.7
       regenerator-runtime: 0.13.9
       systemjs: 6.11.0
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
     dev: true
 
   /@vitejs/plugin-vue-jsx/1.3.3:
@@ -2607,14 +2607,14 @@ packages:
       - supports-color
     dev: true
 
-  /@vitejs/plugin-vue/2.0.1_vite@2.7.10+vue@3.2.26:
+  /@vitejs/plugin-vue/2.0.1_vite@2.8.6+vue@3.2.26:
     resolution: {integrity: sha512-wtdMnGVvys9K8tg+DxowU1ytTrdVveXr3LzdhaKakysgGXyrsfaeds2cDywtvujEASjWOwWL/OgWM+qoeM8Plg==}
     engines: {node: '>=12.0.0'}
     peerDependencies:
       vite: ^2.5.10
       vue: ^3.2.25
     dependencies:
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
       vue: 3.2.26
     dev: true
 
@@ -4906,6 +4906,15 @@ packages:
       is-symbol: 1.0.4
     dev: true
 
+  /esbuild-android-64/0.14.25:
+    resolution: {integrity: sha512-L5vCUk7TzFbBnoESNoXjU3x9+/+7TDIE/1mTfy/erAfvZAqC+S3sp/Qa9wkypFMcFvN9FzvESkTlpeQDolREtQ==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [android]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-android-arm64/0.13.15:
     resolution: {integrity: sha512-m602nft/XXeO8YQPUDVoHfjyRVPdPgjyyXOxZ44MK/agewFFkPa8tUo6lAzSWh5Ui5PB4KR9UIFTSBKh/RrCmg==}
     cpu: [arm64]
@@ -4922,6 +4931,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-android-arm64/0.14.25:
+    resolution: {integrity: sha512-4jv5xPjM/qNm27T5j3ZEck0PvjgQtoMHnz4FzwF5zNP56PvY2CT0WStcAIl6jNlsuDdN63rk2HRBIsO6xFbcFw==}
+    engines: {node: '>=12'}
+    cpu: [arm64]
+    os: [android]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-darwin-64/0.13.15:
     resolution: {integrity: sha512-ihOQRGs2yyp7t5bArCwnvn2Atr6X4axqPpEdCFPVp7iUj4cVSdisgvEKdNR7yH3JDjW6aQDw40iQFoTqejqxvQ==}
     cpu: [x64]
@@ -4938,6 +4956,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-darwin-64/0.14.25:
+    resolution: {integrity: sha512-TGp8tuudIxOyWd1+8aYPxQmC1ZQyvij/AfNBa35RubixD0zJ1vkKHVAzo0Zao1zcG6pNqiSyzfPto8vmg0s7oA==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [darwin]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-darwin-arm64/0.13.15:
     resolution: {integrity: sha512-i1FZssTVxUqNlJ6cBTj5YQj4imWy3m49RZRnHhLpefFIh0To05ow9DTrXROTE1urGTQCloFUXTX8QfGJy1P8dQ==}
     cpu: [arm64]
@@ -4954,6 +4981,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-darwin-arm64/0.14.25:
+    resolution: {integrity: sha512-oTcDgdm0MDVEmw2DWu8BV68pYuImpFgvWREPErBZmNA4MYKGuBRaCiJqq6jZmBR1x+3y1DWCjez+5uLtuAm6mw==}
+    engines: {node: '>=12'}
+    cpu: [arm64]
+    os: [darwin]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-freebsd-64/0.13.15:
     resolution: {integrity: sha512-G3dLBXUI6lC6Z09/x+WtXBXbOYQZ0E8TDBqvn7aMaOCzryJs8LyVXKY4CPnHFXZAbSwkCbqiPuSQ1+HhrNk7EA==}
     cpu: [x64]
@@ -4970,6 +5006,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-freebsd-64/0.14.25:
+    resolution: {integrity: sha512-ueAqbnMZ8arnuLH8tHwTCQYeptnHOUV7vA6px6j4zjjQwDx7TdP7kACPf3TLZLdJQ3CAD1XCvQ2sPhX+8tacvQ==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [freebsd]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-freebsd-arm64/0.13.15:
     resolution: {integrity: sha512-KJx0fzEDf1uhNOZQStV4ujg30WlnwqUASaGSFPhznLM/bbheu9HhqZ6mJJZM32lkyfGJikw0jg7v3S0oAvtvQQ==}
     cpu: [arm64]
@@ -4986,6 +5031,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-freebsd-arm64/0.14.25:
+    resolution: {integrity: sha512-+ZVWud2HKh+Ob6k/qiJWjBtUg4KmJGGmbvEXXW1SNKS7hW7HU+Zq2ZCcE1akFxOPkVB+EhOty/sSek30tkCYug==}
+    engines: {node: '>=12'}
+    cpu: [arm64]
+    os: [freebsd]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-linux-32/0.13.15:
     resolution: {integrity: sha512-ZvTBPk0YWCLMCXiFmD5EUtB30zIPvC5Itxz0mdTu/xZBbbHJftQgLWY49wEPSn2T/TxahYCRDWun5smRa0Tu+g==}
     cpu: [ia32]
@@ -5002,6 +5056,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-linux-32/0.14.25:
+    resolution: {integrity: sha512-3OP/lwV3kCzEz45tobH9nj+uE4ubhGsfx+tn0L26WAGtUbmmcRpqy7XRG/qK7h1mClZ+eguIANcQntYMdYklfw==}
+    engines: {node: '>=12'}
+    cpu: [ia32]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-linux-64/0.13.15:
     resolution: {integrity: sha512-eCKzkNSLywNeQTRBxJRQ0jxRCl2YWdMB3+PkWFo2BBQYC5mISLIVIjThNtn6HUNqua1pnvgP5xX0nHbZbPj5oA==}
     cpu: [x64]
@@ -5018,6 +5081,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-linux-64/0.14.25:
+    resolution: {integrity: sha512-+aKHdHZmX9qwVlQmu5xYXh7GsBFf4TWrePgeJTalhXHOG7NNuUwoHmketGiZEoNsWyyqwH9rE5BC+iwcLY30Ug==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-linux-arm/0.13.15:
     resolution: {integrity: sha512-wUHttDi/ol0tD8ZgUMDH8Ef7IbDX+/UsWJOXaAyTdkT7Yy9ZBqPg8bgB/Dn3CZ9SBpNieozrPRHm0BGww7W/jA==}
     cpu: [arm]
@@ -5034,6 +5106,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-linux-arm/0.14.25:
+    resolution: {integrity: sha512-aTLcE2VBoLydL943REcAcgnDi3bHtmULSXWLbjtBdtykRatJVSxKMjK9YlBXUZC4/YcNQfH7AxwVeQr9fNxPhw==}
+    engines: {node: '>=12'}
+    cpu: [arm]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-linux-arm64/0.13.15:
     resolution: {integrity: sha512-bYpuUlN6qYU9slzr/ltyLTR9YTBS7qUDymO8SV7kjeNext61OdmqFAzuVZom+OLW1HPHseBfJ/JfdSlx8oTUoA==}
     cpu: [arm64]
@@ -5050,6 +5131,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-linux-arm64/0.14.25:
+    resolution: {integrity: sha512-UxfenPx/wSZx55gScCImPtXekvZQLI2GW3qe5dtlmU7luiqhp5GWPzGeQEbD3yN3xg/pHc671m5bma5Ns7lBHw==}
+    engines: {node: '>=12'}
+    cpu: [arm64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-linux-mips64le/0.13.15:
     resolution: {integrity: sha512-KlVjIG828uFPyJkO/8gKwy9RbXhCEUeFsCGOJBepUlpa7G8/SeZgncUEz/tOOUJTcWMTmFMtdd3GElGyAtbSWg==}
     cpu: [mips64el]
@@ -5066,6 +5156,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-linux-mips64le/0.14.25:
+    resolution: {integrity: sha512-wLWYyqVfYx9Ur6eU5RT92yJVsaBGi5RdkoWqRHOqcJ38Kn60QMlcghsKeWfe9jcYut8LangYZ98xO1LxIoSXrQ==}
+    engines: {node: '>=12'}
+    cpu: [mips64el]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-linux-ppc64le/0.13.15:
     resolution: {integrity: sha512-h6gYF+OsaqEuBjeesTBtUPw0bmiDu7eAeuc2OEH9S6mV9/jPhPdhOWzdeshb0BskRZxPhxPOjqZ+/OqLcxQwEQ==}
     cpu: [ppc64]
@@ -5082,6 +5181,24 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-linux-ppc64le/0.14.25:
+    resolution: {integrity: sha512-0dR6Csl6Zas3g4p9ULckEl8Mo8IInJh33VCJ3eaV1hj9+MHGdmDOakYMN8MZP9/5nl+NU/0ygpd14cWgy8uqRw==}
+    engines: {node: '>=12'}
+    cpu: [ppc64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /esbuild-linux-riscv64/0.14.25:
+    resolution: {integrity: sha512-J4d20HDmTrgvhR0bdkDhvvJGaikH3LzXQnNaseo8rcw9Yqby9A90gKUmWpfwqLVNRILvNnAmKLfBjCKU9ajg8w==}
+    engines: {node: '>=12'}
+    cpu: [riscv64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-linux-s390x/0.14.11:
     resolution: {integrity: sha512-DoThrkzunZ1nfRGoDN6REwmo8ZZWHd2ztniPVIR5RMw/Il9wiWEYBahb8jnMzQaSOxBsGp0PbyJeVLTUatnlcw==}
     cpu: [s390x]
@@ -5090,6 +5207,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-linux-s390x/0.14.25:
+    resolution: {integrity: sha512-YI2d5V6nTE73ZnhEKQD7MtsPs1EtUZJ3obS21oxQxGbbRw1G+PtJKjNyur+3t6nzHP9oTg6GHQ3S3hOLLmbDIQ==}
+    engines: {node: '>=12'}
+    cpu: [s390x]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-netbsd-64/0.13.15:
     resolution: {integrity: sha512-3+yE9emwoevLMyvu+iR3rsa+Xwhie7ZEHMGDQ6dkqP/ndFzRHkobHUKTe+NCApSqG5ce2z4rFu+NX/UHnxlh3w==}
     cpu: [x64]
@@ -5106,6 +5232,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-netbsd-64/0.14.25:
+    resolution: {integrity: sha512-TKIVgNWLUOkr+Exrye70XTEE1lJjdQXdM4tAXRzfHE9iBA7LXWcNtVIuSnphTqpanPzTDFarF0yqq4kpbC6miA==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [netbsd]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-node-loader/0.6.3_typescript@4.5.4:
     resolution: {integrity: sha512-Bf6o8SiMMh5+r20jsjAThNOtzo3t8Ye4Qdzz+twWHnxu28SdkGUr5ahq8iX0qbd+I9ge8sLNX7oQoNW1YzHlqA==}
     peerDependencies:
@@ -5131,6 +5266,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-openbsd-64/0.14.25:
+    resolution: {integrity: sha512-QgFJ37A15D7NIXBTYEqz29+uw3nNBOIyog+3kFidANn6kjw0GHZ0lEYQn+cwjyzu94WobR+fes7cTl/ZYlHb1A==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [openbsd]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-plugin-alias/0.1.2:
     resolution: {integrity: sha512-WsX0OJy8IGOsGZV+4oHEU5B6XQUpxOsZN1iSoYf9COTDbY7WXcOwd1oCLYNWUIWCExyGXSghIGq2k7sXBldxwQ==}
     dev: true
@@ -5159,6 +5303,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-sunos-64/0.14.25:
+    resolution: {integrity: sha512-rmWfjUItYIVlqr5EnTH1+GCxXiBOC42WBZ3w++qh7n2cS9Xo0lO5pGSG2N+huOU2fX5L+6YUuJ78/vOYvefeFw==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [sunos]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-windows-32/0.13.15:
     resolution: {integrity: sha512-fDMEf2g3SsJ599MBr50cY5ve5lP1wyVwTe6aLJsM01KtxyKkB4UT+fc5MXQFn3RLrAIAZOG+tHC+yXObpSn7Nw==}
     cpu: [ia32]
@@ -5175,6 +5328,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-windows-32/0.14.25:
+    resolution: {integrity: sha512-HGAxVUofl3iUIz9W10Y9XKtD0bNsK9fBXv1D55N/ljNvkrAYcGB8YCm0v7DjlwtyS6ws3dkdQyXadbxkbzaKOA==}
+    engines: {node: '>=12'}
+    cpu: [ia32]
+    os: [win32]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-windows-64/0.13.15:
     resolution: {integrity: sha512-9aMsPRGDWCd3bGjUIKG/ZOJPKsiztlxl/Q3C1XDswO6eNX/Jtwu4M+jb6YDH9hRSUflQWX0XKAfWzgy5Wk54JQ==}
     cpu: [x64]
@@ -5191,6 +5353,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-windows-64/0.14.25:
+    resolution: {integrity: sha512-TirEohRkfWU9hXLgoDxzhMQD1g8I2mOqvdQF2RS9E/wbkORTAqJHyh7wqGRCQAwNzdNXdg3JAyhQ9/177AadWA==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [win32]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild-windows-arm64/0.13.15:
     resolution: {integrity: sha512-zzvyCVVpbwQQATaf3IG8mu1IwGEiDxKkYUdA4FpoCHi1KtPa13jeScYDjlW0Qh+ebWzpKfR2ZwvqAQkSWNcKjA==}
     cpu: [arm64]
@@ -5207,6 +5378,15 @@ packages:
     dev: true
     optional: true
 
+  /esbuild-windows-arm64/0.14.25:
+    resolution: {integrity: sha512-4ype9ERiI45rSh+R8qUoBtaj6kJvUOI7oVLhKqPEpcF4Pa5PpT3hm/mXAyotJHREkHpM87PAJcA442mLnbtlNA==}
+    engines: {node: '>=12'}
+    cpu: [arm64]
+    os: [win32]
+    requiresBuild: true
+    dev: true
+    optional: true
+
   /esbuild/0.11.23:
     resolution: {integrity: sha512-iaiZZ9vUF5wJV8ob1tl+5aJTrwDczlvGP0JoMmnpC2B0ppiMCu8n8gmy5ZTGl5bcG081XBVn+U+jP+mPFm5T5Q==}
     hasBin: true
@@ -5268,6 +5448,34 @@ packages:
       esbuild-windows-arm64: 0.14.11
     dev: true
 
+  /esbuild/0.14.25:
+    resolution: {integrity: sha512-4JHEIOMNFvK09ziiL+iVmldIhLbn49V4NAVo888tcGFKedEZY/Y8YapfStJ6zSE23tzYPKxqKwQBnQoIO0BI/Q==}
+    engines: {node: '>=12'}
+    hasBin: true
+    requiresBuild: true
+    optionalDependencies:
+      esbuild-android-64: 0.14.25
+      esbuild-android-arm64: 0.14.25
+      esbuild-darwin-64: 0.14.25
+      esbuild-darwin-arm64: 0.14.25
+      esbuild-freebsd-64: 0.14.25
+      esbuild-freebsd-arm64: 0.14.25
+      esbuild-linux-32: 0.14.25
+      esbuild-linux-64: 0.14.25
+      esbuild-linux-arm: 0.14.25
+      esbuild-linux-arm64: 0.14.25
+      esbuild-linux-mips64le: 0.14.25
+      esbuild-linux-ppc64le: 0.14.25
+      esbuild-linux-riscv64: 0.14.25
+      esbuild-linux-s390x: 0.14.25
+      esbuild-netbsd-64: 0.14.25
+      esbuild-openbsd-64: 0.14.25
+      esbuild-sunos-64: 0.14.25
+      esbuild-windows-32: 0.14.25
+      esbuild-windows-64: 0.14.25
+      esbuild-windows-arm64: 0.14.25
+    dev: true
+
   /escalade/3.1.1:
     resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
     engines: {node: '>=6'}
@@ -7558,7 +7766,7 @@ packages:
       jest-pnp-resolver: 1.2.2_jest-resolve@27.4.6
       jest-util: 27.4.2
       jest-validate: 27.4.6
-      resolve: 1.21.0
+      resolve: 1.22.0
       resolve.exports: 1.1.0
       slash: 3.0.0
     dev: true
@@ -8553,6 +8761,12 @@ packages:
     engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
     hasBin: true
 
+  /nanoid/3.3.1:
+    resolution: {integrity: sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==}
+    engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+    hasBin: true
+    dev: true
+
   /nanomatch/1.2.13:
     resolution: {integrity: sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==}
     engines: {node: '>=0.10.0'}
@@ -8621,7 +8835,7 @@ packages:
     resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==}
     dependencies:
       hosted-git-info: 2.8.9
-      resolve: 1.21.0
+      resolve: 1.22.0
       semver: 5.7.1
       validate-npm-package-license: 3.0.4
     dev: true
@@ -9300,6 +9514,15 @@ packages:
       picocolors: 1.0.0
       source-map-js: 1.0.1
 
+  /postcss/8.4.8:
+    resolution: {integrity: sha512-2tXEqGxrjvAO6U+CJzDL2Fk2kPHTv1jQsYkSoMeOis2SsYaXRO2COxTdQp99cYvif9JTXaAk9lYGc3VhJt7JPQ==}
+    engines: {node: ^10 || ^12 || >=14}
+    dependencies:
+      nanoid: 3.3.1
+      picocolors: 1.0.0
+      source-map-js: 1.0.2
+    dev: true
+
   /posthtml-parser/0.2.1:
     resolution: {integrity: sha1-NdUw3jhnQMK6JP8usvrznM3ycd0=}
     dependencies:
@@ -9480,7 +9703,7 @@ packages:
       jstransformer: 1.0.0
       pug-error: 2.0.0
       pug-walk: 2.0.0
-      resolve: 1.21.0
+      resolve: 1.22.0
     dev: true
 
   /pug-lexer/5.0.1:
@@ -9861,8 +10084,8 @@ packages:
     engines: {node: '>=10'}
     dev: true
 
-  /resolve/1.21.0:
-    resolution: {integrity: sha512-3wCbTpk5WJlyE4mSOtDLhqQmGFi0/TD9VPwmiolnk8U0wRgMEktqCXd3vy5buTO3tljvalNvKrjHEfrd2WpEKA==}
+  /resolve/1.22.0:
+    resolution: {integrity: sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==}
     hasBin: true
     dependencies:
       is-core-module: 2.8.1
@@ -10246,6 +10469,11 @@ packages:
     resolution: {integrity: sha512-4+TN2b3tqOCd/kaGRJ/sTYA0tR0mdXx26ipdolxcwtJVqEnqNYvlCAt1q3ypy4QMlYus+Zh34RNtYLoq2oQ4IA==}
     engines: {node: '>=0.10.0'}
 
+  /source-map-js/1.0.2:
+    resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
+    engines: {node: '>=0.10.0'}
+    dev: true
+
   /source-map-resolve/0.5.3:
     resolution: {integrity: sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==}
     dependencies:
@@ -11374,7 +11602,7 @@ packages:
       diff-match-patch: 1.0.5
     dev: false
 
-  /vite-plugin-compression/0.4.0_vite@2.7.10:
+  /vite-plugin-compression/0.4.0_vite@2.8.6:
     resolution: {integrity: sha512-CGC8DfIey0k4S4o54ylwFIzT1Mjb9s7cMmlXj6DMM1MZZIeWFjPCJc6YZWjnnS28ul3r7R1nmihvYvGg/lOYsQ==}
     peerDependencies:
       vite: '>=2.0.0'
@@ -11382,12 +11610,12 @@ packages:
       chalk: 4.1.2
       debug: 4.3.3
       fs-extra: 10.0.0
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
     transitivePeerDependencies:
       - supports-color
     dev: true
 
-  /vite-plugin-html/2.1.2_vite@2.7.10:
+  /vite-plugin-html/2.1.2_vite@2.8.6:
     resolution: {integrity: sha512-7HXkL6n7M2qDEaUV4Vnz8yM2glW4gV36d5HSBIM5gOoAG1PkuQb4Vv9FTPgPiQxq4sPRf/6IgABX0MeLVW+CyQ==}
     peerDependencies:
       vite: '>=2.0.0'
@@ -11398,12 +11626,12 @@ packages:
       ejs: 3.1.6
       fs-extra: 10.0.0
       html-minifier-terser: 6.1.0
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
     transitivePeerDependencies:
       - acorn
     dev: true
 
-  /vite-plugin-imagemin/0.5.1_vite@2.7.10:
+  /vite-plugin-imagemin/0.5.1_vite@2.8.6:
     resolution: {integrity: sha512-V/o/JWZZEPHOJLyhyx9a9Q9svAi91KQqXC78vMrRng1ZRMMnEn85PDlb264407WVlI7hZv2fW3p08SoSfZbyTA==}
     peerDependencies:
       vite: '>=2.0.0'
@@ -11429,12 +11657,12 @@ packages:
       imagemin-svgo: 9.0.0
       imagemin-webp: 6.0.0
       jpegtran-bin: 6.0.1
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
     transitivePeerDependencies:
       - supports-color
     dev: true
 
-  /vite-plugin-mock/2.9.6_mockjs@1.1.0+vite@2.7.10:
+  /vite-plugin-mock/2.9.6_mockjs@1.1.0+vite@2.8.6:
     resolution: {integrity: sha512-/Rm59oPppe/ncbkSrUuAxIQihlI2YcBmnbR4ST1RA2VzM1C0tEQc1KlbQvnUGhXECAGTaQN2JyasiwXP6EtKgg==}
     engines: {node: '>=12.0.0'}
     peerDependencies:
@@ -11451,13 +11679,13 @@ packages:
       fast-glob: 3.2.10
       mockjs: 1.1.0
       path-to-regexp: 6.2.0
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
     transitivePeerDependencies:
       - rollup
       - supports-color
     dev: true
 
-  /vite-plugin-purge-icons/0.7.0_vite@2.7.10:
+  /vite-plugin-purge-icons/0.7.0_vite@2.8.6:
     resolution: {integrity: sha512-oGZUKFAL4waIZIeiCPT5KZvGbBA500AO/03oxW+ODTKUMq+0jbh9s+T8NPzfJQFC1jtE7eUb2ium82IP/gxZjA==}
     engines: {node: '>= 12'}
     peerDependencies:
@@ -11466,12 +11694,12 @@ packages:
       '@purge-icons/core': 0.7.0
       '@purge-icons/generated': 0.7.0
       rollup-plugin-purge-icons: 0.7.0
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
     transitivePeerDependencies:
       - supports-color
     dev: true
 
-  /vite-plugin-pwa/0.11.12_vite@2.7.10:
+  /vite-plugin-pwa/0.11.12_vite@2.8.6:
     resolution: {integrity: sha512-XqFmA4y9C4RBb5osSsa26GVwOSwbzf2GNVcT5+06KYYdguqLpuI9FW7iV/akZqg0OUNUpH4tHfme8SnHA4PIXA==}
     peerDependencies:
       vite: ^2.0.0
@@ -11480,7 +11708,7 @@ packages:
       fast-glob: 3.2.10
       pretty-bytes: 5.6.0
       rollup: 2.63.0
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
       workbox-build: 6.4.2
       workbox-window: 6.4.2
     transitivePeerDependencies:
@@ -11489,17 +11717,17 @@ packages:
       - supports-color
     dev: true
 
-  /vite-plugin-rewrite-all/0.1.2_vite@2.7.10:
+  /vite-plugin-rewrite-all/0.1.2_vite@2.8.6:
     resolution: {integrity: sha512-hBFuG043kbixgZ/ke9SzKhkO6P8a5ryxD0CmZTe+/Cz17RIKi7uSeNUJy79V4FgavZ7pWVRg0tqVwJ7lP/A2/Q==}
     engines: {node: '>=12.0.0'}
     peerDependencies:
       vite: ^2.0.2
     dependencies:
       connect-history-api-fallback: 1.6.0
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
     dev: true
 
-  /vite-plugin-style-import/1.4.1_vite@2.7.10:
+  /vite-plugin-style-import/1.4.1_vite@2.8.6:
     resolution: {integrity: sha512-lJCRvm7+So0hHdnSJiJPg9gD5mxtL6YY0jmhEph+k7ArpsyvqOh6han2kG5htbWWDZxHkUN9d1BuTFL//yCLLQ==}
     peerDependencies:
       vite: '>=2.0.0'
@@ -11510,12 +11738,12 @@ packages:
       es-module-lexer: 0.9.3
       fs-extra: 10.0.0
       magic-string: 0.25.7
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
     transitivePeerDependencies:
       - supports-color
     dev: true
 
-  /vite-plugin-svg-icons/1.1.0_vite@2.7.10:
+  /vite-plugin-svg-icons/1.1.0_vite@2.8.6:
     resolution: {integrity: sha512-dmpr7Wq8vQN6ajBrVTrBxy8wJjQfcP30i73q+40uAZc8p7EwphBNZ+bVTI0enFaCrsITI8y0Ruo/mN/SaJQ6Hw==}
     peerDependencies:
       vite: '>=2.0.0'
@@ -11527,12 +11755,12 @@ packages:
       fs-extra: 10.0.0
       svg-baker: 1.7.0
       svgo: 2.8.0
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
     transitivePeerDependencies:
       - supports-color
     dev: true
 
-  /vite-plugin-theme/0.8.1_vite@2.7.10:
+  /vite-plugin-theme/0.8.1_vite@2.8.6:
     resolution: {integrity: sha512-kyfcMW9YOBuNWHvORWJoq2tJ53Eaq3O7rFntENHtqp6hbblqdGhGlCzxXDbepVthFCxlyIel8S6EFIsCT6CVfg==}
     peerDependencies:
       vite: '>=2.0.0-beta.49'
@@ -11545,22 +11773,22 @@ packages:
       esbuild: 0.11.23
       esbuild-plugin-alias: 0.1.2
       tinycolor2: 1.4.2
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
     transitivePeerDependencies:
       - supports-color
     dev: true
 
-  /vite-plugin-vue-setup-extend/0.3.0_vite@2.7.10:
+  /vite-plugin-vue-setup-extend/0.3.0_vite@2.8.6:
     resolution: {integrity: sha512-9Nd7Bj4TftB2CoOAD2ZI4cHLW5zjKMF3LNihWbrnAPx3nuGBn33tM9SVUGBVjBB6uv1mGAPavwKCTU0xAD8qhw==}
     peerDependencies:
       vite: '>=2.0.0'
     dependencies:
       '@vue/compiler-sfc': 3.2.26
       magic-string: 0.25.7
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
     dev: true
 
-  /vite-plugin-windicss/1.6.2_vite@2.7.10:
+  /vite-plugin-windicss/1.6.2_vite@2.8.6:
     resolution: {integrity: sha512-JFZmWo2XumDIoOk6wOW7RugVFpq0ACJ7DRT0dPi8KJ0fCNyYF+Wu6xyig7/QOQEAfoMbYxnVeU3CWGU4D5PlyA==}
     peerDependencies:
       vite: ^2.0.1
@@ -11568,14 +11796,14 @@ packages:
       '@windicss/plugin-utils': 1.6.2
       debug: 4.3.3
       kolorist: 1.5.1
-      vite: 2.7.10_less@4.1.2
+      vite: 2.8.6_less@4.1.2
       windicss: 3.4.2
     transitivePeerDependencies:
       - supports-color
     dev: true
 
-  /vite/2.7.10_less@4.1.2:
-    resolution: {integrity: sha512-KEY96ntXUid1/xJihJbgmLZx7QSC2D4Tui0FdS0Old5OokYzFclcofhtxtjDdGOk/fFpPbHv9yw88+rB93Tb8w==}
+  /vite/2.8.6_less@4.1.2:
+    resolution: {integrity: sha512-e4H0QpludOVKkmOsRyqQ7LTcMUDF3mcgyNU4lmi0B5JUbe0ZxeBBl8VoZ8Y6Rfn9eFKYtdXNPcYK97ZwH+K2ug==}
     engines: {node: '>=12.2.0'}
     hasBin: true
     peerDependencies:
@@ -11590,10 +11818,10 @@ packages:
       stylus:
         optional: true
     dependencies:
-      esbuild: 0.13.15
+      esbuild: 0.14.25
       less: 4.1.2
-      postcss: 8.4.5
-      resolve: 1.21.0
+      postcss: 8.4.8
+      resolve: 1.22.0
       rollup: 2.63.0
     optionalDependencies:
       fsevents: 2.3.2

+ 1 - 0
src/locales/lang/zh-CN/routes/scenes.ts

@@ -28,6 +28,7 @@ export default {
   liveName: '直播间名称',
   makeLiveCover: '生成直播间封面',
   sceneUrl: '场景链接',
+  detailAddr: '详细地址',
   roleType: {
     0: '公司管理员',
     1: '公司员工',

+ 1 - 1
src/views/scenes/live.vue

@@ -285,7 +285,7 @@ updateUserId: 427 -->
         openBindModal(true, record);
       }
       function handleLiveOpen(record: Recordable) {
-        console.log('record', record);
+        // console.log('record', record);
         openLiveDrawer(true, record);
       }
       return {

+ 62 - 17
src/views/scenes/liveDrawer.vue

@@ -19,7 +19,7 @@
   </BasicDrawer>
 </template>
 <script lang="ts">
-  import { defineComponent, ref, computed, unref, nextTick, onMounted, reactive } from 'vue';
+  import { defineComponent, ref, computed, unref, nextTick, reactive } from 'vue';
   import { BasicForm, useForm, FormSchema } from '/@/components/Form/index';
   // import { Card } from 'ant-design-vue';
   import { BasicDrawer, useDrawerInner } from '/@/components/Drawer';
@@ -38,6 +38,7 @@
   //webapi.amap.com/maps?v=1.4.10&key=e661b00bdf2c44cccf71ef6070ef41b8
 
   // Card
+
   export default defineComponent({
     name: 'MenuDrawer',
     components: { BasicDrawer, BasicForm },
@@ -45,9 +46,16 @@
     setup() {
       const isUpdate = ref(true);
       const wrapRef = ref<HTMLDivElement | null>(null);
+      // Lat(120.262337, 30.178285),
       const defaultAddress = reactive({
         address: '山阴路688号恒隆广场B座1217',
-        longt: '山阴路688号恒隆广场B座1217',
+        // address: '权晖花园21栋',
+        lng: 120.262337,
+        lat: 30.178285,
+        location: ['33', '3301', '330109'],
+        province: '浙江省',
+        city: '杭州市',
+        district: '萧山区',
       });
       console.log('defaultAddress', defaultAddress);
       const { toPromise } = useScript({ src: A_MAP_URL });
@@ -111,12 +119,11 @@
             api: getAllSceneApi,
           },
         },
-        // :fieldNames="{ label: 'name', value: 'code', children: 'children' }"
+
         {
           field: 'location',
           label: '直播间位置',
           component: 'ApiCascader',
-          labelWidth: 100,
           componentProps: {
             api: () => {
               return CascaderData;
@@ -125,19 +132,30 @@
             dataField: 'children',
             labelField: 'name',
             valueField: 'code',
+            // numberToString: true,
             isLeaf: (record) => {
               return !(record.levelType < 3);
             },
+            onChange: (data) => {
+              console.log('data', data);
+            },
           },
           colProps: {
             span: 20,
           },
         },
         {
+          field: 'detailAddr',
+          label: t('routes.scenes.detailAddr'),
+          component: 'Input',
+          colProps: {
+            span: 10,
+          },
+        },
+        {
           field: 'map',
           label: '地图位置',
           component: 'Input',
-          labelWidth: 100,
           slot: 'map',
           colProps: {
             span: 20,
@@ -145,7 +163,7 @@
         },
       ];
       // updateSchema, validate
-      const [registerForm, { resetFields, setFieldsValue }] = useForm({
+      const [registerForm, { resetFields, setFieldsValue, updateSchema }] = useForm({
         labelWidth: 120,
         schemas: schemas,
         showActionButtonGroup: false,
@@ -159,11 +177,8 @@
 
         if (unref(isUpdate)) {
           console.log('data.record', data);
-
-          setFieldsValue({
-            ...data.record,
-          });
         }
+
         initMap();
         // updateSchema({
         //   field: 'parentId',
@@ -183,6 +198,16 @@
         console.log('AMap', AMap);
         // center: [this.longitude || 120.262337, this.latitude || 30.178285],
         // const geocoder = new AMap.Geocoder({});
+        interface AddressComponentType {
+          city: string;
+          district: string;
+          province: string;
+        }
+        interface GeocodesType {
+          adcode: string;
+          addressComponent: AddressComponentType;
+          formattedAddress: string;
+        }
         const map = new AMap.Map(wrapEl, {
           zoom: 18,
           center: [120.262337, 30.178285],
@@ -194,27 +219,47 @@
         AMap.plugin('AMap.Geocoder', function () {
           var geocoder = new AMap.Geocoder({
             // city 指定进行编码查询的城市,支持传入城市名、adcode 和 citycode
-            city: '010',
+            // city: '010',
           });
-
-          geocoder.getLocation('北京市海淀区苏州街', function (status, result) {
+          geocoder.getLocation(defaultAddress.address, async function (status, result) {
             if (status === 'complete' && result.info === 'OK') {
               // result中对应详细地理坐标信息
               console.log('result', result);
+              const { geocodes } = result;
+              if (geocodes?.length > 0) {
+                const { adcode, addressComponent } = geocodes[0] as any as GeocodesType;
+                defaultAddress.location = getCodeArray(adcode);
+
+                await updateSchema({
+                  field: 'location',
+                  componentProps: {
+                    displayRenderArray: [
+                      addressComponent.province,
+                      addressComponent.city,
+                      addressComponent.district,
+                    ],
+                  },
+                });
+                await setFieldsValue({
+                  location: defaultAddress.location,
+                });
+              }
             }
           });
         });
 
         const marker = new AMap.Marker({
-          position: new AMap.LngLat(120.262337, 30.178285),
+          position: new AMap.LngLat(defaultAddress.lng, defaultAddress.lat),
           title: 'lala',
         });
         map.add(marker);
       }
-      onMounted(() => {
-        initMap();
-      });
 
+      function getCodeArray(code: string) {
+        const pdCode = code.slice(0, 2);
+        const cityCode = code.slice(2, 4);
+        return [pdCode, cityCode, code];
+      }
       const getTitle = computed(() => (!unref(isUpdate) ? '新增直播间' : '编辑直播间'));
 
       async function handleSubmit() {}

+ 2 - 1
vite.config.ts

@@ -62,7 +62,8 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
       proxy: createProxy(VITE_PROXY),
     },
     build: {
-      minify: false,
+      // minify: false,
+      minify: 'terser',
       // target: 'es2015',
       // cssTarget: 'chrome86',
       outDir: OUTPUT_DIR,