eoss-ui 0.6.55 → 0.6.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 (62) hide show
  1. package/lib/button-group.js +266 -212
  2. package/lib/button.js +403 -347
  3. package/lib/checkbox-group.js +270 -216
  4. package/lib/data-table-form.js +269 -215
  5. package/lib/data-table.js +271 -222
  6. package/lib/date-picker.js +403 -347
  7. package/lib/dialog.js +268 -219
  8. package/lib/enable-drag.js +8 -8
  9. package/lib/eoss-ui.common.js +264 -210
  10. package/lib/flow-group.js +272 -216
  11. package/lib/flow-list.js +618 -545
  12. package/lib/flow.js +268 -219
  13. package/lib/form.js +270 -221
  14. package/lib/handle-user.js +503 -429
  15. package/lib/handler.js +272 -216
  16. package/lib/icon.js +272 -216
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +403 -347
  19. package/lib/input.js +405 -349
  20. package/lib/login.js +270 -221
  21. package/lib/main.js +280 -224
  22. package/lib/menu.js +7 -4
  23. package/lib/nav.js +274 -218
  24. package/lib/page.js +272 -216
  25. package/lib/pagination.js +272 -216
  26. package/lib/player.js +494 -416
  27. package/lib/qr-code.js +272 -216
  28. package/lib/radio-group.js +276 -220
  29. package/lib/retrial-auth.js +272 -216
  30. package/lib/select-ganged.js +405 -349
  31. package/lib/select.js +407 -351
  32. package/lib/selector-panel.js +268 -214
  33. package/lib/selector.js +272 -216
  34. package/lib/sizer.js +269 -220
  35. package/lib/steps.js +274 -218
  36. package/lib/switch.js +272 -216
  37. package/lib/table-form.js +272 -216
  38. package/lib/tabs.js +272 -216
  39. package/lib/theme-chalk/index.css +1 -1
  40. package/lib/theme-chalk/main.css +1 -1
  41. package/lib/theme-chalk/simplicity.css +1 -1
  42. package/lib/tips.js +274 -218
  43. package/lib/tree-group.js +272 -216
  44. package/lib/tree.js +274 -218
  45. package/lib/upload.js +270 -216
  46. package/lib/utils/util.js +231 -182
  47. package/lib/wujie.js +272 -216
  48. package/lib/wxlogin.js +404 -348
  49. package/package.json +2 -2
  50. package/packages/.DS_Store +0 -0
  51. package/packages/main/.DS_Store +0 -0
  52. package/packages/main/src/.DS_Store +0 -0
  53. package/packages/main/src/simplicity/sub-menu.vue +1 -0
  54. package/packages/menu/.DS_Store +0 -0
  55. package/packages/menu/src/main.vue +7 -3
  56. package/packages/theme-chalk/lib/index.css +1 -1
  57. package/packages/theme-chalk/lib/main.css +1 -1
  58. package/packages/theme-chalk/lib/simplicity.css +1 -1
  59. package/packages/theme-chalk/src/simplicity.scss +10 -2
  60. package/src/.DS_Store +0 -0
  61. package/src/index.js +1 -1
  62. package/src/utils/util.js +2 -2
package/lib/switch.js CHANGED
@@ -91,20 +91,26 @@ module.exports =
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
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 _webSocket__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
102
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2);
103
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_5__);
94
+ /* harmony import */ var babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
95
+ /* harmony import */ var babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
96
+ /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
97
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
98
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_2__);
99
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5);
100
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_3__);
101
+ /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
102
+ /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_4__);
103
+ /* harmony import */ var _webSocket__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8);
104
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2);
105
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_6__);
106
+
107
+
104
108
  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; };
105
109
 
106
110
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
107
111
 
112
+ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
113
+
108
114
  function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
109
115
 
110
116
  /**
@@ -115,8 +121,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
115
121
  **/
116
122
 
117
123
  /* eslint-disable indent */
118
- var sm2 = __webpack_require__(11).sm2;
119
- var lodash = __webpack_require__(10);
124
+ var sm2 = __webpack_require__(12).sm2;
125
+ var lodash = __webpack_require__(11);
120
126
 
