vue2-client 1.2.45 → 1.2.48

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/CHANGELOG.md +126 -114
  2. package/docs/notice.md +22 -22
  3. package/package.json +1 -1
  4. package/src/App.vue +13 -7
  5. package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +1 -1
  6. package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +149 -149
  7. package/src/base-client/components/common/XAddForm/XAddForm.vue +339 -339
  8. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +316 -316
  9. package/src/base-client/components/common/XForm/XForm.vue +275 -275
  10. package/src/base-client/components/iot/CustomerDetailsView/CustomerDetailsView.vue +225 -225
  11. package/src/base-client/components/iot/DataAnalysisView/DataAnalysisView.vue +244 -244
  12. package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +452 -452
  13. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +330 -330
  14. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +57 -57
  15. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue +121 -121
  16. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +131 -131
  17. package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +276 -276
  18. package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +469 -469
  19. package/src/base-client/components/iot/LogDetailsView/LogDetailsView.vue +379 -379
  20. package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +359 -359
  21. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsCount.vue +335 -335
  22. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsException.vue +184 -184
  23. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsHandPlan.vue +291 -291
  24. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsInstruct.vue +236 -236
  25. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsMain.vue +256 -256
  26. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsSellGas.vue +189 -189
  27. package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +722 -722
  28. package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +231 -231
  29. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +247 -247
  30. package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +370 -370
  31. package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
  32. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  33. package/src/base-client/plugins/AppData.js +17 -27
  34. package/src/base-client/plugins/GetLoginInfoService.js +252 -252
  35. package/src/components/exception/ExceptionPage.vue +70 -70
  36. package/src/components/setting/Setting.vue +235 -235
  37. package/src/config/default/setting.config.js +39 -39
  38. package/src/config/index.js +3 -3
  39. package/src/layouts/SinglePageView.vue +78 -78
  40. package/src/layouts/header/HeaderNotice.vue +0 -1
  41. package/src/pages/exception/403.vue +21 -21
  42. package/src/pages/exception/404.vue +21 -21
  43. package/src/pages/exception/500.vue +21 -21
  44. package/src/pages/report/ReportTableHome.vue +28 -28
  45. package/src/pages/resourceManage/depListManage.vue +23 -23
  46. package/src/pages/resourceManage/funListManage.vue +23 -23
  47. package/src/pages/resourceManage/index.js +15 -15
  48. package/src/pages/resourceManage/orgListManage.vue +98 -98
  49. package/src/pages/resourceManage/roleListManage.vue +23 -23
  50. package/src/pages/resourceManage/staffListManage.vue +23 -23
  51. package/src/pages/system/ticket/submitTicketSuccess.vue +248 -248
  52. package/src/router/async/config.async.js +26 -26
  53. package/src/router/index.js +27 -27
  54. package/src/services/api/common.js +47 -47
  55. package/src/services/api/index.js +39 -39
  56. package/src/services/user.js +34 -34
  57. package/src/theme/default/style.less +47 -47
  58. package/src/utils/indexedDB.js +146 -146
  59. package/src/utils/map-utils.js +17 -0
  60. package/src/utils/routerUtil.js +359 -359
  61. package/vue.config.js +143 -143
@@ -6,36 +6,26 @@ const GetAppDataService = {
6
6
  Vue.$appdata = Vue.prototype.$appdata = GetAppDataService
7
7
  },
