vue2-client 1.2.4 → 1.2.7

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 (45) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/docs/notice.md +22 -22
  3. package/package.json +1 -1
  4. package/src/base-client/components/iot/DataAnalysisView/DataAnalysisView.vue +244 -244
  5. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +2 -2
  6. package/src/config/default/setting.config.js +1 -0
  7. package/src/pages/login/Login.vue +6 -2
  8. package/src/pages/system/ticket/index.vue +427 -0
  9. package/src/pages/system/ticket/submitTicketSuccess.vue +249 -0
  10. package/src/router/async/config.async.js +1 -0
  11. package/src/router/async/router.map.js +2 -2
  12. package/src/services/api/EmployeeDetailsViewApi.js +0 -4
  13. package/src/utils/routerUtil.js +366 -366
  14. package/vue.config.js +0 -10
  15. package/src/pages/system/applyInstallView/Core.vue +0 -570
  16. package/src/pages/system/applyInstallView/LFComponents/AddPanel.vue +0 -52
  17. package/src/pages/system/applyInstallView/LFComponents/Control.vue +0 -78
  18. package/src/pages/system/applyInstallView/LFComponents/DataDialog.vue +0 -24
  19. package/src/pages/system/applyInstallView/LFComponents/NodePanel.vue +0 -103
  20. package/src/pages/system/applyInstallView/PropertySetting/Base.vue +0 -124
  21. package/src/pages/system/applyInstallView/PropertySetting/CommonProperty.vue +0 -104
  22. package/src/pages/system/applyInstallView/PropertySetting/PropertyDialog.vue +0 -43
  23. package/src/pages/system/applyInstallView/background/base.png +0 -0
  24. package/src/pages/system/applyInstallView/background/click.png +0 -0
  25. package/src/pages/system/applyInstallView/background/download.png +0 -0
  26. package/src/pages/system/applyInstallView/background/end.png +0 -0
  27. package/src/pages/system/applyInstallView/background/push.png +0 -0
  28. package/src/pages/system/applyInstallView/background/start.png +0 -0
  29. package/src/pages/system/applyInstallView/background/step.png +0 -0
  30. package/src/pages/system/applyInstallView/background/time.png +0 -0
  31. package/src/pages/system/applyInstallView/config.js +0 -22
  32. package/src/pages/system/applyInstallView/data.json +0 -1284
  33. package/src/pages/system/applyInstallView/index.vue +0 -34
  34. package/src/pages/system/applyInstallView/registerNode/Connect.vue +0 -43
  35. package/src/pages/system/applyInstallView/registerNode/index.js +0 -16
  36. package/src/pages/system/applyInstallView/registerNode/registerBackEdge.js +0 -44
  37. package/src/pages/system/applyInstallView/registerNode/registerBase.js +0 -139
  38. package/src/pages/system/applyInstallView/registerNode/registerConnect.js +0 -60
  39. package/src/pages/system/applyInstallView/registerNode/registerDownload.js +0 -92
  40. package/src/pages/system/applyInstallView/registerNode/registerEnd.js +0 -110
  41. package/src/pages/system/applyInstallView/registerNode/registerPolyline.js +0 -14
  42. package/src/pages/system/applyInstallView/registerNode/registerPush.js +0 -127
  43. package/src/pages/system/applyInstallView/registerNode/registerStart.js +0 -105
  44. package/src/pages/system/applyInstallView/registerNode/registerStep.js +0 -209
  45. package/src/pages/system/applyInstallView/registerNode/registerTask.js +0 -29