121
127
 
122
128
 
@@ -137,7 +143,7 @@ var loginMsg = void 0;
137
143
  var initAuth = void 0;
138
144
  var $_http = void 0;
139
145
 
140
- var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ storeAsString: true });
146
+ var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_4___default()({ storeAsString: true });
141
147
 
142
148
 
143
149
  /**
@@ -208,7 +214,7 @@ var ajax = function ajax(_ref) {
208
214
  var http = $_http;
209
215
  if (!http) {
210
216
  var baseURL = host === true ? getStorage('host') : host === false ? '' : host;
211
- http = axios__WEBPACK_IMPORTED_MODULE_1___default.a.create({
217
+ http = axios__WEBPACK_IMPORTED_MODULE_2___default.a.create({
212
218
  baseURL: baseURL,
213
219
  timeout: 99000,
214
220
  transformResponse: [function (data) {
@@ -281,7 +287,7 @@ var ajax = function ajax(_ref) {
281
287
  clearTimeout(loginMsg);
282
288
  loginMsg = setTimeout(function () {
283
289
  sessionStorage.setItem('remind', 1);
284
- eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
290
+ eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
285
291
  confirmButtonText: '确定',
286
292
  closeOnClickModal: false,
287
293
  type: 'warning'
@@ -332,7 +338,7 @@ var ajax = function ajax(_ref) {
332
338
  } else if (response.data.rCode === 61) {
333
339
  clearTimeout(initAuth);
334
340
  initAuth = setTimeout(function () {
335
- Object(eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"])({
341
+ Object(eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"])({
336
342
  title: '请进行二次鉴权',
337
343
  closeOnClickModal: false,
338
344
  closeOnPressEscape: false,
@@ -488,7 +494,7 @@ var ajax = function ajax(_ref) {
488
494
  }
489
495
  }
490
496
  if (method === 'post' && format) {
491
- data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
497
+ data = qs__WEBPACK_IMPORTED_MODULE_3___default.a.stringify(data);
492
498
  if (!header['content-type'] && !header['Content-Type']) {
493
499
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
494
500
  }
@@ -1616,7 +1622,7 @@ var getLightness = function getLightness($v, $i, $isLight) {
1616
1622
  * @param {function} callback - 回调函数
1617
1623
  **/
