eoss-ui 0.4.55 → 0.4.57

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