package/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # Change Log
2
+ > 所有关于本项目的变化都在该文档里。
3
+
4
+ **##1.2.7 -2022-03-24 @江超**
5
+ - 功能新增:
6
+ - [系统设置]:新增 [工单提交] 功能(submitTicket),用户在操作业务时如发现系统异常,可使用该功能反馈问题
7
+ - [登录页面]:登陆人部门为 [用户工单登记] 时会直接跳转到[工单提交]页面(在基于新架构的营收全面使用时,会取消该限制,并将[工单提交]作为常驻功能)
8
+
9
+ **##1.0.0 - 1.2.6 -2022-03-23 @陈栋扬**
10
+ - 初始化:
11
+ - 公共组件和配置抽取完成
package/docs/notice.md CHANGED
@@ -1,22 +1,22 @@
1
- # 开发规范(持续跟新)
2
- ## 引入各种文件时,必须写绝对路径, 不允许写相对路径
3
- ```js
4
- // 引自己项目时文件时, @ 表示自己项目的src目录
5
- import('@vue2-client/pages/system/queryParams')
6
- ```
7
- ## 编写vue文件的样式时, 必须使用less, 样式必须在最外层添加当前页面html的id, id与vue文件名相同
8
- ```vue
9
- helloWorld.vue
10
- <template>
11
- <div id="helloWorld">
12
-
13
- </div>
14
- </template>
15
-
16
- <style lang="less">
17
- #helloWorld{
18
- /*写自己的样式*/
19
- }
20
- </style>
21
- ```
22
-
1
+ # 开发规范(持续跟新)
2
+ ## 引入各种文件时,必须写绝对路径, 不允许写相对路径
3
+ ```js
4
+ // 引自己项目时文件时, @ 表示自己项目的src目录
5
+ import('@vue2-client/pages/system/queryParams')
6
+ ```
7
+ ## 编写vue文件的样式时, 必须使用less, 样式必须在最外层添加当前页面html的id, id与vue文件名相同
8
+ ```vue
9
+ helloWorld.vue
10
+ <template>
11
+ <div id="helloWorld">
12
+
13
+ </div>
14
+ </template>
15
+
16
+ <style lang="less">
17
+ #helloWorld{
18
+ /*写自己的样式*/
19
+ }
20
+ </style>
21
+ ```
22
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.2.4",
3
+ "version": "1.2.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,244 +1,244 @@
1
- <template>
2
- <a-row type="flex">
3
- <baidu-map
4
- :mapStyle="mapStyle"
5
- class="bm-view"
6
- :center="'西安'"
7
- :scroll-wheel-zoom="true"
8
- :zoom="zoom"
9
- @ready="handler"
10
- @click="searchClick"
11
- ak="YOUR_APP_KEY">
12
- <bm-view style="width: 100%; height:100%; flex: 1"></bm-view>
13
- <bm-control :offset="{width: '10px', height: '10px'}">
14
- <bm-auto-complete :sugStyle="{zIndex: 1}">
15
- <a-input v-model="keyword" type="text" placeholder="地区信息搜索" style="width: 150px;height: 50px" /> <!-- 这里指代一个自定义搜索框组件 -->
16
- </bm-auto-complete>
17
- </bm-control>
18
- <bm-navigation anchor="BMAP_ANCHOR_TOP_RIGHT"></bm-navigation>
19
- <bm-geolocation anchor="BMAP_ANCHOR_BOTTOM_RIGHT" :showAddressBar="true" :autoLocation="true"></bm-geolocation>
20
- <bm-local-search :keyword="keyword" :panel="false" :auto-viewport="true" zoom="12.8" style="display: none" ></bm-local-search>
21
- </baidu-map>
22
- </a-row>
23
- </template>
24
-
25
- <script>
26
- import { BaiduMap, BmView, BmNavigation, BMCityList, BmGeolocation, BmControl, BmLocalSearch } from 'vue-baidu-map'
27
- export default {
28
- components: {
29
- BaiduMap,
30
- BmNavigation,
31
- BmView,
32
- BMCityList,
33
- BmGeolocation,
34
- BmControl,
35
- BmLocalSearch
36
- },
37
- data () {
38
- return {
39
- keyword: '',
40
- center: {
41
- lng: 12131693.03,
42
- lat: 4063684.53
43
- },
44
- zoom: 17,
45
- address: {
46
- propprovince: '', // 省
47
- propcity: '', // 市
48
- propcounty: '', // 县
49
- propaddress: '' // 详细地址
50
- },
51
- mapStyle: {
52
- styleJson: [
53
- {
54
- featureType: 'water',
55
- elementType: 'all',
56
- stylers: {
57
- color: '#021019'
58
- }
59
- },
60
- {
61
- featureType: 'highway',
62
- elementType: 'geometry.fill',
63
- stylers: {
64
- color: '#000000'
65
- }
66
- },
67
- {
68
- featureType: 'highway',
69
- elementType: 'geometry.stroke',
70
- stylers: {
71
- color: '#147a92'
72
- }
73
- },
74
- {
75
- featureType: 'arterial',
76
- elementType: 'geometry.fill',
77
- stylers: {
78
- color: '#000000'
79
- }
80
- },
81
- {
82
- featureType: 'arterial',
83
- elementType: 'geometry.stroke',
84
- stylers: {
85
- color: '#0b3d51'
86
- }
87
- },
88
- {
89
- featureType: 'local',
90
- elementType: 'geometry',
91
- stylers: {
92
- color: '#000000'
93
- }
94
- },
95
- {
96
- featureType: 'land',
97
- elementType: 'all',
98
- stylers: {
99
- color: '#08304b'
100
- }
101
- },
102
- {
103
- featureType: 'railway',
104
- elementType: 'geometry.fill',
105
- stylers: {
106
- color: '#000000'
107
- }
108
- },
109
- {
110
- featureType: 'railway',
111
- elementType: 'geometry.stroke',
112
- stylers: {
113
- color: '#08304b'
114
- }
115
- },
116
- {
117
- featureType: 'subway',
118
- elementType: 'geometry',
119
- stylers: {
120
- lightness: -70
121
- }
122
- },
123
- {
124
- featureType: 'building',
125
- elementType: 'geometry.fill',
126
- stylers: {
127
- color: '#000000'
128
- }
129
- },
130
- {
131
- featureType: 'all',
132
- elementType: 'labels.text.fill',
133
- stylers: {
134
- color: '#857f7f'
135
- }
136
- },
137
- {
138
- featureType: 'all',
139
- elementType: 'labels.text.stroke',
140
- stylers: {
141
- color: '#000000'
142
- }
143
- },
144
- {
145
- featureType: 'building',
146
- elementType: 'geometry',
147
- stylers: {
148
- color: '#022338'
149
- }
150
- },
151
- {
152
- featureType: 'green',
153
- elementType: 'geometry',
154
- stylers: {
155
- color: '#062032'
156
- }
157
- },
158
- {
159
- featureType: 'boundary',
160
- elementType: 'all',
161
- stylers: {
162
- color: '#1e1c1c'
163
- }
164
- },
165
- {
166
- featureType: 'manmade',
167
- elementType: 'geometry',
168
- stylers: {
169
- color: '#022338'
170
- }
171
- },
172
- {
173
- featureType: 'poi',
174
- elementType: 'all',
175
- stylers: {
176
- visibility: 'off'
177
- }
178
- },
179
- {
180
- featureType: 'all',
181
- elementType: 'labels.icon',
182
- stylers: {
183
- visibility: 'off'
184
- }
185
- },
186
- {
187
- featureType: 'all',
188
- elementType: 'labels.text.fill',
189
- stylers: {
190
- color: '#2da0c6',
191
- visibility: 'on'
192
- }
193
- }
194
- ]
195
- }
196
- }
197
- },
198
- methods: {
199
- searchClick (e) {
200
- const _this = this
201
- this.longitude = e.point.lng// 经度
202
- this.latitude = e.point.lat// 维度
203
- this.center.lng = _this.longitude // 中心点
204
- this.center.lat = _this.latitude// 中心点
205
- // eslint-disable-next-line no-undef
206
- const geocoder = new BMap.Geocoder() // 创建地址解析器的实例
207
- geocoder.getLocation(e.point, function (rs) {
208
- console.log(rs)
209
- _this.address.propprovince = rs.addressComponents.province // 省
210
- _this.address.propcity = rs.addressComponents.city // 市
211
- _this.address.propcounty = rs.addressComponents.district // 县
212
- _this.address.propaddress = rs.address// 详细地址
213
- })
214
- console.log('geocoder', _this.address)
215
- this.$emit('togShow', _this.address)
216
- },
217
-
218
- handler ({ BMap, map }) {
219
- console.log(BMap, map)
220
- this.center.lng = 116.404
221
- this.center.lat = 39.915
222
- this.zoom = 15
223
- }
224
- },
225
- watch: {
226
- 'keyword' (val) {
227
- console.log(val)
228
- }
229
- }
230
- }
231
- </script>
232
-
233
- <style>
234
- .bm-view {
235
- width: 100%;
236
- height:500px;
237
- }
238
- .BMap_cpyCtrl {
239
- display: none;
240
- }
241
- .anchorBL {
242
- display: none;
243
- }
244
- </style>
1
+ <template>
2
+ <a-row type="flex">
3
+ <baidu-map
4
+ :mapStyle="mapStyle"
5
+ class="bm-view"
6
+ :center="'西安'"
7
+ :scroll-wheel-zoom="true"
8
+ :zoom="zoom"
9
+ @ready="handler"
10
+ @click="searchClick"
11
+ ak="YOUR_APP_KEY">
12
+ <bm-view style="width: 100%; height:100%; flex: 1"></bm-view>
13
+ <bm-control :offset="{width: '10px', height: '10px'}">
14
+ <bm-auto-complete :sugStyle="{zIndex: 1}">
15
+ <a-input v-model="keyword" type="text" placeholder="地区信息搜索" style="width: 150px;height: 50px" /> <!-- 这里指代一个自定义搜索框组件 -->
16
+ </bm-auto-complete>
17
+ </bm-control>
18
+ <bm-navigation anchor="BMAP_ANCHOR_TOP_RIGHT"></bm-navigation>
19
+ <bm-geolocation anchor="BMAP_ANCHOR_BOTTOM_RIGHT" :showAddressBar="true" :autoLocation="true"></bm-geolocation>
20
+ <bm-local-search :keyword="keyword" :panel="false" :auto-viewport="true" zoom="12.8" style="display: none" ></bm-local-search>
21
+ </baidu-map>
22
+ </a-row>
23
+ </template>
24
+
25
+ <script>
26
+ import { BaiduMap, BmView, BmNavigation, BMCityList, BmGeolocation, BmControl, BmLocalSearch } from 'vue-baidu-map'
27
+ export default {
28
+ components: {
29
+ BaiduMap,
30
+ BmNavigation,
31
+ BmView,
32
+ BMCityList,
33
+ BmGeolocation,
34
+ BmControl,
35
+ BmLocalSearch
36
+ },
37
+ data () {
38
+ return {
39
+ keyword: '',
40
+ center: {
41
+ lng: 12131693.03,
42
+ lat: 4063684.53
43
+ },
44
+ zoom: 17,
45
+ address: {
46
+ propprovince: '', // 省
47
+ propcity: '', // 市
48
+ propcounty: '', // 县
49
+ propaddress: '' // 详细地址
50
+ },
51
+ mapStyle: {
52
+ styleJson: [
53
+ {
54
+ featureType: 'water',
55
+ elementType: 'all',
56
+ stylers: {
57
+ color: '#021019'
58
+ }
59
+ },
60
+ {
61
+ featureType: 'highway',
62
+ elementType: 'geometry.fill',
63
+ stylers: {
64
+ color: '#000000'
65
+ }
66
+ },
67
+ {
68
+ featureType: 'highway',
69
+ elementType: 'geometry.stroke',
70
+ stylers: {
71
+ color: '#147a92'
72
+ }
73
+ },
74
+ {
75
+ featureType: 'arterial',
76
+ elementType: 'geometry.fill',
77
+ stylers: {
78
+ color: '#000000'
79
+ }
80
+ },
81
+ {
82
+ featureType: 'arterial',
83
+ elementType: 'geometry.stroke',
84
+ stylers: {
85
+ color: '#0b3d51'
86
+ }
87
+ },
88
+ {
89
+ featureType: 'local',
90
+ elementType: 'geometry',
91
+ stylers: {
92
+ color: '#000000'
93
+ }
94
+ },
95
+ {
96
+ featureType: 'land',
97
+ elementType: 'all',
98
+ stylers: {
99
+ color: '#08304b'
100
+ }
101
+ },
102
+ {
103
+ featureType: 'railway',
104
+ elementType: 'geometry.fill',
105
+ stylers: {
106
+ color: '#000000'
107
+ }
108
+ },
109
+ {
110
+ featureType: 'railway',
111
+ elementType: 'geometry.stroke',
112
+ stylers: {
113
+ color: '#08304b'
114
+ }
115
+ },
116
+ {
117
+ featureType: 'subway',
118
+ elementType: 'geometry',
119
+ stylers: {
120
+ lightness: -70
121
+ }
122
+ },
123
+ {
124
+ featureType: 'building',
125
+ elementType: 'geometry.fill',
126
+ stylers: {
127
+ color: '#000000'
128
+ }
129
+ },
130
+ {
131
+ featureType: 'all',
132
+ elementType: 'labels.text.fill',
133
+ stylers: {
134
+ color: '#857f7f'
135
+ }
136
+ },
137
+ {
138
+ featureType: 'all',
139
+ elementType: 'labels.text.stroke',
140
+ stylers: {
141
+ color: '#000000'
142
+ }
143
+ },
144
+ {
145
+ featureType: 'building',
146
+ elementType: 'geometry',
147
+ stylers: {
148
+ color: '#022338'
149
+ }
150
+ },
151
+ {
152
+ featureType: 'green',
153
+ elementType: 'geometry',
154
+ stylers: {
155
+ color: '#062032'
156
+ }
157
+ },
158
+ {
159
+ featureType: 'boundary',
160
+ elementType: 'all',
161
+ stylers: {
162
+ color: '#1e1c1c'
163
+ }
164
+ },
165
+ {
166
+ featureType: 'manmade',
167
+ elementType: 'geometry',
168
+ stylers: {
169
+ color: '#022338'
170
+ }
171
+ },
172
+ {
173
+ featureType: 'poi',
174
+ elementType: 'all',
175
+ stylers: {
176
+ visibility: 'off'
177
+ }
178
+ },
179
+ {
180
+ featureType: 'all',
181
+ elementType: 'labels.icon',
182
+ stylers: {
183
+ visibility: 'off'
184
+ }
185
+ },
186
+ {
187
+ featureType: 'all',
188
+ elementType: 'labels.text.fill',
189
+ stylers: {
190
+ color: '#2da0c6',
191
+ visibility: 'on'
192
+ }
193
+ }
194
+ ]
195
+ }
196
+ }
197
+ },
198
+ methods: {
199
+ searchClick (e) {
200
+ const _this = this
201
+ this.longitude = e.point.lng// 经度
202
+ this.latitude = e.point.lat// 维度
203
+ this.center.lng = _this.longitude // 中心点
204
+ this.center.lat = _this.latitude// 中心点
205
+ // eslint-disable-next-line no-undef
206
+ const geocoder = new BMap.Geocoder() // 创建地址解析器的实例
207
+ geocoder.getLocation(e.point, function (rs) {
208
+ console.log(rs)
209
+ _this.address.propprovince = rs.addressComponents.province // 省
210
+ _this.address.propcity = rs.addressComponents.city // 市
211
+ _this.address.propcounty = rs.addressComponents.district // 县
212
+ _this.address.propaddress = rs.address// 详细地址
213
+ })
214
+ console.log('geocoder', _this.address)
215
+ this.$emit('togShow', _this.address)
216
+ },
217
+
218
+ handler ({ BMap, map }) {
219
+ console.log(BMap, map)
220
+ this.center.lng = 116.404
221
+ this.center.lat = 39.915
222
+ this.zoom = 15
223
+ }
224
+ },
225
+ watch: {
226
+ 'keyword' (val) {
227
+ console.log(val)
228
+ }
229
+ }
230
+ }
231
+ </script>
232
+
233
+ <style>
234
+ .bm-view {
235
+ width: 100%;
236
+ height:500px;
237
+ }
238
+ .BMap_cpyCtrl {
239
+ display: none;
240
+ }
241
+ .anchorBL {
242
+ display: none;
243
+ }
244
+ </style>
@@ -396,7 +396,7 @@ export default {
396
396
  return '由于您的工单等待时间过长,系统已为您自动加急工单,请保持电话畅通,感谢您的理解'
397
397
  } else {
398
398
  // 超过十分钟
399
- return '很抱歉让您久等,029-88888888 您可以直接拨打此电话,与我们技术人员直接交谈!'
399
+ return '很抱歉让您久等,请电询:14709288966'
400
400
  }