1618
1624
  var getMainConfig = function getMainConfig(callback) {
1619
- ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "kb"] }).then(function (res) {
1625
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_1__[/* mainConfig */ "kb"] }).then(function (res) {
1620
1626
  if (res && res.rCode === 0) {
1621
1627
  callback(res.results);
1622
1628
  }
@@ -2348,137 +2354,196 @@ var isFunction = function isFunction(obj) {
2348
2354
  * @param {sting} [loginPage] - 第三方登录页面地址
2349
2355
  * @param {boolean} [redirect] - 是否重定向(用于新脚手架)
2350
2356
  **/
2351
- var isLogined = function isLogined(_ref10) {
2352
- var to = _ref10.to,
2353
- from = _ref10.from,
2354
- next = _ref10.next,
2355
- _ref10$exclude = _ref10.exclude,
2356
- exclude = _ref10$exclude === undefined ? [] : _ref10$exclude,
2357
- cookie = _ref10.cookie,
2358
- loginPage = _ref10.loginPage,
2359
- redirect = _ref10.redirect;
2360
-
2361
- if (cookie === undefined) {
2362
- cookie = getParams({ name: 'cookie' });
2363
- }
2364
- var quit = getParams('quit') || getParams('logout');
2365
- if (quit) {
2366
- ajax({ method: 'post', url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* logout */ "jb"] }).then(function (res) {
2367
- if (res.rCode === 0) {
2368
- removeStorage();
2369
- }
2370
- }).catch(function () {});
2371
- return;
2372
- }
2373
- var pathname = '';
2374
- try {
2375
- pathname = win.top.location.pathname;
2376
- } catch (error) {
2377
- pathname = win.location.pathname;
2378
- }
2379
- if (loginPage) {
2380
- sessionStorage.setItem('loginPage', loginPage);
2381
- if (!startWith(loginPage, ['http', '/'], true)) {
2382
- if (pathname !== '/') {
2383
- var path = pathname.split('/');
2384
- path.splice(pathname.length - 1);
2385
- path = path.join('/');
2386
- loginPage = path + '/' + loginPage.replace('./', '');
2387
- } else {
2388
- loginPage = pathname + loginPage.replace('./', '');
2389
- }
2390
- }
2391
- }
2392
- var token = getStorage('token') || getStorage('Authorization');
2393
- // const logined = getStorage('logined');
2394
- // eslint-disable-next-line eqeqeq
2395
- if (token || cookie == true || cookie == 1) {
2396
- next && next();
2397
- } else {
2398
- if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
2399
- var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
2400
- ajax({
2401
- method: 'post',
2402
- url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
2403
- data: to.query
2404
- }).then(function (res) {
2405
- if (res.rCode === 0) {
2406
- var results = res.results;
2407
-
2408
- switch (results.statusCode) {
2409
- case 0:
2410
- var storage = getStorage('storage');
2411
- setStorage({
2412
- type: storage,
2413
- key: {
2414
- ssId: results.ssId,
2415
- token: results.token,
2416
- Authorization: results.token,
2417
- deviceUnique: results.deviceUnique
2357
+ var isLogined = function () {
2358
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(_ref11) {
2359
+ var to = _ref11.to,
2360
+ from = _ref11.from,
2361
+ next = _ref11.next,
2362
+ _ref11$exclude = _ref11.exclude,
2363
+ exclude = _ref11$exclude === undefined ? [] : _ref11$exclude,
2364
+ cookie = _ref11.cookie,
2365
+ loginPage = _ref11.loginPage,
2366
+ redirect = _ref11.redirect;
2367
+ var quit, pathname, path, token, loadingInstance;
2368
+ return babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
2369
+ while (1) {
2370
+ switch (_context.prev = _context.next) {
2371
+ case 0:
2372
+ if (cookie === undefined) {
2373
+ cookie = getParams({ name: 'cookie' });
2374
+ }
2375
+ quit = getParams('quit') || getParams('logout');
2376
+
2377
+ if (!quit) {
2378
+ _context.next = 5;
2379
+ break;
2380
+ }
2381
+
2382
+ ajax({ method: 'post', url: _config_api__WEBPACK_IMPORTED_MODULE_1__[/* logout */ "jb"] }).then(function (res) {
2383
+ if (res.rCode === 0) {
2384
+ removeStorage();
2385
+ }
2386
+ }).catch(function () {});
2387
+ return _context.abrupt('return');
2388
+
2389
+ case 5:
2390
+ pathname = '';
2391
+
2392
+ try {
2393
+ pathname = win.top.location.pathname;
2394
+ } catch (error) {
2395
+ pathname = win.location.pathname;
2396
+ }
2397
+ if (loginPage) {
2398
+ sessionStorage.setItem('loginPage', loginPage);
2399
+ if (!startWith(loginPage, ['http', '/'], true)) {
2400
+ if (pathname !== '/') {
2401
+ path = pathname.split('/');
2402
+
2403
+ path.splice(pathname.length - 1);
2404
+ path = path.join('/');
2405
+ loginPage = path + '/' + loginPage.replace('./', '');
2406
+ } else {
2407
+ loginPage = pathname + loginPage.replace('./', '');
2418
2408
  }
2419
- });
2420
- try {
2421
- var url = delUrlParam({
2422
- url: win.top.location.href,
2423
- key: ['serverId', 'authType', 'code', 'sessionId']
2424
- });
2425
- win.top.location.href = url;
2426
- setTimeout(function () {
2427
- win.top.location.reload();
2428
- }, 200);
2429
- } catch (error) {
2430
- var _url2 = delUrlParam({
2431
- url: win.location.href,
2432
- key: ['serverId', 'authType', 'code', 'sessionId']
2433
- });
2434
- win.location.href = _url2;
2435
- setTimeout(function () {
2436
- win.location.reload();
2437
- }, 200);
2438
2409
  }
2410
+ }
2411
+ token = getStorage('token') || getStorage('Authorization');
2412
+ // const logined = getStorage('logined');
2413
+ // eslint-disable-next-line eqeqeq
2414
+
2415
+ if (!(token || cookie == true || cookie == 1)) {
2416
+ _context.next = 13;
2439
2417
  break;
2440
- case 1:
2441
- break;
2442
- case 2:
2443
- break;
2444
- case 3:
2445
- try {
2446
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2447
- win.top.location.href = href;
2448
- } catch (error) {
2449
- var _href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.location.href));
2450
- win.location.href = _href;
2451
- }
2418
+ }
2419
+
2420
+ next && next();
2421
+ _context.next = 20;
2422
+ break;
2423
+
2424
+ case 13:
2425
+ if (!(!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType'))) {
2426
+ _context.next = 19;
2452
2427
  break;
2453
- case 4:
2454
- eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2455
- confirmButtonText: '确定',
2456
- type: 'error',
2457
- callback: function callback() {
2458
- sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2459
- try {
2460
- if (loginPage) {
2461
- win.top.location.replace(loginPage);
2462
- } else if (document.referrer) {
2463
- win.top.location.replace(document.referrer);
2464
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2465
- win.top.location.href = './login.html';
2466
- } else {
2467
- next('/login');
2428
+ }
2429
+
2430
+ loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_6__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
2431
+ _context.next = 17;
2432
+ return ajax({
2433
+ method: 'post',
2434
+ url: _config_api__WEBPACK_IMPORTED_MODULE_1__[/* authCenter */ "b"],
2435
+ data: to.query
2436
+ }).then(function (res) {
2437
+ if (res.rCode === 0) {
2438
+ var results = res.results;
2439
+
2440
+ switch (results.statusCode) {
2441
+ case 0:
2442
+ var storage = getStorage('storage');
2443
+ setStorage({
2444
+ type: storage,
2445
+ key: {
2446
+ ssId: results.ssId,
2447
+ token: results.token,
2448
+ Authorization: results.token,
2449
+ deviceUnique: results.deviceUnique
2450
+ }
2451
+ });
2452
+ try {
2453
+ var url = delUrlParam({
2454
+ url: win.top.location.href,
2455
+ key: ['serverId', 'authType', 'code', 'sessionId']
2456
+ });
2457
+ win.top.location.href = url;
2458
+ setTimeout(function () {
2459
+ win.top.location.reload();
2460
+ }, 200);
2461
+ } catch (error) {
2462
+ var _url2 = delUrlParam({
2463
+ url: win.location.href,
2464
+ key: ['serverId', 'authType', 'code', 'sessionId']
2465
+ });
2466
+ win.location.href = _url2;
2467
+ setTimeout(function () {
2468
+ win.location.reload();
2469
+ }, 200);
2468
2470
  }
2469
- } catch (error) {
2470
- win.postMessage({ type: 1 }, '*');
2471
- }
2471
+ break;
2472
+ case 1:
2473
+ break;
2474
+ case 2:
2475
+ break;
2476
+ case 3:
2477
+ try {
2478
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2479
+ win.top.location.href = href;
2480
+ } catch (error) {
2481
+ var _href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.location.href));
2482
+ win.location.href = _href;
2483
+ }
2484
+ break;
2485
+ case 4:
2486
+ eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2487
+ confirmButtonText: '确定',
2488
+ type: 'error',
2489
+ callback: function callback() {
2490
+ sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2491
+ try {
2492
+ if (loginPage) {
2493
+ win.top.location.replace(loginPage);
2494
+ } else if (document.referrer) {
2495
+ win.top.location.replace(document.referrer);
2496
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2497
+ win.top.location.href = './login.html';
2498
+ } else {
2499
+ next('/login');
2500
+ }
2501
+ } catch (error) {
2502
+ win.postMessage({ type: 1 }, '*');
2503
+ }
2504
+ }
2505
+ });
2506
+ break;
2507
+ default:
2472
2508
  }
2473
- });
2474
- break;
2475
- default:
2476
- }
2477
- } else {
2478
- eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"].alert(res.msg, '提示', {
2479
- confirmButtonText: '确定',
2480
- type: 'error',
2481
- callback: function callback() {
2509
+ } else {
2510
+ eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(res.msg, '提示', {
2511
+ confirmButtonText: '确定',
2512
+ type: 'error',
2513
+ callback: function callback() {
2514
+ try {
2515
+ if (loginPage) {
2516
+ win.top.location.replace(loginPage);
2517
+ } else if (document.referrer) {
2518
+ win.top.location.replace(document.referrer);
2519
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2520
+ win.top.location.href = './login.html';
2521
+ } else {
2522
+ next('/login');
2523
+ }
2524
+ } catch (error) {
2525
+ win.postMessage({ type: 1 }, '*');
2526
+ }
2527
+ }
2528
+ });
2529
+ }
2530
+ loadingInstance.close();
2531
+ }).catch(function (e) {
2532
+ loadingInstance.close();
2533
+ });
2534
+
2535
+ case 17:
2536
+ _context.next = 20;
2537
+ break;
2538
+
2539
+ case 19:
2540
+ if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2541
+ if (redirect && (to.path === '/main' || to.path === '/login')) {
2542
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2543
+ } else {
2544
+ next();
2545
+ }
2546
+ } else {
2482
2547
  try {
2483
2548
  if (loginPage) {
2484
2549
  win.top.location.replace(loginPage);
@@ -2493,35 +2558,19 @@ var isLogined = function isLogined(_ref10) {
2493
2558
  win.postMessage({ type: 1 }, '*');
2494
2559
  }
2495
2560
  }
2496
- });
2497
- }
2498
- loadingInstance.close();
2499
- }).catch(function (e) {
2500
- loadingInstance.close();
2501
- });
2502
- } else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2503
- if (redirect && (to.path === '/main' || to.path === '/login')) {
2504
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2505
- } else {
2506
- next();
2507
- }
2508
- } else {
2509
- try {
2510
- if (loginPage) {
2511
- win.top.location.replace(loginPage);
2512
- } else if (document.referrer) {
2513
- win.top.location.replace(document.referrer);
2514
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2515
- win.top.location.href = './login.html';
2516
- } else {
2517
- next('/login');
2561
+
2562
+ case 20:
2563
+ case 'end':
2564
+ return _context.stop();
2518
2565
  }
2519
- } catch (error) {
2520
- win.postMessage({ type: 1 }, '*');
2521
2566
  }
2522
- }
2523
- }
2524
- };
2567
+ }, _callee, this);
2568
+ }));
2569
+
2570
+ return function isLogined(_x5) {
2571
+ return _ref10.apply(this, arguments);
2572
+ };
2573
+ }();
2525
2574
  var isLogged = function isLogged(res) {
2526
2575
  isLogined(res);
2527
2576
  };