8
8
  async load () {
9
- const params = {}
10
- // 查询燃气公司列表
11
- const orgList = []
12
- await post(manageApi.orgList, {}).then(async res => {
13
- for (let i = 0, len = res.length; i < len; i++) {
14
- orgList.push({
15
- label: res[i],
16
- value: res[i],
17
- text: res[i]
18
- })
19
- }
20
- params['orgList'] = orgList
21
- await post(manageApi.getDictionaryValue, {}).then((res) => {
22
- Object.assign(params, res)
23
- const badgeItemArray = {}
24
- for (const key of Object.keys(params)) {
25
- badgeItemArray[key] = {}
26
- for (const item of params[key]) {
27
- if (item.status) {
28
- badgeItemArray[key][item.value] = {
29
- status: item.status,
30
- text: item.text
31
- }
9
+ const params = {
10
+ orgList: []
11
+ }
12
+ await post(manageApi.getDictionaryValue, {}).then((res) => {
13
+ Object.assign(params, res)
14
+ const badgeItemArray = {}
15
+ for (const key of Object.keys(params)) {
16
+ badgeItemArray[key] = {}
17
+ for (const item of params[key]) {
18
+ if (item.status) {
19
+ badgeItemArray[key][item.value] = {
20
+ status: item.status,
21
+ text: item.text
32
22
  }
33
23
  }
34
24
  }
35
- // 追加参数
36
- localStorage.setItem(process.env.VUE_APP_DICTIONARY_KEY, JSON.stringify(params))
37
- localStorage.setItem(process.env.VUE_APP_BADGE_KEY, JSON.stringify(badgeItemArray))
38
- })
25
+ }
26
+ // 追加参数
27
+ localStorage.setItem(process.env.VUE_APP_DICTIONARY_KEY, JSON.stringify(params))
28
+ localStorage.setItem(process.env.VUE_APP_BADGE_KEY, JSON.stringify(badgeItemArray))
39
29
  })
40
30
  },
41
31
  getDictionaryList (key) {
@@ -1,252 +1,252 @@
1
- import Vue from 'vue'
2
- import { SEARCH } from '@vue2-client/services/apiService'
3
- import { post } from '@vue2-client/services/api'
4
-
5
- /**
6
- * 获取片区
7
- * @returns {Promise<void>}
8
- */
9
- // eslint-disable-next-line
10
- async function getAllArea () {
11
- try {
12
- const getAllArea = await post(SEARCH, {
13
- source: 'this.getParentByType($organization$).getChildByName($片区$).getChildren()',
14
- userid: Vue.$login.f.id
15
- })
16
- const areaTemp = []
17
- for (let i = 0; i < getAllArea.length; i++) {
18
- areaTemp.push({ label: getAllArea[i].name, value: getAllArea[i] })
19
- }
20
- Vue.$login.f.f_allArea = areaTemp
21
- } catch (error) {
22
- Vue.$login.f.f_allArea = []
23
- console.log('获取片区异常', error)
24
- }
25
- }
26
- /**
27
- * 获取抄表员
28
- * @returns {Promise<void>}
29
- */
30
- async function getGasman () {
31
- try {
32
- const getGasman = await post(SEARCH, {
33
- source: 'this.getParentByType($organization$).getChildByName($抄表员$).getUsers()',
34
- userid: Vue.$login.f.id
35
- })
36
- const gasman = []
37
- for (let i = 0; i < getGasman.length; i++) {
38
- gasman.push(getGasman[i])
39
- }
40
- Vue.$login.f.f_gasman = gasman
41
- } catch (error) {
42
- Vue.$login.f.f_gasman = []
43
- console.log('获取抄表员异常', error)
44
- }
45
- }
46
- /**
47
- * 获取资源服务权限
48
- * @returns {Promise<void>}
49
- */
50
- async function getLic () {
51
- try {
52
- const getLic = await post(SEARCH, { data: {
53
- source: 'this.getRights().where(row.getType()==$function$ && row.getPath($name$).indexOf($资源操作$) != -1)',
54
- userid: Vue.$login.f.id
55
- } }, { resolveMsg: null, rejectMsg: null })
56
- const arry = []
57
- getLic.forEach((item) => {
58
- arry.push(item.name)
59
- })
60
- Vue.$login.f.lics = arry
61
- } catch (error) {
62
- Vue.$login.f.f_gasman = []
63
- console.log('获取资源服务权限异常', error)
64
- }
65
- }
66
- /**
67
- * 获取界面细节 (界面权限)
68
- * @returns {Promise<void>}
69
- */
70
- async function getViewDetails () {
71
- try {
72
- const viewDetails = await post(SEARCH, {
73
- source: 'this.getRights().where(row.getType()==$function$ && row.getPath($name$).indexOf($功能权限$) != -1)',
74
- userid: Vue.$login.f.id
75
- }, { resolveMsg: null, rejectMsg: null })
76
- const r = viewDetails
77
- Vue.$login.r = []
78
- r.forEach(x => Vue.$login.r.push(x.name))
79
- } catch (error) {
80
- Vue.$login.r = []
81
- console.log('获取界面细节异常', error)
82
- }
83
- }
84
- /**
85
- * 获取资源功能
86
- * @returns {Promise<void>}
87
- */
88
- async function getResourceFunction () {
89
- try {
90
- const resourceFunction = await post(SEARCH, {
91
- source: 'tool.getFullTree(this.getRights().where(row.getName() == $组织管理$||row.getName() == $功能管理$||row.getName() == $部门管理$ || row.getName() == $角色管理$ || row.getName() == $人员管理$|| row.getName() == $资源调配$ ))',
92
- userid: Vue.$login.f.id
93
- }, { resolveMsg: null, rejectMsg: null })
94
- return resourceFunction
95
- } catch (error) {
96
- console.log('获取资源功能异常', error)
97
- }
98
- }
99
- /**
100
- * 获取组织管理数据
101
- * @returns {Promise<void>}
102
- */
103
- async function getOrganization () {
104
- try {
105
- const resourceFunction = await post(SEARCH, {
106
- source: 'tool.getFullTree(this.getRights().where(row.getType() == $organization$||row.getType() == $zone$))',
107
- userid: Vue.$login.f.id
108
- }, { resolveMsg: null, rejectMsg: null })
109
- return resourceFunction
110
- } catch (error) {
111
- console.log('获取组织管理数据异常', error)
112
- }
113
- }
114
- /**
115
- * 完整资源树筛选指定名称的资源
116
- * @param fun 要筛选的资源树
117
- * @param name 筛选的资源名称
118
- * @returns {*}
119
- */
120
- function searchFun (fun, name) {
121
- if (fun.length > 0) {
122
- if (fun[0].name == name) {
123
- return fun[0].children
124
- } else {
125
- return searchFun(fun[0].children, name)
126
- }
127
- }
128
- }
129
-
130
- const loginGen = async function (response) {
131
- Vue.$login.f = response
132
- await Promise.all([Vue.$appdata.load(), getGasman(), getLic(), getViewDetails()])
133
- const login = {
134
- f: Vue.$login.f,
135
- jwt: Vue.$login.f.id,
136
- r: Vue.$login.r
137
- }
138
- Vue.$store.commit('account/setLogin', login)
139
- }
140
- const GetLoginInfoService = {
141
- install (Vue) {
142
- // 给vue增添对话框显示方法
143
- Vue.$login = Vue.prototype.$login = GetLoginInfoService
144
- },
145
-
146
- f: {
147
-
148
- },
149
-
150
- login (response) {
151
- return loginGen(response)
152
- },
153
-
154
- convertToIn (val) {
155
- let temp = ''
156
- if (val instanceof Array) {
157
- if (val.length >= 1) {
158
- temp = '('
159
- val.forEach((res) => {
160
- temp += `'${res}',`
161
- })
162
- temp = temp.substr(0, temp.length - 1) + ')'
163
- }
164
- }
165
- return temp
166
- },
167
- toStandardTimeString () {
168
- const dt = new Date()
169
- const month = dt.getMonth() + 1
170
- const date = dt.getDate()
171
- const hour = dt.getHours()
172
- const min = dt.getMinutes()
173
- const sec = dt.getSeconds()
174
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date) +
175
- ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
176
- },
177
-
178
- guid () {
179
- const buf = new Uint16Array(8)
180
- window.crypto.getRandomValues(buf)
181
- const S4 = function (num) {
182
- let ret = num.toString()
183
- while (ret.length < 4) {
184
- ret = '0' + ret
185
- }
186
- return ret
187
- }
188
- 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]))
189
- },
190
- required (param) {
191
- if (typeof param === 'number' && param === 0) {
192
- return false
193
- }
194
- if (!param) {
195
- return true
196
- }
197
- param = param + ''
198
- param = param.trim()
199
- return !param
200
- },
201
-
202
- isInt (n) {
203
- return !window.isNaN(n) && n % 1 === 0
204
- },
205
-
206
- // 不能选择器中截取掉多余的字符
207
- orgName (name) {
208
- return name.substring(10)
209
- },
210
-
211
- addDate (date, days) {
212
- // 求取当前时间的工具
213
- let endDate = new Date(date)
214
- endDate = endDate.valueOf()
215
- endDate = endDate + days * 24 * 60 * 60 * 1000
216
- endDate = new Date(endDate)
217
- const month = endDate.getMonth() + 1
218
- const day = endDate.getDate()
219
- const hour = endDate.getHours()
220
- const min = endDate.getMinutes()
221
- const sec = endDate.getSeconds()
222
- return endDate.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day) +
223
- ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
224
- // return a
225
- },
226
-
227
- // 对字符串进行加密
228
- compileStr (code) {
229
- let c = String.fromCharCode(code.charCodeAt(0) + code.length)
230
- for (let i = 1; i < code.length; i++) {
231
- c += String.fromCharCode(code.charCodeAt(i) + code.charCodeAt(i - 1))
232
- }
233
- return escape(c)
234
- },
235
-
236
- // 字符串进行解密
237
- uncompileStr (code) {
238
- code = unescape(code)
239
- let c = String.fromCharCode(code.charCodeAt(0) - code.length)
240
- for (let i = 1; i < code.length; i++) {
241
- c += String.fromCharCode(code.charCodeAt(i) - c.charCodeAt(i - 1))
242
- }
243
- return c
244
- }
245
- }
246
-
247
- export default GetLoginInfoService
248
- export {
249
- getResourceFunction,
250
- getOrganization,
251
- searchFun
252
- }
1
+ import Vue from 'vue'
2
+ import { SEARCH } from '@vue2-client/services/apiService'
3
+ import { post } from '@vue2-client/services/api'
4
+
5
+ /**
6
+ * 获取片区
7
+ * @returns {Promise<void>}
8
+ */
9
+ // eslint-disable-next-line
10
+ async function getAllArea () {
11
+ try {
12
+ const getAllArea = await post(SEARCH, {
13
+ source: 'this.getParentByType($organization$).getChildByName($片区$).getChildren()',
14
+ userid: Vue.$login.f.id
15
+ })
16
+ const areaTemp = []
17
+ for (let i = 0; i < getAllArea.length; i++) {
18
+ areaTemp.push({ label: getAllArea[i].name, value: getAllArea[i] })
19
+ }
20
+ Vue.$login.f.f_allArea = areaTemp
21
+ } catch (error) {
22
+ Vue.$login.f.f_allArea = []
23
+ console.log('获取片区异常', error)
24
+ }
25
+ }
26
+ /**
27
+ * 获取抄表员
28
+ * @returns {Promise<void>}
29
+ */
30
+ async function getGasman () {
31
+ try {
32
+ const getGasman = await post(SEARCH, {
33
+ source: 'this.getParentByType($organization$).getChildByName($抄表员$).getUsers()',
34
+ userid: Vue.$login.f.id
35
+ })
36
+ const gasman = []
37
+ for (let i = 0; i < getGasman.length; i++) {
38
+ gasman.push(getGasman[i])
39
+ }
40
+ Vue.$login.f.f_gasman = gasman
41
+ } catch (error) {
42
+ Vue.$login.f.f_gasman = []
43
+ console.log('获取抄表员异常', error)
44
+ }
45
+ }
46
+ /**
47
+ * 获取资源服务权限
48
+ * @returns {Promise<void>}
49
+ */
50
+ async function getLic () {
51
+ try {
52
+ const getLic = await post(SEARCH, { data: {
53
+ source: 'this.getRights().where(row.getType()==$function$ && row.getPath($name$).indexOf($资源操作$) != -1)',
54
+ userid: Vue.$login.f.id
55
+ } }, { resolveMsg: null, rejectMsg: null })
56
+ const arry = []
57
+ getLic.forEach((item) => {
58
+ arry.push(item.name)
59
+ })
60
+ Vue.$login.f.lics = arry
61
+ } catch (error) {
62
+ Vue.$login.f.f_gasman = []
63
+ console.log('获取资源服务权限异常', error)
64
+ }
65
+ }
66
+ /**
67
+ * 获取界面细节 (界面权限)
68
+ * @returns {Promise<void>}
69
+ */
70
+ async function getViewDetails () {
71
+ try {
72
+ const viewDetails = await post(SEARCH, {
73
+ source: 'this.getRights().where(row.getType()==$function$ && row.getPath($name$).indexOf($功能权限$) != -1)',
74
+ userid: Vue.$login.f.id
75
+ }, { resolveMsg: null, rejectMsg: null })
76
+ const r = viewDetails
77
+ Vue.$login.r = []
78
+ r.forEach(x => Vue.$login.r.push(x.name))
79
+ } catch (error) {
80
+ Vue.$login.r = []
81
+ console.log('获取界面细节异常', error)
82
+ }
83
+ }
84
+ /**
85
+ * 获取资源功能
86
+ * @returns {Promise<void>}
87
+ */
88
+ async function getResourceFunction () {
89
+ try {
90
+ const resourceFunction = await post(SEARCH, {
91
+ source: 'tool.getFullTree(this.getRights().where(row.getName() == $组织管理$||row.getName() == $功能管理$||row.getName() == $部门管理$ || row.getName() == $角色管理$ || row.getName() == $人员管理$|| row.getName() == $资源调配$ ))',
92
+ userid: Vue.$login.f.id
93
+ }, { resolveMsg: null, rejectMsg: null })
94
+ return resourceFunction
95
+ } catch (error) {
96
+ console.log('获取资源功能异常', error)
97
+ }
98
+ }
99
+ /**
100
+ * 获取组织管理数据
101
+ * @returns {Promise<void>}
102
+ */
103
+ async function getOrganization () {
104
+ try {
105
+ const resourceFunction = await post(SEARCH, {
106
+ source: 'tool.getFullTree(this.getRights().where(row.getType() == $organization$||row.getType() == $zone$))',
107
+ userid: Vue.$login.f.id
108
+ }, { resolveMsg: null, rejectMsg: null })
109
+ return resourceFunction
110
+ } catch (error) {
111
+ console.log('获取组织管理数据异常', error)
112
+ }
113
+ }
114
+ /**
115
+ * 完整资源树筛选指定名称的资源
116
+ * @param fun 要筛选的资源树
117
+ * @param name 筛选的资源名称
118
+ * @returns {*}
119
+ */
120
+ function searchFun (fun, name) {
121
+ if (fun.length > 0) {
122
+ if (fun[0].name == name) {
123
+ return fun[0].children
124
+ } else {
125
+ return searchFun(fun[0].children, name)
126
+ }
127
+ }
128
+ }
129
+
130
+ const loginGen = async function (response) {
131
+ Vue.$login.f = response
132
+ await Promise.all([Vue.$appdata.load(), getGasman(), getLic(), getViewDetails()])
133
+ const login = {
134
+ f: Vue.$login.f,
135
+ jwt: Vue.$login.f.id,
136
+ r: Vue.$login.r
137
+ }
138
+ Vue.$store.commit('account/setLogin', login)
139
+ }
140
+ const GetLoginInfoService = {
141
+ install (Vue) {
142
+ // 给vue增添对话框显示方法
143
+ Vue.$login = Vue.prototype.$login = GetLoginInfoService
144
+ },
145
+
146
+ f: {
147
+
148
+ },
149
+
150
+ login (response) {
151
+ return loginGen(response)
152
+ },
153
+
154
+ convertToIn (val) {
155
+ let temp = ''
156
+ if (val instanceof Array) {
157
+ if (val.length >= 1) {
158
+ temp = '('
159
+ val.forEach((res) => {
160
+ temp += `'${res}',`
161
+ })
162
+ temp = temp.substr(0, temp.length - 1) + ')'
163
+ }
164
+ }
165
+ return temp
166
+ },
167
+ toStandardTimeString () {
168
+ const dt = new Date()
169
+ const month = dt.getMonth() + 1
170
+ const date = dt.getDate()
171
+ const hour = dt.getHours()
172
+ const min = dt.getMinutes()
173
+ const sec = dt.getSeconds()
174
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date) +
175
+ ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
176
+ },
177
+
178
+ guid () {
179
+ const buf = new Uint16Array(8)
180
+ window.crypto.getRandomValues(buf)
181
+ const S4 = function (num) {
182
+ let ret = num.toString()
183
+ while (ret.length < 4) {
184
+ ret = '0' + ret
185
+ }
186
+ return ret
187
+ }
188
+ 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]))
189
+ },
190
+ required (param) {
191
+ if (typeof param === 'number' && param === 0) {
192
+ return false
193
+ }
194
+ if (!param) {
195
+ return true
196
+ }
197
+ param = param + ''
198
+ param = param.trim()
199
+ return !param
200
+ },
201
+
202
+ isInt (n) {
203
+ return !window.isNaN(n) && n % 1 === 0
204
+ },
205
+
206
+ // 不能选择器中截取掉多余的字符
207
+ orgName (name) {
208
+ return name.substring(10)
209
+ },
210
+
211
+ addDate (date, days) {
212
+ // 求取当前时间的工具
213
+ let endDate = new Date(date)
214
+ endDate = endDate.valueOf()
215
+ endDate = endDate + days * 24 * 60 * 60 * 1000
216
+ endDate = new Date(endDate)
217
+ const month = endDate.getMonth() + 1
218
+ const day = endDate.getDate()
219
+ const hour = endDate.getHours()
220
+ const min = endDate.getMinutes()
221
+ const sec = endDate.getSeconds()
222
+ return endDate.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day) +
223
+ ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
224
+ // return a
225
+ },
226
+
227
+ // 对字符串进行加密
228
+ compileStr (code) {
229
+ let c = String.fromCharCode(code.charCodeAt(0) + code.length)
230
+ for (let i = 1; i < code.length; i++) {
231
+ c += String.fromCharCode(code.charCodeAt(i) + code.charCodeAt(i - 1))
232
+ }
233
+ return escape(c)
234
+ },
235
+
236
+ // 字符串进行解密
237
+ uncompileStr (code) {
238
+ code = unescape(code)
239
+ let c = String.fromCharCode(code.charCodeAt(0) - code.length)
240
+ for (let i = 1; i < code.length; i++) {
241
+ c += String.fromCharCode(code.charCodeAt(i) - c.charCodeAt(i - 1))
242
+ }
243
+ return c
244
+ }
245
+ }
246
+
247
+ export default GetLoginInfoService
248
+ export {
249
+ getResourceFunction,
250
+ getOrganization,
251
+ searchFun
252
+ }