vue2-client 1.18.38 → 1.18.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/.eslintrc.js +90 -90
  2. package/Components.md +60 -60
  3. package/docs/index.md +30 -30
  4. package/index.js +31 -31
  5. package/jest-transform-stub.js +8 -8
  6. package/jest.setup.js +7 -7
  7. package/package.json +1 -1
  8. package/src/assets/img/querySlotDemo.svg +15 -15
  9. package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
  10. package/src/base-client/components/common/CitySelect/index.js +3 -3
  11. package/src/base-client/components/common/CitySelect/index.md +109 -109
  12. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +669 -669
  13. package/src/base-client/components/common/CreateQuery/index.js +3 -3
  14. package/src/base-client/components/common/CreateQuery/index.md +42 -42
  15. package/src/base-client/components/common/CreateSimpleFormQuery/index.js +3 -3
  16. package/src/base-client/components/common/CreateSimpleFormQuery/index.md +42 -42
  17. package/src/base-client/components/common/FormGroupEdit/index.js +3 -3
  18. package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
  19. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +166 -166
  20. package/src/base-client/components/common/FormGroupQuery/index.js +3 -3
  21. package/src/base-client/components/common/FormGroupQuery/index.md +43 -43
  22. package/src/base-client/components/common/JSONToTree/jsontotree.vue +271 -271
  23. package/src/base-client/components/common/PersonSetting/PersonSetting.vue +208 -208
  24. package/src/base-client/components/common/PersonSetting/index.js +3 -3
  25. package/src/base-client/components/common/Tree/Tree.vue +149 -149
  26. package/src/base-client/components/common/Tree/index.js +2 -2
  27. package/src/base-client/components/common/Upload/index.js +3 -3
  28. package/src/base-client/components/common/XAddNativeForm/index.md +146 -146
  29. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  30. package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -180
  31. package/src/base-client/components/common/XDataDrawer/index.js +3 -3
  32. package/src/base-client/components/common/XDataDrawer/index.md +41 -41
  33. package/src/base-client/components/common/XDatePicker/demo.vue +31 -0
  34. package/src/base-client/components/common/XDatePicker/index.vue +61 -0
  35. package/src/base-client/components/common/XDescriptions/index.js +3 -3
  36. package/src/base-client/components/common/XDescriptions/index.md +322 -322
  37. package/src/base-client/components/common/XForm/XForm.vue +5 -3
  38. package/src/base-client/components/common/XForm/XFormItem.vue +1 -1
  39. package/src/base-client/components/common/XForm/index.md +178 -178
  40. package/src/base-client/components/common/XFormTable/demo.vue +125 -125
  41. package/src/base-client/components/common/XReport/print.js +186 -186
  42. package/src/base-client/components/common/XStepView/XStepView.vue +252 -252
  43. package/src/base-client/components/common/XStepView/index.js +3 -3
  44. package/src/base-client/components/common/XStepView/index.md +31 -31
  45. package/src/base-client/components/common/XTable/XTable.vue +1715 -1715
  46. package/src/base-client/components/common/XTable/XTableWrapper.vue +769 -769
  47. package/src/base-client/components/common/XTable/index.md +255 -255
  48. package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
  49. package/src/base-client/plugins/Config.js +19 -19
  50. package/src/base-client/plugins/tabs-page-plugin.js +39 -39
  51. package/src/components/Charts/Bar.vue +62 -62
  52. package/src/components/Charts/ChartCard.vue +134 -134
  53. package/src/components/Charts/Liquid.vue +67 -67
  54. package/src/components/Charts/MiniArea.vue +39 -39
  55. package/src/components/Charts/MiniBar.vue +39 -39
  56. package/src/components/Charts/MiniProgress.vue +75 -75
  57. package/src/components/Charts/MiniSmoothArea.vue +40 -40
  58. package/src/components/Charts/Radar.vue +68 -68
  59. package/src/components/Charts/RankList.vue +77 -77
  60. package/src/components/Charts/TagCloud.vue +113 -113
  61. package/src/components/Charts/TransferBar.vue +64 -64
  62. package/src/components/Charts/Trend.vue +82 -82
  63. package/src/components/Charts/chart.less +12 -12
  64. package/src/components/Charts/smooth.area.less +13 -13
  65. package/src/components/NumberInfo/NumberInfo.vue +54 -54
  66. package/src/components/NumberInfo/index.js +3 -3
  67. package/src/components/NumberInfo/index.less +54 -54
  68. package/src/components/NumberInfo/index.md +43 -43
  69. package/src/components/card/ChartCard.vue +79 -79
  70. package/src/components/chart/Bar.vue +60 -60
  71. package/src/components/chart/MiniArea.vue +67 -67
  72. package/src/components/chart/MiniBar.vue +59 -59
  73. package/src/components/chart/MiniProgress.vue +57 -57
  74. package/src/components/chart/Radar.vue +80 -80
  75. package/src/components/chart/RankingList.vue +60 -60
  76. package/src/components/chart/Trend.vue +79 -79
  77. package/src/components/chart/index.less +9 -9
  78. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  79. package/src/components/input/IInput.vue +66 -66
  80. package/src/components/menu/SideMenu.vue +75 -75
  81. package/src/components/menu/menu.js +273 -273
  82. package/src/components/tool/AStepItem.vue +60 -60
  83. package/src/layouts/CommonLayout.vue +56 -56
  84. package/src/layouts/header/HeaderNotice.vue +177 -177
  85. package/src/lib.js +1 -1
  86. package/src/mock/extend/index.js +84 -84
  87. package/src/mock/goods/index.js +108 -108
  88. package/src/pages/dashboard/workplace/WorkPlace.vue +141 -141
  89. package/src/pages/system/dictionary/index.vue +44 -44
  90. package/src/pages/system/monitor/loginInfor/index.vue +37 -37
  91. package/src/pages/system/monitor/operLog/index.vue +37 -37
  92. package/src/services/api/cas.js +79 -79
  93. package/src/store/modules/setting.js +119 -119
  94. package/src/utils/authority-utils.js +85 -85
  95. package/src/utils/errorCode.js +6 -6
  96. package/src/utils/map-utils.js +47 -47
  97. package/vue.config.js +4 -4
  98. package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
