system-clients 3.2.6-1 → 3.2.6-aodeToV4

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 (105) hide show
  1. package/.eslintrc.js +16 -16
  2. package/.gradle/3.5/file-changes/last-build.bin +0 -0
  3. package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
  4. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  5. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  6. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  7. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  8. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  9. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  10. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  11. package/.gradle/7.1/gc.properties +0 -0
  12. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  13. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  14. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  15. package/.gradle/checksums/checksums.lock +0 -0
  16. package/.gradle/vcs-1/gc.properties +0 -0
  17. package/SystemClient.iml +11 -8
  18. package/build/webpack.base.conf.js +10 -17
  19. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  20. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  21. package/gradlew +185 -0
  22. package/gradlew.bat +89 -0
  23. package/package.json +102 -104
  24. package/src/App.vue +1 -1
  25. package/src/components/Main.vue +430 -686
  26. package/src/components/Util.js +343 -343
  27. package/src/components/equipment/EquipmentManage.vue +4 -4
  28. package/src/components/equipment/PcAdd.vue +6 -6
  29. package/src/components/equipment/PcList.vue +9 -8
  30. package/src/components/equipment/PhoneAdd.vue +14 -27
  31. package/src/components/equipment/PhoneList.vue +23 -33
  32. package/src/components/equipment/PosAdd.vue +65 -232
  33. package/src/components/equipment/PosList.vue +71 -201
  34. package/src/components/equipment/PosManage.vue +10 -80
  35. package/src/components/materialManage/materialList.vue +1 -1
  36. package/src/components/parammanage/ParamManage.vue +2 -2
  37. package/src/components/parammanage/ParamPage.vue +14 -36
  38. package/src/components/parammanage/ParamPages.vue +5 -5
  39. package/src/components/parammanage/SinglePage.vue +7 -7
  40. package/src/components/parammanage/SinglePages.vue +3 -3
  41. package/src/components/server/AddChangeMsg.vue +1 -1
  42. package/src/components/server/ChangeDeclare.vue +1 -1
  43. package/src/components/server/LoadData.vue +2 -21
  44. package/src/components/server/Login.vue +132 -295
  45. package/src/components/server/Menu.vue +188 -188
  46. package/src/components/server/ModifyPw.vue +17 -16
  47. package/src/components/server/NewResSelectGroup.vue +211 -0
  48. package/src/components/server/ResSelect.vue +3 -5
  49. package/src/components/server/ResSelectGroup.vue +118 -157
  50. package/src/components/server/RightTree.vue +257 -262
  51. package/src/components/server/RoleSelector.vue +4 -3
  52. package/src/components/server/TestResSelectGroup.vue +2 -2
  53. package/src/plugins/GetLoginInfoService.js +52 -74
  54. package/src/plugins/validation.js +0 -8
  55. package/src/project/State.js +1 -1
  56. package/src/stores/AppData.js +1 -1
  57. package/src/styles/less/aofeng/standard.less +60 -446
  58. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +13 -13
  59. package/src/styles/less/aofeng/themeOne/systemStyle.less +18 -18
  60. package/src/styles/less/fonts-list.less +4 -4
  61. package/src/styles/less/stand.less +1 -1
  62. package/src/styles/less/tables.less +0 -50
  63. package/src/styles/less/type.less +3 -16
  64. package/src/styles/less/variables.less +3 -6
  65. package/src/system.js +3 -27
  66. package/static/aodelogo.png +0 -0
  67. package/static/aodenewlogo.png +0 -0
  68. package/static/ewmlogo.png +0 -0
  69. package/.npmignore +0 -10
  70. package/build/.npmignore +0 -1
  71. package/package-lock.json +0 -23125
  72. package/src/.npmignore +0 -1
  73. package/src/components/TabButton.vue +0 -201
  74. package/src/components/Tabs.vue +0 -67
  75. package/src/components/addressManage/AddressCascadingMenu.vue +0 -145
  76. package/src/components/equipment/PosManageBoth.vue +0 -125
  77. package/src/components/equipment/PosParamAdd.vue +0 -236
  78. package/src/components/equipment/PosParamList.vue +0 -121
  79. package/src/components/equipment/PosParamManage.vue +0 -51
  80. package/src/components/server/ImageVieweTest.vue +0 -56
  81. package/src/components/server/ImageViewer.vue +0 -350
  82. package/src/components/server/PcdBuildingSelect.vue +0 -241
  83. package/src/filiale/dongguan/Login.vue +0 -889
  84. package/src/filiale/dongguan/Main.vue +0 -715
  85. package/src/filiale/dongguan/system.js +0 -6
  86. package/src/filiale/konggang/Login.vue +0 -840
  87. package/src/filiale/konggang/system.js +0 -7
  88. package/src/filiale/qianneng/ModifyPw.vue +0 -107
  89. package/src/filiale/qianneng/system.js +0 -7
  90. package/src/filiale/rizhao/LeftTree.vue +0 -111
  91. package/src/filiale/rizhao/Login.vue +0 -791
  92. package/src/filiale/rizhao/Main.vue +0 -606
  93. package/src/filiale/rizhao/system.js +0 -14
  94. package/src/filiale/yuchuan/Login.vue +0 -889
  95. package/src/filiale/yuchuan/Main.vue +0 -773
  96. package/src/filiale/yuchuan/system.js +0 -10
  97. package/src/styles/less/manageStyle/manageStyle/manageChile.less +0 -180
  98. package/src/styles/less/manageStyle/manageStyle/manageStyle.less +0 -1102
  99. package/src/styles/less/manageStyle/manageStyle/safeStyle.less +0 -498
  100. package/src/util/Daiban.json +0 -12
  101. package/static/images/lefticon//345/220/210/345/220/214/347/256/241/347/220/206.png +0 -0
  102. package/static/logo.png +0 -0
  103. package/static/newStyle/about-us.png +0 -0
  104. package/static/rizhao.png +0 -0
  105. package/yarn-error.log +0 -6896
