eoss-ui 0.4.55 → 0.4.56

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 (63) hide show
  1. package/lib/button-group.js +136 -100
  2. package/lib/button.js +138 -102
  3. package/lib/cascader.js +2 -2
  4. package/lib/checkbox-group.js +140 -104
  5. package/lib/config/api.js +4 -0
  6. package/lib/data-table-form.js +137 -101
  7. package/lib/data-table.js +139 -103
  8. package/lib/date-picker.js +145 -109
  9. package/lib/dialog.js +136 -100
  10. package/lib/eoss-ui.common.js +785 -285
  11. package/lib/flow-group.js +136 -100
  12. package/lib/flow-list.js +143 -107
  13. package/lib/flow.js +187 -151
  14. package/lib/form.js +137 -101
  15. package/lib/handle-user.js +137 -101
  16. package/lib/handler.js +137 -101
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +138 -102
  19. package/lib/input.js +138 -102
  20. package/lib/label.js +2 -2
  21. package/lib/login.js +171 -128
  22. package/lib/main.js +152 -116
  23. package/lib/mainComp.js +152 -116
  24. package/lib/menu.js +2 -2
  25. package/lib/nav.js +136 -100
  26. package/lib/notify.js +109 -101
  27. package/lib/page.js +136 -100
  28. package/lib/player.js +136 -100
  29. package/lib/qr-code.js +136 -100
  30. package/lib/radio-group.js +137 -101
  31. package/lib/retrial-auth.js +3328 -0
  32. package/lib/select-ganged.js +138 -102
  33. package/lib/select.js +139 -103
  34. package/lib/selector-panel.js +154 -118
  35. package/lib/selector.js +139 -103
  36. package/lib/sizer.js +140 -104
  37. package/lib/steps.js +138 -102
  38. package/lib/switch.js +138 -102
  39. package/lib/table-form.js +138 -102
  40. package/lib/tabs-panel.js +2 -2
  41. package/lib/tabs.js +145 -109
  42. package/lib/theme-chalk/index.css +1 -1
  43. package/lib/theme-chalk/retrial-auth.css +1 -0
  44. package/lib/tips.js +139 -103
  45. package/lib/toolbar.js +2 -2
  46. package/lib/tree-group.js +138 -102
  47. package/lib/tree.js +139 -103
  48. package/lib/upload.js +146 -110
  49. package/lib/utils/util.js +32 -4
  50. package/lib/wujie.js +138 -102
  51. package/lib/wxlogin.js +138 -102
  52. package/package.json +2 -2
  53. package/packages/checkbox-group/src/main.vue +7 -7
  54. package/packages/login/src/main.vue +26 -18
  55. package/packages/retrial-auth/index.js +5 -0
  56. package/packages/retrial-auth/src/main.vue +271 -0
  57. package/packages/theme-chalk/lib/index.css +1 -1
  58. package/packages/theme-chalk/lib/retrial-auth.css +1 -0
  59. package/packages/theme-chalk/src/index.scss +1 -0
  60. package/packages/theme-chalk/src/retrial-auth.scss +38 -0
  61. package/src/config/api.js +4 -0
  62. package/src/index.js +4 -1
  63. package/src/utils/util.js +32 -4