@@ -1,47 +1,47 @@
1
- import AMapLoader from '@amap/amap-jsapi-loader'
2
- let Amap
3
- async function GetGDMap (secretKey, key) {
4
- if (!Amap) {
5
- window._AMapSecurityConfig = {
6
- securityJsCode: secretKey
7
- }
8
- // 解决高德地图加载报错 ---> 禁止多种API加载方式混用
9
- AMapLoader.reset()
10
- Amap = await AMapLoader.load({
11
- key: key, // 申请好的Web端开发者Key,首次调用 load 时必填
12
- version: '2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
13
- plugins: ['AMap.IndexCluster', 'AMP.MarkerCluster', 'AMap.InfoWindow', 'AMap.HeatMap', 'AMap.HawkEye', 'AMap.DistrictSearch',
14
- 'AMap.ToolBar', 'AMap.Geolocation', 'AMap.MouseTool',
15
- 'AMap.Geocoder', 'AMap.MarkerClusterer', 'AMap.AutoComplete', 'AMap.Scale'], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
16
- AMapUI: {
17
- version: '1.1', // AMapUI 缺省 1.1
18
- plugins: ['misc/PositionPicker'] // 需要加载的 AMapUI ui插件
19
- }
20
- })
21
- }
22
- return Amap
23
- }
24
-
25
- async function getGDMap (address) {
26
- new (await GetGDMap()).Geocoder({
27
- radius: 500 // 范围,默认:500
28
- }).getLocation(address, function (status, result) {
29
- if (status === 'complete' && result.geocodes.length) {
30
- return ({ lng: result.geocodes[0].location.lng, lat: result.geocodes[0].location.lat })
31
- } else {
32
- // eslint-disable-next-line prefer-promise-reject-errors
33
- throw new Error('根据经纬度查询地址失败')
34
- }
35
- })
36
- }
37
-
38
- async function GetLocation (address) {
39
- return new Promise((resolve, reject) => {
40
- try {
41
- resolve(getGDMap(address))
42
- } catch (e) {
43
- reject(e)
44
- }
45
- })
46
- }
47
- export { GetGDMap, GetLocation }
1
+ import AMapLoader from '@amap/amap-jsapi-loader'
2
+ let Amap
3
+ async function GetGDMap (secretKey, key) {
4
+ if (!Amap) {
5
+ window._AMapSecurityConfig = {
6
+ securityJsCode: secretKey
7
+ }
8
+ // 解决高德地图加载报错 ---> 禁止多种API加载方式混用
9
+ AMapLoader.reset()
10
+ Amap = await AMapLoader.load({
11
+ key: key, // 申请好的Web端开发者Key,首次调用 load 时必填
12
+ version: '2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
13
+ plugins: ['AMap.IndexCluster', 'AMP.MarkerCluster', 'AMap.InfoWindow', 'AMap.HeatMap', 'AMap.HawkEye', 'AMap.DistrictSearch',
14
+ 'AMap.ToolBar', 'AMap.Geolocation', 'AMap.MouseTool',
15
+ 'AMap.Geocoder', 'AMap.MarkerClusterer', 'AMap.AutoComplete', 'AMap.Scale'], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
16
+ AMapUI: {
17
+ version: '1.1', // AMapUI 缺省 1.1
18
+ plugins: ['misc/PositionPicker'] // 需要加载的 AMapUI ui插件
19
+ }
20
+ })
21
+ }
22
+ return Amap
23
+ }
24
+
25
+ async function getGDMap (address) {
26
+ new (await GetGDMap()).Geocoder({
27
+ radius: 500 // 范围,默认:500
28
+ }).getLocation(address, function (status, result) {
29
+ if (status === 'complete' && result.geocodes.length) {
30
+ return ({ lng: result.geocodes[0].location.lng, lat: result.geocodes[0].location.lat })
31
+ } else {
32
+ // eslint-disable-next-line prefer-promise-reject-errors
33
+ throw new Error('根据经纬度查询地址失败')
34
+ }
35
+ })
36
+ }
37
+
38
+ async function GetLocation (address) {
39
+ return new Promise((resolve, reject) => {
40
+ try {
41
+ resolve(getGDMap(address))
42
+ } catch (e) {
43
+ reject(e)
44
+ }
45
+ })
46
+ }
47
+ export { GetGDMap, GetLocation }
package/vue.config.js CHANGED
@@ -53,13 +53,13 @@ module.exports = {
53
53
  changeOrigin: true
54
54
  },