@@ -1,36 +1,29 @@
1
1
  import Vue from 'vue'
2
2
  import {HttpResetClass} from 'vue-client'
3
- import cryptJS from './EncryptUtil'
4
- let loginGen = async function (name, password, cue) {
5
- let data = {name: name, password: password}
6
- data = '$'+cryptJS.RSAEncrypt(JSON.stringify(data))
7
- let getLogin = await Vue.resetpost('/rs/logic/getLogin', data, {resolveMsg: null, rejectMsg: null})
8
- if (getLogin.data.states === '登录成功') {
9
- // 调用远程登录服务,获取所有有权访问的功能
10
- data = {username: name, password: password}
11
- data = cryptJS.RSAEncrypt(JSON.stringify(data))
12
- let resource = await Vue.resetpost(`/rs/user/userLogin/客服系统`, data, {
13
- resolveMsg: null,
14
- rejectMsg: null
15
- })
16
- console.log('登陆获取Util', JSON.stringify(resource.data))
17
- Vue.$login.f = resource.data
18
- //获取jwt
19
- Vue.$login.jwt = getLogin.data.jwt
20
- // 把登录用户添加到cookie里
21
- Vue.cookie.set('loginId', Vue.$login.f.id)
22
3
 
23
- try {
24
- //获取有权限的功能树
25
- let hasRight = await Vue.resetpost(`/rs/search`, {
4
+ let loginGen = async function (username, password, cue) {
5
+ let data = {username, password,resourceName:'客服系统'}
6
+ const getLogin = await Vue.resetpost('/api/af-auth/login', data,
7
+ {resolveMsg: null, rejectMsg: null,headerConfig:{'Content-type': "application/json"}
8
+ })
9
+ if (getLogin.data) {
10
+ //获取jwt
11
+ if (getLogin.data.resources.data && getLogin.data.resources.data.id){
12
+ Vue.$login.jwt = getLogin.data.resources.data.id
13
+ Vue.$login.f = getLogin.data.resources.data
14
+ }else {
15
+ Vue.$login.jwt = getLogin.data.resources.id
16
+ Vue.$login.f = getLogin.data.resources
17
+ }
18
+ Vue.$login.jwtNew = getLogin.data.access_token
19
+ // 把登录用户添加到cookie里
20
+ Vue.cookie.set('loginId', Vue.$login.f.id)
21
+ try {
22
+ //获取有权限的功能树
23
+ let hasRight = await Vue.resetpost(`/rs/search`, {
26
24
  source: "tool.getFullTree(this.getRights().where(row.getType() == $function$))",
27
25
  userid: Vue.$login.f.id
28
- },
29
- {
30
- resolveMsg: null,
31
- rejectMsg: null
32
- })
33
- console.log('有权限功能返回数据', JSON.stringify(hasRight.data))
26
+ }, { resolveMsg: null, rejectMsg: null })
34
27
  //准备替换功能树
35
28
  var fun=[]
36
29
  hasRight.data[0].children[0].children.forEach((item) => {
@@ -40,8 +33,6 @@ let loginGen = async function (name, password, cue) {
40
33
  })
41
34
  }
42
35
  })
43
- // console.log('替换前', JSON.stringify(Vue.$login.f.functions))
44
- // console.log('替换后', JSON.stringify(fun))
45
36
  Vue.$login.f.functions=fun
46
37
  }catch (error) {
47
38
  }
@@ -76,22 +67,22 @@ let loginGen = async function (name, password, cue) {
76
67
  Vue.$login.f.f_gasman = []
77
68
  console.log('抄表员模块',error)
78
69
  }
79
- // 获取安装人
80
- try {
81
- let getInstallman = await Vue.resetpost('/rs/search', {
82
- source: 'this.getParentByType($organization$).getChildByName($安装员$).getUsers()',
83
- userid: Vue.$login.f.id
84
- }, {resolveMsg: null, rejectMsg: null})
85
- console.log('获取安装员', getInstallman)
86
- let installman = []
87
- for (let i = 0; i < getInstallman.data.length; i++) {
88
- installman.push(getInstallman.data[i])
89
- }
90
- Vue.$login.f.f_installman = installman
91
- }catch (error) {
92
- Vue.$login.f.f_installman =[]
93
- console.log('安装人模块',error)
94
- }
70
+ // // 获取安装人
71
+ // try {
72
+ // let getInstallman = await Vue.resetpost('/rs/search', {
73
+ // source: 'this.getParentByType($organization$).getChildByName($安装员$).getUsers()',
74
+ // userid: Vue.$login.f.id
75
+ // }, {resolveMsg: null, rejectMsg: null})
76
+ // console.log('获取安装员', getInstallman)
77
+ // let installman = []
78
+ // for (let i = 0; i < getInstallman.data.length; i++) {
79
+ // installman.push(getInstallman.data[i])
80
+ // }
81
+ // Vue.$login.f.f_installman = installman
82
+ // }catch (error) {
83
+ // Vue.$login.f.f_installman =[]
84
+ // console.log('安装人模块',error)
85
+ // }
95
86
  // 获取换表员
96
87
  // try {
97
88
  // let getChangeMeterman = await Vue.resetpost('/rs/search', {
@@ -171,25 +162,19 @@ let loginGen = async function (name, password, cue) {
171
162
  await proc(Vue.$login.f)
172
163
  }
173
164
  // 定时发送心跳
174
- if (cue){
175
- setInterval(()=> {
176
- let http = new HttpResetClass()
177
- //暂时不出现不出现异地登录校验
178
- http.load('POST', `rs/user/access/${Vue.$login.f.id}`, {}, {resolveMsg: null, rejectMsg: null}).then((req) => {
179
- if(req.data.forcestate && req.data.forcestate == 1){
180
- Vue.showMessage("您被强制下线!", ['confirm']).then((res) => {
181
- location.reload()
182
- })
183
- }else if(req.data.status==710){
184
- Vue.showMessage(req.data.msg+",您将被强制退出系统", ['confirm']).then((res) => {
185
- if (res === 'confirm') {
186
- location.reload()
187
- }
188
- })
189
- }
190
- })
191
- }, 2 * 60 * 1000)
192
- }
165
+ setInterval(()=> {
166
+ let http = new HttpResetClass()
167
+ //暂时不出现不出现异地登录校验
168
+ http.load('POST', `rs/user/access/${Vue.$login.f.id}`, {}, {resolveMsg: null, rejectMsg: null}).then((req) => {
169
+ if(req.data.status==710){
170
+ // Vue.showMessage(req.data.msg+",您将被强制退出系统", ['confirm']).then((res) => {
171
+ // if (res === 'confirm') {
172
+ // location.reload()
173
+ // }
174
+ // })
175
+ }
176
+ })
177
+ }, 2 * 60 * 1000)
193
178
  }
194
179
 
195
180
  } else {
@@ -204,8 +189,6 @@ let GetLoginInfoService = {
204
189
  afterLogin: [],
205
190
  //验证码开关
206
191
  Verification: true,
207
- //登录信息展示开关
208
- depPrompt: true,
209
192
  install (Vue, options) {
210
193
  // 给vue增添对话框显示方法
211
194
  Vue.$login = Vue.prototype.$login = GetLoginInfoService
@@ -219,13 +202,9 @@ let GetLoginInfoService = {
219
202
  * 登录
220
203
  * @param name
221
204
  * @param password
222
- * @param cue true/false 是/否显示异地登录
223
205
  */
224
- login (name, password, cue) {
225
- if (cue === undefined || cue === null || cue === ''){
226
- cue = true
227
- }
228
- return loginGen(name, password, cue)
206
+ login (name, password) {
207
+ return loginGen(name, password)
229
208
  },
230
209
 
231
210
  convertToIn (val) {
@@ -517,5 +496,4 @@ let GetLoginInfoService = {
517
496
  return ds[0] + '-' + (nextMonth < 10 ? '0' + nextMonth : nextMonth) + '-20 00:00:00'
518
497
  }
519
498
  }
520
-
521
499
  export default GetLoginInfoService
@@ -5,11 +5,3 @@ Vue.use(Validator)
5
5
  Vue.validator('strongpassword', function (val) {
6
6
  return /^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(val)
7
7
  });
8
- Vue.validator('chinesePassword', function (val) {
9
- var testBealoon=/.*?[\u4E00-\u9FFF]+.*$/.test(val)
10
- return !(/.*?[\u4E00-\u9FFF]+.*$/.test(val))
11
- });
12
- // 潜能要求8~16位数字字母组合;
13
- Vue.validator('numbersAndLetter8to16', function (val) {
14
- return /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(val)
15
- });
@@ -4,7 +4,7 @@ export default class {
4
4
  constructor () {
5
5
  this.selected = null
6
6
  // 左侧项目树
7
- this.projects = new TreeList('/rs/sql/project.sql')
7
+ this.projects = new TreeList('/api/af-system/sql/project.sql')
8
8
  }
9
9
 
10
10
  select (selected) {
@@ -9,7 +9,7 @@ let GetAppDataService = {
9
9
 
10
10
  // 开启卡监听
11
11
  load () {
12
- return Vue.resetpost('rs/logic/getInitData', {data: {f_filialeids: Vue.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
12
+ return Vue.resetpost('api/af-system/logic/getInitData', {data: {f_filialeids: Vue.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
13
13
  res.data.singleValues.forEach((item) => {
14
14
  this.singleValues[item.name] = item.value
15
15
  })