401
401
  } else {
402
402
  // 高优先级
@@ -409,7 +409,7 @@ export default {
409
409
  return '您的工单已经被加急处理,我们的工作人员会马上与您取得联系'
410
410
  } else {
411
411
  // 超过十分钟
412
- return '很抱歉让您久等,029-88888888 您可以直接拨打此电话,与我们技术人员直接交谈!'
412
+ return '很抱歉让您久等,请电询:14709288966'
413
413
  }
414
414
  }
415
415
  },
@@ -18,6 +18,7 @@ module.exports = {
18
18
  cachePage: true, // 是否缓存页面数据,仅多页签模式下生效,true 缓存, false 不缓存
19
19
  hideSetting: false, // 隐藏设置抽屉,true:隐藏,false:不隐藏
20
20
  homePage: '/system/dictionaryManage', // 首页路由, 登陆后默认打开
21
+ ticketPage: '/submitTicket', // 提交工单路由
21
22
  systemName: '物联网监控平台', // 系统名称
22
23
  copyright: '2021 Mr.Jiang', // copyright
23
24
  asyncRoutes: true, // 异步加载路由,true:开启,false:不开启
@@ -63,7 +63,7 @@ import { ACCESS_TOKEN } from '@vue2-client/store/mutation-types'
63
63
  import Vue from 'vue'
64
64
  import Mock from 'mockjs'
65
65
  import { positions } from '@vue2-client/mock/common'
66
- const { homePage } = require('@vue2-client/config')
66
+ const { homePage, ticketPage } = require('@vue2-client/config')
67
67
  // import { router } from '@vue2-client/mock/user/routes'
68
68
 
69
69
  export default {
@@ -123,7 +123,11 @@ export default {
123
123
  const dateAfter = new Date(timestamp)
124
124
  setAuthorization({ token: data, expireAt: dateAfter })
125
125
  loadRoutes(funcToRouter(user.functions))
126
- this.$router.push(homePage).catch(() => {})
126
+ if (result.deps === '用户工单登记') {
127
+ this.$router.push(ticketPage).catch(() => {})
128
+ } else {
129
+ this.$router.push(homePage).catch(() => {})
130
+ }
127
131
  this.$message.success(Mock.mock('@TIMEFIX').CN + ',欢迎回来', 3)
128
132
  })
129
133
  })