55
55
  '/api/af-linepatrol/': {
56
- pathRewrite: { '^/api/af-linepatrol/': '/' },
57
- target: 'http://127.0.0.1:9012',
56
+ // pathRewrite: { '^/api/af-linepatrol/': '/' },
57
+ target: revenue,
58
58
  changeOrigin: true
59
59
  },
60
60
  '/api/linepatrol/': {
61
- pathRewrite: { '^/api/linepatrol/': '/' },
62
- target: 'http://127.0.0.1:9012',
61
+ // pathRewrite: { '^/api/linepatrol/': '/' },
62
+ target: revenue,
63
63
  changeOrigin: true
64
64
  },
65
65
  // '/api/af-system/resource': {
@@ -1,15 +1,15 @@
1
- # vue2迁移vue3
2
-
3
- 1. 完成vue-cli,webpack,babel,eslint的升级
4
- - core-js 3.30.1 -> 3.33.0
5
- - add regenerator-runtime
6
- - @babel/core 7.21.4 -> 7.22.20
7
- - babel-eslint 10.1.0 -> @babel/eslint-parser 7.22.15
8
- - @vue/cli 4.5.19 -> 5.0.8
9
- - babel-jest 25.5.1 -> 26.6.3
10
- - eslint 6.8.0 -> 7.32.0
11
- - jest 24.0.0 -> 26.6.3
12
- - webpack 4.46.0 -> 5.88.2
13
- 2. 完成vue2的2.7升级
14
- - vue 2.6.14 -> 2.7.14
15
- - eslint 7.32.0 -> 8.51.0
1
+ # vue2迁移vue3
2
+
3
+ 1. 完成vue-cli,webpack,babel,eslint的升级
4
+ - core-js 3.30.1 -> 3.33.0
5
+ - add regenerator-runtime
6
+ - @babel/core 7.21.4 -> 7.22.20
7
+ - babel-eslint 10.1.0 -> @babel/eslint-parser 7.22.15
8
+ - @vue/cli 4.5.19 -> 5.0.8
9
+ - babel-jest 25.5.1 -> 26.6.3
10
+ - eslint 6.8.0 -> 7.32.0
11
+ - jest 24.0.0 -> 26.6.3
12
+ - webpack 4.46.0 -> 5.88.2
13
+ 2. 完成vue2的2.7升级
14
+ - vue 2.6.14 -> 2.7.14
15
+ - eslint 7.32.0 -> 8.51.0