linwenxin hai 1 ano
pai
achega
1179173e44
Modificáronse 4 ficheiros con 32 adicións e 32 borrados
  1. 3 3
      package-lock.json
  2. 1 1
      package.json
  3. 26 26
      src/main.js
  4. 2 2
      vue.config.js

+ 3 - 3
package-lock.json

@@ -4716,9 +4716,9 @@
       "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ=="
     },
     "@zjlib/element-plugins": {
-      "version": "2.13.17",
-      "resolved": "http://121.41.110.30:4873/@zjlib%2felement-plugins/-/element-plugins-2.13.17.tgz",
-      "integrity": "sha512-a8hnaMRrX1VBwjXCCmU7coz4Sj+WAJlF/M9SXeycp7dWtk7pQ4jId2UElH8AJdCxnay+cw1e5UG5b7WFgXQ1Fg==",
+      "version": "2.13.18",
+      "resolved": "http://121.41.110.30:4873/@zjlib%2felement-plugins/-/element-plugins-2.13.18.tgz",
+      "integrity": "sha512-P9gMVRm/wlzlR+uAJvARH8jkf7wOCk9XWx6NcN5mZqM04li079GNpaHp9Qb0s9f9j0G4fMCBVuZGtm2BBpEo3A==",
       "requires": {
         "@turf/turf": "^6.5.0",
         "@vuemap/vue-amap": "^0.1.12",

+ 1 - 1
package.json

@@ -18,7 +18,7 @@
     "@turf/turf": "^6.5.0",
     "@vue-office/excel": "^1.3.0",
     "@vue/composition-api": "^1.7.1",
-    "@zjlib/element-plugins": "^2.13.17",
+    "@zjlib/element-plugins": "^2.13.18",
     "@zjlib/element-ui2": "^1.0.3",
     "axios": "0.18.1",
     "chatgpt": "^4.1.2",

+ 26 - 26
src/main.js

@@ -50,43 +50,43 @@ window._AMapSecurityConfig = {
   serviceHost: 'https://jiasm.zfire.top/' + '_AMapService'
 }
 
-// import '@zjlib/element-plugins/dest/element-plugins.css'
-// import ElementPlugins, { AMap } from '@zjlib/element-plugins'
-// Vue.use(ElementPlugins, {
-//   // 表单页面表单属性配置
-//   formAttributes: {
-//     'label-position': 'right'
-//   }
-//   // // 操作记录配置
-//   // operationRecord: function (options) {
-//   //   // console.log(options.meta.moduleId)
-//   //   // return new Promise((r, j) => {
-//   //   //   r([[], []])
-//   //   // })
-//   // }
-// })
-// Vue.use(AMap)
-// AMap.initAMapApiLoader({
-//   // 高德的key
-//   key: '5894bf90997454b0df3c3d60cab12f64',
-//   version: '2.0',
-//   plugins: ['AMap.Geocoder', 'AMap.AutoComplete', 'AMap.PlaceSearch', 'AMap.DistrictSearch']
-// })
-
-// 本地引用;
-import ElementPlugins, { AMap } from '@packages'
+import '@zjlib/element-plugins/dest/element-plugins.css'
+import ElementPlugins, { AMap } from '@zjlib/element-plugins'
 Vue.use(ElementPlugins, {
+  // 表单页面表单属性配置
   formAttributes: {
     'label-position': 'right'
   }
+  // // 操作记录配置
+  // operationRecord: function (options) {
+  //   // console.log(options.meta.moduleId)
+  //   // return new Promise((r, j) => {
+  //   //   r([[], []])
+  //   // })
+  // }
 })
 Vue.use(AMap)
 AMap.initAMapApiLoader({
   // 高德的key
   key: '5894bf90997454b0df3c3d60cab12f64',
-  plugins: ['AMap.Geocoder', 'AMap.AutoComplete', 'AMap.PlaceSearch']
+  version: '2.0',
+  plugins: ['AMap.Geocoder', 'AMap.AutoComplete', 'AMap.PlaceSearch', 'AMap.DistrictSearch']
 })
 
+// // 本地引用;
+// import ElementPlugins, { AMap } from '@packages'
+// Vue.use(ElementPlugins, {
+//   formAttributes: {
+//     'label-position': 'right'
+//   }
+// })
+// Vue.use(AMap)
+// AMap.initAMapApiLoader({
+//   // 高德的key
+//   key: '5894bf90997454b0df3c3d60cab12f64',
+//   plugins: ['AMap.Geocoder', 'AMap.AutoComplete', 'AMap.PlaceSearch']
+// })
+
 import '@/utils/time.js'
 import { getIPAdd } from '@/utils/lbs.js'
 

+ 2 - 2
vue.config.js

@@ -77,8 +77,8 @@ module.exports = {
     resolve: {
       alias: {
         '@': resolve('src'),
-        'element-ui': resolve('node_modules/@zjlib/element-ui2'),
-        '@packages': resolve('../element-plugins/packages')
+        'element-ui': resolve('node_modules/@zjlib/element-ui2')
+        // '@packages': resolve('../element-plugins/packages')
       },
       extensions: ['*', '.js', '.vue', '.json']
     },