@@ -0,0 +1,3328 @@
1
+ module.exports =
2
+ /******/ (function(modules) { // webpackBootstrap
3
+ /******/ // The module cache
4
+ /******/ var installedModules = {};
5
+ /******/
6
+ /******/ // The require function
7
+ /******/ function __webpack_require__(moduleId) {
8
+ /******/
9
+ /******/ // Check if module is in cache
10
+ /******/ if(installedModules[moduleId]) {
11
+ /******/ return installedModules[moduleId].exports;
12
+ /******/ }
13
+ /******/ // Create a new module (and put it into the cache)
14
+ /******/ var module = installedModules[moduleId] = {
15
+ /******/ i: moduleId,
16
+ /******/ l: false,
17
+ /******/ exports: {}
18
+ /******/ };
19
+ /******/
20
+ /******/ // Execute the module function
21
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
+ /******/
23
+ /******/ // Flag the module as loaded
24
+ /******/ module.l = true;
25
+ /******/
26
+ /******/ // Return the exports of the module
27
+ /******/ return module.exports;
28
+ /******/ }
29
+ /******/
30
+ /******/
31
+ /******/ // expose the modules object (__webpack_modules__)
32
+ /******/ __webpack_require__.m = modules;
33
+ /******/
34
+ /******/ // expose the module cache
35
+ /******/ __webpack_require__.c = installedModules;
36
+ /******/
37
+ /******/ // define getter function for harmony exports
38
+ /******/ __webpack_require__.d = function(exports, name, getter) {
39
+ /******/ if(!__webpack_require__.o(exports, name)) {
40
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
+ /******/ }
42
+ /******/ };
43
+ /******/
44
+ /******/ // define __esModule on exports
45
+ /******/ __webpack_require__.r = function(exports) {
46
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
+ /******/ }
49
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
+ /******/ };
51
+ /******/
52
+ /******/ // create a fake namespace object
53
+ /******/ // mode & 1: value is a module id, require it
54
+ /******/ // mode & 2: merge all properties of value into the ns
55
+ /******/ // mode & 4: return value when already ns object
56
+ /******/ // mode & 8|1: behave like require
57
+ /******/ __webpack_require__.t = function(value, mode) {
58
+ /******/ if(mode & 1) value = __webpack_require__(value);
59
+ /******/ if(mode & 8) return value;
60
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
+ /******/ var ns = Object.create(null);
62
+ /******/ __webpack_require__.r(ns);
63
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
+ /******/ return ns;
66
+ /******/ };
67
+ /******/
68
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
69
+ /******/ __webpack_require__.n = function(module) {
70
+ /******/ var getter = module && module.__esModule ?
71
+ /******/ function getDefault() { return module['default']; } :
72
+ /******/ function getModuleExports() { return module; };
73
+ /******/ __webpack_require__.d(getter, 'a', getter);
74
+ /******/ return getter;
75
+ /******/ };
76
+ /******/
77
+ /******/ // Object.prototype.hasOwnProperty.call
78
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
+ /******/
80
+ /******/ // __webpack_public_path__
81
+ /******/ __webpack_require__.p = "/dist/";
82
+ /******/
83
+ /******/
84
+ /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 56);
86
+ /******/ })
87
+ /************************************************************************/
88
+ /******/ ({
89
+
90
+ /***/ 0:
91
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
+
93
+ "use strict";
94
+ /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
95
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
96
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
97
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
98
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
99
+ /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
100
+ /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
101
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
102
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
103
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
104
+
105
+ /**
106
+ * 新封装公告方法规范:
107
+ * 1.方法顺序按字母顺序排列
108
+ * 2.参数超过2个且有的参数是非必传的最好用对象形式传参
109
+ *
110
+ **/
111
+
112
+ /* eslint-disable indent */
113
+ var sm2 = __webpack_require__(7).sm2;
114
+
115
+
116
+
117
+
118
+
119
+ var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
120
+
121
+ var $hueStep = 2;
122
+ var $saturationStep1 = 0.16;
123
+ var $saturationStep2 = 0.05;
124
+ var $brightnessStep1 = 0.05;
125
+ var $brightnessStep2 = 0.15;
126
+ var $lightColorCount = 5;
127
+ var $darkColorCount = 4;
128
+ var publicKey = 'abcdefghijklmnopqrstuvwxyz12345678';
129
+ var loginMsg = void 0;
130
+ var initAuth = void 0;
131
+
132
+ var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ storeAsString: true });
133
+
134
+
135
+ /**
136
+ * ajax
137
+ * @desc:ajax请求
138
+ * @author huangbo
139
+ * @date 2022年5月7日
140
+ * @param {Object} [headers] - headers
141
+ * @param {String} [method] - 请求类型
142
+ * @param {String} [url] - 请求地址
143
+ * @param {String} [host] - host
144
+ * @param {Object} [data] - 请求参数
145
+ * @param {Object} [params] - 请求参数
146
+ * @param {Boolean} [format = true] - post请求是否使用表单类型
147
+ * @param {Boolean} [mix = false] - 是否混合传参
148
+ * @param {Boolean} [defaults = false] - 是否传入默认参数userId
149
+ * @param {Object} [loading] - loading加载对象
150
+ **/
151
+ // 请求
152
+ var pendingRequest = new Map();
153
+ function getRequestKey(config) {
154
+ var method = config.method,
155
+ url = config.url,
156
+ params = config.params,
157
+ data = config.data;
158
+
159
+ return [method, url, qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(params), qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data)].join('&');
160
+ };
161
+ function delPendingRequest(config) {
162
+ var requestKey = getRequestKey(config);
163
+ if (pendingRequest.has(requestKey)) {
164
+ pendingRequest.delete(requestKey);
165
+ }
166
+ }
167
+ var ajax = function ajax(_ref) {
168
+ var headers = _ref.headers,
169
+ method = _ref.method,
170
+ url = _ref.url,
171
+ _ref$host = _ref.host,
172
+ host = _ref$host === undefined ? true : _ref$host,
173
+ _ref$data = _ref.data,
174
+ data = _ref$data === undefined ? {} : _ref$data,
175
+ _ref$params = _ref.params,
176
+ params = _ref$params === undefined ? {} : _ref$params,
177
+ _ref$format = _ref.format,
178
+ format = _ref$format === undefined ? true : _ref$format,
179
+ _ref$mix = _ref.mix,
180
+ mix = _ref$mix === undefined ? false : _ref$mix,
181
+ _ref$defaults = _ref.defaults,
182
+ defaults = _ref$defaults === undefined ? false : _ref$defaults,
183
+ loading = _ref.loading;
184
+
185
+ var header = headers || {};
186
+ if (!method) {
187
+ if (format) {
188
+ method = 'get';
189
+ } else {
190
+ method = 'post';
191
+ }
192
+ } else {
193
+ method = method.toLowerCase();
194
+ }
195
+ var baseURL = host === true ? getStorage('host') : host === false ? '' : host;
196
+ var http = axios__WEBPACK_IMPORTED_MODULE_1___default.a.create({
197
+ baseURL: baseURL,
198
+ timeout: 99000,
199
+ transformResponse: [function (data) {
200
+ try {
201
+ return JSONbigToString.parse(data);
202
+ } catch (err) {
203
+ return data;
204
+ }
205
+ }]
206
+ });
207
+ // 请求拦截
208
+ http.interceptors.request.use(function (config) {
209
+ config.headers.common = getStorage();
210
+ // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
211
+ var requestKey = getRequestKey(config);
212
+ // 判断请求是否重复
213
+ if (pendingRequest.has(requestKey)) {
214
+ // 取消上次请求
215
+ var cancel = pendingRequest.get(requestKey);
216
+ cancel();
217
+ // 删除请求信息
218
+ pendingRequest.delete(requestKey);
219
+ }
220
+ // 把请求信息,添加请求到map当中
221
+ // 生成取消方法
222
+ config.cancelToken = config.cancelToken || new axios__WEBPACK_IMPORTED_MODULE_1___default.a.CancelToken(function (cancel) {
223
+ // 把取消方法添加到map
224
+ if (!pendingRequest.has(requestKey)) {
225
+ pendingRequest.set(requestKey, cancel);
226
+ }
227
+ });
228
+ return config;
229
+ }, function (err) {
230
+ return err;
231
+ });
232
+ // 响应拦截
233
+ http.interceptors.response.use(function (response) {
234
+ delPendingRequest(response.config);
235
+ loading && loading.close();
236
+ if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
237
+ if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId') || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
238
+ localStorage.setItem('ssId', response.headers.ssid);
239
+ localStorage.setItem('token', response.headers.authorization);
240
+ localStorage.setItem('Authorization', response.headers.authorization);
241
+ } else {
242
+ sessionStorage.setItem('ssId', response.headers.ssid);
243
+ sessionStorage.setItem('token', response.headers.authorization);
244
+ sessionStorage.setItem('Authorization', response.headers.authorization);
245
+ }
246
+ }
247
+ if (response.status === 200) {
248
+ if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
249
+ removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
250
+ if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
251
+ clearTimeout(loginMsg);
252
+ loginMsg = setTimeout(function () {
253
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
254
+ confirmButtonText: '确定',
255
+ closeOnClickModal: false,
256
+ type: 'warning'
257
+ } : {
258
+ confirmButtonText: '确定',
259
+ cancelButtonText: '取消',
260
+ closeOnClickModal: false,
261
+ type: 'warning'
262
+ }).then(function () {
263
+ var loginPage = getStorage('login') || getStorage('loginPage');
264
+ if (loginPage) {
265
+ win.top.location.href = loginPage;
266
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
267
+ win.top.location.href = './login.html';
268
+ } else {
269
+ var hash = win.top.location.hash;
270
+ if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
271
+ var len = win.top.location.href.indexOf(hash);
272
+ var href = win.top.location.href.slice(0, len) + '#/login';
273
+ win.top.location.href = href;
274
+ } else {
275
+ win.top.location.href = '/login.html';
276
+ }
277
+ }
278
+ }).catch(function (e) {});
279
+ }, 1000);
280
+ }
281
+ } else if (response.data.rCode === 61) {
282
+ clearTimeout(initAuth);
283
+ initAuth = setTimeout(function () {
284
+ Object(eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"])({
285
+ title: '请进行二次鉴权',
286
+ closeOnClickModal: false,
287
+ closeOnPressEscape: false,
288
+ showConfirmButton: false,
289
+ dangerouslyUseHTMLString: true,
290
+ scroll: false,
291
+ customClass: 'es-retrial-auth-msg',
292
+ render: function render(h, msgBox) {
293
+ return h('es-retrial-auth', {
294
+ ref: 'auth',
295
+ props: {
296
+ group: response.data.results.retrialAuthGroupIds,
297
+ type: response.data.results.retrialAuthType,
298
+ msgBox: msgBox
299
+ }
300
+ });
301
+ },
302
+ callback: function callback(res, obj) {
303
+ obj.$children.forEach(function (item) {
304
+ item.clearTimeouts && item.clearTimeouts();
305
+ return;
306
+ });
307
+ }
308
+ });
309
+ }, 1000);
310
+ }
311
+ // eslint-disable-next-line no-undef
312
+ return Promise.resolve(response.data);
313
+ }
314
+ }, function (error) {
315
+ loading && loading.close();
316
+ if (!axios__WEBPACK_IMPORTED_MODULE_1___default.a.isCancel(error)) {
317
+ delPendingRequest(error.config || {});
318
+ }
319
+ if (error && error.response) {
320
+ if (error.response.status) {
321
+ switch (error.response.status) {
322
+ case 400:
323
+ error.message = '错误请求';
324
+ break;
325
+ case 401:
326
+ error.message = '未授权,请重新登录';
327
+ break;
328
+ case 403:
329
+ error.message = '登录过期,请重新登录';
330
+ break;
331
+ case 404:
332
+ error.message = '网络请求不存在';
333
+ break;
334
+ case 405:
335
+ error.message = '请求方法错误';
336
+ break;
337
+ case 408:
338
+ error.message = '请求超时';
339
+ break;
340
+ case 500:
341
+ error.message = '服务器端出错';
342
+ break;
343
+ case 501:
344
+ error.message = '网络未实现';
345
+ break;
346
+ case 502:
347
+ error.message = '网络错误';
348
+ break;
349
+ case 503:
350
+ error.message = '服务不可用';
351
+ break;
352
+ case 504:
353
+ error.message = '网络超时';
354
+ break;
355
+ case 505:
356
+ error.message = 'http版本不支持该请求';
357
+ break;
358
+ default:
359
+ error.message = '\u8FDE\u63A5\u9519\u8BEF' + error.response.status;
360
+ }
361
+ } else {
362
+ error.message = '无法请求,请联系管理员';
363
+ }
364
+ }
365
+ // eslint-disable-next-line no-undef
366
+ return Promise.reject(error);
367
+ });
368
+ var userId = getStorage('userId');
369
+ if (!Object.prototype.hasOwnProperty.call(data, 'userId') && userId && defaults) {
370
+ data.userId = userId;
371
+ }
372
+ if (!Object.prototype.hasOwnProperty.call(params, 'userId') && userId && defaults) {
373
+ params.userId = getStorage('userId');
374
+ }
375
+ if (!mix && method === 'get') {
376
+ data = {};
377
+ }
378
+ if (method === 'post') {
379
+ if (!mix) {
380
+ params = {};
381
+ }
382
+ if (format && !header['content-type']) {
383
+ data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
384
+ header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
385
+ }
386
+ }
387
+ return http({
388
+ method: method,
389
+ url: url,
390
+ data: data,
391
+ params: params,
392
+ headers: header
393
+ });
394
+ };
395
+
396
+ /**
397
+ * arrUnique
398
+ * @desc:数组元素对象去重
399
+ * @author huangbo
400
+ * @date 2022年5月7日
401
+ * @param {Object} [data] - 原始数组
402
+ * @param {String} [key] - 对象子元素的属性名
403
+ **/
404
+ var arrUnique = function arrUnique(data, key) {
405
+ var newArr = [];
406
+ if (key === undefined) {
407
+ data.sort();
408
+ newArr = [data[0]];
409
+ for (var i = 1; i < data.length; i++) {
410
+ if (data[i] !== newArr[newArr.length - 1]) {
411
+ newArr.push(data[i]);
412
+ }
413
+ }
414
+ } else {
415
+ var obj = {};
416
+ for (var _i = 0; _i < data.length; _i++) {
417
+ if (!obj[data[_i][key]]) {
418
+ newArr.push(data[_i]);
419
+ obj[data[_i][key]] = true;
420
+ }
421
+ }
422
+ }
423
+ return newArr;
424
+ };
425
+ /**
426
+ * browser
427
+ * @desc:浏览器类型
428
+ * @author huangbo
429
+ * @date 2022年5月7日
430
+ **/
431
+ var browser = function browser() {
432
+ var reg = { ie: /msie/, moz: /gecko/, opera: /opera/, safari: /safari/ };
433
+ for (var i in reg) {
434
+ if (reg[i].test(win.navigator.userAgent.toLowerCase())) {
435
+ return i;
436
+ }
437
+ }
438
+ };
439
+
440
+ /**
441
+ * calcDateDayDiff
442
+ * @desc:时间计算-天数计算
443
+ * @author sutao
444
+ * @date 2023年11月10日
445
+ * @param {String/Object/Number} [date1] - 时间对象、字符串、时间戳
446
+ * @param {String/Object/Number} [date2] - 时间对象、字符串、时间戳
447
+ **/
448
+ var calcDateDayDiff = function calcDateDayDiff(date1, date2) {
449
+ if (date1 && date2) {
450
+ try {
451
+ // 尝试将输入转换为 Date 对象
452
+ var d1 = new Date(date1);
453
+ var d2 = new Date(date2);
454
+
455
+ // 检查转换是否成功
456
+ if (isNaN(d1.getTime()) || isNaN(d2.getTime())) {
457
+ throw new Error('日期格式不正确');
458
+ }
459
+
460
+ // 将日期转换为毫秒数
461
+ var timeDiff = Math.abs(d2.getTime() - d1.getTime());
462
+
463
+ // 计算天数
464
+ var days = Math.floor(timeDiff / (1000 * 60 * 60 * 24));
465
+
466
+ return days;
467
+ } catch (error) {
468
+ // 捕获错误并抛出
469
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].error(error, 5);
470
+ }
471
+ }
472
+ };
473
+
474
+ /**
475
+ * calcDateHourDiff
476
+ * @desc:时间计算-小时计算
477
+ * @author sutao
478
+ * @date 2023年11月10日
479
+ * @param {String/Object/Number} [date1] - 时间对象、字符串、时间戳
480
+ * @param {String/Object/Number} [date2] - 时间对象、字符串、时间戳
481
+ **/
482
+ var calcDateHourDiff = function calcDateHourDiff(date1, date2) {
483
+ if (date1 && date2) {
484
+ try {
485
+ // 尝试将输入转换为 Date 对象
486
+ var d1 = new Date(date1);
487
+ var d2 = new Date(date2);
488
+
489
+ // 检查转换是否成功
490
+ if (isNaN(d1.getTime()) || isNaN(d2.getTime())) {
491
+ throw new Error('日期格式不正确');
492
+ }
493
+
494
+ // 将日期转换为毫秒数
495
+ var timeDiff = Math.abs(d2.getTime() - d1.getTime());
496
+
497
+ // 计算小时
498
+ var hours = Math.floor(timeDiff / (1000 * 60 * 60));
499
+
500
+ return hours;
501
+ } catch (error) {
502
+ // 使用 MessageBox.error 处理错误
503
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].error(error.message, 5);
504
+ }
505
+ }
506
+ };
507
+
508
+ /**
509
+ * calcDateMinuteDiff
510
+ * @desc:时间计算-分钟计算
511
+ * @author sutao
512
+ * @date 2023年11月10日
513
+ * @param {String/Object/Number} [date1] - 时间对象、字符串、时间戳
514
+ * @param {String/Object/Number} [date2] - 时间对象、字符串、时间戳
515
+ **/
516
+ var calcDateMinuteDiff = function calcDateMinuteDiff(date1, date2) {
517
+ if (date1 && date2) {
518
+ try {
519
+ // 尝试将输入转换为 Date 对象
520
+ var d1 = new Date(date1);
521
+ var d2 = new Date(date2);
522
+
523
+ // 检查转换是否成功
524
+ if (isNaN(d1.getTime()) || isNaN(d2.getTime())) {
525
+ throw new Error('日期格式不正确');
526
+ }
527
+
528
+ // 将日期转换为毫秒数
529
+ var timeDiff = Math.abs(d2.getTime() - d1.getTime());
530
+
531
+ // 计算分钟
532
+ var minutes = Math.floor(timeDiff / (1000 * 60));
533
+
534
+ return minutes;
535
+ } catch (error) {
536
+ // 使用 MessageBox.error 处理错误
537
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].error(error.message, 5);
538
+ }
539
+ }
540
+ };
541
+
542
+ /**
543
+ * debounce
544
+ * @desc:添加js内容
545
+ * @author huangbo
546
+ * @date 2022年5月7日
547
+ * @param {Function} [fn] - 函数
548
+ * @param {Number} [wait] - 延迟毫秒数
549
+ * @param {Boolean} [immediate] - 是否首次触发执行
550
+ **/
551
+
552
+ var debounce = function debounce(callback, delay) {
553
+ var timeout = null;
554
+ return function () {
555
+ clearTimeout(timeout);
556
+ timeout = setTimeout(callback, delay ? delay : 500);
557
+ };
558
+ };
559
+ /**
560
+ * delUrlParam
561
+ * @desc:删除url指定参数
562
+ * @author huangbo
563
+ * @date 2022年5月7日
564
+ * @param {String} [url] - url地址
565
+ * @param {String} [key] - 参数名
566
+ **/
567
+ var delUrlParam = function delUrlParam(_ref2) {
568
+ var url = _ref2.url,
569
+ key = _ref2.key;
570
+
571
+ var src = url ? decodeURI(url) : decodeURI(win.top.location.href);
572
+ var param = getParams({ url: src });
573
+ if (param && param.hasOwnProperty(key)) {
574
+ var reg = key + '=' + param[key];
575
+ if (Object.keys(param).length > 1) {
576
+ if (src.indexOf(reg + '&') > -1) {
577
+ src = src.replace(reg + '&', '');
578
+ }
579
+ if (src.indexOf('&' + reg) > -1) {
580
+ src = src.replace('&' + reg, '');
581
+ }
582
+ } else {
583
+ src = src.replace('?' + reg, '');
584
+ }
585
+ }
586
+ return src;
587
+ };
588
+
589
+ /**
590
+ * domEval
591
+ * @desc:添加js内容
592
+ * @author huangbo
593
+ * @date 2022年5月7日
594
+ * @param {String} [code] - js内容
595
+ **/
596
+ var domEval = function domEval(code) {
597
+ var script = document.createElement('script');
598
+ script.text = code;
599
+ document.head.appendChild(script);
600
+ };
601
+
602
+ /**
603
+ * esEncode
604
+ * @desc:加密
605
+ * @author huangbo
606
+ * @date 2022年5月7日
607
+ * @param {string} [data] - 被加密的字符串
608
+ **/
609
+ var esEncode = function esEncode(value) {
610
+ var kleng = publicKey.length;
611
+ var kstr = publicKey.split('');
612
+ var result = '';
613
+ var cat = void 0;
614
+ var cat1 = void 0;
615
+ var cat2 = void 0;
616
+ var cat3 = void 0;
617
+ for (var i = 0; i < value.length; i++) {
618
+ cat = value.charCodeAt(i);
619
+ cat1 = cat % kleng;
620
+ cat = (cat - cat1) / kleng;
621
+ cat2 = cat % kleng;
622
+ cat = (cat - cat2) / kleng;
623
+ cat3 = cat % kleng;
624
+ result += kstr[cat3] + kstr[cat2] + kstr[cat1];
625
+ }
626
+ return result;
627
+ };
628
+
629
+ /**
630
+ * esDecode
631
+ * @desc:解密
632
+ * @author huangbo
633
+ * @date 2022年5月7日
634
+ * @param {string} [value] - 被解密的加密字符串
635
+ * @param {string} [key] - 私钥
636
+ **/
637
+ var esDecode = function esDecode(value) {
638
+ var kleng = publicKey.length;
639
+ var result = void 0;
640
+ var cat1 = void 0;
641
+ var cat2 = void 0;
642
+ var cat3 = void 0;
643
+ var num = 0;
644
+ var arr = void 0;
645
+ arr = new Array(Math.floor(value.length / 3));
646
+ result = arr.length;
647
+ for (var i = 0; i < result; i++) {
648
+ cat1 = publicKey.indexOf(value.charAt(num));
649
+ num++;
650
+ cat2 = publicKey.indexOf(value.charAt(num));
651
+ num++;
652
+ cat3 = publicKey.indexOf(value.charAt(num));
653
+ num++;
654
+ arr[i] = cat1 * kleng * kleng + cat2 * kleng + cat3;
655
+ }
656
+ // eslint-disable-next-line no-eval
657
+ result = eval('String.fromCharCode(' + arr.join(',') + ')');
658
+ return result;
659
+ };
660
+
661
+ /**
662
+ * esmEncrypt
663
+ * @desc:sm2加密
664
+ * @author huangbo
665
+ * @date 2022年5月7日
666
+ * @param {string} [data] - 被加密的字符串
667
+ * @param {string} [key] - 公钥
668
+ **/
669
+ var esmEncrypt = function esmEncrypt(_ref3) {
670
+ var data = _ref3.data,
671
+ key = _ref3.key,
672
+ mode = _ref3.mode;
673
+
674
+ var cipherMode = mode ? mode : 1;
675
+ if (!new RegExp('^04').test(key)) {
676
+ key = '04' + key;
677
+ }
678
+ var result = sm2.doEncrypt(data, key, cipherMode);
679
+ return result;
680
+ };
681
+
682
+ /**
683
+ * esmDecode
684
+ * @desc:sm2解密
685
+ * @author huangbo
686
+ * @date 2022年5月7日
687
+ * @param {string} [data] - 被解密的加密字符串
688
+ * @param {string} [key] - 私钥
689
+ **/
690
+ var esmDecode = function esmDecode(_ref4) {
691
+ var data = _ref4.data,
692
+ key = _ref4.key,
693
+ mode = _ref4.mode;
694
+
695
+ var cipherMode = mode ? mode : 1;
696
+ if (new RegExp('^04').test(key)) {
697
+ key = key.slice(2);
698
+ }
699
+ var result = sm2.doDecrypt(data, key, cipherMode);
700
+ return result;
701
+ };
702
+
703
+ /**
704
+ * 排除属性
705
+ * @desc:exclAttribute
706
+ * @author huangbo
707
+ * @date 2022年5月7日
708
+ * @param {String/Array} [attrs] - 要排除的属性
709
+ **/
710
+ var exclAttribute = function exclAttribute(_ref5) {
711
+ var _ref5$attrs = _ref5.attrs,
712
+ attrs = _ref5$attrs === undefined ? 'value' : _ref5$attrs,
713
+ data = _ref5.data;
714
+
715
+ var obj = extend(true, {}, data);
716
+ if (Array.isArray(attrs)) {
717
+ attrs.forEach(function (item) {
718
+ if (obj[item] !== undefined) {
719
+ delete obj[item];
720
+ }
721
+ });
722
+ } else {
723
+ delete obj[attrs];
724
+ }
725
+ return obj;
726
+ };
727
+
728
+ /**
729
+ * exportXls
730
+ * @desc:导出表格数据
731
+ * @author huangbo
732
+ * @date 2022年5月7日
733
+ * @param {thead} [array] - 表单头部
734
+ * @param {data} [array] - 导出的数据
735
+ * @param {name} [string] - 导出文件名
736
+ * @param {numbers} [boolean] - 序号
737
+ **/
738
+ var exportXls = function exportXls(_ref6) {
739
+ var _ref6$thead = _ref6.thead,
740
+ thead = _ref6$thead === undefined ? [] : _ref6$thead,
741
+ _ref6$data = _ref6.data,
742
+ data = _ref6$data === undefined ? [] : _ref6$data,
743
+ name = _ref6.name,
744
+ numbers = _ref6.numbers,
745
+ option = _ref6.option;
746
+
747
+ var tbody = '';
748
+ var aligns = [];
749
+ var fields = [];
750
+ var keys = {};
751
+ var others = {};
752
+ var alink = document.createElement('a');
753
+ for (var i = 0; i < thead.length; i++) {
754
+ tbody += '<tr style="text-align: center;">';
755
+ if (numbers) {
756
+ tbody += '<th rowspan="' + thead.length + '"></th>';
757
+ }
758
+ var tr = thead[i];
759
+ var col = 0;
760
+ for (var x = 0; x < tr.length; x++) {
761
+ var td = tr[x];
762
+ if (td.property) {
763
+ if (col === x) {
764
+ fields.push(td.property);
765
+ aligns.push(td.align);
766
+ if (td.labelKey && td.valueKey) {
767
+ keys[td.property] = { labelKey: td.labelKey, valueKey: td.valueKey, multiple: !!(td.valueToString || td['value-to-string']) };
768
+ }
769
+ } else {
770
+ others[String(col)] = [td.property, td.align];
771
+ }
772
+ }
773
+ tbody += '<th rowspan="' + td.rowspan + '" colspan="' + td.colspan + '" align="' + td.align + '">' + td.label + '</th>';
774
+ if (td.colspan) {
775
+ col += parseInt(td.colspan, 10);
776
+ } else {
777
+ col++;
778
+ }
779
+ }
780
+ tbody += '</tr>';
781
+ }
782
+ for (var _i2 in others) {
783
+ fields.splice(_i2, 0, others[_i2][0]);
784
+ aligns.splice(_i2, 0, others[_i2][1]);
785
+ }
786
+
787
+ var _loop = function _loop(_i3) {
788
+ tbody += '<tr>';
789
+
790
+ var _loop2 = function _loop2(_x) {
791
+ var field = '';
792
+ var valueKey = keys[fields[_x]] && keys[fields[_x]].valueKey ? keys[fields[_x]].valueKey : 'value';
793
+ var labelKey = keys[fields[_x]] && keys[fields[_x]].labelKey ? keys[fields[_x]].labelKey : 'name';
794
+ if (option[fields[_x]]) {
795
+ if (Array.isArray(data[_i3][fields[_x]])) {
796
+ field = [];
797
+ data[_i3][fields[_x]].forEach(function (ele) {
798
+ option[fields[_x]].forEach(function (item) {
799
+ // eslint-disable-next-line eqeqeq
800
+ if (item[valueKey] == ele) {
801
+ field.push(item[labelKey]);
802
+ return;
803
+ }
804
+ });
805
+ });
806
+ field = field.join(' ');
807
+ } else if (typeof data[_i3][fields[_x]] === 'string' && keys[fields[_x]] && keys[fields[_x]].multiple) {
808
+ field = [];
809
+ data[_i3][fields[_x]].split(',').forEach(function (ele) {
810
+ option[fields[_x]].forEach(function (item) {
811
+ // eslint-disable-next-line eqeqeq
812
+ if (item[valueKey] == ele) {
813
+ field.push(item[labelKey]);
814
+ return;
815
+ }
816
+ });
817
+ });
818
+ field = field.join(' ');
819
+ } else {
820
+ option[fields[_x]].forEach(function (item) {
821
+ // eslint-disable-next-line eqeqeq
822
+ if (item[valueKey] == data[_i3][fields[_x]]) {
823
+ field = item[labelKey];
824
+ return;
825
+ }
826
+ });
827
+ }
828
+ } else if (_typeof(data[_i3][fields[_x]]) === 'object' && keys[fields[_x]]) {
829
+ if (Array.isArray(data[_i3][fields[_x]])) {
830
+ data[_i3][fields[_x]].forEach(function (item) {
831
+ field = [];
832
+ field.push({}.toString.call(item) === '[object Object]' ? item[labelKey] : item);
833
+ });
834
+ field = field.join(' ');
835
+ } else {
836
+ field = data[_i3][fields[_x]][labelKey];
837
+ }
838
+ } else {
839
+ field = data[_i3][fields[_x]];
840
+ }
841
+ tbody += '<td align="' + aligns[_x] + '">' + field + '</td>';
842
+ };
843
+
844
+ for (var _x in fields) {
845
+ _loop2(_x);
846
+ }
847
+ tbody += '</tr>';
848
+ };
849
+
850
+ for (var _i3 = 0; _i3 < data.length; _i3++) {
851
+ _loop(_i3);
852
+ }
853
+ if (!name) {
854
+ name = 'table_' + new Date().getTime();
855
+ }
856
+ var uri = 'data:application/vnd.ms-excel;base64,';
857
+ var template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><meta charset="UTF-8"><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table style="vnd.ms-excel.numberformat:@">' + tbody + '</table></body></html>';
858
+ alink.href = uri + win.btoa(unescape(encodeURIComponent(template)));
859
+ alink.download = name + '.xls';
860
+ document.body.appendChild(alink);
861
+ alink.click();
862
+ document.body.removeChild(alink);
863
+ };
864
+
865
+ /**
866
+ * extend
867
+ * @desc:对象拷贝
868
+ * @author huangbo
869
+ * @date 2022年5月7日
870
+ * @param {Object} [target] - 被扩展的对象
871
+ * @param {Boolean}} [deep] - 是否深度操作
872
+ **/
873
+ var extend = function extend() {
874
+ var options = void 0;
875
+ var name = void 0;
876
+ var src = void 0;
877
+ var copy = void 0;
878
+ var copyIsArray = void 0;
879
+ var clone = void 0;
880
+ var target = arguments[0] || {};
881
+ var i = 1;
882
+ var length = arguments.length;
883
+ var deep = false;
884
+ if (typeof target === 'boolean') {
885
+ deep = target;
886
+ target = arguments[i] || {};
887
+ i++;
888
+ }
889
+ if ((typeof target === 'undefined' ? 'undefined' : _typeof(target)) !== 'object' && !isFunction(target)) {
890
+ target = {};
891
+ }
892
+ if (i === length) {
893
+ target = this;
894
+ i--;
895
+ }
896
+ for (; i < length; i++) {
897
+ if ((options = arguments[i]) != null) {
898
+ for (name in options) {
899
+ copy = options[name];
900
+ if (name === '__proto__' || target === copy) {
901
+ continue;
902
+ }
903
+ if (deep && copy && (isObject(copy) || (copyIsArray = Array.isArray(copy)))) {
904
+ src = target[name];
905
+ if (copyIsArray && !Array.isArray(src)) {
906
+ clone = [];
907
+ } else if (!copyIsArray && !isObject(src)) {
908
+ clone = {};
909
+ } else {
910
+ clone = src;
911
+ }
912
+ copyIsArray = false;
913
+ target[name] = extend(deep, clone, copy);
914
+ } else if (copy !== undefined) {
915
+ target[name] = copy;
916
+ }
917
+ }
918
+ }
919
+ }
920
+ return target;
921
+ };
922
+
923
+ /**
924
+ * formatDate
925
+ * @desc:格式化时间
926
+ * @author huangbo
927
+ * @date 2022年5月7日
928
+ * @param {String, Number} [date] - 时间字符串或时间戳
929
+ * @param {String} [fmt] - 格式
930
+ **/
931
+ var formatDate = function formatDate(date, fmt) {
932
+ var obj = void 0;
933
+ if (date) {
934
+ obj = new Date(date);
935
+ } else {
936
+ obj = new Date();
937
+ }
938
+ var quarter = ['一', '二', '三', '四'];
939
+ var o = {
940
+ 'b+': Math.ceil((obj.getMonth() + 1) / 6), // 半年
941
+ 'M+': obj.getMonth() + 1, // 月份
942
+ 'd+': obj.getDate(), // 日
943
+ 'H+': obj.getHours(), // 小时
944
+ 'm+': obj.getMinutes(), // 分
945
+ 's+': obj.getSeconds(), // 秒
946
+ 'q+': quarter[Math.ceil((obj.getMonth() + 1) / 3) - 1], // 季度
947
+ S: obj.getMilliseconds() // 毫秒
948
+ };
949
+ if (/(y+)/.test(fmt)) {
950
+ fmt = fmt.replace(RegExp.$1, (obj.getFullYear() + '').substr(4 - RegExp.$1.length));
951
+ }
952
+ for (var k in o) {
953
+ if (new RegExp('(' + k + ')').test(fmt)) {
954
+ fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
955
+ }
956
+ }
957
+ return fmt;
958
+ };
959
+
960
+ /**
961
+ * getColor
962
+ * @desc:根据颜色和对应的色板位置,计算出对应的色板颜色
963
+ * @author huangbo
964
+ * @date 2022年5月7日
965
+ **/
966
+ var getColor = function getColor($color, $n) {
967
+ var $isLight = $n < 7;
968
+ var $hsv = rgbToHsv($color);
969
+ // 这里将i转换成以主色为中心,两侧的i值逐渐增大
970
+ var $i = $isLight ? $lightColorCount + 1 - $n : $n - $lightColorCount - 1;
971
+ var color = hsvTorgb(getHue($hsv[0], $i, $isLight), getSaturation($hsv[1], $i, $isLight), getLightness($hsv[2], $i, $isLight));
972
+ return color;
973
+ };
974
+
975
+ /**
976
+ * getHue
977
+ * @desc:转换色相
978
+ * @author huangbo
979
+ * @date 2022年5月7日
980
+ **/
981
+ var getHue = function getHue($h, $i, $isLight) {
982
+ var $hue = void 0;
983
+ if ($h >= 60 && $h <= 240) {
984
+ $hue = $isLight ? $h - $hueStep * $i : $h + $hueStep * $i;
985
+ } else {
986
+ $hue = $isLight ? $h + $hueStep * $i : $h - $hueStep * $i;
987
+ }
988
+ $hue = ($hue + 360) % 360;
989
+ return Math.round($hue);
990
+ };
991
+
992
+ /**
993
+ * getLightness
994
+ * @desc:转换明度
995
+ * @author huangbo
996
+ * @date 2022年5月7日
997
+ **/
998
+ var getLightness = function getLightness($v, $i, $isLight) {
999
+ var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
1000
+ $value = $value < 1 ? $value : 1;
1001
+ return toFixed($value, 2);
1002
+ };
1003
+
1004
+ /**
1005
+ * getObjectType
1006
+ * @desc:获取数据类型
1007
+ * @author tangdaibing
1008
+ * @date 2022年5月7日
1009
+ **/
1010
+ var getObjectType = function getObjectType(data) {
1011
+ var type = Object.prototype.toString.call(data).toLowerCase();
1012
+ var typeFormat = {
1013
+ '[object string]': 'string',
1014
+ '[object number]': 'number',
1015
+ '[object null]': 'null',
1016
+ '[object boolean]': 'boolean',
1017
+ '[object undefined]': 'undefined',
1018
+ '[object object]': 'object',
1019
+ '[object array]': 'array',
1020
+ '[object function]': 'function',
1021
+ '[object date]': 'date'
1022
+ };
1023
+ return typeFormat[type];
1024
+ };
1025
+
1026
+ /**
1027
+ * getParams
1028
+ * @desc:获取url地址指定参数
1029
+ * @author huangbo
1030
+ * @date 2022年5月7日
1031
+ * @param {String/Object} [res] - String:参数名称;Object:name参数名称,url:需要查询的地址
1032
+ * @param {String/Boolean} [url] - Boolean:是否返回不带参数的url地址,String:返回不带参数的url地址的属性名
1033
+ **/
1034
+ var getParams = function getParams(res, baseUrl) {
1035
+ var name = void 0;
1036
+ var url = void 0;
1037
+ if (typeof res === 'string') {
1038
+ name = res;
1039
+ } else if ((typeof res === 'undefined' ? 'undefined' : _typeof(res)) === 'object') {
1040
+ name = res.name;
1041
+ url = res.url ? decodeURI(res.url) : '';
1042
+ }
1043
+ var search = void 0;
1044
+ var _url = void 0;
1045
+ if (url) {
1046
+ if (startWith(url, ['/', './'], true) || url.indexOf('html') > -1 || url.indexOf('dhtml') > -1 || url.indexOf('/#/') > -1) {
1047
+ if (url.indexOf('?') === -1) {
1048
+ _url = url.slice(0);
1049
+ } else {
1050
+ _url = url.slice(0, url.indexOf('?'));
1051
+ search = url.slice(url.indexOf('?') + 1);
1052
+ }
1053
+ }
1054
+ } else if (win.location.search) {
1055
+ search = decodeURI(win.location.search).slice(1);
1056
+ } else {
1057
+ search = decodeURI(win.location.hash);
1058
+ if (search.indexOf('?') > -1) {
1059
+ search = search.slice(search.indexOf('?') + 1);
1060
+ } else {
1061
+ search = null;
1062
+ }
1063
+ }
1064
+ if (search) {
1065
+ if (name) {
1066
+ var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
1067
+ var r = search.match(reg);
1068
+ if (r != null) {
1069
+ return unescape(r[2]).replace(new RegExp('/+', 'gm'), '&');
1070
+ } else {
1071
+ return null;
1072
+ }
1073
+ }
1074
+ var obj = {};
1075
+ if (baseUrl) {
1076
+ if (typeof baseUrl === 'string') {
1077
+ obj[baseUrl] = _url;
1078
+ } else {
1079
+ obj['_baseUrl'] = _url;
1080
+ }
1081
+ }
1082
+ if (search.indexOf('&') > -1) {
1083
+ search.split('&').forEach(function (item) {
1084
+ var val = item;
1085
+ var param = void 0;
1086
+ if (val.indexOf('?') > -1) {
1087
+ var ary = val.split('?');
1088
+ val = ary[0];
1089
+ param = ary[1].replace(new RegExp('/+', 'gm'), '&');
1090
+ }
1091
+ var items = val.split('=');
1092
+ obj[items[0]] = items[1] + (param ? '?' + param : '');
1093
+ });
1094
+ } else {
1095
+ var items = search.split('=');
1096
+ obj[items[0]] = items[1];
1097
+ }
1098
+ return obj;
1099
+ }
1100
+ return null;
1101
+ };
1102
+
1103
+ /**
1104
+ * getRgb
1105
+ * @desc:获取颜色值的rgb值
1106
+ * @author huangbo
1107
+ * @date 2022年5月7日
1108
+ * @param {string} [$color] - 颜色值
1109
+ **/
1110
+ var getRgb = function getRgb($color) {
1111
+ var rgb = [];
1112
+ // 16进制颜色值的正则
1113
+ var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
1114
+ // 把颜色值变成小写
1115
+ $color = $color.toLowerCase();
1116
+ if (reg.test($color)) {
1117
+ // 如果只有三位的值,需变成六位,如:#fff => #ffffff
1118
+ if ($color.length === 4) {
1119
+ var colorNew = '#';
1120
+ for (var i = 1; i < 4; i++) {
1121
+ colorNew += $color.slice(i, i + 1).concat($color.slice(i, i + 1));
1122
+ }
1123
+ $color = colorNew;
1124
+ }
1125
+ // 处理六位的颜色值,转为RGB
1126
+ for (var _i4 = 1; _i4 < 7; _i4 += 2) {
1127
+ rgb.push(parseInt('0x' + $color.slice(_i4, _i4 + 2), 16));
1128
+ }
1129
+ } else {
1130
+ rgb = $color.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
1131
+ }
1132
+ return rgb;
1133
+ };
1134
+
1135
+ /**
1136
+ * getSaturation
1137
+ * @desc:转换饱和度
1138
+ * @author huangbo
1139
+ * @date 2022年5月7日
1140
+ **/
1141
+ var getSaturation = function getSaturation($s, $i, $isLight) {
1142
+ var $saturation = void 0;
1143
+ if ($isLight) {
1144
+ $saturation = $s - $saturationStep1 * $i;
1145
+ } else if ($i === $darkColorCount) {
1146
+ $saturation = $s + $saturationStep1;
1147
+ } else {
1148
+ $saturation = $s + $saturationStep2 * $i;
1149
+ }
1150
+ $saturation = $saturation < 1 ? $saturation : 1;
1151
+
1152
+ if ($isLight && $i === $lightColorCount && $saturation > 0.1) {
1153
+ $saturation = 0.1;
1154
+ }
1155
+ $saturation = $saturation > 0.06 ? $saturation : 0.06;
1156
+ return toFixed($saturation, 2);
1157
+ };
1158
+
1159
+ /**
1160
+ * getScript
1161
+ * @desc:获取js文件并执行
1162
+ * @author huangbo
1163
+ * @date 2022年5月7日
1164
+ * @param {String} [url] - js文件地址
1165
+ **/
1166
+ var getScript = function getScript(url, callback) {
1167
+ // eslint-disable-next-line no-undef
1168
+ return new Promise(function (resolve, reject) {
1169
+ var xmlHttp = null;
1170
+ if (win.XMLHttpRequest) {
1171
+ xmlHttp = new XMLHttpRequest();
1172
+ } else if (win.ActiveXObject) {
1173
+ xmlHttp = new win.ActiveXObject('Microsoft.XMLHTTP');
1174
+ }
1175
+ if (xmlHttp == null) {
1176
+ alert('浏览器不支持xmlHttp');
1177
+ return;
1178
+ }
1179
+ xmlHttp.open('GET', url, false);
1180
+ xmlHttp.onreadystatechange = function () {
1181
+ if (xmlHttp.readyState === 4 && xmlHttp.status === 200) {
1182
+ var res = xmlHttp.responseText;
1183
+ if (callback) {
1184
+ typeof callback === 'function' && callback(res);
1185
+ } else {
1186
+ domEval(res);
1187
+ }
1188
+ resolve(res);
1189
+ } else {
1190
+ reject(false);
1191
+ }
1192
+ };
1193
+ xmlHttp.send();
1194
+ });
1195
+ };
1196
+
1197
+ /**
1198
+ * getStorage
1199
+ * @desc:获取本地储存数据
1200
+ * @author huangbo
1201
+ * @date 2022年5月7日
1202
+ * @param {String} [key] - 获取的名称
1203
+ **/
1204
+ var getStorage = function getStorage(key) {
1205
+ if (key) {
1206
+ var res = sessionStorage.getItem(key) || localStorage.getItem(key) || win[key];
1207
+ if (key === 'host' && !res) {
1208
+ return win.location.origin;
1209
+ }
1210
+ return res;
1211
+ }
1212
+ var defaults = {};
1213
+ var token = sessionStorage.getItem('token') || localStorage.getItem('token') || win.token;
1214
+ var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || win.ssId;
1215
+ var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || win.deviceUnique;
1216
+ if (token) {
1217
+ defaults.Authorization = token;
1218
+ }
1219
+ if (ssId) {
1220
+ defaults.ssId = ssId;
1221
+ }
1222
+ if (deviceUnique) {
1223
+ defaults.deviceUnique = deviceUnique;
1224
+ }
1225
+ return defaults;
1226
+ };
1227
+
1228
+ /**
1229
+ * getStyle
1230
+ * @desc:获取元素样式(含非行内样式)
1231
+ * @author huangbo
1232
+ * @date 2022年5月7日
1233
+ * @param {String} [dom] - dom元素
1234
+ * @param {String} [attr] - 样式属性名
1235
+ **/
1236
+
1237
+ var getStyle = function getStyle(dom, attr) {
1238
+ if (dom.style[attr]) {
1239
+ return dom.style[attr];
1240
+ }
1241
+ if (win.getComputedStyle) {
1242
+ return getComputedStyle(dom, null)[attr];
1243
+ }
1244
+ return dom.currentStyle[attr];
1245
+ };
1246
+
1247
+ /**
1248
+ * getTypeName
1249
+ * @desc:转换类型文本
1250
+ * @author huangbo
1251
+ * @date 2022年5月7日
1252
+ * @param {string} [type] - 类型
1253
+ **/
1254
+ var getTypeName = function getTypeName(type) {
1255
+ var typeName = '';
1256
+ var sysorgname = getStorage('sysorgname');
1257
+ var sysdepname = getStorage('sysdepname');
1258
+ if (type === 'enterprise') {
1259
+ if (sysorgname) {
1260
+ typeName = '[' + sysorgname + ']';
1261
+ } else {
1262
+ typeName = '[公司]';
1263
+ }
1264
+ } else if (type === 'department') {
1265
+ if (sysdepname) {
1266
+ typeName = '[' + sysdepname + ']';
1267
+ } else {
1268
+ typeName = '[部门]';
1269
+ }
1270
+ } else if (type === 'role') {
1271
+ typeName = '[角色]';
1272
+ } else if (type === 'post') {
1273
+ typeName = '[岗位]';
1274
+ } else if (type === 'otheremployee' || type === 'employee') {
1275
+ if (sysdepname) {
1276
+ typeName = '[' + sysdepname + '员工]';
1277
+ } else {
1278
+ typeName = '[部门员工]';
1279
+ }
1280
+ } else if (type === 'postemployee') {
1281
+ typeName = '[岗位员工]';
1282
+ } else if (type === 'persongroup') {
1283
+ typeName = '[人员群组成员]';
1284
+ } else if (type === 'filgroup') {
1285
+ if (sysorgname) {
1286
+ typeName = '[' + sysorgname + '群组成员]';
1287
+ } else {
1288
+ typeName = '[公司群组成员]';
1289
+ }
1290
+ } else if (type === 'depgroup') {
1291
+ if (sysdepname) {
1292
+ typeName = '[' + sysdepname + '群组成员]';
1293
+ } else {
1294
+ typeName = '[部门群组成员]';
1295
+ }
1296
+ } else if (type === 'persongroupobj') {
1297
+ typeName = '[人员群组]';
1298
+ } else if (type === 'filgroupobj') {
1299
+ if (sysorgname) {
1300
+ typeName = '[' + sysorgname + '群组]';
1301
+ } else {
1302
+ typeName = '[公司群组]';
1303
+ }
1304
+ } else if (type === 'depgroupobj') {
1305
+ if (sysdepname) {
1306
+ typeName = '[' + sysdepname + '群组]';
1307
+ } else {
1308
+ typeName = '[部门群组]';
1309
+ }
1310
+ } else if (type === 'otherperson' || type === 'topcontacts' || type === 'person') {
1311
+ typeName = '[人员]';
1312
+ } else if (type === 'codetable') {
1313
+ typeName = '[代码表]';
1314
+ } else if (type === 'organizecentreobj') {
1315
+ typeName = '[组织中心]';
1316
+ }
1317
+ return typeName;
1318
+ };
1319
+
1320
+ /**
1321
+ * getValues
1322
+ * @desc:获取value值
1323
+ * @author huangbo
1324
+ * @date 2022年5月7日
1325
+ * @param {object} [obj] - json对象
1326
+ * @param {boolean} [flag] - 是否不重复获取
1327
+ **/
1328
+ var getValues = function getValues(obj, flag) {
1329
+ var val = {};
1330
+ obj.forEach(function (items) {
1331
+ if (items.contents) {
1332
+ items.contents.forEach(function (item) {
1333
+ if (item.name && item.type !== 'button' && item.type !== 'submit') {
1334
+ if (item.type === 'table' && item.form) {
1335
+ val[item.name] = item.data;
1336
+ } else if (item.name && !flag && !item.hide) {
1337
+ if (item.value !== undefined && item.value !== '') {
1338
+ if (Array.isArray(val)) {
1339
+ if (val.length) {
1340
+ val[item.name] = item.value;
1341
+ }
1342
+ } else {
1343
+ val[item.name] = item.value;
1344
+ }
1345
+ }
1346
+ }
1347
+ }
1348
+ });
1349
+ } else if (items.name && items.type !== 'button' && items.type !== 'submit') {
1350
+ if (items.value !== undefined && items.value !== '') {
1351
+ if (Array.isArray(val)) {
1352
+ if (val.length) {
1353
+ val[items.name] = items.value;
1354
+ }
1355
+ } else {
1356
+ val[items.name] = items.value;
1357
+ }
1358
+ }
1359
+ } else if (items.type === 'table' && items.form) {
1360
+ val[items.type] = items.data;
1361
+ }
1362
+ });
1363
+ return val;
1364
+ };
1365
+
1366
+ /**
1367
+ * handlerUrl
1368
+ * @desc:更新url参数中的时间戳
1369
+ * @author huangbo
1370
+ * @date 2022年5月7日
1371
+ * @param {String} [url] - url地址
1372
+ **/
1373
+
1374
+ var handlerUrl = function handlerUrl(url, before) {
1375
+ var arry = url.split('?');
1376
+ if (arry.length > 2) {
1377
+ var ary = arry.splice(1, arry.length);
1378
+ arry.push(ary.join('?'));
1379
+ }
1380
+ if (arry.length > 1) {
1381
+ if (arry[1].indexOf('_tt') > -1) {
1382
+ var search = arry[1].split('&');
1383
+ for (var i in search) {
1384
+ if (search[i].indexOf('_tt') > -1) {
1385
+ search[i] = '_tt=' + new Date().getTime();
1386
+ }
1387
+ }
1388
+ arry[1] = search.join('&');
1389
+ } else {
1390
+ arry[1] += '&_tt=' + new Date().getTime();
1391
+ }
1392
+ url = arry.join('?');
1393
+ } else {
1394
+ url += '?_tt=' + new Date().getTime();
1395
+ }
1396
+ if (before && before === arry[0]) {
1397
+ var pathname = win.location.pathname;
1398
+ if (pathname === '/') {
1399
+ url = pathname + url;
1400
+ } else {
1401
+ url = pathname.replace('index.html', url);
1402
+ }
1403
+ }
1404
+ return encodeURI(url);
1405
+ };
1406
+ /**
1407
+ * hasChars
1408
+ * @desc: 检测指定字符串是否含有目标字符
1409
+ * @author huangbo
1410
+ * @date 2022年5月7日
1411
+ * @param {String} [str] - 指定字符
1412
+ * @param {String,Array} [res] - 检测目标
1413
+ **/
1414
+ var hasChars = function hasChars(res, str) {
1415
+ if (typeof res === 'string') {
1416
+ return str.indexOf(res) > -1;
1417
+ }
1418
+ if (Array.isArray(res)) {
1419
+ var flag = true;
1420
+ for (var i = 0; i < res.length; i++) {
1421
+ if (str.indexOf(res[i]) === -1) {
1422
+ flag = false;
1423
+ }
1424
+ }
1425
+ return flag;
1426
+ }
1427
+ return false;
1428
+ };
1429
+
1430
+ var hasClass = function hasClass(element, name) {
1431
+ return element && (' ' + element.className + ' ').indexOf(' ' + name + ' ') > -1;
1432
+ };
1433
+ /**
1434
+ * hsvTorgb
1435
+ * @desc:hsv转化成rgb
1436
+ * @author huangbo
1437
+ * @date 2022年5月7日
1438
+ * @param {string} [$color] - 颜色值
1439
+ **/
1440
+ var hsvTorgb = function hsvTorgb($h, $s, $v) {
1441
+ var $th = Math.floor($h / 60);
1442
+ var $t1 = $h / 60 - $th;
1443
+ var $t2 = $v * (1 - $s);
1444
+ var $t3 = $v * (1 - $t1 * $s);
1445
+ var $t4 = $v * (1 - (1 - $t1) * $s);
1446
+ var $r = [$v, $t3, $t2, $t2, $t4, $v][$th % 6];
1447
+ var $g = [$t4, $v, $v, $t3, $t2, $t2][$th % 6];
1448
+ var $b = [$t2, $t2, $t4, $v, $v, $t3][$th % 6];
1449
+ // return `rgb(${Math.round($r * 255)}, ${Math.round($g * 255)}, ${Math.round($b * 255)})`;
1450
+ var red = Math.round($r * 255);
1451
+ var green = Math.round($g * 255);
1452
+ var blue = Math.round($b * 255);
1453
+ red = red.toString(16);
1454
+ green = green.toString(16);
1455
+ blue = blue.toString(16);
1456
+ red = red.length === 1 ? '0' + red : red;
1457
+ green = green.length === 1 ? '0' + green : green;
1458
+ blue = blue.length === 1 ? '0' + blue : blue;
1459
+ return '#' + red + green + blue;
1460
+ };
1461
+
1462
+ /**
1463
+ * identical
1464
+ * @desc:验证值是否相同
1465
+ * @author huangbo
1466
+ * @date 2022年5月7日
1467
+ * @param {value} [array] - 需要对比的值的数组集合
1468
+ * @param {callback} [function] - 回调函数
1469
+ **/
1470
+ var identical = function identical(_ref7) {
1471
+ var value = _ref7.value,
1472
+ callback = _ref7.callback,
1473
+ _ref7$msg = _ref7.msg,
1474
+ msg = _ref7$msg === undefined ? ['请输入值', '请再次输入', '输入不一致!'] : _ref7$msg;
1475
+
1476
+ if (value && value.length > 1) {
1477
+ var val = value[0];
1478
+ if (val === '' || val === undefined || val === null) {
1479
+ callback(new Error(msg[0]));
1480
+ return false;
1481
+ }
1482
+ for (var i = 1; i < value.length; i++) {
1483
+ if (val === '' || val === undefined || val === null) {
1484
+ callback(new Error(msg[1]));
1485
+ return false;
1486
+ } else if (value[i] !== val) {
1487
+ callback(new Error(msg[2]));
1488
+ return false;
1489
+ }
1490
+ }
1491
+ callback();
1492
+ return true;
1493
+ }
1494
+ return false;
1495
+ };
1496
+
1497
+ /**
1498
+ * indexOfObj
1499
+ * @desc:查找数组对象下标
1500
+ * @author huangbo
1501
+ * @date 2022年5月7日
1502
+ * @param {Array} [arry] - 被查找的数组
1503
+ * @param {Object} [target] - 目标对象
1504
+ * @param {String} [key] - 目标对象的属性名
1505
+ **/
1506
+ var indexOfObj = function indexOfObj(arry, target, key) {
1507
+ for (var i = 0; i < arry.length; i++) {
1508
+ if (key) {
1509
+ if (typeof target === 'string' && arry[i][key] === target) {
1510
+ return i;
1511
+ }
1512
+ if (target[key] === arry[i][key]) {
1513
+ return i;
1514
+ }
1515
+ } else {
1516
+ if (JSON.stringify(target) === JSON.stringify(arry[i])) {
1517
+ return i;
1518
+ }
1519
+ }
1520
+ }
1521
+ return -1;
1522
+ };
1523
+
1524
+ /**
1525
+ * isFunction
1526
+ * @desc:判断是否是函数
1527
+ * @author huangbo
1528
+ * @date 2022年5月7日
1529
+ * @param {Object} [obj] - 对象
1530
+ **/
1531
+ var isFunction = function isFunction(obj) {
1532
+ return typeof obj === 'function' && typeof obj.nodeType !== 'number' && typeof obj.item !== 'function';
1533
+ };
1534
+
1535
+ /**
1536
+ * isLogined
1537
+ * @desc:是否登录(用于路由守卫中)
1538
+ * @author huangbo
1539
+ * @date 2022年5月7日
1540
+ * @param {object} [to] - 路由跳转信息
1541
+ * @param {object} [from] - 路由来源信息
1542
+ * @param {function} [next] - 跳转函数
1543
+ * @param {function} [exclude] - 不拦截的路由
1544
+ * @param {boolean} [open] - 是否新窗口打开
1545
+ * @param {boolean} [cookie] - 是否尝试采用
1546
+ * @param {sting} [loginPage] - 第三方登录页面地址
1547
+ * @param {boolean} [redirect] - 是否重定向(用于新脚手架)
1548
+ **/
1549
+ var isLogined = function isLogined(_ref8) {
1550
+ var _this = this;
1551
+
1552
+ var to = _ref8.to,
1553
+ from = _ref8.from,
1554
+ next = _ref8.next,
1555
+ _ref8$exclude = _ref8.exclude,
1556
+ exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
1557
+ open = _ref8.open,
1558
+ cookie = _ref8.cookie,
1559
+ loginPage = _ref8.loginPage,
1560
+ redirect = _ref8.redirect;
1561
+
1562
+ var logined = getStorage('logined');
1563
+ if (cookie === undefined) {
1564
+ cookie = getParams({ name: 'cookie' });
1565
+ }
1566
+ // eslint-disable-next-line eqeqeq
1567
+ if (logined || cookie == true || cookie == 1) {
1568
+ if (loginPage) {
1569
+ sessionStorage.setItem('loginPage', loginPage);
1570
+ }
1571
+ next();
1572
+ } else {
1573
+ var token = getStorage('token') || getStorage('Authorization');
1574
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1575
+ var url = win.top.location.href;
1576
+ if (to.query.openType) {
1577
+ switch (to.query.openType) {
1578
+ case 'self':
1579
+ url = win.location.href;
1580
+ break;
1581
+ case 'blank':
1582
+ url = win.location.href;
1583
+ break;
1584
+ case 'parent':
1585
+ url = win.parent.location.href;
1586
+ break;
1587
+ }
1588
+ }
1589
+ ajax({
1590
+ method: 'post',
1591
+ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
1592
+ data: to.query
1593
+ }).then(function (res) {
1594
+ if (res.rCode === 0) {
1595
+ var results = res.results;
1596
+
1597
+ switch (results.statusCode) {
1598
+ case 0:
1599
+ var storage = getStorage('storage');
1600
+ setStorage({
1601
+ type: storage,
1602
+ key: {
1603
+ ssId: results.ssId,
1604
+ token: results.token,
1605
+ Authorization: results.token,
1606
+ deviceUnique: results.deviceUnique
1607
+ }
1608
+ });
1609
+ next();
1610
+ break;
1611
+ case 1:
1612
+ break;
1613
+ case 2:
1614
+ break;
1615
+ case 3:
1616
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
1617
+ if (to.query.openType) {
1618
+ switch (to.query.openType) {
1619
+ case 'self':
1620
+ win.location.href = href;
1621
+ break;
1622
+ case 'blank':
1623
+ win.open(href);
1624
+ break;
1625
+ case 'top':
1626
+ win.top.location.href = href;
1627
+ break;
1628
+ case 'parent':
1629
+ win.parent.location.href = href;
1630
+ break;
1631
+ }
1632
+ } else {
1633
+ if (open) {
1634
+ win.open(href);
1635
+ } else {
1636
+ win.top.location.href = href;
1637
+ }
1638
+ }
1639
+ break;
1640
+ case 4:
1641
+ _this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
1642
+ confirmButtonText: '确定',
1643
+ type: 'error'
1644
+ }).then(function () {
1645
+ sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
1646
+ window.location.href = delUrlParam({ key: 'code' });
1647
+ if (loginPage) {
1648
+ win.top.location.replace(loginPage);
1649
+ } else if (document.referrer) {
1650
+ win.top.location.replace(document.referrer);
1651
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
1652
+ win.top.location.href = './login.html';
1653
+ } else {
1654
+ next('/login');
1655
+ }
1656
+ }).catch(function (e) {});
1657
+ break;
1658
+ default:
1659
+ }
1660
+ } else {
1661
+ if (token) {
1662
+ next();
1663
+ } else {
1664
+ alert(res.msg);
1665
+ }
1666
+ }
1667
+ }).catch(function (e) {});
1668
+ } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
1669
+ if (redirect && (to.path === '/main' || to.path === '/login')) {
1670
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1671
+ } else {
1672
+ next();
1673
+ }
1674
+ } else {
1675
+ if (loginPage) {
1676
+ win.top.location.replace(loginPage);
1677
+ } else if (document.referrer) {
1678
+ win.top.location.replace(document.referrer);
1679
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
1680
+ win.top.location.href = './login.html';
1681
+ } else {
1682
+ next('/login');
1683
+ }
1684
+ }
1685
+ }
1686
+ };
1687
+ var isLogged = function isLogged(res) {
1688
+ isLogined(res);
1689
+ };
1690
+
1691
+ /**
1692
+ * isObject
1693
+ * @desc:判断是否是对象
1694
+ * @author huangbo
1695
+ * @date 2022年5月7日
1696
+ * @param {Object} [obj] - 对象
1697
+ **/
1698
+ var isObject = function isObject(obj) {
1699
+ var proto = void 0;
1700
+ var Ctor = void 0;
1701
+
1702
+ if (!obj || {}.toString.call(obj) !== '[object Object]') {
1703
+ return false;
1704
+ }
1705
+
1706
+ proto = Object.getPrototypeOf(obj);
1707
+ if (!proto) {
1708
+ return true;
1709
+ }
1710
+ var ObjectFunctionString = Object.prototype.hasOwnProperty.toString.call(Object);
1711
+ Ctor = Object.prototype.hasOwnProperty.call(proto, 'constructor') && proto.constructor;
1712
+ return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
1713
+ };
1714
+
1715
+ /**
1716
+ * jointUrl
1717
+ * @desc:判断url地址是否以字符开头,没有则添加
1718
+ * @author huangbo
1719
+ * @date 2022年5月7日
1720
+ * @param {string} [reg] - 域名或者路径
1721
+ * @param {string/array} [url] - 地址
1722
+ * @param {boolean} [single] - 是否做js沙箱隔离
1723
+ **/
1724
+ var jointUrl = function jointUrl(_ref9) {
1725
+ var url = _ref9.url,
1726
+ reg = _ref9.reg;
1727
+
1728
+ if (startWith(url, ['https', 'http', 'blob:'], true) || !reg || !reg.length) {
1729
+ return url;
1730
+ }
1731
+ if (Array.isArray(reg)) {
1732
+ var newUrl = '';
1733
+ reg.forEach(function (item) {
1734
+ newUrl = startWith(url, item) ? url : item + url;
1735
+ });
1736
+ return newUrl;
1737
+ }
1738
+ return startWith(url, reg) ? url : reg + url;
1739
+ };
1740
+
1741
+ var loadJs = function loadJs(_ref10) {
1742
+ var url = _ref10.url,
1743
+ _ref10$type = _ref10.type,
1744
+ type = _ref10$type === undefined ? 'text/javascript' : _ref10$type,
1745
+ id = _ref10.id,
1746
+ _ref10$single = _ref10.single,
1747
+ single = _ref10$single === undefined ? true : _ref10$single;
1748
+
1749
+ return new Promise(function (resolve, reject) {
1750
+ var script = document.getElementById(id) || document.createElement('script');
1751
+ var src = script.getAttribute('src');
1752
+ if (src && src === url) {
1753
+ console.warn(id + '已存在');
1754
+ resolve();
1755
+ } else {
1756
+ id && script.setAttribute('id', id);
1757
+ script.setAttribute('type', type);
1758
+ script.setAttribute('src', url);
1759
+ document.getElementsByTagName('head')[0].appendChild(script);
1760
+ script.onreadystatechange = function () {
1761
+ resolve();
1762
+ };
1763
+ script.onload = function () {
1764
+ resolve();
1765
+ };
1766
+ script.onerror = function () {
1767
+ reject();
1768
+ };
1769
+ }
1770
+ });
1771
+ };
1772
+
1773
+ /**
1774
+ * loading
1775
+ * @desc:loading
1776
+ * @author huangbo
1777
+ * @date 2022年5月7日
1778
+ * @param {String} [text] - 显示的文本内容
1779
+ **/
1780
+ var loading = function loading($loading, res) {
1781
+ if (!$loading) {
1782
+ $loading = eoss_element__WEBPACK_IMPORTED_MODULE_4__["Loading"].service;
1783
+ }
1784
+ if (isObject(res)) {
1785
+ var config = extend({}, {
1786
+ target: win.top.document.body,
1787
+ fullscreen: true,
1788
+ background: 'rgba(0, 0, 0, 0.65)',
1789
+ spinner: 'el-icon-loading',
1790
+ text: '加载中...'
1791
+ }, res);
1792
+ return $loading(config);
1793
+ } else {
1794
+ var _loading = $loading({
1795
+ target: win.top.document.body,
1796
+ fullscreen: true,
1797
+ background: 'rgba(0, 0, 0, 0.65)',
1798
+ spinner: 'el-icon-loading',
1799
+ text: res ? res : '加载中...'
1800
+ });
1801
+ return _loading;
1802
+ }
1803
+ };
1804
+
1805
+ /**
1806
+ * mixColor
1807
+ * @desc:生成混合色
1808
+ * @author huangbo
1809
+ * @date 2022年5月7日
1810
+ * @param {string} [$color1] - 颜色值
1811
+ * @param {string} [$color2] - 颜色值
1812
+ * @param {string} [$n] - 百分比 0~1
1813
+ **/
1814
+ var mixColor = function mixColor($color1, $color2, $n) {
1815
+ var rgb1 = getRgb($color1);
1816
+ var rgb2 = getRgb($color2);
1817
+ var r = rgb1[0] * $n + rgb2[0] * (1 - $n);
1818
+ var g = rgb1[1] * $n + rgb2[1] * (1 - $n);
1819
+ var b = rgb1[2] * $n + rgb2[2] * (1 - $n);
1820
+ return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
1821
+ };
1822
+
1823
+ /**
1824
+ * overbrim
1825
+ * @desc:判断是否文字溢出
1826
+ * @author huangbo
1827
+ * @date 2022年5月7日
1828
+ * @param {String} [el] - 文字所在的dom
1829
+ **/
1830
+ var overbrim = function overbrim(el) {
1831
+ var w = el.offsetWidth;
1832
+ var s = el.scrollWidth;
1833
+ if (s > w) {
1834
+ return true;
1835
+ } else {
1836
+ return false;
1837
+ }
1838
+ };
1839
+
1840
+ /**
1841
+ * queryParams
1842
+ * @desc:对象转url地址的拼接参数
1843
+ * @author huangbo
1844
+ * @date 2022年5月7日
1845
+ * @param {Object} [obj] - 被转换的对象
1846
+ **/
1847
+ var queryParams = function queryParams(obj) {
1848
+ var arry = [];
1849
+ for (var i in obj) {
1850
+ arry.push(i + '=' + obj[i]);
1851
+ }
1852
+ if (arry.length) {
1853
+ return arry.join('&');
1854
+ }
1855
+ return false;
1856
+ };
1857
+
1858
+ /**
1859
+ * receiveMessage
1860
+ * @desc:接收发送信息
1861
+ * @author huangbo
1862
+ * @date 2022年5月7日
1863
+ * @param {object} [data] - 数据---其中type必须表示操作类型
1864
+ * @param {string} [url] - 消息源的 URI
1865
+ * @param {function} [callback] - 回调函数
1866
+ **/
1867
+ var receiveMessage = function receiveMessage(_ref11) {
1868
+ var _ref11$data = _ref11.data,
1869
+ data = _ref11$data === undefined ? {} : _ref11$data,
1870
+ url = _ref11.url,
1871
+ callback = _ref11.callback;
1872
+
1873
+ win.addEventListener('message', function (e) {
1874
+ if (url !== undefined) {
1875
+ var origin = e.origin || e.location.origin;
1876
+ if (origin !== url) {
1877
+ // 验证消息来源地址
1878
+ return;
1879
+ }
1880
+ }
1881
+ callback(e.data);
1882
+ });
1883
+ };
1884
+
1885
+ /**
1886
+ * removeStorage
1887
+ * @desc:删除本地储存数据
1888
+ * @author huangbo
1889
+ * @date 2022年5月7日
1890
+ * @param {String, Array} [key] - 获取的名称
1891
+ **/
1892
+ var removeStorage = function removeStorage(key) {
1893
+ if (Array.isArray(key)) {
1894
+ for (var i = 0; i < key.length; i++) {
1895
+ sessionStorage.removeItem(key[i]);
1896
+ localStorage.removeItem(key[i]);
1897
+ }
1898
+ } else if (key) {
1899
+ sessionStorage.removeItem(key);
1900
+ localStorage.removeItem(key);
1901
+ } else {
1902
+ sessionStorage.clear();
1903
+ localStorage.clear();
1904
+ }
1905
+ };
1906
+
1907
+ /**
1908
+ * replenish
1909
+ * @desc:补全小数位数
1910
+ * @author huangbo
1911
+ * @date 2022年5月7日
1912
+ * @param {string、number} [data] - 数字或字符串型数字
1913
+ * @param {number} [precision] - 需要的小数位数
1914
+ **/
1915
+ var replenish = function replenish(_ref12) {
1916
+ var data = _ref12.data,
1917
+ precision = _ref12.precision;
1918
+
1919
+ if (data && precision && precision > 0) {
1920
+ var power = Math.pow(10, precision);
1921
+ var res = data === 'string' ? Number(data) : data;
1922
+ res = String(Math.round(res * power) / power);
1923
+ var len = res.indexOf('.');
1924
+ if (len < 0) {
1925
+ len = res.length;
1926
+ res += '.';
1927
+ }
1928
+ while (res.length <= len + precision) {
1929
+ res += '0';
1930
+ }
1931
+ return parseFloat(res);
1932
+ }
1933
+ return data;
1934
+ };
1935
+
1936
+ /**
1937
+ * rgbToHsv
1938
+ * @desc:rgb转化成hsv
1939
+ * @author huangbo
1940
+ * @date 2022年5月7日
1941
+ * @param {string} [$color] - 颜色值
1942
+ **/
1943
+ var rgbToHsv = function rgbToHsv($color) {
1944
+ var rgb = getRgb($color);
1945
+ var $red = rgb[0];
1946
+ var $green = rgb[1];
1947
+ var $blue = rgb[2];
1948
+ var $max = Math.max($red, $green, $blue);
1949
+ var $min = Math.min($red, $green, $blue);
1950
+ var $diff = $max - $min;
1951
+ var $h = 0;
1952
+ if ($max === $min) {
1953
+ $h = 0;
1954
+ } else if ($max === $red) {
1955
+ $h = 60 * ($green - $blue) / $diff + ($green > $blue - 1 ? 0 : 360);
1956
+ } else if ($max === $green) {
1957
+ $h = 60 * ($blue - $red) / $diff + 120;
1958
+ } else if ($max === $blue) {
1959
+ $h = 60 * ($red - $green) / $diff + 240;
1960
+ }
1961
+ var $s = $max === 0 ? 0 : $diff / $max;
1962
+ var $v = $max / 255;
1963
+ return [$h, $s, $v];
1964
+ };
1965
+
1966
+ /**
1967
+ * sendMessage
1968
+ * @desc:向iframe发送信息
1969
+ * @author huangbo
1970
+ * @date 2022年5月7日
1971
+ * @param {object} [data] - 数据---其中type必须表示操作类型
1972
+ * @param {string} [url] - 指定的消息发送URI地址
1973
+ **/
1974
+ var sendMessage = function sendMessage(_ref13) {
1975
+ var _ref13$data = _ref13.data,
1976
+ data = _ref13$data === undefined ? {} : _ref13$data,
1977
+ url = _ref13.url;
1978
+
1979
+ var iframes = document.getElementsByTagName('iframe');
1980
+ for (var i = 0; i < iframes.length; i++) {
1981
+ if (url !== undefined) {
1982
+ if (iframes[i].contentWindow.location.href === url) {
1983
+ iframes[i].contentWindow.postMessage(data, url);
1984
+ return;
1985
+ }
1986
+ } else {
1987
+ iframes[i].contentWindow.postMessage(data);
1988
+ }
1989
+ }
1990
+ };
1991
+
1992
+ /**
1993
+ * setFavicon
1994
+ * @desc:设置浏览器页签窗口图标
1995
+ * @author huangbo
1996
+ * @date 2022年5月7日
1997
+ * @param {String} [url] - 图标地址
1998
+ **/
1999
+ var setFavicon = function setFavicon(url) {
2000
+ var link = document.querySelector("link[rel*='icon']");
2001
+ if (link) {
2002
+ link.href = url;
2003
+ } else {
2004
+ link = document.createElement('link');
2005
+ link.type = 'image/x-icon';
2006
+ link.rel = 'shortcut icon';
2007
+ link.href = url;
2008
+ document.getElementsByTagName('head')[0].appendChild(link);
2009
+ }
2010
+ };
2011
+
2012
+ /**
2013
+ * setStorage
2014
+ * @desc:设置本地储存数据
2015
+ * @author huangbo
2016
+ * @date 2022年5月7日
2017
+ * @param {String} [type] - 储存类型
2018
+ * @param {String, Array, Object} [key] - 数据的名称,array类型表示多个key保存同一个value,object类型时对象的属性名称作为key属性值作为value
2019
+ * @param {String} [value] - 数据的值
2020
+ **/
2021
+ var setStorage = function setStorage(_ref14) {
2022
+ var type = _ref14.type,
2023
+ key = _ref14.key,
2024
+ value = _ref14.value;
2025
+
2026
+ if (value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
2027
+ value = JSON.stringify(value);
2028
+ }
2029
+ if (type === undefined || type === 'sessionStorage') {
2030
+ if (typeof key === 'string') {
2031
+ sessionStorage.setItem(key, value);
2032
+ } else if (Array.isArray(key)) {
2033
+ for (var i in key) {
2034
+ sessionStorage.setItem(key[i], value);
2035
+ }
2036
+ } else {
2037
+ for (var _i5 in key) {
2038
+ var val = _typeof(key[_i5]) === 'object' ? JSON.stringify(key[_i5]) : key[_i5];
2039
+ sessionStorage.setItem(_i5, val);
2040
+ }
2041
+ }
2042
+ } else {
2043
+ if (typeof key === 'string') {
2044
+ localStorage.setItem(key, value);
2045
+ } else if (Array.isArray(key)) {
2046
+ for (var _i6 in key) {
2047
+ localStorage.setItem(key[_i6], value);
2048
+ }
2049
+ } else {
2050
+ for (var _i7 in key) {
2051
+ var _val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
2052
+ localStorage.setItem(_i7, _val);
2053
+ }
2054
+ }
2055
+ }
2056
+ };
2057
+ /**
2058
+ * startWith
2059
+ * @desc:判断值是否以指定字符开头
2060
+ * @author huangbo
2061
+ * @date 2022年5月7日
2062
+ * @param {string} [value] - 被查找的字符串
2063
+ * @param {string,array} [reg] - 指定字符串
2064
+ * @param {boolean} [or] - 或者(等同于||)
2065
+ **/
2066
+ var startWith = function startWith(value, reg) {
2067
+ var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
2068
+
2069
+ if (Array.isArray(reg)) {
2070
+ var flag = true;
2071
+ for (var i = 0; i < reg.length; i++) {
2072
+ var item = reg[i];
2073
+ if (new RegExp('^' + item).test(value)) {
2074
+ if (or) {
2075
+ flag = true;
2076
+ return true;
2077
+ }
2078
+ } else {
2079
+ flag = false;
2080
+ }
2081
+ }
2082
+ return flag;
2083
+ }
2084
+ if (new RegExp('^' + reg).test(value)) {
2085
+ return true;
2086
+ }
2087
+ return false;
2088
+ };
2089
+
2090
+ /**
2091
+ * throttle
2092
+ * @desc:添加js内容
2093
+ * @author huangbo
2094
+ * @date 2022年5月7日
2095
+ * @param {Function} [fn] - 函数
2096
+ * @param {Number} [wait] - 延迟毫秒数
2097
+ **/
2098
+ var throttle = function throttle(fn, wait) {
2099
+ var timer = null;
2100
+ var startTime = Date.now();
2101
+ return function () {
2102
+ var curTime = Date.now();
2103
+ var remaining = wait - (curTime - startTime);
2104
+ var context = this;
2105
+ var args = arguments;
2106
+ clearTimeout(timer);
2107
+ if (remaining <= 0) {
2108
+ fn.apply(context, args);
2109
+ startTime = Date.now();
2110
+ } else {
2111
+ timer = setTimeout(fn, remaining); // 如果小于wait 保证在差值时间后执行
2112
+ }
2113
+ };
2114
+ };
2115
+
2116
+ /**
2117
+ * timeCycle
2118
+ * @desc:时间转换成上午下午晚上
2119
+ * @author huangbo
2120
+ * @date 2022年5月7日
2121
+ * @param {String, Number} [date] - 时间字符串或时间戳
2122
+ **/
2123
+ var timeCycle = function timeCycle(date) {
2124
+ var obj = void 0;
2125
+ if (date) {
2126
+ obj = new Date(date);
2127
+ } else {
2128
+ obj = new Date();
2129
+ }
2130
+ var h = obj.getHours(); // 获取小时
2131
+ var period = '';
2132
+ h < 12 ? period = '上午' : h < 18 ? period = '下午' : period = '晚上';
2133
+ return period;
2134
+ };
2135
+
2136
+ /**
2137
+ * toFixed
2138
+ * @desc:浮点数保留小数位
2139
+ * @author huangbo
2140
+ * @date 2022年5月7日
2141
+ * @param {number} [$float] - 要转换的数值
2142
+ * @param {number} [$digits] - 小数位数
2143
+ **/
2144
+ var toFixed = function toFixed($float, $digits) {
2145
+ var $pow = Math.pow(10, $digits);
2146
+ return Math.round($float * $pow) / $pow;
2147
+ };
2148
+ /**
2149
+ * toFunction
2150
+ * 兼容ie
2151
+ * @desc:函数字符串转函数
2152
+ * @author huangbo
2153
+ * @date 2022年5月7日
2154
+ * @param {string} [str] - 函数字符串
2155
+ **/
2156
+ var toFunction = function toFunction(str) {
2157
+ if (str.indexOf('=>') > -1) {
2158
+ var renders = str.split('=>');
2159
+ var args = renders[0].replace('(', '').replace(')', '').split(',');
2160
+ // eslint-disable-next-line no-control-regex
2161
+ var fnStr = renders[1].trim().replace(new RegExp('\n', 'gm'), '').replace(new RegExp('\t', 'gm'), '').replace(new RegExp('^\\{+|\\}+$', 'g'), '');
2162
+ var fn = void 0;
2163
+ if (args.length) {
2164
+ fn = new (Function.prototype.bind.apply(Function, [null].concat(args, [fnStr])))();
2165
+ } else {
2166
+ fn = new Function(fnStr);
2167
+ }
2168
+ return fn;
2169
+ } else {
2170
+ // eslint-disable-next-line no-eval
2171
+ return eval(str);
2172
+ }
2173
+ };
2174
+
2175
+ /**
2176
+ * updateTheme
2177
+ * @desc:更新主题色
2178
+ * @author huangbo
2179
+ * @date 2022年5月7日
2180
+ * @param {string} [$color] - 颜色值
2181
+ **/
2182
+ var updateTheme = function updateTheme($color, send) {
2183
+ $color = $color ? $color : '#409eff';
2184
+ if (send === undefined) {
2185
+ send = true;
2186
+ }
2187
+ document.documentElement.style.setProperty('--theme-primary', $color);
2188
+ for (var i = 1; i < 11; i++) {
2189
+ if (i === 6) {
2190
+ document.documentElement.style.setProperty('--theme-primary-light-' + i, $color);
2191
+ } else {
2192
+ var light = getColor($color, i);
2193
+ document.documentElement.style.setProperty('--theme-primary-light-' + i, light);
2194
+ }
2195
+ }
2196
+ if (send) {
2197
+ sendMessage({ data: { type: 'setTheme' } });
2198
+ }
2199
+ };
2200
+
2201
+ /**
2202
+ * urlJoinParams
2203
+ * @desc:对象转url拼接参数
2204
+ * @author huangbo
2205
+ * @date 2022年5月7日
2206
+ * @param {Object} [url] - url地址
2207
+ * @param {Object} [param] - 被转换的对象
2208
+ **/
2209
+ var urlJoinParams = function urlJoinParams(_ref15) {
2210
+ var url = _ref15.url,
2211
+ param = _ref15.param,
2212
+ timestamp = _ref15.timestamp;
2213
+
2214
+ var arry = decodeURI(url).split('?');
2215
+ var times = new Date().getTime();
2216
+ var params = timestamp ? { _tt: times } : {};
2217
+ if (arry.length > 1) {
2218
+ var search = arry[1].split('&');
2219
+ search.forEach(function (item) {
2220
+ var items = item.split('=');
2221
+ params[items[0]] = items[1];
2222
+ });
2223
+ }
2224
+ '&_tt=' + new Date().getTime();
2225
+ params = extend(true, params, param);
2226
+ var str = queryParams(params);
2227
+ if (str) {
2228
+ return arry[0] + '?' + str;
2229
+ }
2230
+ return arry[0];
2231
+ };
2232
+ /**
2233
+ * uuid
2234
+ * @desc:唯一id
2235
+ * @author huangbo
2236
+ * @date 2022年5月7日
2237
+ * @param {number} [len] - 长度
2238
+ **/
2239
+ var uuid = function uuid(len) {
2240
+ len = len || 32;
2241
+ var s = 4;
2242
+ var str = '';
2243
+ function S4() {
2244
+ return ((1 + Math.random()) * 0x10000 | 0).toString(16).substring(1);
2245
+ }
2246
+ for (var i = 0; i < Math.ceil(len / s); i++) {
2247
+ str += S4();
2248
+ }
2249
+ return str.substring(0, len);
2250
+ };
2251
+
2252
+ /**
2253
+ * watermark
2254
+ * @desc:水印
2255
+ * @author huangbo
2256
+ * @date 2022年5月7日
2257
+ * @param {object} [option] - 配置参数
2258
+ **/
2259
+ var watermark = function watermark(option) {
2260
+ // 默认设置
2261
+ var config = {
2262
+ rows: 5, // 水印行数
2263
+ cols: 5,
2264
+ html: '水印示例', // 水印文本内容
2265
+ angle: -15, // 旋转角度
2266
+ color: '#000', // 水印文字颜色
2267
+ width: 100, // 水印宽度
2268
+ height: 20, // 水印高度
2269
+ lineHeight: 20, // 水印行高
2270
+ opacity: 0.1, // 水印透明度
2271
+ fontSize: 14, // 水印文字字体大小
2272
+ fontWeight: 400, // 水印字体粗细
2273
+ fontFamily: '微软雅黑', // 水印文字字体类型
2274
+ textAlign: 'center', // 水印文字居中类型
2275
+ zIndex: 999999 // 水印文字的层级
2276
+ };
2277
+ var options = option ? extend(true, config, typeof option === 'string' ? { html: option } : option) : config;
2278
+ var wrap = document.createElement('div');
2279
+ // 禁止选择和复制
2280
+ wrap.onselectstart = wrap.oncontextmenu = function () {
2281
+ return false;
2282
+ };
2283
+ var docFrag = document.createDocumentFragment();
2284
+ var rows = options.rows,
2285
+ cols = options.cols,
2286
+ html = options.html,
2287
+ angle = options.angle,
2288
+ color = options.color,
2289
+ height = options.height,
2290
+ lineHeight = options.lineHeight,
2291
+ opacity = options.opacity,
2292
+ fontSize = options.fontSize,
2293
+ fontWeight = options.fontWeight,
2294
+ fontFamily = options.fontFamily,
2295
+ textAlign = options.textAlign,
2296
+ zIndex = options.zIndex;
2297
+
2298
+
2299
+ wrap.style.cssText = 'display: flex;align-items: center;justify-content: flex-start;flex-wrap: wrap;align-content: space-between;position: fixed;left: 50%;top: 50%;transform: translate(-50%, -50%);height: 100vh;width: 100vw;pointer-events: none;overflow: hidden;background: transparent;z-index: ' + zIndex + ';';
2300
+ var num = rows * cols;
2301
+ for (var i = 0; i < num; i++) {
2302
+ var item = document.createElement('div');
2303
+ item.innerHTML = html;
2304
+ item.style.cssText = 'flex-grow: 1;flex-shrink: 0;color: ' + color + ';text-align: ' + textAlign + ';width: ' + 100 / cols + '%;height: ' + height + 'px;line-height: ' + lineHeight + 'px;font-size:' + fontSize + 'px;font-weight: ' + fontWeight + ';font-family: ' + fontFamily + ';text-align: ' + textAlign + ';transform: rotate(' + angle + 'deg);opacity: ' + opacity + ';';
2305
+ docFrag.appendChild(item);
2306
+ }
2307
+ wrap.appendChild(docFrag);
2308
+ document.body.appendChild(wrap);
2309
+ };
2310
+
2311
+ /* harmony default export */ __webpack_exports__["a"] = ({
2312
+ ajax: ajax,
2313
+ arrUnique: arrUnique,
2314
+ browser: browser,
2315
+ calcDateDayDiff: calcDateDayDiff,
2316
+ calcDateHourDiff: calcDateHourDiff,
2317
+ calcDateMinuteDiff: calcDateMinuteDiff,
2318
+ debounce: debounce,
2319
+ delUrlParam: delUrlParam,
2320
+ domEval: domEval,
2321
+ esDecode: esDecode,
2322
+ esEncode: esEncode,
2323
+ esmEncrypt: esmEncrypt,
2324
+ esmDecode: esmDecode,
2325
+ exclAttribute: exclAttribute,
2326
+ exportXls: exportXls,
2327
+ extend: extend,
2328
+ formatDate: formatDate,
2329
+ getObjectType: getObjectType,
2330
+ getParams: getParams,
2331
+ getRgb: getRgb,
2332
+ getScript: getScript,
2333
+ getStorage: getStorage,
2334
+ getStyle: getStyle,
2335
+ getTypeName: getTypeName,
2336
+ getValues: getValues,
2337
+ handlerUrl: handlerUrl,
2338
+ hasChars: hasChars,
2339
+ hasClass: hasClass,
2340
+ hsvTorgb: hsvTorgb,
2341
+ identical: identical,
2342
+ indexOfObj: indexOfObj,
2343
+ isFunction: isFunction,
2344
+ isLogged: isLogged,
2345
+ isLogined: isLogined,
2346
+ isObject: isObject,
2347
+ jointUrl: jointUrl,
2348
+ loadJs: loadJs,
2349
+ loading: loading,
2350
+ mixColor: mixColor,
2351
+ overbrim: overbrim,
2352
+ queryParams: queryParams,
2353
+ receiveMessage: receiveMessage,
2354
+ removeStorage: removeStorage,
2355
+ replenish: replenish,
2356
+ rgbToHsv: rgbToHsv,
2357
+ sendMessage: sendMessage,
2358
+ setFavicon: setFavicon,
2359
+ setStorage: setStorage,
2360
+ startWith: startWith,
2361
+ throttle: throttle,
2362
+ timeCycle: timeCycle,
2363
+ toFixed: toFixed,
2364
+ toFunction: toFunction,
2365
+ updateTheme: updateTheme,
2366
+ urlJoinParams: urlJoinParams,
2367
+ uuid: uuid,
2368
+ watermark: watermark,
2369
+ win: win
2370
+ });
2371
+
2372
+ /***/ }),
2373
+
2374
+ /***/ 1:
2375
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2376
+
2377
+ "use strict";
2378
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return doCaLogin; });
2379
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return doUserLogin; });
2380
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return doQrLogin; });
2381
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return logout; });
2382
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return initLogin; });
2383
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return switchUserTo; });
2384
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return changeImg; });
2385
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return getLoginCode; });
2386
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return doCodeLogin; });
2387
+ /* unused harmony export updateCode */
2388
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return getModifyPassCode; });
2389
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return codeModifyPass; });
2390
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return authCenter; });
2391
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return initModifyPassword; });
2392
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return doWechatQrLogin; });
2393
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getTwoFactorLoginCode; });
2394
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return doTwoFactorLogin; });
2395
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return initRetrialAuth; });
2396
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getRetrialAuthCode; });
2397
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return scanCodeRetrialAuth; });
2398
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return codeRetrialAuth; });
2399
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return mainConfig; });
2400
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return initUserSet; });
2401
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return updateUserInfo; });
2402
+ /* unused harmony export getUserImgUrl */
2403
+ /* unused harmony export getDoorIndex */
2404
+ /* unused harmony export refreshOnlineUsers */
2405
+ /* unused harmony export getQuickMenuIds */
2406
+ /* unused harmony export getApplicationIdArray */
2407
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return getComplexApplications; });
2408
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return getComplexApplicationsNew; });
2409
+ /* unused harmony export getUserCustomInfo */
2410
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return updateUserCustomInfo; });
2411
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return sysMsgPage; });
2412
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return ignoreSysMsg; });
2413
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return ignoreAllSysMsg; });
2414
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return getAdjunctProperties; });
2415
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return uploads; });
2416
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return uploadOnlyOne; });
2417
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return getAdjunctFileInfos; });
2418
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return uploadSort; });
2419
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return downloadByAdjunctId; });
2420
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return uploadDownloads; });
2421
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return previewAdjunct; });
2422
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return previewAdjunct2; });
2423
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return previewAdjunctOffice; });
2424
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return delAdjunct; });
2425
+ /* unused harmony export upload_updateClassify */
2426
+ /* unused harmony export getDeleteAdjunctFileInfos */
2427
+ /* unused harmony export getPictureBase64 */
2428
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getSelectorOrgTree; });
2429
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getSelectorOrgDetail; });
2430
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getOrgMainTree; });
2431
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getSelectOrgsubids; });
2432
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return findSysCode; });
2433
+ /* unused harmony export findUserBaseInfo */
2434
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return gethelpdoc; });
2435
+ /* unused harmony export getCurrentuser */
2436
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return mainDetail; });
2437
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return toStartFlow; });
2438
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return tempSave; });
2439
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return commonOpion; });
2440
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
2441
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return editCommonOpion; });
2442
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return saveCommonOpinion; });
2443
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return updateCommonOpinion; });
2444
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return deleteCommonOpion; });
2445
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getProcessDefList; });
2446
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return getNodeInfo; });
2447
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return findCodeValues; });
2448
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return findSysParam; });
2449
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return findSysCodes; });
2450
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getNotificationMsg; });
2451
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return getHandleInfoHtml; });
2452
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return taskHandleHtml; });
2453
+ /* unused harmony export getView */
2454
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return register; });
2455
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return pendedhistoryList; });
2456
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return toTaskRejectHtml; });
2457
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return taskRejectHtml; });
2458
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return toStartTaskRead; });
2459
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return toStartTaskReadIndex; });
2460
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return taskReadHtml; });
2461
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return rejectAndEnd; });
2462
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return toSendMsg; });
2463
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return sendMsg; });
2464
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return endFlowHtml; });
2465
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return handleInfo; });
2466
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return loginUserInfo; });
2467
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return wss; });
2468
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return topic; });
2469
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getPresetCustomInfo; });
2470
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getPresetNodeInfo; });
2471
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return toTaskTransferIndex; });
2472
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return taskTransfer; });
2473
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return toPresetInfoListIndex; });
2474
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return deletePresetInfo; });
2475
+ /* unused harmony export historyListJson */
2476
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return pendedhistoryListJson; });
2477
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return pressListJson; });
2478
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return deleteFlow; });
2479
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return isCanStartSubFlow; });
2480
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return toTaskUnionExamine; });
2481
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return taskUnionExamine; });
2482
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return toTaskTakeAdvice; });
2483
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return taskTakeAdvice; });
2484
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return toTaskStartDraft; });
2485
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return taskStartDraft; });
2486
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return toTaskReview; });
2487
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return taskReview; });
2488
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return toTaskUnionSeal; });
2489
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return taskUnionSeal; });
2490
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return toTwoOfficesDispatch; });
2491
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return twoOfficesDispatch; });
2492
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return sendList; });
2493
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return sendInfo; });
2494
+ /* unused harmony export sendSave */
2495
+ /* unused harmony export sendUpdate */
2496
+ /* unused harmony export sendDelete */
2497
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return sendBatch; });
2498
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return formContents; });
2499
+ // 登录
2500
+ var doCaLogin = '/sso2/signIn/auth/doCaLogin'; // ca登录认证
2501
+ var doUserLogin = '/sso2/signIn/auth/doUserLogin'; // 一般的账号密码认证含验证码验证
2502
+ var doQrLogin = '/sso2/signIn/auth/doQrLogin'; // 扫码登录
2503
+ var logout = '/sso2/signIn/auth/logout'; // 退出登录
2504
+ var initLogin = '/sso2/signIn/auth/initLogin'; // 初始化登录页面参数
2505
+ var switchUserTo = '/sso2/signIn/auth/switchTo'; // 切换登录用户; 身份切换
2506
+ var changeImg = '/sso2/signIn/auth/changeImg'; // 获取图片验证码
2507
+ var getLoginCode = '/sso2/signIn/auth/getLoginCode'; // 登录获取短信、邮箱验证码
2508
+ var doCodeLogin = '/sso2/signIn/auth/doCodeLogin'; // 短信、邮箱验证码登录
2509
+ var updateCode = '/sso2/signIn/assembly/getSmsModifyPassVerificationCode'; // 获取短信验证码(修改密码)
2510
+ var getModifyPassCode = '/sso2/signIn/assembly/getModifyPassCode'; // 获取修改密码的短信、邮箱验证码
2511
+ var codeModifyPass = '/sso2/signIn/assembly/codeModifyPass'; // 验证码重置密码
2512
+ var authCenter = '/sso2/authCenter/login'; // 单点登录认证中心
2513
+ var initModifyPassword = '/sso2/signIn/assembly/initModifyPassword'; // 初始化密码修改信息
2514
+ var doWechatQrLogin = '/sso2/signIn/auth/doWechatQrLogin'; // 微信扫码登录
2515
+ var getTwoFactorLoginCode = '/sso2/signIn/auth/getTwoFactorLoginCode'; // 双因素登录,通过消息中心发送登陆验证码给用户
2516
+ var doTwoFactorLogin = '/sso2/signIn/auth/doTwoFactorLogin'; // 双因素登录
2517
+ var initRetrialAuth = '/sso2/retrialAuth/initRetrialAuth'; // 初始化二级身份权限验证页面
2518
+ var getRetrialAuthCode = '/sso2/retrialAuth/getRetrialAuthCode'; // 获取二级身份验证验证码
2519
+ var scanCodeRetrialAuth = '/sso2/retrialAuth/scanCodeRetrialAuth'; // 二维码扫码验证(二级权限验证)
2520
+ var codeRetrialAuth = '/sso2/retrialAuth/codeRetrialAuth'; // 二级身份验证-验证码验证
2521
+ // 框架
2522
+ var mainConfig = '/main2/main/mainConfig'; // 获取主页面配置
2523
+ var initUserSet = '/main2/main/initUserSet'; // 获取用户信息
2524
+ var updateUserInfo = '/main2/main/updateUserInfo'; // 更新用户信息
2525
+ var getUserImgUrl = '/main2/main/getUserImgUrl'; // 获取当前用户头像地址
2526
+ var getDoorIndex = '/main2/main/getDoorIndex'; // 获取当前用户所在机构门户地址
2527
+ var refreshOnlineUsers = '/main/user/refreshOnlineUsers.dhtml'; // 在线人数
2528
+ var getQuickMenuIds = '/main2/main/getQuickMenuIds'; // 获取已绑定的快捷菜单ids; 返回; 分割的字符串
2529
+ var getApplicationIdArray = '/main2/main/getApplicationIdArray'; // 获取应用父id数组
2530
+ var getComplexApplications = '/main2/menu/getComplexApplications'; // 获取当前用户菜单; 含页签菜单格式的数据
2531
+ var getComplexApplicationsNew = '/main2/menu/getComplexApplicationsNew'; // 获取当前用户应用菜单; 含页签菜单格式的数据
2532
+ var getUserCustomInfo = '/main2/main/getUserCustomInfo'; // 获取主题样式
2533
+ var updateUserCustomInfo = '/main2/main/updateUserCustomInfo'; // 更新主题样式
2534
+ // 框架 - 系统消息
2535
+ var sysMsgPage = '/main2/notify/sysMsgPage'; // 获取系统消息
2536
+ var ignoreSysMsg = '/main2/notify/ignoreSysMsg'; // 忽略系统消息
2537
+ var ignoreAllSysMsg = '/main2/notify/ignoreAllSysMsg'; // 忽略全部系统消息
2538
+ // 附件相关
2539
+ var getAdjunctProperties = '/main2/mecpfileManagement/getAdjunctProperties'; // 获取附件扩展类型大小
2540
+ var uploads = '/main2/mecpfileManagement/upload'; // 上传接口
2541
+ var uploadOnlyOne = '/main2/mecpfileManagement/uploadOnlyOne'; // 上传接口(覆盖之前文件)
2542
+ var getAdjunctFileInfos = '/main2/mecpfileManagement/getAdjunctFileInfos'; // 附件列表
2543
+ var uploadSort = '/main2/mecpfileManagement/sort'; // 根据附件的ids排序附件
2544
+ var downloadByAdjunctId = '/main2/mecpfileManagement/downloadByAdjunctId'; // 下载附件
2545
+ var uploadDownloads = '/main2/mecpfileManagement/uploadDownloads'; // 批量下载//
2546
+ var previewAdjunct = '/main2/mecpfileManagement/previewAdjunct'; // 预览附件
2547
+ var previewAdjunct2 = '/main2/mecpfileManagement/previewAdjunct2/'; // 预览附件(带文件名)
2548
+ var previewAdjunctOffice = '/document/webDocument/documentIndex.dhtml'; // 预览附件word excel ppt
2549
+ var delAdjunct = '/main2/mecpfileManagement/delAdjunct'; // 删除附件
2550
+ var upload_updateClassify = '/main2/mecpfileManagement/updateClassify'; // 根据附件id保存该附件的分类信息
2551
+ var getDeleteAdjunctFileInfos = '/main2/mecpfileManagement/getDeleteAdjunctFileInfos'; // 根据业务id和附件code获取相关已删除附件的元数据列表
2552
+ var getPictureBase64 = '/main2/mecpfileManagement/getPictureBase64'; // 获取图片的base64编码
2553
+ // 组织机构树
2554
+ var getSelectorOrgTree = '/sys/v1/mecpSys/getSelectorOrgTree.dhtml';
2555
+ // 选择器选择内容
2556
+ var getSelectorOrgDetail = '/sys/v1/mecpSys/getSelectorOrgDetail.dhtml';
2557
+ // 业务组织中心树
2558
+ var getOrgMainTree = '/sys/v1/mecpSys/getOrgMainTree.dhtml';
2559
+ // 业务组织中心树下级
2560
+ var getSelectOrgsubids = '/sys/v1/mecpSys/getSelectOrgsubids.dhtml';
2561
+ // 代码表
2562
+ var findSysCode = '/sys/v1/mecpSys/findSysCode.dhtml';
2563
+ // 获取用户基本信息
2564
+ var findUserBaseInfo = '/sys/v1/mecpSys/findUserBaseInfo.dhtml';
2565
+ // 说明文档
2566
+ var gethelpdoc = '/sys/v1/mecpSys/gethelpdoc.json';
2567
+ // 获取当前用户信息
2568
+ var getCurrentuser = '/sys/api/getCurrentuser.dhtml';
2569
+ // 获取主题JSON
2570
+ var mainDetail = '/config/configLayoutTheme/detail';
2571
+ // -------------------- 流程接口 --------------------------
2572
+ // 获取节点信息
2573
+ // export const toStartFlow = '/api/mecp/v1/mecpItask/toStartFlow.json';
2574
+ var toStartFlow = '/bpm/bpmBackend/toStartFlow';
2575
+ // 暂存数据
2576
+ var tempSave = '/oa/task/taskHandle/tempSave.dhtml';
2577
+ // 获取常用意见
2578
+ // /oa/commonOpinionsManager/getOpinionsList.dhtml /api/v1/mecpIpending/commonOpion.json
2579
+ // /api/v1/mecpIpending/commonOpion.json
2580
+ var commonOpion = '/bpm/commonOpinionsManager/list';
2581
+ // 添加常用意见
2582
+ var addCommonOpion = '/bpm/commonOpinionsManager/add';
2583
+ // 获取常用意见编辑信息
2584
+ var editCommonOpion = '/bpm/commonOpinionsManager/edit';
2585
+ // 常用意见新增
2586
+ var saveCommonOpinion = '/oa/commonOpinionsManager/save.dhtml';
2587
+ // 常用意见修改
2588
+ var updateCommonOpinion = '/oa/commonOpinionsManager/update.dhtml';
2589
+ var deleteCommonOpion = '/oa/commonOpinionsManager/delete.dhtml';
2590
+ // 获取选择流程
2591
+ // export const getProcessDefList =
2592
+ // '/api/mecp/v1/mecpItask/getProcessDefList.json';
2593
+ var getProcessDefList = '/bpm/bpmBackend/toStartFlowIndex';
2594
+ // 获取下步办理人 /api/mecp/v1/mecpItask/getNodeInfo.json
2595
+ var getNodeInfo = '/oa/task/taskHandle/getNodeInfo.dhtml';
2596
+
2597
+ // 系统消息
2598
+ // 通知方式
2599
+ var findCodeValues = '/bpm/bpmCommon/findCodeValues';
2600
+ var findSysParam = '/bpm/bpmCommon/findSysParam';
2601
+ var findSysCodes = '/oa/task/taskHandle/getDefaultNotificationType.dhtml';
2602
+
2603
+ // 获取通知消息
2604
+ var getNotificationMsg = '/oa/task/taskHandle/getNotificationMsg.dhtml';
2605
+ // 获取审核页面数据
2606
+ var getHandleInfoHtml = '/bpm/bpmBackend/toTaskHandleIndex.dhtml';
2607
+ // export const getHandleInfoHtml =
2608
+ // '/bpm/bpmBackend/toTaskHandleIndex.dhtml';
2609
+ // 获取节点信息(获取节点属性及办理人)
2610
+ // export const getNodeInfoHtml = '/api/mecp/v1/mecpItask/getNodeInfoHtml.json';
2611
+ // 提交办理
2612
+ var taskHandleHtml = '/oa/task/taskHandle/taskHandle.dhtml';
2613
+ // 获取流程图
2614
+ var getView = '/bpm/service/diagram/view.html';
2615
+ // 开始流程
2616
+ var register = '/oa/task/taskHandle/startFlow.dhtml';
2617
+ // 获取流程列表
2618
+ var pendedhistoryList = '/api/v1/mecpIpending/pendedhistoryList.json';
2619
+ // 获取审核按钮信息
2620
+ // export const getHandleButtonHtml =
2621
+ // '/api/mecp/v1/mecpItask/getHandleButtonHtml.json';
2622
+ // 获取驳回页面信息
2623
+ var toTaskRejectHtml = '/bpm/bpmBackend/toTaskReject';
2624
+ // 驳回提交
2625
+ var taskRejectHtml = '/bpm/bpmBackend/taskReject';
2626
+ // 获取分阅信息
2627
+ var toStartTaskRead = '/bpm/bpmBackend/toStartTaskRead';
2628
+ // 获取分阅办理页面
2629
+ var toStartTaskReadIndex = '/bpm/bpmBackend/toTaskReadIndex';
2630
+ // 分阅提交
2631
+ var taskReadHtml = 'bpm/task/taskHandle/taskRead.dhtml';
2632
+ // 驳回并办结
2633
+ var rejectAndEnd = '/bpm/task/taskHandle/rejectAndEnd.dhtml';
2634
+ // 核稿通知
2635
+ var toSendMsg = '/bpm/bpmBackend/toSendMsgIndex';
2636
+ // 核稿通知提交
2637
+ var sendMsg = 'bpm/task/taskHandle/sendMsg.dhtml';
2638
+ // 直接办结
2639
+ var endFlowHtml = '/bpm/task/taskHandle/endFlow.dhtml';
2640
+ // 获取用户信息
2641
+ // export const findUserBaseInfos = '/api/v1/mecpSys/findUserBaseInfo.dhtml';
2642
+ // 搜索用户信息
2643
+ var handleInfo = '/oa/task/taskHandle/handleInfo.dhtml';
2644
+ // 获取当前用户信息
2645
+ var loginUserInfo = '/bpm/bpmCommon/loginUserInfo';
2646
+
2647
+ // WebSocket
2648
+ var wss = window.wss || '/main2/ws';
2649
+ // 订阅
2650
+ var topic = '/user/topic/all';
2651
+ // 流程预设
2652
+ var getPresetCustomInfo = '/oa/task/taskHandle/getPresetCustomInfo.dhtml';
2653
+ // 办理人预设
2654
+ var getPresetNodeInfo = '/oa/task/taskHandle/getPresetNodeInfo.dhtml';
2655
+ // 获取转办页面数据
2656
+ var toTaskTransferIndex = '/bpm/bpmBackend/toTaskTransferIndex';
2657
+ // 转办提交按钮
2658
+ var taskTransfer = '/bpm/task/taskHandle/taskTransfer.dhtml';
2659
+ // 流程预设列表
2660
+ var toPresetInfoListIndex = '/bpm/bpmBackend/toPresetInfoListIndex';
2661
+ // 流程预设置为失效
2662
+ var deletePresetInfo = '/bpm/task/taskHandle/deletePresetInfo.dhtml';
2663
+ // 流程列表
2664
+ var historyListJson = '/oa/pendedhistoryManager/historyListJson.dhtml';
2665
+ // 获取流程列表配置
2666
+ var pendedhistoryListJson = '/oa/pendedhistoryManager/pendedhistoryListJson';
2667
+ // 获取催办列表
2668
+ var pressListJson = '/oa/wfUrgeRecord/listJson.dhtml';
2669
+ // 删除流程列表节点
2670
+ var deleteFlow = '/oa/pendedhistoryManager/delete.dhtml';
2671
+ // 是否允许启动子流程(必经节点)
2672
+ var isCanStartSubFlow = '/bpm/task/taskHandle/isCanStartSubFlow.dhtml';
2673
+ // 联合审核
2674
+ var toTaskUnionExamine = '/bpm/bpmBackend/toTaskUnionExamine';
2675
+ // 联合审核提交
2676
+ var taskUnionExamine = '/bpm/task/taskHandle/taskUnionExamine.dhtml';
2677
+ // 征求意见
2678
+ var toTaskTakeAdvice = '/bpm/bpmBackend/toTaskTakeAdvice';
2679
+ // 征求意见提交
2680
+ var taskTakeAdvice = '/bpm/task/taskHandle/taskTakeAdvice.dhtml';
2681
+ // 稿件递送
2682
+ var toTaskStartDraft = '/bpm/bpmBackend/totaskStartDraft';
2683
+
2684
+ // 稿件递送提交接口
2685
+ // export const taskStartDraft = '/oa/task/taskHandle/taskStartDraft.dhtml';
2686
+ var taskStartDraft = '/archives/task/taskHandle/taskStartDraft.dhtml';
2687
+ // 复核
2688
+ var toTaskReview = '/bpm/bpmBackend/toTaskReview';
2689
+ // 复核提交
2690
+ var taskReview = '/oa/task/taskHandle/taskReview.dhtml';
2691
+ // 联合用印
2692
+ var toTaskUnionSeal = '/bpm/bpmBackend/toTaskUnionSeal';
2693
+ // 联合用印提交
2694
+ var taskUnionSeal = '/bpm/task/taskHandle/taskUnionSeal.dhtml';
2695
+ // 报送两办
2696
+ var toTwoOfficesDispatch = '/bpm/bpmBackend/toTwoOfficesDispatch';
2697
+ // 报送两办提交
2698
+ var twoOfficesDispatch = '/bpm/task/taskHandle/twoOfficesDispatch.dhtml';
2699
+
2700
+ // notifySend 消息发送
2701
+ var sendList = '/notify2/notifySendRecord/listJson';
2702
+ var sendInfo = '/notify2/notifySendRecord/info';
2703
+ var sendSave = '/notify2/notifySendRecord/save';
2704
+ var sendUpdate = '/notify2/notifySendRecord/update';
2705
+ var sendDelete = '/notify2/notifySendRecord/deleteById';
2706
+ // 重发
2707
+ var sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
2708
+
2709
+ // 表单结构
2710
+ var formContents = '/config/admin/online/onlineForm/render';
2711
+
2712
+ /***/ }),
2713
+
2714
+ /***/ 2:
2715
+ /***/ (function(module, exports) {
2716
+
2717
+ module.exports = require("eoss-element");
2718
+
2719
+ /***/ }),
2720
+
2721
+ /***/ 3:
2722
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2723
+
2724
+ "use strict";
2725
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
2726
+ /* globals __VUE_SSR_CONTEXT__ */
2727
+
2728
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
2729
+ // This module is a runtime utility for cleaner component module output and will
2730
+ // be included in the final webpack user bundle.
2731
+
2732
+ function normalizeComponent(
2733
+ scriptExports,
2734
+ render,
2735
+ staticRenderFns,
2736
+ functionalTemplate,
2737
+ injectStyles,
2738
+ scopeId,
2739
+ moduleIdentifier /* server only */,
2740
+ shadowMode /* vue-cli only */
2741
+ ) {
2742
+ // Vue.extend constructor export interop
2743
+ var options =
2744
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
2745
+
2746
+ // render functions
2747
+ if (render) {
2748
+ options.render = render
2749
+ options.staticRenderFns = staticRenderFns
2750
+ options._compiled = true
2751
+ }
2752
+
2753
+ // functional template
2754
+ if (functionalTemplate) {
2755
+ options.functional = true
2756
+ }
2757
+
2758
+ // scopedId
2759
+ if (scopeId) {
2760
+ options._scopeId = 'data-v-' + scopeId
2761
+ }
2762
+
2763
+ var hook
2764
+ if (moduleIdentifier) {
2765
+ // server build
2766
+ hook = function (context) {
2767
+ // 2.3 injection
2768
+ context =
2769
+ context || // cached call
2770
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
2771
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
2772
+ // 2.2 with runInNewContext: true
2773
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
2774
+ context = __VUE_SSR_CONTEXT__
2775
+ }
2776
+ // inject component styles
2777
+ if (injectStyles) {
2778
+ injectStyles.call(this, context)
2779
+ }
2780
+ // register component module identifier for async chunk inferrence
2781
+ if (context && context._registeredComponents) {
2782
+ context._registeredComponents.add(moduleIdentifier)
2783
+ }
2784
+ }
2785
+ // used by ssr in case component is cached and beforeCreate
2786
+ // never gets called
2787
+ options._ssrRegister = hook
2788
+ } else if (injectStyles) {
2789
+ hook = shadowMode
2790
+ ? function () {
2791
+ injectStyles.call(
2792
+ this,
2793
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
2794
+ )
2795
+ }
2796
+ : injectStyles
2797
+ }
2798
+
2799
+ if (hook) {
2800
+ if (options.functional) {
2801
+ // for template-only hot-reload because in that case the render fn doesn't
2802
+ // go through the normalizer
2803
+ options._injectStyles = hook
2804
+ // register for functional component in vue file
2805
+ var originalRender = options.render
2806
+ options.render = function renderWithStyleInjection(h, context) {
2807
+ hook.call(context)
2808
+ return originalRender(h, context)
2809
+ }
2810
+ } else {
2811
+ // inject component registration as beforeCreate hook
2812
+ var existing = options.beforeCreate
2813
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
2814
+ }
2815
+ }
2816
+
2817
+ return {
2818
+ exports: scriptExports,
2819
+ options: options
2820
+ }
2821
+ }
2822
+
2823
+
2824
+ /***/ }),
2825
+
2826
+ /***/ 4:
2827
+ /***/ (function(module, exports) {
2828
+
2829
+ module.exports = require("qs");
2830
+
2831
+ /***/ }),
2832
+
2833
+ /***/ 5:
2834
+ /***/ (function(module, exports) {
2835
+
2836
+ module.exports = require("axios");
2837
+
2838
+ /***/ }),
2839
+
2840
+ /***/ 56:
2841
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2842
+
2843
+ "use strict";
2844
+ // ESM COMPAT FLAG
2845
+ __webpack_require__.r(__webpack_exports__);
2846
+
2847
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/retrial-auth/src/main.vue?vue&type=template&id=9a7a652e&
2848
+ var render = function () {
2849
+ var _vm = this
2850
+ var _h = _vm.$createElement
2851
+ var _c = _vm._self._c || _h
2852
+ return _c(
2853
+ "div",
2854
+ {
2855
+ directives: [
2856
+ {
2857
+ name: "loading",
2858
+ rawName: "v-loading.fullscreen.lock",
2859
+ value: _vm.submit,
2860
+ expression: "submit",
2861
+ modifiers: { fullscreen: true, lock: true },
2862
+ },
2863
+ ],
2864
+ staticClass: "es-retrial-auth",
2865
+ },
2866
+ [
2867
+ _vm.active === "SCANCODE"
2868
+ ? _c("es-qr-code", {
2869
+ attrs: {
2870
+ width: 200,
2871
+ height: 200,
2872
+ content: _vm.uuid,
2873
+ logo: _vm.qrImg,
2874
+ },
2875
+ })
2876
+ : _c(
2877
+ "el-form",
2878
+ {
2879
+ ref: "auth",
2880
+ staticClass: "es-retrial-auth-form",
2881
+ attrs: { model: _vm.formData },
2882
+ },
2883
+ [
2884
+ _c("el-form-item", [
2885
+ _c("div", [
2886
+ _vm._v(
2887
+ "\n 验证码将发送至" +
2888
+ _vm._s(
2889
+ _vm.active == "WEB_SMS"
2890
+ ? "手机号:" + _vm.phoneText
2891
+ : "邮箱:" + _vm.emailText
2892
+ ) +
2893
+ "\n "
2894
+ ),
2895
+ ]),
2896
+ ]),
2897
+ _c(
2898
+ "el-form-item",
2899
+ {
2900
+ attrs: {
2901
+ size: "large",
2902
+ prop: "verificationCode",
2903
+ rules: [
2904
+ {
2905
+ required: true,
2906
+ message: "验证码不能为空",
2907
+ trigger: "change",
2908
+ },
2909
+ ],
2910
+ },
2911
+ },
2912
+ [
2913
+ _c(
2914
+ "el-input",
2915
+ {
2916
+ staticClass: "es-label-image-code",
2917
+ attrs: {
2918
+ size: "large",
2919
+ name: "verificationCode",
2920
+ type: "text",
2921
+ placeholder: "请输入验证码",
2922
+ autocomplete: "off",
2923
+ },
2924
+ model: {
2925
+ value: _vm.formData.verificationCode,
2926
+ callback: function ($$v) {
2927
+ _vm.$set(_vm.formData, "verificationCode", $$v)
2928
+ },
2929
+ expression: "formData.verificationCode",
2930
+ },
2931
+ },
2932
+ [
2933
+ _c(
2934
+ "template",
2935
+ { slot: "suffix" },
2936
+ [
2937
+ _c(
2938
+ "el-button",
2939
+ {
2940
+ staticClass: "es-get-code",
2941
+ attrs: {
2942
+ type: "primary",
2943
+ disabled: _vm.disabled,
2944
+ },
2945
+ on: {
2946
+ click: function ($event) {
2947
+ $event.stopPropagation()
2948
+ return _vm.getCode($event)
2949
+ },
2950
+ },
2951
+ },
2952
+ [_vm._v(_vm._s(_vm.btnText))]
2953
+ ),
2954
+ ],
2955
+ 1
2956
+ ),
2957
+ ],
2958
+ 2
2959
+ ),
2960
+ ],
2961
+ 1
2962
+ ),
2963
+ _c(
2964
+ "el-button",
2965
+ {
2966
+ staticClass: "es-button-submit",
2967
+ attrs: { type: "primary" },
2968
+ on: { click: _vm.handleAuth },
2969
+ },
2970
+ [_vm._v("提交验证")]
2971
+ ),
2972
+ ],
2973
+ 1
2974
+ ),
2975
+ _vm.type && _vm.type.length > 1
2976
+ ? _c(
2977
+ "div",
2978
+ { staticClass: "es-login-switchs" },
2979
+ _vm._l(_vm.icons, function (item, index) {
2980
+ return _c("i", {
2981
+ key: index,
2982
+ class: [item, "es-icon", { "es-active": _vm.active == index }],
2983
+ on: {
2984
+ click: function ($event) {
2985
+ _vm.handleSwitch(index)
2986
+ },
2987
+ },
2988
+ })
2989
+ }),
2990
+ 0
2991
+ )
2992
+ : _vm._e(),
2993
+ ],
2994
+ 1
2995
+ )
2996
+ }
2997
+ var staticRenderFns = []
2998
+ render._withStripped = true
2999
+
3000
+
3001
+ // CONCATENATED MODULE: ./packages/retrial-auth/src/main.vue?vue&type=template&id=9a7a652e&
3002
+
3003
+ // EXTERNAL MODULE: ./src/utils/util.js
3004
+ var util = __webpack_require__(0);
3005
+
3006
+ // EXTERNAL MODULE: ./src/config/api.js
3007
+ var api = __webpack_require__(1);
3008
+
3009
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/retrial-auth/src/main.vue?vue&type=script&lang=js&
3010
+ //
3011
+ //
3012
+ //
3013
+ //
3014
+ //
3015
+ //
3016
+ //
3017
+ //
3018
+ //
3019
+ //
3020
+ //
3021
+ //
3022
+ //
3023
+ //
3024
+ //
3025
+ //
3026
+ //
3027
+ //
3028
+ //
3029
+ //
3030
+ //
3031
+ //
3032
+ //
3033
+ //
3034
+ //
3035
+ //
3036
+ //
3037
+ //
3038
+ //
3039
+ //
3040
+ //
3041
+ //
3042
+ //
3043
+ //
3044
+ //
3045
+ //
3046
+ //
3047
+ //
3048
+ //
3049
+ //
3050
+ //
3051
+ //
3052
+ //
3053
+ //
3054
+ //
3055
+ //
3056
+ //
3057
+ //
3058
+ //
3059
+ //
3060
+ //
3061
+ //
3062
+ //
3063
+ //
3064
+ //
3065
+ //
3066
+ //
3067
+ //
3068
+
3069
+
3070
+
3071
+ /* harmony default export */ var mainvue_type_script_lang_js_ = ({
3072
+ name: 'EsRetrialAuth',
3073
+ inheritAttrs: false,
3074
+ props: {
3075
+ group: String,
3076
+ type: Array,
3077
+ msgBox: {}
3078
+ },
3079
+ computed: {
3080
+ icons: function icons() {
3081
+ var icons = {};
3082
+ for (var i in this.fonts) {
3083
+ if (this.type.includes(i)) {
3084
+ icons[i] = this.fonts[i];
3085
+ }
3086
+ }
3087
+ return icons;
3088
+ }
3089
+ },
3090
+ watch: {
3091
+ active: {
3092
+ handler: function handler(val) {
3093
+ var _this = this;
3094
+
3095
+ if (val === 'SCANCODE' && this.uuid) {
3096
+ this.$nextTick(function () {
3097
+ _this.handleScanCodeRetrialAuth();
3098
+ });
3099
+ }
3100
+ }
3101
+ }
3102
+ },
3103
+ data: function data() {
3104
+ return {
3105
+ userModel: {},
3106
+ active: this.type[0],
3107
+ formData: {
3108
+ verificationCode: ''
3109
+ },
3110
+ fonts: {
3111
+ SCANCODE: 'es-icon-saoma',
3112
+ WEB_SMS: 'es-icon-duanxin',
3113
+ WEB_EMAIL: 'es-icon-youxiang'
3114
+ },
3115
+ uuid: '',
3116
+ qrImg: '',
3117
+ emailText: null,
3118
+ phoneText: null,
3119
+ disabled: false,
3120
+ btnText: '获取验证码',
3121
+ countdown: 0,
3122
+ timer: null,
3123
+ scanCode: null,
3124
+ submit: false
3125
+ };
3126
+ },
3127
+ created: function created() {
3128
+ this.init();
3129
+ },
3130
+ mounted: function mounted() {},
3131
+
3132
+ methods: {
3133
+ init: function init() {
3134
+ var _this2 = this;
3135
+
3136
+ var mainConfig = util["a" /* default */].getStorage('mainConfig');
3137
+ mainConfig && (this.userModel = JSON.parse(mainConfig).userModel);
3138
+ util["a" /* default */].ajax({
3139
+ url: api["W" /* initRetrialAuth */]
3140
+ }).then(function (res) {
3141
+ var rCode = res.rCode,
3142
+ results = res.results;
3143
+
3144
+ if (rCode == 0) {
3145
+ _this2.uuid = results.uuid;
3146
+ _this2.qrImg = results.qrImg;
3147
+ _this2.emailText = results.emailText;
3148
+ _this2.phoneText = results.phoneText;
3149
+ if (_this2.active === 'SCANCODE') {
3150
+ _this2.handleScanCodeRetrialAuth();
3151
+ }
3152
+ }
3153
+ }).catch();
3154
+ },
3155
+ handleAuth: function handleAuth() {
3156
+ var _this3 = this;
3157
+
3158
+ if (this.submit) {
3159
+ return false;
3160
+ }
3161
+ this.$refs['auth'].validate(function (valid) {
3162
+ if (valid) {
3163
+ _this3.submit = true;
3164
+ var params = {
3165
+ retrialAuthGroupIds: _this3.group,
3166
+ targetType: _this3.active === 'WEB_SMS' ? 'SMS' : 'EMAIL',
3167
+ verificationCode: _this3.formData.verificationCode
3168
+ };
3169
+ util["a" /* default */].ajax({
3170
+ url: api["e" /* codeRetrialAuth */],
3171
+ method: 'post',
3172
+ data: params
3173
+ }).then(function (res) {
3174
+ var rCode = res.rCode,
3175
+ msg = res.msg;
3176
+
3177
+ if (rCode == 0) {
3178
+ _this3.$message({
3179
+ message: '认证成功',
3180
+ type: 'success'
3181
+ });
3182
+ _this3.msgBox.handleClose();
3183
+ util["a" /* default */].win.top.location.reload();
3184
+ } else {
3185
+ _this3.$message({
3186
+ message: msg,
3187
+ type: 'error'
3188
+ });
3189
+ _this3.submit = false;
3190
+ }
3191
+ }).catch();
3192
+ }
3193
+ });
3194
+ },
3195
+ handleSwitch: function handleSwitch(res) {
3196
+ clearTimeout(this.scanCode);
3197
+ this.active = res;
3198
+ },
3199
+ getCode: function getCode() {
3200
+ var _this4 = this;
3201
+
3202
+ if (this.countdown) {
3203
+ return false;
3204
+ }
3205
+ var params = { targetType: this.active === 'WEB_SMS' ? 'SMS' : 'EMAIL' };
3206
+ this.countdown = 60;
3207
+ this.timer = setInterval(function () {
3208
+ if (_this4.countdown > 0) {
3209
+ _this4.countdown--;
3210
+ _this4.disabled = true;
3211
+ _this4.btnText = '重新获取' + _this4.countdown + 's';
3212
+ } else {
3213
+ _this4.btnText = '重新获取';
3214
+ _this4.disabled = false;
3215
+ _this4.submit = false;
3216
+ }
3217
+ }, 1000);
3218
+ util["a" /* default */].ajax({
3219
+ url: api["L" /* getRetrialAuthCode */],
3220
+ method: 'post',
3221
+ data: params,
3222
+ params: params
3223
+ }).then(function (res) {
3224
+ var rCode = res.rCode;
3225
+
3226
+ if (rCode == 0) {
3227
+ _this4.$message({
3228
+ message: '验证码已发送至' + (_this4.active === 'WEB_SMS' ? '手机' : '邮箱') + ',请注意查收!',
3229
+ type: 'success'
3230
+ });
3231
+ }
3232
+ }).catch();
3233
+ },
3234
+ handleScanCodeRetrialAuth: function handleScanCodeRetrialAuth() {
3235
+ var _this5 = this;
3236
+
3237
+ clearTimeout(this.scanCode);
3238
+ var params = {
3239
+ phone: this.userModel.phone,
3240
+ retrialAuthGroupIds: this.group,
3241
+ uuid: this.uuid
3242
+ };
3243
+ util["a" /* default */].ajax({
3244
+ url: api["mb" /* scanCodeRetrialAuth */],
3245
+ method: 'post',
3246
+ data: params,
3247
+ params: params
3248
+ }).then(function (res) {
3249
+ var rCode = res.rCode,
3250
+ results = res.results;
3251
+
3252
+ if (rCode == 0) {
3253
+ if (results.authPass) {
3254
+ _this5.$message({
3255
+ message: '认证成功',
3256
+ type: 'success'
3257
+ });
3258
+ _this5.msgBox.handleClose();
3259
+ util["a" /* default */].win.top.location.reload();
3260
+ } else {
3261
+ _this5.scanCode = setTimeout(function () {
3262
+ _this5.handleScanCodeRetrialAuth();
3263
+ }, 1000);
3264
+ }
3265
+ }
3266
+ }).catch();
3267
+ },
3268
+ clearTimeouts: function clearTimeouts() {
3269
+ clearTimeout(this.scanCode);
3270
+ clearTimeout(this.timer);
3271
+ }
3272
+ },
3273
+ beforeDestroy: function beforeDestroy() {
3274
+ clearTimeout(this.scanCode);
3275
+ clearTimeout(this.timer);
3276
+ }
3277
+ });
3278
+ // CONCATENATED MODULE: ./packages/retrial-auth/src/main.vue?vue&type=script&lang=js&
3279
+ /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
3280
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
3281
+ var componentNormalizer = __webpack_require__(3);
3282
+
3283
+ // CONCATENATED MODULE: ./packages/retrial-auth/src/main.vue
3284
+
3285
+
3286
+
3287
+
3288
+
3289
+ /* normalize component */
3290
+
3291
+ var component = Object(componentNormalizer["a" /* default */])(
3292
+ src_mainvue_type_script_lang_js_,
3293
+ render,
3294
+ staticRenderFns,
3295
+ false,
3296
+ null,
3297
+ null,
3298
+ null
3299
+
3300
+ )
3301
+
3302
+ /* harmony default export */ var main = (component.exports);
3303
+ // CONCATENATED MODULE: ./packages/retrial-auth/index.js
3304
+
3305
+
3306
+ main.install = function (Vue) {
3307
+ return Vue.component(main.name, main);
3308
+ };
3309
+
3310
+ /* harmony default export */ var retrial_auth = __webpack_exports__["default"] = (main);
3311
+
3312
+ /***/ }),
3313
+
3314
+ /***/ 6:
3315
+ /***/ (function(module, exports) {
3316
+
3317
+ module.exports = require("json-bigint");
3318
+
3319
+ /***/ }),
3320
+
3321
+ /***/ 7:
3322
+ /***/ (function(module, exports) {
3323
+
3324
+ module.exports = require("sm-crypto");
3325
+
3326
+ /***/ })
3327
+
3328
+ /******/ });