vue2-client 1.6.35 → 1.6.36
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/CHANGELOG.md +4 -0
- package/index.js +30 -30
- package/package.json +1 -1
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +317 -317
- package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
- package/src/base-client/components/common/AmapMarker/index.js +3 -3
- package/src/base-client/components/common/CitySelect/CitySelect.vue +247 -247
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +733 -733
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +508 -508
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +140 -140
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
- package/src/base-client/components/common/Upload/Upload.vue +168 -168
- package/src/base-client/components/common/XAddForm/XAddForm.vue +326 -326
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XForm/XForm.vue +180 -180
- package/src/base-client/components/common/XForm/XFormItem.vue +473 -591
- package/src/base-client/components/common/XForm/XTreeSelect.vue +184 -0
- package/src/base-client/components/common/XFormTable/XFormTable.vue +336 -336
- package/src/base-client/components/common/XFormTable/index.md +97 -97
- package/src/base-client/components/common/XTreeOne/XTreeOne.vue +111 -111
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
- package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
- package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
- package/src/base-client/plugins/AppData.js +76 -76
- package/src/base-client/plugins/GetLoginInfoService.js +179 -179
- package/src/base-client/plugins/PagedList.js +177 -177
- package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
- package/src/base-client/plugins/i18n-extend.js +32 -32
- package/src/components/Ellipsis/Ellipsis.vue +65 -65
- package/src/components/Ellipsis/index.md +38 -38
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/STable/README.md +341 -341
- package/src/components/STable/index.js +318 -318
- package/src/components/Trend/index.md +45 -45
- package/src/components/checkbox/ColorCheckbox.vue +157 -157
- package/src/components/checkbox/ImgCheckbox.vue +163 -163
- package/src/components/exception/ExceptionPage.vue +70 -70
- package/src/components/form/FormRow.vue +52 -52
- package/src/components/index.js +36 -36
- package/src/components/menu/SideMenu.vue +62 -62
- package/src/components/menu/menu.js +273 -273
- package/src/components/page/header/index.less +40 -40
- package/src/components/setting/Setting.vue +235 -235
- package/src/components/table/StandardTable.vue +141 -141
- package/src/components/table/advance/ActionColumns.vue +158 -158
- package/src/components/table/advance/SearchArea.vue +355 -355
- package/src/components/tool/AStepItem.vue +60 -60
- package/src/components/tool/AvatarList.vue +68 -68
- package/src/components/tool/Drawer.vue +142 -142
- package/src/components/tool/TagSelect.vue +83 -83
- package/src/components/transition/PageToggleTransition.vue +97 -97
- package/src/config/default/admin.config.js +18 -18
- package/src/config/default/setting.config.js +46 -46
- package/src/config/replacer/resolve.config.js +67 -67
- package/src/layouts/CommonLayout.vue +42 -42
- package/src/layouts/ComponentLayoutOne.vue +47 -47
- package/src/layouts/PageLayout.vue +151 -151
- package/src/layouts/SinglePageView.vue +116 -116
- package/src/layouts/footer/PageFooter.vue +49 -49
- package/src/layouts/header/AdminHeader.vue +134 -134
- package/src/layouts/header/HeaderAvatar.vue +64 -64
- package/src/layouts/header/HeaderNotice.vue +176 -176
- package/src/layouts/header/HeaderSearch.vue +67 -67
- package/src/layouts/header/InstitutionDetail.vue +181 -181
- package/src/layouts/header/index.less +92 -92
- package/src/layouts/tabs/TabsHead.vue +190 -190
- package/src/layouts/tabs/TabsView.vue +379 -379
- package/src/mock/goods/index.js +108 -108
- package/src/pages/login/Login.vue +365 -365
- package/src/pages/report/ReportTable.js +124 -124
- package/src/pages/report/ReportTableHome.vue +28 -28
- package/src/pages/resourceManage/orgListManage.vue +98 -98
- package/src/pages/system/file/index.vue +317 -317
- package/src/pages/system/settings/index.vue +126 -126
- package/src/pages/system/settings/modifyPassword.vue +109 -109
- package/src/router/async/config.async.js +28 -28
- package/src/router/async/router.map.js +68 -68
- package/src/router/index.js +27 -27
- package/src/services/api/DictionaryDetailsViewApi.js +6 -6
- package/src/services/api/LogDetailsViewApi.js +10 -10
- package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
- package/src/services/api/TicketDetailsViewApi.js +34 -34
- package/src/services/api/cas.js +79 -79
- package/src/services/api/commonTempTable.js +10 -10
- package/src/services/api/index.js +17 -17
- package/src/services/api/logininfor/index.js +6 -6
- package/src/services/api/manage.js +8 -8
- package/src/services/apiService.js +14 -14
- package/src/services/user.js +64 -64
- package/src/store/modules/index.js +4 -4
- package/src/theme/default/nprogress.less +76 -76
- package/src/theme/default/style.less +58 -58
- package/src/utils/colors.js +107 -107
- package/src/utils/excel/Blob.js +180 -180
- package/src/utils/excel/Export2Excel.js +141 -141
- package/src/utils/formatter.js +68 -68
- package/src/utils/i18n.js +80 -80
- package/src/utils/map-utils.js +37 -37
- package/src/utils/request.js +311 -311
- package/src/utils/theme-color-replacer-extend.js +91 -91
- package/src/utils/themeUtil.js +100 -100
- package/src/utils/util.js +230 -230
- package/vue.config.js +106 -106
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
<template >
|
|
2
|
-
<div id="amap_point_rendering_map" :style="mapStyle">
|
|
3
|
-
<div v-show="false">
|
|
4
|
-
<div id="amap_point_rendering_template">
|
|
5
|
-
<a-descriptions :column="1">
|
|
6
|
-
<a-descriptions-item v-for="(des, index) in describeList" :key="index" :label="des.describe" >{{ markers[des.field] }}</a-descriptions-item>
|
|
7
|
-
</a-descriptions>
|
|
8
|
-
</div>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
<script>
|
|
13
|
-
import { GetGDMap } from '@vue2-client/utils/map-utils'
|
|
14
|
-
import { mapState } from 'vuex'
|
|
15
|
-
export default {
|
|
16
|
-
name: 'AmapPointRendering',
|
|
17
|
-
props: {
|
|
18
|
-
// 选中点位后需要展示的信息描述
|
|
19
|
-
describeList: {
|
|
20
|
-
type: Array,
|
|
21
|
-
// eslint-disable-next-line vue/require-valid-default-prop
|
|
22
|
-
default: () => { return [ ] } // lng:描述信息 lat:描述信息对应的值的字段名 { describe: '用户名称', field: 'name' }
|
|
23
|
-
},
|
|
24
|
-
// 需要渲染的点位数据
|
|
25
|
-
markers: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: null // lng:经度值 lat:纬度值
|
|
28
|
-
},
|
|
29
|
-
// 渲染点位的图片
|
|
30
|
-
imgurl: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: () => {
|
|
33
|
-
return "https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
mapStyle: {
|
|
37
|
-
type: Object,
|
|
38
|
-
default: () => {
|
|
39
|
-
return {
|
|
40
|
-
width: '100%',
|
|
41
|
-
height: '85vh',
|
|
42
|
-
border: '2px solid lightgray',
|
|
43
|
-
'border-radius': '5px'
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
computed: {
|
|
49
|
-
...mapState('setting', ['isMobile', 'gaode_key', 'gaode_secret_key'])
|
|
50
|
-
},
|
|
51
|
-
data () {
|
|
52
|
-
return {
|
|
53
|
-
map: null,
|
|
54
|
-
geocoder: null, // 逆地理编码
|
|
55
|
-
infoWindow: null,
|
|
56
|
-
selectrow: {}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
created () {
|
|
60
|
-
},
|
|
61
|
-
mounted () {
|
|
62
|
-
GetGDMap(this.gaode_secret_key, this.gaode_key).then(aMap => {
|
|
63
|
-
this.initMap(aMap)
|
|
64
|
-
this.initData(aMap)
|
|
65
|
-
})
|
|
66
|
-
},
|
|
67
|
-
methods: {
|
|
68
|
-
initMap (aMap) {
|
|
69
|
-
this.map = new (aMap).Map('amap_point_rendering_map', { // 设置地图容器id
|
|
70
|
-
resizeEnable: true, // 是否监控地图容器尺寸变化
|
|
71
|
-
zoom: 10, // 初始化地图层级
|
|
72
|
-
})
|
|
73
|
-
this.geocoder = new (aMap).Geocoder({
|
|
74
|
-
radius: 500 // 范围,默认:500
|
|
75
|
-
})
|
|
76
|
-
this.map.addControl(new (aMap).ToolBar()) // 初始化工具插件
|
|
77
|
-
// 初始化窗体
|
|
78
|
-
this.infoWindow = new (aMap).InfoWindow({
|
|
79
|
-
anchor: 'bottom-center',
|
|
80
|
-
isCustom: false, // 使用自定义窗体
|
|
81
|
-
autoMove: true,
|
|
82
|
-
content: '',
|
|
83
|
-
showShadow: true,
|
|
84
|
-
offset: new (aMap).Pixel(0, -25)
|
|
85
|
-
})
|
|
86
|
-
},
|
|
87
|
-
initData (aMap) {
|
|
88
|
-
// 创建一个 Marker 实例:
|
|
89
|
-
if (this.markers) {
|
|
90
|
-
const lngLat = this.markers.split(',')
|
|
91
|
-
const lng = lngLat[0]
|
|
92
|
-
const lat = lngLat[1]
|
|
93
|
-
const marker = new (aMap).Marker({
|
|
94
|
-
// 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9]
|
|
95
|
-
position: new (aMap).LngLat(lng, lat),
|
|
96
|
-
icon: new (aMap).Icon({
|
|
97
|
-
// 图标大小
|
|
98
|
-
size: new (aMap).Size(26, 28),
|
|
99
|
-
imageSize: new (aMap).Size(26, 28),
|
|
100
|
-
// 报警图标URL
|
|
101
|
-
image: this.imgurl,
|
|
102
|
-
// 图标偏移位置
|
|
103
|
-
anchor: new (aMap).Pixel(0, 0),
|
|
104
|
-
}),
|
|
105
|
-
extData: this.markers
|
|
106
|
-
})
|
|
107
|
-
marker.on('click', (e) => {
|
|
108
|
-
if(e.target.getExtData() && e.target.getExtData().lng){
|
|
109
|
-
this.infoWindow.setContent(document.getElementById('amap_point_rendering_template'))
|
|
110
|
-
this.infoWindow.open(this.map, [e.target.getExtData().lng, e.target.getExtData().lat])
|
|
111
|
-
}
|
|
112
|
-
})
|
|
113
|
-
// 将创建的点标记添加到已有的地图实例:
|
|
114
|
-
this.map.add(marker)
|
|
115
|
-
this.map.setFitView()
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
</script>
|
|
1
|
+
<template >
|
|
2
|
+
<div id="amap_point_rendering_map" :style="mapStyle">
|
|
3
|
+
<div v-show="false">
|
|
4
|
+
<div id="amap_point_rendering_template">
|
|
5
|
+
<a-descriptions :column="1">
|
|
6
|
+
<a-descriptions-item v-for="(des, index) in describeList" :key="index" :label="des.describe" >{{ markers[des.field] }}</a-descriptions-item>
|
|
7
|
+
</a-descriptions>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
<script>
|
|
13
|
+
import { GetGDMap } from '@vue2-client/utils/map-utils'
|
|
14
|
+
import { mapState } from 'vuex'
|
|
15
|
+
export default {
|
|
16
|
+
name: 'AmapPointRendering',
|
|
17
|
+
props: {
|
|
18
|
+
// 选中点位后需要展示的信息描述
|
|
19
|
+
describeList: {
|
|
20
|
+
type: Array,
|
|
21
|
+
// eslint-disable-next-line vue/require-valid-default-prop
|
|
22
|
+
default: () => { return [ ] } // lng:描述信息 lat:描述信息对应的值的字段名 { describe: '用户名称', field: 'name' }
|
|
23
|
+
},
|
|
24
|
+
// 需要渲染的点位数据
|
|
25
|
+
markers: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: null // lng:经度值 lat:纬度值
|
|
28
|
+
},
|
|
29
|
+
// 渲染点位的图片
|
|
30
|
+
imgurl: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: () => {
|
|
33
|
+
return "https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
mapStyle: {
|
|
37
|
+
type: Object,
|
|
38
|
+
default: () => {
|
|
39
|
+
return {
|
|
40
|
+
width: '100%',
|
|
41
|
+
height: '85vh',
|
|
42
|
+
border: '2px solid lightgray',
|
|
43
|
+
'border-radius': '5px'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
computed: {
|
|
49
|
+
...mapState('setting', ['isMobile', 'gaode_key', 'gaode_secret_key'])
|
|
50
|
+
},
|
|
51
|
+
data () {
|
|
52
|
+
return {
|
|
53
|
+
map: null,
|
|
54
|
+
geocoder: null, // 逆地理编码
|
|
55
|
+
infoWindow: null,
|
|
56
|
+
selectrow: {}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
created () {
|
|
60
|
+
},
|
|
61
|
+
mounted () {
|
|
62
|
+
GetGDMap(this.gaode_secret_key, this.gaode_key).then(aMap => {
|
|
63
|
+
this.initMap(aMap)
|
|
64
|
+
this.initData(aMap)
|
|
65
|
+
})
|
|
66
|
+
},
|
|
67
|
+
methods: {
|
|
68
|
+
initMap (aMap) {
|
|
69
|
+
this.map = new (aMap).Map('amap_point_rendering_map', { // 设置地图容器id
|
|
70
|
+
resizeEnable: true, // 是否监控地图容器尺寸变化
|
|
71
|
+
zoom: 10, // 初始化地图层级
|
|
72
|
+
})
|
|
73
|
+
this.geocoder = new (aMap).Geocoder({
|
|
74
|
+
radius: 500 // 范围,默认:500
|
|
75
|
+
})
|
|
76
|
+
this.map.addControl(new (aMap).ToolBar()) // 初始化工具插件
|
|
77
|
+
// 初始化窗体
|
|
78
|
+
this.infoWindow = new (aMap).InfoWindow({
|
|
79
|
+
anchor: 'bottom-center',
|
|
80
|
+
isCustom: false, // 使用自定义窗体
|
|
81
|
+
autoMove: true,
|
|
82
|
+
content: '',
|
|
83
|
+
showShadow: true,
|
|
84
|
+
offset: new (aMap).Pixel(0, -25)
|
|
85
|
+
})
|
|
86
|
+
},
|
|
87
|
+
initData (aMap) {
|
|
88
|
+
// 创建一个 Marker 实例:
|
|
89
|
+
if (this.markers) {
|
|
90
|
+
const lngLat = this.markers.split(',')
|
|
91
|
+
const lng = lngLat[0]
|
|
92
|
+
const lat = lngLat[1]
|
|
93
|
+
const marker = new (aMap).Marker({
|
|
94
|
+
// 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9]
|
|
95
|
+
position: new (aMap).LngLat(lng, lat),
|
|
96
|
+
icon: new (aMap).Icon({
|
|
97
|
+
// 图标大小
|
|
98
|
+
size: new (aMap).Size(26, 28),
|
|
99
|
+
imageSize: new (aMap).Size(26, 28),
|
|
100
|
+
// 报警图标URL
|
|
101
|
+
image: this.imgurl,
|
|
102
|
+
// 图标偏移位置
|
|
103
|
+
anchor: new (aMap).Pixel(0, 0),
|
|
104
|
+
}),
|
|
105
|
+
extData: this.markers
|
|
106
|
+
})
|
|
107
|
+
marker.on('click', (e) => {
|
|
108
|
+
if(e.target.getExtData() && e.target.getExtData().lng){
|
|
109
|
+
this.infoWindow.setContent(document.getElementById('amap_point_rendering_template'))
|
|
110
|
+
this.infoWindow.open(this.map, [e.target.getExtData().lng, e.target.getExtData().lat])
|
|
111
|
+
}
|
|
112
|
+
})
|
|
113
|
+
// 将创建的点标记添加到已有的地图实例:
|
|
114
|
+
this.map.add(marker)
|
|
115
|
+
this.map.setFitView()
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
</script>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import AmapPointRendering from './AmapPointRendering'
|
|
2
|
-
|
|
3
|
-
export default AmapPointRendering
|
|
1
|
+
import AmapPointRendering from './AmapPointRendering'
|
|
2
|
+
|
|
3
|
+
export default AmapPointRendering
|