vue2-client 1.14.28 → 1.14.30
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.
- package/package.json +108 -108
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +95 -55
- package/src/base-client/components/common/AmapMarker/index.js +3 -3
- package/src/base-client/components/common/XDetailsView/index.js +3 -3
- package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
- package/src/base-client/components/common/XReport/print.js +186 -186
- package/src/base-client/components/his/XList/XList.vue +8 -2
- package/src/base-client/components/his/XTitle/XTitle.vue +74 -127
- package/src/utils/map-utils.js +47 -47
- package/src/utils/request.js +378 -378
package/package.json
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vue2-client",
|
|
3
|
-
"version": "1.14.
|
|
4
|
-
"private": false,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
|
|
7
|
-
"serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
|
|
8
|
-
"serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
|
|
9
|
-
"serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
|
|
10
|
-
"serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
|
|
11
|
-
"serve:iot": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode iot",
|
|
12
|
-
"serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
|
|
13
|
-
"serve:runtime": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode runtime",
|
|
14
|
-
"mac-serve": "vue-cli-service serve --no-eslint --mode his",
|
|
15
|
-
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
|
16
|
-
"test:unit": "vue-cli-service test:unit",
|
|
17
|
-
"lint": "vue-cli-service lint",
|
|
18
|
-
"build:preview": "vue-cli-service build --mode preview",
|
|
19
|
-
"lint:nofix": "vue-cli-service lint --no-fix",
|
|
20
|
-
"test": "jest"
|
|
21
|
-
},
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"@afwenming123/vue-easy-tree": "^1.0.1",
|
|
24
|
-
"@afwenming123/vue-plugin-hiprint": "^0.0.70",
|
|
25
|
-
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
26
|
-
"@antv/data-set": "^0.11.8",
|
|
27
|
-
"@antv/g2plot": "^2.4.31",
|
|
28
|
-
"@hufe921/canvas-editor": "^0.9.49",
|
|
29
|
-
"@microsoft/fetch-event-source": "^2.0.1",
|
|
30
|
-
"@vue/babel-preset-jsx": "^1.4.0",
|
|
31
|
-
"animate.css": "^4.1.1",
|
|
32
|
-
"ant-design-vue": "^1.7.8",
|
|
33
|
-
"axios": "^0.27.2",
|
|
34
|
-
"clipboard": "^2.0.11",
|
|
35
|
-
"core-js": "^3.33.0",
|
|
36
|
-
"crypto-js": "^4.1.1",
|
|
37
|
-
"date-fns": "^2.29.3",
|
|
38
|
-
"default-passive-events": "^2.0.0",
|
|
39
|
-
"dotenv": "^16.3.1",
|
|
40
|
-
"echarts": "^5.5.0",
|
|
41
|
-
"enquire.js": "^2.1.6",
|
|
42
|
-
"file-saver": "^2.0.5",
|
|
43
|
-
"highlight.js": "^11.7.0",
|
|
44
|
-
"html2canvas": "^1.4.1",
|
|
45
|
-
"js-base64": "^3.7.5",
|
|
46
|
-
"js-cookie": "^2.2.1",
|
|
47
|
-
"jsencrypt": "^3.3.2",
|
|
48
|
-
"jspdf": "^2.5.1",
|
|
49
|
-
"lodash.clonedeep": "^4.5.0",
|
|
50
|
-
"lodash.debounce": "^4",
|
|
51
|
-
"lodash.get": "^4.4.2",
|
|
52
|
-
"marked": "^4",
|
|
53
|
-
"mockjs": "^1.1.0",
|
|
54
|
-
"nprogress": "^0.2.0",
|
|
55
|
-
"qs": "^6.11.2",
|
|
56
|
-
"regenerator-runtime": "^0.14.0",
|
|
57
|
-
"videojs-contrib-hls": "^5.15.0",
|
|
58
|
-
"viser-vue": "^2.4.8",
|
|
59
|
-
"vue": "^2.7.14",
|
|
60
|
-
"vue-codemirror": "4.0.6",
|
|
61
|
-
"vue-draggable-resizable": "^2",
|
|
62
|
-
"vue-i18n": "^8.28.2",
|
|
63
|
-
"vue-json-viewer": "^2.2.22",
|
|
64
|
-
"vue-router": "^3.6.5",
|
|
65
|
-
"vue-video-player": "^5.0.2",
|
|
66
|
-
"vue-virtual-scroller": "^1.1.2",
|
|
67
|
-
"vuedraggable": "^2.24.3",
|
|
68
|
-
"vuex": "^3.6.2",
|
|
69
|
-
"xlsx": "0.18.5"
|
|
70
|
-
},
|
|
71
|
-
"devDependencies": {
|
|
72
|
-
"@ant-design/colors": "^7.0.0",
|
|
73
|
-
"@babel/core": "^7.22.20",
|
|
74
|
-
"@babel/eslint-parser": "^7.22.15",
|
|
75
|
-
"@babel/preset-env": "^7.22.20",
|
|
76
|
-
"@vue/cli-plugin-babel": "^5.0.8",
|
|
77
|
-
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
78
|
-
"@vue/cli-service": "^5.0.8",
|
|
79
|
-
"@vue/eslint-config-standard": "^8.0.1",
|
|
80
|
-
"@vue/test-utils": "^1.3.6",
|
|
81
|
-
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
82
|
-
"compression-webpack-plugin": "^10.0.0",
|
|
83
|
-
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
84
|
-
"deepmerge": "^4.3.1",
|
|
85
|
-
"eslint": "^8.51.0",
|
|
86
|
-
"eslint-plugin-vue": "^9.17.0",
|
|
87
|
-
"fast-deep-equal": "^3.1.3",
|
|
88
|
-
"ignore-loader": "^0.1.2",
|
|
89
|
-
"jest": "^29.7.0",
|
|
90
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
91
|
-
"jest-transform-stub": "^2.0.0",
|
|
92
|
-
"less-loader": "^6.2.0",
|
|
93
|
-
"script-loader": "^0.7.2",
|
|
94
|
-
"style-resources-loader": "^1.5.0",
|
|
95
|
-
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
96
|
-
"vue-jest": "^4.0.1",
|
|
97
|
-
"vue-template-compiler": "^2.7.14",
|
|
98
|
-
"webpack": "^5.88.2",
|
|
99
|
-
"webpack-theme-color-replacer": "^1.4.7",
|
|
100
|
-
"whatwg-fetch": "^3.6.19"
|
|
101
|
-
},
|
|
102
|
-
"browserslist": [
|
|
103
|
-
"> 1%",
|
|
104
|
-
"last 2 versions",
|
|
105
|
-
"not dead",
|
|
106
|
-
"not ie 11"
|
|
107
|
-
]
|
|
108
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vue2-client",
|
|
3
|
+
"version": "1.14.30",
|
|
4
|
+
"private": false,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
|
|
7
|
+
"serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
|
|
8
|
+
"serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
|
|
9
|
+
"serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
|
|
10
|
+
"serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
|
|
11
|
+
"serve:iot": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode iot",
|
|
12
|
+
"serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
|
|
13
|
+
"serve:runtime": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode runtime",
|
|
14
|
+
"mac-serve": "vue-cli-service serve --no-eslint --mode his",
|
|
15
|
+
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
|
16
|
+
"test:unit": "vue-cli-service test:unit",
|
|
17
|
+
"lint": "vue-cli-service lint",
|
|
18
|
+
"build:preview": "vue-cli-service build --mode preview",
|
|
19
|
+
"lint:nofix": "vue-cli-service lint --no-fix",
|
|
20
|
+
"test": "jest"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@afwenming123/vue-easy-tree": "^1.0.1",
|
|
24
|
+
"@afwenming123/vue-plugin-hiprint": "^0.0.70",
|
|
25
|
+
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
26
|
+
"@antv/data-set": "^0.11.8",
|
|
27
|
+
"@antv/g2plot": "^2.4.31",
|
|
28
|
+
"@hufe921/canvas-editor": "^0.9.49",
|
|
29
|
+
"@microsoft/fetch-event-source": "^2.0.1",
|
|
30
|
+
"@vue/babel-preset-jsx": "^1.4.0",
|
|
31
|
+
"animate.css": "^4.1.1",
|
|
32
|
+
"ant-design-vue": "^1.7.8",
|
|
33
|
+
"axios": "^0.27.2",
|
|
34
|
+
"clipboard": "^2.0.11",
|
|
35
|
+
"core-js": "^3.33.0",
|
|
36
|
+
"crypto-js": "^4.1.1",
|
|
37
|
+
"date-fns": "^2.29.3",
|
|
38
|
+
"default-passive-events": "^2.0.0",
|
|
39
|
+
"dotenv": "^16.3.1",
|
|
40
|
+
"echarts": "^5.5.0",
|
|
41
|
+
"enquire.js": "^2.1.6",
|
|
42
|
+
"file-saver": "^2.0.5",
|
|
43
|
+
"highlight.js": "^11.7.0",
|
|
44
|
+
"html2canvas": "^1.4.1",
|
|
45
|
+
"js-base64": "^3.7.5",
|
|
46
|
+
"js-cookie": "^2.2.1",
|
|
47
|
+
"jsencrypt": "^3.3.2",
|
|
48
|
+
"jspdf": "^2.5.1",
|
|
49
|
+
"lodash.clonedeep": "^4.5.0",
|
|
50
|
+
"lodash.debounce": "^4",
|
|
51
|
+
"lodash.get": "^4.4.2",
|
|
52
|
+
"marked": "^4",
|
|
53
|
+
"mockjs": "^1.1.0",
|
|
54
|
+
"nprogress": "^0.2.0",
|
|
55
|
+
"qs": "^6.11.2",
|
|
56
|
+
"regenerator-runtime": "^0.14.0",
|
|
57
|
+
"videojs-contrib-hls": "^5.15.0",
|
|
58
|
+
"viser-vue": "^2.4.8",
|
|
59
|
+
"vue": "^2.7.14",
|
|
60
|
+
"vue-codemirror": "4.0.6",
|
|
61
|
+
"vue-draggable-resizable": "^2",
|
|
62
|
+
"vue-i18n": "^8.28.2",
|
|
63
|
+
"vue-json-viewer": "^2.2.22",
|
|
64
|
+
"vue-router": "^3.6.5",
|
|
65
|
+
"vue-video-player": "^5.0.2",
|
|
66
|
+
"vue-virtual-scroller": "^1.1.2",
|
|
67
|
+
"vuedraggable": "^2.24.3",
|
|
68
|
+
"vuex": "^3.6.2",
|
|
69
|
+
"xlsx": "0.18.5"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@ant-design/colors": "^7.0.0",
|
|
73
|
+
"@babel/core": "^7.22.20",
|
|
74
|
+
"@babel/eslint-parser": "^7.22.15",
|
|
75
|
+
"@babel/preset-env": "^7.22.20",
|
|
76
|
+
"@vue/cli-plugin-babel": "^5.0.8",
|
|
77
|
+
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
78
|
+
"@vue/cli-service": "^5.0.8",
|
|
79
|
+
"@vue/eslint-config-standard": "^8.0.1",
|
|
80
|
+
"@vue/test-utils": "^1.3.6",
|
|
81
|
+
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
82
|
+
"compression-webpack-plugin": "^10.0.0",
|
|
83
|
+
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
84
|
+
"deepmerge": "^4.3.1",
|
|
85
|
+
"eslint": "^8.51.0",
|
|
86
|
+
"eslint-plugin-vue": "^9.17.0",
|
|
87
|
+
"fast-deep-equal": "^3.1.3",
|
|
88
|
+
"ignore-loader": "^0.1.2",
|
|
89
|
+
"jest": "^29.7.0",
|
|
90
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
91
|
+
"jest-transform-stub": "^2.0.0",
|
|
92
|
+
"less-loader": "^6.2.0",
|
|
93
|
+
"script-loader": "^0.7.2",
|
|
94
|
+
"style-resources-loader": "^1.5.0",
|
|
95
|
+
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
96
|
+
"vue-jest": "^4.0.1",
|
|
97
|
+
"vue-template-compiler": "^2.7.14",
|
|
98
|
+
"webpack": "^5.88.2",
|
|
99
|
+
"webpack-theme-color-replacer": "^1.4.7",
|
|
100
|
+
"whatwg-fetch": "^3.6.19"
|
|
101
|
+
},
|
|
102
|
+
"browserslist": [
|
|
103
|
+
"> 1%",
|
|
104
|
+
"last 2 versions",
|
|
105
|
+
"not dead",
|
|
106
|
+
"not ie 11"
|
|
107
|
+
]
|
|
108
|
+
}
|
|
@@ -29,7 +29,9 @@
|
|
|
29
29
|
title="地址选择"
|
|
30
30
|
@ok="selected"
|
|
31
31
|
:zIndex="m_index"
|
|
32
|
-
:destroyOnClose="true"
|
|
32
|
+
:destroyOnClose="true"
|
|
33
|
+
width="70%"
|
|
34
|
+
>
|
|
33
35
|
<div class="certain-category-search-wrapper">
|
|
34
36
|
<a-auto-complete
|
|
35
37
|
style="right: 0px;width: 90%;z-index:2;margin-top:2%;"
|
|
@@ -189,15 +191,92 @@ export default {
|
|
|
189
191
|
radius: 500 // 范围,默认:500
|
|
190
192
|
})
|
|
191
193
|
this.map.addControl(new (aMap).ToolBar()) // 初始化工具插件
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
194
|
+
|
|
195
|
+
// 等待地图加载完成
|
|
196
|
+
this.map.on('complete', () => {
|
|
197
|
+
// 获取地图中心点
|
|
198
|
+
const center = this.map.getCenter()
|
|
199
|
+
|
|
200
|
+
// 创建标记对象 - 使用默认样式
|
|
201
|
+
this.marker = new (aMap).Marker({
|
|
202
|
+
position: [center.lng, center.lat], // 使用地图中心点作为初始位置
|
|
203
|
+
map: this.map // 直接在地图创建时添加标记
|
|
204
|
+
})
|
|
205
|
+
|
|
206
|
+
// 获取中心点地址信息
|
|
207
|
+
this.geocoder.getAddress(center, (status, result) => {
|
|
208
|
+
if (status === 'complete' && result.info === 'OK') {
|
|
209
|
+
const addressComponent = result.regeocode.addressComponent
|
|
210
|
+
this.divisions.province = addressComponent.province
|
|
211
|
+
this.divisions.city = addressComponent.city
|
|
212
|
+
this.divisions.district = addressComponent.district
|
|
213
|
+
this.divisions.township = addressComponent.township
|
|
214
|
+
this.divisions.towncode = addressComponent.towncode
|
|
215
|
+
this.divisions.street = addressComponent.street
|
|
216
|
+
|
|
217
|
+
// 获取小区信息
|
|
218
|
+
if (result.regeocode.aois && result.regeocode.aois.length) {
|
|
219
|
+
this.divisions.area = result.regeocode.aois[0].name
|
|
220
|
+
} else if (result.regeocode.pois && result.regeocode.pois.length) {
|
|
221
|
+
this.divisions.area = result.regeocode.pois[0].name
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
this.divisions.str = `${addressComponent.province}${addressComponent.city}${addressComponent.district}${addressComponent.township}`
|
|
225
|
+
|
|
226
|
+
if (this.divisions.str && result.regeocode.formattedAddress.startsWith(this.divisions.str)) {
|
|
227
|
+
this.readOnlyDivisions = true
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
this.addressObj.address = result.regeocode.formattedAddress
|
|
231
|
+
this.addressObj.lng_lat = `${center.lng},${center.lat}`
|
|
232
|
+
}
|
|
233
|
+
})
|
|
234
|
+
})
|
|
235
|
+
|
|
236
|
+
// 添加地图点击事件
|
|
237
|
+
this.map.on('click', (e) => {
|
|
238
|
+
const lnglat = e.lnglat
|
|
239
|
+
this.curPosition = lnglat
|
|
240
|
+
|
|
241
|
+
// 更新标记位置
|
|
242
|
+
this.marker.setPosition([lnglat.lng, lnglat.lat])
|
|
243
|
+
|
|
244
|
+
// 将地图中心移动到点击位置
|
|
245
|
+
this.map.setCenter([lnglat.lng, lnglat.lat])
|
|
246
|
+
|
|
247
|
+
// 获取点击位置的地址信息
|
|
248
|
+
this.geocoder.getAddress(lnglat, (status, result) => {
|
|
249
|
+
if (status === 'complete' && result.info === 'OK') {
|
|
250
|
+
const addressComponent = result.regeocode.addressComponent
|
|
251
|
+
this.divisions.province = addressComponent.province
|
|
252
|
+
this.divisions.city = addressComponent.city
|
|
253
|
+
this.divisions.district = addressComponent.district
|
|
254
|
+
this.divisions.township = addressComponent.township
|
|
255
|
+
this.divisions.towncode = addressComponent.towncode
|
|
256
|
+
this.divisions.street = addressComponent.street
|
|
257
|
+
|
|
258
|
+
// 获取小区信息
|
|
259
|
+
if (result.regeocode.aois && result.regeocode.aois.length) {
|
|
260
|
+
this.divisions.area = result.regeocode.aois[0].name
|
|
261
|
+
} else if (result.regeocode.pois && result.regeocode.pois.length) {
|
|
262
|
+
this.divisions.area = result.regeocode.pois[0].name
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
this.divisions.str = `${addressComponent.province}${addressComponent.city}${addressComponent.district}${addressComponent.township}`
|
|
266
|
+
|
|
267
|
+
if (this.divisions.str && result.regeocode.formattedAddress.startsWith(this.divisions.str)) {
|
|
268
|
+
this.readOnlyDivisions = true
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
if (!this.searchFlag) {
|
|
272
|
+
this.addressObj.address = result.regeocode.formattedAddress
|
|
273
|
+
this.addressObj.lng_lat = `${lnglat.lng},${lnglat.lat}`
|
|
274
|
+
} else {
|
|
275
|
+
this.searchFlag = false
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
})
|
|
279
|
+
})
|
|
201
280
|
},
|
|
202
281
|
onSelect (value) {
|
|
203
282
|
// 选中地址后不触发更新坐标
|
|
@@ -214,7 +293,11 @@ export default {
|
|
|
214
293
|
const label = labelMatch ? labelMatch[1].trim() : null
|
|
215
294
|
this.addressObj.address = this.mergeAddressAndLabel(this.addressObj.address, label)
|
|
216
295
|
this.addressObj.lng_lat = coordinatesMatch ? coordinatesMatch[1] : ''
|
|
217
|
-
|
|
296
|
+
|
|
297
|
+
// 更新地图中心和标记位置
|
|
298
|
+
const [lng, lat] = this.addressObj.lng_lat.split(',')
|
|
299
|
+
this.map.setCenter([lng, lat])
|
|
300
|
+
this.marker.setPosition([lng, lat])
|
|
218
301
|
},
|
|
219
302
|
mergeAddressAndLabel (address, label = '') {
|
|
220
303
|
// 从地址的末尾开始匹配标签的开头部分
|
|
@@ -337,53 +420,10 @@ export default {
|
|
|
337
420
|
GetGDMap(this.gaode_secret_key, this.gaode_key).then(aMap => {
|
|
338
421
|
this.initMap(aMap)
|
|
339
422
|
this.mapAutocomplete = new (aMap).AutoComplete({
|
|
340
|
-
// city 限定城市,默认全国
|
|
341
423
|
city: '全国',
|
|
342
424
|
dragEnable: true,
|
|
343
425
|
animateEnable: false
|
|
344
426
|
})
|
|
345
|
-
this.positionPicker = new window.AMapUI.PositionPicker({
|
|
346
|
-
mode: 'dragMap',
|
|
347
|
-
map: this.map
|
|
348
|
-
})
|
|
349
|
-
this.positionPicker.on('success', (positionResult) => {
|
|
350
|
-
console.log(positionResult)
|
|
351
|
-
console.log(positionResult.position)
|
|
352
|
-
this.curPosition = positionResult.position
|
|
353
|
-
// 设置 行政区划信息
|
|
354
|
-
if (positionResult?.regeocode?.addressComponent) {
|
|
355
|
-
const { addressComponent } = positionResult?.regeocode
|
|
356
|
-
this.divisions.province = addressComponent.province
|
|
357
|
-
this.divisions.city = addressComponent.city
|
|
358
|
-
this.divisions.district = addressComponent.district
|
|
359
|
-
this.divisions.township = addressComponent.township
|
|
360
|
-
this.divisions.towncode = addressComponent.towncode
|
|
361
|
-
this.divisions.street = addressComponent.street
|
|
362
|
-
// 试着获取小区
|
|
363
|
-
if (positionResult?.regeocode?.aois && positionResult?.regeocode?.aois.length) {
|
|
364
|
-
// 取第一个当做小区
|
|
365
|
-
this.divisions.area = positionResult?.regeocode?.aois[0]?.name
|
|
366
|
-
} else if (positionResult?.regeocode?.pois && positionResult?.regeocode?.pois.length) {
|
|
367
|
-
// 取第一个当做小区
|
|
368
|
-
this.divisions.area = positionResult?.regeocode?.pois[0]?.name
|
|
369
|
-
}
|
|
370
|
-
this.divisions.str =
|
|
371
|
-
`${addressComponent.province}${addressComponent.city}${addressComponent.district}${addressComponent.township}`
|
|
372
|
-
}
|
|
373
|
-
if (this.divisions.str && positionResult.address.startsWith(this.divisions.str)) {
|
|
374
|
-
// 如果 省市区信息和获取到的地址的前缀一致 那么省市区前缀禁止修改只能修改后面的 通过 onchange事件拦截
|
|
375
|
-
this.readOnlyDivisions = true
|
|
376
|
-
}
|
|
377
|
-
if (!this.searchFlag) {
|
|
378
|
-
this.addressObj.address = positionResult.address
|
|
379
|
-
this.addressObj.lng_lat = `${positionResult.position.lng},${positionResult.position.lat}`
|
|
380
|
-
} else {
|
|
381
|
-
this.searchFlag = false
|
|
382
|
-
}
|
|
383
|
-
})
|
|
384
|
-
this.positionPicker.on('fail', function (positionResult) {
|
|
385
|
-
})
|
|
386
|
-
this.positionPicker.start()
|
|
387
427
|
})
|
|
388
428
|
})
|
|
389
429
|
}
|
|
@@ -396,7 +436,7 @@ export default {
|
|
|
396
436
|
#addressSearchCombobox_map {
|
|
397
437
|
margin: 1% 0;
|
|
398
438
|
width: 100%;
|
|
399
|
-
height:
|
|
439
|
+
height: 600px;
|
|
400
440
|
text-align: center
|
|
401
441
|
}
|
|
402
442
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import AmapPointRendering from './AmapPointRendering'
|
|
2
|
-
|
|
3
|
-
export default AmapPointRendering
|
|
1
|
+
import AmapPointRendering from './AmapPointRendering'
|
|
2
|
+
|
|
3
|
+
export default AmapPointRendering
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import XDetailsView from './XDetailsView'
|
|
2
|
-
|
|
3
|
-
export default XDetailsView
|
|
1
|
+
import XDetailsView from './XDetailsView'
|
|
2
|
+
|
|
3
|
+
export default XDetailsView
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import XFormGroupDetails from './XFormGroupDetails'
|
|
2
|
-
|
|
3
|
-
export default XFormGroupDetails
|
|
1
|
+
import XFormGroupDetails from './XFormGroupDetails'
|
|
2
|
+
|
|
3
|
+
export default XFormGroupDetails
|