@@ -2571,9 +2620,9 @@ var isObjectEqual = function isObjectEqual(obj, _obj) {
2571
2620
  * @param {string/array} [url] - 地址
2572
2621
  * @param {boolean} [single] - 是否做js沙箱隔离
2573
2622
  **/
2574
- var jointUrl = function jointUrl(_ref11) {
2575
- var url = _ref11.url,
2576
- reg = _ref11.reg;
2623
+ var jointUrl = function jointUrl(_ref12) {
2624
+ var url = _ref12.url,
2625
+ reg = _ref12.reg;
2577
2626
 
2578
2627
  if (startWith(url, ['https', 'http', 'blob:'], true) || !reg || !reg.length) {
2579
2628
  return url;
@@ -2588,13 +2637,13 @@ var jointUrl = function jointUrl(_ref11) {
2588
2637
  return startWith(url, reg) ? url : reg + url;
2589
2638
  };
2590
2639
 
2591
- var loadJs = function loadJs(_ref12) {
2592
- var url = _ref12.url,
2593
- _ref12$type = _ref12.type,
2594
- type = _ref12$type === undefined ? 'text/javascript' : _ref12$type,
2595
- id = _ref12.id,
2596
- _ref12$single = _ref12.single,
2597
- single = _ref12$single === undefined ? true : _ref12$single;
2640
+ var loadJs = function loadJs(_ref13) {
2641
+ var url = _ref13.url,
2642
+ _ref13$type = _ref13.type,
2643
+ type = _ref13$type === undefined ? 'text/javascript' : _ref13$type,
2644
+ id = _ref13.id,
2645
+ _ref13$single = _ref13.single,
2646
+ single = _ref13$single === undefined ? true : _ref13$single;
2598
2647
 
2599
2648
  return new Promise(function (resolve, reject) {
2600
2649
  var script = document.getElementById(id) || document.createElement('script');
@@ -2629,7 +2678,7 @@ var loadJs = function loadJs(_ref12) {
2629
2678
  **/
2630
2679
  var loading = function loading($loading, res) {
2631
2680
  if (!$loading) {
2632
- $loading = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service;
2681
+ $loading = eoss_element__WEBPACK_IMPORTED_MODULE_6__["Loading"].service;
2633
2682
  }
2634
2683
  if (isObject(res)) {
2635
2684
  var config = extend({}, {
@@ -2729,11 +2778,11 @@ var queryParams = function queryParams(obj) {
2729
2778
  * @param {string} [url] - 消息源的 URI
2730
2779
  * @param {function} [callback] - 回调函数
2731
2780
  **/
2732
- var receiveMessage = function receiveMessage(_ref13) {
2733
- var _ref13$data = _ref13.data,
2734
- data = _ref13$data === undefined ? {} : _ref13$data,
2735
- url = _ref13.url,
2736
- callback = _ref13.callback;
2781
+ var receiveMessage = function receiveMessage(_ref14) {
2782
+ var _ref14$data = _ref14.data,
2783
+ data = _ref14$data === undefined ? {} : _ref14$data,
2784
+ url = _ref14.url,
2785
+ callback = _ref14.callback;
2737
2786
 
2738
2787
  win.addEventListener('message', function (e) {
2739
2788
  if (url !== undefined) {
@@ -2777,9 +2826,9 @@ var removeStorage = function removeStorage(key) {
2777
2826
  * @param {string、number} [data] - 数字或字符串型数字
2778
2827
  * @param {number} [precision] - 需要的小数位数
2779
2828
  **/
2780
- var replenish = function replenish(_ref14) {
2781
- var data = _ref14.data,
2782
- precision = _ref14.precision;
2829
+ var replenish = function replenish(_ref15) {
2830
+ var data = _ref15.data,
2831
+ precision = _ref15.precision;
2783
2832
 
2784
2833
  if (data && precision && precision > 0) {
2785
2834
  var power = Math.pow(10, precision);
@@ -2925,10 +2974,10 @@ var setScale = function setScale() {
2925
2974
  * @param {object} [data] - 数据---其中type必须表示操作类型
2926
2975
  * @param {string} [url] - 指定的消息发送URI地址
2927
2976
  **/
2928
- var sendMessage = function sendMessage(_ref15) {
2929
- var _ref15$data = _ref15.data,
2930
- data = _ref15$data === undefined ? {} : _ref15$data,
2931
- url = _ref15.url;
2977
+ var sendMessage = function sendMessage(_ref16) {
2978
+ var _ref16$data = _ref16.data,
2979
+ data = _ref16$data === undefined ? {} : _ref16$data,
2980
+ url = _ref16.url;
2932
2981
 
2933
2982
  var iframes = document.getElementsByTagName('iframe');
2934
2983
  for (var i = 0; i < iframes.length; i++) {
@@ -2972,10 +3021,10 @@ var setFavicon = function setFavicon(url) {
2972
3021
  * @param {String, Array, Object} [key] - 数据的名称,array类型表示多个key保存同一个value,object类型时对象的属性名称作为key属性值作为value
2973
3022
  * @param {String} [value] - 数据的值
2974
3023
  **/
2975
- var setStorage = function setStorage(_ref16) {
2976
- var type = _ref16.type,
2977
- key = _ref16.key,
2978
- value = _ref16.value;
3024
+ var setStorage = function setStorage(_ref17) {
3025
+ var type = _ref17.type,
3026
+ key = _ref17.key,
3027
+ value = _ref17.value;
2979
3028
 
2980
3029
  if (value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
2981
3030
  value = JSON.stringify(value);
@@ -3022,7 +3071,7 @@ var setStorage = function setStorage(_ref16) {
3022
3071
  * @param {Function} [error] - 重连间隔时间
3023
3072
  **/
3024
3073
  function socket(option, vm) {
3025
- var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
3074
+ var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"]();
3026
3075
  socket.init(option, vm);
3027
3076
  return socket;
3028
3077
  }
@@ -3269,10 +3318,10 @@ var upperCase = function upperCase(text) {
3269
3318
  * @param {Object} [url] - url地址
3270
3319
  * @param {Object} [param] - 被转换的对象
3271
3320
  **/
3272
- var urlJoinParams = function urlJoinParams(_ref17) {
3273
- var url = _ref17.url,
3274
- param = _ref17.param,
3275
- timestamp = _ref17.timestamp;
3321
+ var urlJoinParams = function urlJoinParams(_ref18) {
3322
+ var url = _ref18.url,
3323
+ param = _ref18.param,
3324
+ timestamp = _ref18.timestamp;
3276
3325
 
3277
3326
  var arry = decodeURI(url).split('?');
3278
3327
  var times = new Date().getTime();
@@ -3879,13 +3928,20 @@ var formContents = '/lowcode/admin/online/onlineForm/getOnlineFormFromCache';
3879
3928
  /***/ 10:
3880
3929
  /***/ (function(module, exports) {
3881
3930
 
3882
- module.exports = require("lodash");
3931
+ module.exports = require("stompjs");
3883
3932
 
3884
3933
  /***/ }),
3885
3934
 
3886
3935
  /***/ 11:
3887
3936
  /***/ (function(module, exports) {
3888
3937
 
3938
+ module.exports = require("lodash");
3939
+
3940
+ /***/ }),
3941
+
3942
+ /***/ 12:
3943
+ /***/ (function(module, exports) {
3944
+
3889
3945
  module.exports = require("sm-crypto");
3890
3946
 
3891
3947
  /***/ }),
@@ -4005,31 +4061,38 @@ function normalizeComponent(
4005
4061
  /***/ 4:
4006
4062
  /***/ (function(module, exports) {
4007
4063
 
4008
- module.exports = require("qs");
4064
+ module.exports = require("babel-runtime/regenerator");
4009
4065
 
4010
4066
  /***/ }),
4011
4067
 
4012
4068
  /***/ 5:
4013
4069
  /***/ (function(module, exports) {
4014
4070
 
4015
- module.exports = require("axios");
4071
+ module.exports = require("qs");
4016
4072
 
4017
4073
  /***/ }),
4018
4074
 
4019
4075
  /***/ 6:
4020
4076
  /***/ (function(module, exports) {
4021
4077
 
4022
- module.exports = require("json-bigint");
4078
+ module.exports = require("axios");
4023
4079
 
4024
4080
  /***/ }),
4025
4081
 
4026
4082
  /***/ 7:
4083
+ /***/ (function(module, exports) {
4084
+
4085
+ module.exports = require("json-bigint");
4086
+
4087
+ /***/ }),
4088
+
4089
+ /***/ 8:
4027
4090
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4028
4091
 
4029
4092
  "use strict";
4030
- /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
4093
+ /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
4031
4094
  /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
4032
- /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
4095
+ /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
4033
4096
  /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
4034
4097
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4035
4098
 
@@ -4166,13 +4229,6 @@ var WebSocket = function () {
4166
4229
 
4167
4230
  /***/ }),
4168
4231
 
4169
- /***/ 8:
4170
- /***/ (function(module, exports) {
4171
-
4172
- module.exports = require("sockjs-client");
4173
-
4174
- /***/ }),
4175
-
4176
4232
  /***/ 80:
4177
4233
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4178
4234
 
@@ -4350,7 +4406,7 @@ main.install = function (Vue) {
4350
4406
  /***/ 9:
4351
4407
  /***/ (function(module, exports) {
4352
4408
 
4353
- module.exports = require("stompjs");
4409
+ module.exports = require("sockjs-client");
4354
4410
 
4355
4411
  /***/ })
4356
4412