system-clients 3.1.99 → 3.1.100-aode

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 (61) hide show
  1. package/.eslintrc.js +16 -16
  2. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  4. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  5. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  6. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  7. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  8. package/.gradle/buildOutputCleanup/cache.properties +1 -1
  9. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  10. package/.gradle/checksums/checksums.lock +0 -0
  11. package/build/webpack.base.conf.js +10 -17
  12. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  13. package/gradlew +185 -185
  14. package/package.json +4 -4
  15. package/src/components/Main.vue +428 -538
  16. package/src/components/equipment/EquipmentManage.vue +1 -1
  17. package/src/components/equipment/PcAdd.vue +5 -5
  18. package/src/components/equipment/PcList.vue +5 -5
  19. package/src/components/equipment/PhoneAdd.vue +4 -4
  20. package/src/components/equipment/PhoneList.vue +4 -4
  21. package/src/components/equipment/PosAdd.vue +45 -231
  22. package/src/components/equipment/PosList.vue +68 -198
  23. package/src/components/equipment/PosManage.vue +9 -80
  24. package/src/components/parammanage/ParamManage.vue +2 -2
  25. package/src/components/parammanage/ParamPage.vue +8 -30
  26. package/src/components/parammanage/SinglePage.vue +4 -4
  27. package/src/components/server/Login.vue +716 -734
  28. package/src/components/server/ModifyPw.vue +112 -106
  29. package/src/components/server/ResSelect.vue +0 -5
  30. package/src/components/server/ResSelectGroup.vue +118 -155
  31. package/src/components/server/RightTree.vue +257 -262
  32. package/src/components/server/RoleSelector.vue +4 -3
  33. package/src/plugins/GetLoginInfoService.js +84 -107
  34. package/src/plugins/HeatGetLoginInfoService.js +491 -491
  35. package/src/styles/less/aofeng/standard.less +60 -446
  36. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +13 -13
  37. package/src/styles/less/aofeng/themeOne/systemStyle.less +18 -18
  38. package/src/styles/less/fonts-list.less +4 -4
  39. package/src/styles/less/stand.less +1 -1
  40. package/src/styles/less/tables.less +0 -50
  41. package/src/styles/less/type.less +3 -16
  42. package/src/styles/less/variables.less +3 -6
  43. package/src/system.js +0 -10
  44. package/static/aodelogo.png +0 -0
  45. package/static/aodenewlogo.png +0 -0
  46. package/.gradle/5.2.1/gc.properties +0 -0
  47. package/src/components/TabButton.vue +0 -201
  48. package/src/components/Tabs.vue +0 -67
  49. package/src/components/equipment/PosManageBoth.vue +0 -125
  50. package/src/components/equipment/PosParamAdd.vue +0 -236
  51. package/src/components/equipment/PosParamList.vue +0 -121
  52. package/src/components/equipment/PosParamManage.vue +0 -51
  53. package/src/components/server/ImageVieweTest.vue +0 -56
  54. package/src/components/server/ImageViewer.vue +0 -350
  55. package/src/components/server/PcdBuildingSelect.vue +0 -241
  56. package/src/styles/less/manageStyle/manageStyle/manageChile.less +0 -180
  57. package/src/styles/less/manageStyle/manageStyle/manageStyle.less +0 -1102
  58. package/src/styles/less/manageStyle/manageStyle/safeStyle.less +0 -498
  59. package/static/newStyle/about-us.png +0 -0
  60. package/yarn-error.log +0 -6896
  61. /package/static/{logo.png → ewmlogo.png} +0 -0
@@ -7,19 +7,21 @@ let loginGen = async function (name, password) {
7
7
  // rsa加密
8
8
  let encrypt = new JSEncrypt();
9
9
  encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqPvovSfXcwBbW8cKMCgwqNpsYuzF8RPAPFb7LGsnVo44JhM/xxzDyzoYtdfNmtbIuKVi9PzIsyp6rg+09gbuI6UGwBZ5DWBDBMqv5MPdOF5dCQkB2Bbr5yPfURPENypUz+pBFBg41d+BC+rwRiXELwKy7Y9caD/MtJyHydj8OUwIDAQAB');
10
- console.log(data)
11
-
12
- let getLogin = await Vue.resetpost('/rs/logic/getLogin', data, {resolveMsg: null, rejectMsg: null}, 'RSA')
10
+ const getLogin = await Vue.resetpost('/rs/logic/getLogin', data, {resolveMsg: null, rejectMsg: null}, 'RSA')
13
11
  if (getLogin.data.states === '登录成功') {
14
12
  // 调用远程登录服务,获取所有有权访问的功能
15
13
  data = {username: name, password: password}
16
14
  data = encrypt.encrypt(JSON.stringify(data))
17
- let resource = await Vue.resetpost(`/rs/user/userLogin/客服系统`, data, {
18
- resolveMsg: null,
19
- rejectMsg: null
15
+ const resource = await Vue.resetpost(`/rs/user/userLogin/客服系统`, data, {
16
+ resolveMsg: null, rejectMsg: null
20
17
  })
21
- console.log('登陆获取Util', JSON.stringify(resource.data))
22
- Vue.$login.f = resource.data
18
+
19
+ if (resource.data.code !== 200) {
20
+ throw {status: resource.data.code, data: resource.data.msg}
21
+ }
22
+
23
+ console.log('登陆获取Util', resource.data)
24
+ Vue.$login.f = resource.data.data
23
25
  //获取jwt
24
26
  Vue.$login.jwt = getLogin.data.jwt
25
27
  // 把登录用户添加到cookie里
@@ -28,33 +30,27 @@ let loginGen = async function (name, password) {
28
30
  try {
29
31
  //获取有权限的功能树
30
32
  let hasRight = await Vue.resetpost(`/rs/search`, {
31
- source: "tool.getFullTree(this.getRights().where(row.getType() == $function$))",
32
- userid: Vue.$login.f.id
33
- },
34
- {
35
- resolveMsg: null,
36
- rejectMsg: null
37
- })
33
+ source: "tool.getFullTree(this.getRights().where(row.getType() == $function$))", userid: Vue.$login.f.id
34
+ }, {
35
+ resolveMsg: null, rejectMsg: null
36
+ })
38
37
  console.log('有权限功能返回数据', JSON.stringify(hasRight.data))
39
38
  //准备替换功能树
40
- var fun=[]
39
+ var fun = []
41
40
  hasRight.data[0].children[0].children.forEach((item) => {
42
- if(item.name=='客服系统'){
41
+ if (item.name == '客服系统') {
43
42
  item.children.forEach((item1) => {
44
43
  fun.push(item1)
45
44
  })
46
45
  }
47
46
  })
48
- // console.log('替换前', JSON.stringify(Vue.$login.f.functions))
49
- // console.log('替换后', JSON.stringify(fun))
50
- Vue.$login.f.functions=fun
51
- }catch (error) {
47
+ Vue.$login.f.functions = fun
48
+ } catch (error) {
52
49
  }
53
50
  if (Vue.$login.f.id !== '11') {
54
51
  try {
55
52
  let getAllArea = await Vue.resetpost('/rs/search', {
56
- source: 'this.getParentByType($organization$).getChildByName($片区$).getChildren()',
57
- userid: Vue.$login.f.id
53
+ source: 'this.getParentByType($organization$).getChildByName($片区$).getChildren()', userid: Vue.$login.f.id
58
54
  }, {resolveMsg: null, rejectMsg: null})
59
55
 
60
56
  let areaTemp = []
@@ -62,24 +58,23 @@ let loginGen = async function (name, password) {
62
58
  areaTemp.push({label: getAllArea.data[i].name, value: getAllArea.data[i]})
63
59
  }
64
60
  Vue.$login.f.f_allArea = areaTemp
65
- }catch (error) {
66
- Vue.$login.f.f_allArea =[]
67
- console.log('获取区县',error)
61
+ } catch (error) {
62
+ Vue.$login.f.f_allArea = []
63
+ console.log('获取区县', error)
68
64
  }
69
65
  // 获取抄表员
70
66
  try {
71
67
  let getGasman = await Vue.resetpost('/rs/search', {
72
- source: 'this.getParentByType($organization$).getChildByName($抄表员$).getUsers()',
73
- userid: Vue.$login.f.id
68
+ source: 'this.getParentByType($organization$).getChildByName($抄表员$).getUsers()', userid: Vue.$login.f.id
74
69
  }, {resolveMsg: null, rejectMsg: null})
75
70
  let gasman = []
76
71
  for (let i = 0; i < getGasman.data.length; i++) {
77
72
  gasman.push(getGasman.data[i])
78
73
  }
79
74
  Vue.$login.f.f_gasman = gasman
80
- }catch (error) {
75
+ } catch (error) {
81
76
  Vue.$login.f.f_gasman = []
82
- console.log('抄表员模块',error)
77
+ console.log('抄表员模块', error)
83
78
  }
84
79
  // // 获取安装人
85
80
  // try {
@@ -112,20 +107,22 @@ let loginGen = async function (name, password) {
112
107
  // Vue.$login.f.f_changemeterman = []
113
108
  // console.log('换表员模块',error)
114
109
  // }
115
- // 获取资源服务权限
110
+ // 获取资源服务权限
116
111
  try {
117
- let getLic = await Vue.resetpost('/rs/search', {data: {
118
- source: 'this.getRights().where(row.getType()==$function$ && row.getPath($name$).indexOf($资源操作$) != -1)',
119
- userid: Vue.$login.f.id
120
- }}, {resolveMsg: null, rejectMsg: null})
121
- let arry=[]
122
- getLic.data.forEach((item) => {
123
- arry.push(item.name)
124
- })
125
- Vue.$login.f.lics=arry
126
- }catch (error) {
112
+ let getLic = await Vue.resetpost('/rs/search', {
113
+ data: {
114
+ source: 'this.getRights().where(row.getType()==$function$ && row.getPath($name$).indexOf($资源操作$) != -1)',
115
+ userid: Vue.$login.f.id
116
+ }
117
+ }, {resolveMsg: null, rejectMsg: null})
118
+ let arry = []
119
+ getLic.data.forEach((item) => {
120
+ arry.push(item.name)
121
+ })
122
+ Vue.$login.f.lics = arry
123
+ } catch (error) {
127
124
  Vue.$login.f.f_gasman = []
128
- console.log('资源服务权限',error)
125
+ console.log('资源服务权限', error)
129
126
  }
130
127
  // // 票据使用人
131
128
  // try {
@@ -167,25 +164,21 @@ let loginGen = async function (name, password) {
167
164
  let r = viewDetails.data
168
165
  Vue.$login.r = []
169
166
  r.forEach(x => Vue.$login.r.push(x.name))
170
- }catch (error) {
167
+ } catch (error) {
171
168
  Vue.$login.r = []
172
- console.log('加载模块失败',error)
169
+ console.log('加载模块失败', error)
173
170
  }
174
171
  // 调用登录后处理
175
- for(let proc of Vue.$login.afterLogin) {
172
+ for (let proc of Vue.$login.afterLogin) {
176
173
  await proc(Vue.$login.f)
177
174
  }
178
175
  // 定时发送心跳
179
- setInterval(()=> {
176
+ setInterval(() => {
180
177
  let http = new HttpResetClass()
181
178
  //暂时不出现不出现异地登录校验
182
179
  http.load('POST', `rs/user/access/${Vue.$login.f.id}`, {}, {resolveMsg: null, rejectMsg: null}).then((req) => {
183
- if(req.data.forcestate && req.data.forcestate == 1){
184
- Vue.showMessage("您被强制下线!", ['confirm']).then((res) => {
185
- location.reload()
186
- })
187
- }else if(req.data.status==710){
188
- Vue.showMessage(req.data.msg+",您将被强制退出系统", ['confirm']).then((res) => {
180
+ if (req.data.status == 710) {
181
+ Vue.showMessage(req.data.msg + ",您将被强制退出系统", ['confirm']).then((res) => {
189
182
  if (res === 'confirm') {
190
183
  location.reload()
191
184
  }
@@ -196,36 +189,31 @@ let loginGen = async function (name, password) {
196
189
  }
197
190
 
198
191
  } else {
199
- let error = {status: 401, data: getLogin.data.states}
200
192
  // 抛出错误
201
- throw error
193
+ throw {status: 401, data: getLogin.data.states}
202
194
  }
203
195
  }
204
196
 
205
197
  let GetLoginInfoService = {
206
198
  // 登录后要处理的异步对象
207
- afterLogin: [],
208
- //验证码开关
209
- Verification: true,
210
- install (Vue, options) {
199
+ afterLogin: [], //验证码开关
200
+ Verification: true, install(Vue, options) {
211
201
  // 给vue增添对话框显示方法
212
202
  Vue.$login = Vue.prototype.$login = GetLoginInfoService
213
203
  },
214
204
 
215
- f: {
216
-
217
- },
205
+ f: {},
218
206
 
219
207
  /**
220
208
  * 登录
221
209
  * @param name
222
210
  * @param password
223
211
  */
224
- login (name, password) {
212
+ login(name, password) {
225
213
  return loginGen(name, password)
226
214
  },
227
215
 
228
- convertToIn (val) {
216
+ convertToIn(val) {
229
217
  let temp = ''
230
218
  if (val instanceof Array) {
231
219
  if (val.length >= 1) {
@@ -239,46 +227,44 @@ let GetLoginInfoService = {
239
227
  return temp
240
228
  },
241
229
 
242
- toStandardYearMonth () {
230
+ toStandardYearMonth() {
243
231
  let dt = new Date()
244
232
  let month = dt.getMonth() + 1
245
233
  return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month)
246
234
  },
247
235
 
248
- toStandardYearMonth1 () {
236
+ toStandardYearMonth1() {
249
237
  let dt = new Date()
250
238
  let month = dt.getMonth() + 1
251
239
  return dt.getFullYear() + (month < 10 ? '0' + month : month)
252
240
  },
253
241
 
254
- toStandardDateString () {
242
+ toStandardDateString() {
255
243
  let dt = new Date()
256
244
  let month = dt.getMonth() + 1
257
245
  let date = dt.getDate()
258
246
  return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
259
247
  },
260
248
 
261
- toStartAndEndDateString () {
249
+ toStartAndEndDateString() {
262
250
  let dt = new Date()
263
251
  let month = dt.getMonth() + 1
264
252
  // let date = dt.getDate()
265
- return [dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-01',
266
- dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (new Date(dt.getFullYear(), month, 0).getDate())]
253
+ return [dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-01', dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (new Date(dt.getFullYear(), month, 0).getDate())]
267
254
  // return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
268
255
  },
269
256
 
270
- toStandardTimeString () {
257
+ toStandardTimeString() {
271
258
  let dt = new Date()
272
259
  let month = dt.getMonth() + 1
273
260
  let date = dt.getDate()
274
261
  let hour = dt.getHours()
275
262
  let min = dt.getMinutes()
276
263
  let sec = dt.getSeconds()
277
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date) +
278
- ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
264
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date) + ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
279
265
  },
280
266
 
281
- guid () {
267
+ guid() {
282
268
  let buf = new Uint16Array(8)
283
269
  window.crypto.getRandomValues(buf)
284
270
  let S4 = function (num) {
@@ -291,7 +277,7 @@ let GetLoginInfoService = {
291
277
  return (S4(buf[0]) + S4(buf[1]) + S4(buf[2]) + S4(buf[3]) + S4(buf[4]) + S4(buf[5]) + S4(buf[6]) + S4(buf[7]))
292
278
  },
293
279
 
294
- choices (role, param, hasBlank = false, blankHint = '请选择') {
280
+ choices(role, param, hasBlank = false, blankHint = '请选择') {
295
281
  if (role == 'view') {
296
282
  Vue.getParams(param, [null])
297
283
  } else {
@@ -310,41 +296,35 @@ let GetLoginInfoService = {
310
296
  }
311
297
  },
312
298
 
313
- required (param) {
314
- if (typeof param === 'number' && param == 0)
315
- return false
316
- if (!param)
317
- return true
299
+ required(param) {
300
+ if (typeof param === 'number' && param == 0) return false
301
+ if (!param) return true
318
302
  param = param + ''
319
303
  param = param.trim()
320
- if (!param)
321
- return true
304
+ if (!param) return true
322
305
  return false
323
306
  },
324
307
 
325
- isInt (n) {
308
+ isInt(n) {
326
309
  return !window.isNaN(n) && n % 1 === 0
327
310
  },
328
311
 
329
- isFloat (n) {
312
+ isFloat(n) {
330
313
  return !window.isNaN(n)
331
314
  },
332
315
 
333
316
  // this will convert all true/false to boolean
334
- booleanFilter (paper) {
317
+ booleanFilter(paper) {
335
318
  for (let key in paper) {
336
- if (!paper.hasOwnProperty(key))
337
- continue
319
+ if (!paper.hasOwnProperty(key)) continue
338
320
  if (typeof paper[key] == 'object' && paper[key] != null) {
339
321
  booleanFilter(paper[key])
340
322
  } else {
341
- if (paper[key] === 'true' || paper[key] == 'false')
342
- paper[key] = (paper[key] === 'true')
323
+ if (paper[key] === 'true' || paper[key] == 'false') paper[key] = (paper[key] === 'true')
343
324
  }
344
325
  }
345
- },
346
- // recursively traverse through each path
347
- ratifyPics (paper) {
326
+ }, // recursively traverse through each path
327
+ ratifyPics(paper) {
348
328
  for (let key in paper) {
349
329
  if (key.endsWith('_path')) {
350
330
  if (!paper[key]) {
@@ -359,7 +339,7 @@ let GetLoginInfoService = {
359
339
  },
360
340
 
361
341
  // load script and other stuff
362
- loadscript (type, fileName) {
342
+ loadscript(type, fileName) {
363
343
  return new Promise((resolve, reject) => {
364
344
  let element
365
345
  if (type == 'css') {
@@ -384,13 +364,12 @@ let GetLoginInfoService = {
384
364
  document.body.appendChild(element)
385
365
  }
386
366
  })
387
- },
388
- // 不能选择器中截取掉多余的字符
389
- orgName (name) {
367
+ }, // 不能选择器中截取掉多余的字符
368
+ orgName(name) {
390
369
  return name.substring(10)
391
370
  },
392
371
 
393
- getNowDate (name) {
372
+ getNowDate(name) {
394
373
  // 求取当前时间的工具
395
374
  let myweekday = ''
396
375
  let year = ''
@@ -405,7 +384,7 @@ let GetLoginInfoService = {
405
384
  return year + '年' + mymonth + '月' + myday + '日 ' + week[myweekday]
406
385
  },
407
386
 
408
- addDate (date, days) {
387
+ addDate(date, days) {
409
388
  // 求取当前时间的工具
410
389
  let endDate = new Date(date)
411
390
  endDate = endDate.valueOf()
@@ -416,13 +395,12 @@ let GetLoginInfoService = {
416
395
  let hour = endDate.getHours()
417
396
  let min = endDate.getMinutes()
418
397
  let sec = endDate.getSeconds()
419
- return endDate.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day) +
420
- ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
398
+ return endDate.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day) + ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
421
399
  // return a
422
400
  },
423
401
 
424
402
  // 通过地址栏的参数获取参数内容
425
- getUrlParames (param) {
403
+ getUrlParames(param) {
426
404
  var query = window.location.search
427
405
  var iLen = param.length
428
406
  var iStart = query.indexOf(param)
@@ -438,7 +416,7 @@ let GetLoginInfoService = {
438
416
  },
439
417
 
440
418
  // 从地址栏获取加密的参数
441
- getUrlCompileParames (param) {
419
+ getUrlCompileParames(param) {
442
420
  let code = unescape(window.location.search.slice(1, window.location.search.length))
443
421
  let query = String.fromCharCode(code.charCodeAt(0) - code.length)
444
422
  for (var i = 1; i < code.length; i++) {
@@ -458,15 +436,14 @@ let GetLoginInfoService = {
458
436
  },
459
437
 
460
438
  // 对字符串进行加密
461
- compileStr (code) {
439
+ compileStr(code) {
462
440
  let c = String.fromCharCode(code.charCodeAt(0) + code.length)
463
441
  for (let i = 1; i < code.length; i++) {
464
442
  c += String.fromCharCode(code.charCodeAt(i) + code.charCodeAt(i - 1))
465
443
  }
466
444
  return escape(c)
467
- },
468
- // 字符串进行解密
469
- uncompileStr (code) {
445
+ }, // 字符串进行解密
446
+ uncompileStr(code) {
470
447
  code = unescape(code)
471
448
  let c = String.fromCharCode(code.charCodeAt(0) - code.length)
472
449
  for (var i = 1; i < code.length; i++) {
@@ -475,7 +452,7 @@ let GetLoginInfoService = {
475
452
  return c
476
453
  },
477
454
 
478
- dateDescripte (date) {
455
+ dateDescripte(date) {
479
456
  let nowTime = new Date().getTime()
480
457
  let oldTime = new Date(date).getTime()
481
458
  let timeDiff = nowTime - oldTime
@@ -508,7 +485,7 @@ let GetLoginInfoService = {
508
485
  return des
509
486
  },
510
487
 
511
- nextMonth20 (date) {
488
+ nextMonth20(date) {
512
489
  let ds = date.split('-')
513
490
  let nextMonth = ds[1] - 0 + 1
514
491
  return ds[0] + '-' + (nextMonth < 10 ? '0' + nextMonth : nextMonth) + '-20 00:00:00'