eoss-ui 0.4.92 → 0.4.93

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 (58) hide show
  1. package/lib/button-group.js +54 -35
  2. package/lib/button.js +54 -35
  3. package/lib/card.js +2 -2
  4. package/lib/cascader.js +2 -2
  5. package/lib/checkbox-group.js +54 -35
  6. package/lib/clients.js +2 -2
  7. package/lib/data-table-form.js +53 -34
  8. package/lib/data-table.js +54 -35
  9. package/lib/date-picker.js +54 -35
  10. package/lib/dialog.js +53 -34
  11. package/lib/enterprise.js +2 -2
  12. package/lib/eoss-ui.common.js +300 -110
  13. package/lib/error-page.js +2 -2
  14. package/lib/flow-group.js +54 -35
  15. package/lib/flow-list.js +55 -36
  16. package/lib/flow.js +54 -35
  17. package/lib/form.js +54 -35
  18. package/lib/handle-user.js +54 -35
  19. package/lib/handler.js +54 -35
  20. package/lib/icons.js +2 -2
  21. package/lib/index.js +1 -1
  22. package/lib/input-number.js +54 -35
  23. package/lib/input.js +54 -35
  24. package/lib/label.js +2 -2
  25. package/lib/layout.js +2 -2
  26. package/lib/login.js +53 -34
  27. package/lib/main.js +306 -116
  28. package/lib/menu.js +2 -2
  29. package/lib/nav.js +54 -35
  30. package/lib/notify.js +2 -2
  31. package/lib/page.js +54 -35
  32. package/lib/pagination.js +2 -2
  33. package/lib/player.js +68 -49
  34. package/lib/qr-code.js +61 -42
  35. package/lib/radio-group.js +54 -35
  36. package/lib/retrial-auth.js +54 -35
  37. package/lib/select-ganged.js +54 -35
  38. package/lib/select.js +61 -42
  39. package/lib/selector-panel.js +61 -42
  40. package/lib/selector.js +61 -42
  41. package/lib/sizer.js +54 -35
  42. package/lib/steps.js +54 -35
  43. package/lib/switch.js +54 -35
  44. package/lib/table-form.js +54 -35
  45. package/lib/tabs-panel.js +2 -2
  46. package/lib/tabs.js +54 -35
  47. package/lib/tips.js +54 -35
  48. package/lib/toolbar.js +2 -2
  49. package/lib/tree-group.js +54 -35
  50. package/lib/tree.js +54 -35
  51. package/lib/upload.js +54 -35
  52. package/lib/utils/util.js +41 -22
  53. package/lib/wujie.js +54 -35
  54. package/lib/wxlogin.js +55 -36
  55. package/package.json +2 -2
  56. package/packages/main/src/main.vue +158 -4
  57. package/src/index.js +1 -1
  58. package/src/utils/util.js +48 -26
@@ -91,13 +91,13 @@ module.exports =
91
91
 
92
92
  "use strict";
93
93
  /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
94
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
94
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
95
95
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
96
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
96
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
97
97
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
98
98
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
99
99
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
100
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5);
100
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
101
101
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
102
102
  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; };
103
103
 
@@ -1908,8 +1908,6 @@ var isFunction = function isFunction(obj) {
1908
1908
  * @param {boolean} [redirect] - 是否重定向(用于新脚手架)
1909
1909
  **/
1910
1910
  var isLogined = function isLogined(_ref8) {
1911
- var _this = this;
1912
-
1913
1911
  var to = _ref8.to,
1914
1912
  from = _ref8.from,
1915
1913
  next = _ref8.next,
@@ -1928,6 +1926,17 @@ var isLogined = function isLogined(_ref8) {
1928
1926
  if (logined || cookie == true || cookie == 1) {
1929
1927
  if (loginPage) {
1930
1928
  sessionStorage.setItem('loginPage', loginPage);
1929
+ if (!startWith(loginPage, ['http', '/'], true)) {
1930
+ var pathname = win.top.location.pathname;
1931
+ if (pathname !== '/') {
1932
+ pathname = pathname.split('/');
1933
+ pathname.splice(pathname.length - 1);
1934
+ pathname = pathname.join('/');
1935
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1936
+ } else {
1937
+ loginPage = pathname + loginPage.replace('./', '');
1938
+ }
1939
+ }
1931
1940
  }
1932
1941
  next();
1933
1942
  } else {
@@ -1940,7 +1949,7 @@ var isLogined = function isLogined(_ref8) {
1940
1949
  url = win.location.href;
1941
1950
  break;
1942
1951
  case 'blank':
1943
- url = win.location.href;
1952
+ url = win.open(url);
1944
1953
  break;
1945
1954
  case 'parent':
1946
1955
  url = win.parent.location.href;
@@ -1999,31 +2008,41 @@ var isLogined = function isLogined(_ref8) {
1999
2008
  }
2000
2009
  break;
2001
2010
  case 4:
2002
- _this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2011
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2003
2012
  confirmButtonText: '确定',
2004
- type: 'error'
2005
- }).then(function () {
2006
- sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2007
- window.location.href = delUrlParam({ key: 'code' });
2008
- if (loginPage) {
2009
- win.top.location.replace(loginPage);
2010
- } else if (document.referrer) {
2011
- win.top.location.replace(document.referrer);
2012
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2013
- win.top.location.href = './login.html';
2014
- } else {
2015
- next('/login');
2013
+ type: 'error',
2014
+ callback: function callback() {
2015
+ sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2016
+ if (loginPage) {
2017
+ win.top.location.replace(loginPage);
2018
+ } else if (document.referrer) {
2019
+ win.top.location.replace(document.referrer);
2020
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2021
+ win.top.location.href = './login.html';
2022
+ } else {
2023
+ next('/login');
2024
+ }
2016
2025
  }
2017
- }).catch(function (e) {});
2026
+ });
2018
2027
  break;
2019
2028
  default:
2020
2029
  }
2021
2030
  } else {
2022
- if (token) {
2023
- next();
2024
- } else {
2025
- alert(res.msg);
2026
- }
2031
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].alert(res.msg, '提示', {
2032
+ confirmButtonText: '确定',
2033
+ type: 'error',
2034
+ callback: function callback() {
2035
+ if (loginPage) {
2036
+ win.top.location.replace(loginPage);
2037
+ } else if (document.referrer) {
2038
+ win.top.location.replace(document.referrer);
2039
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2040
+ win.top.location.href = './login.html';
2041
+ } else {
2042
+ next('/login');
2043
+ }
2044
+ }
2045
+ });
2027
2046
  }
2028
2047
  }).catch(function (e) {});
2029
2048
  } 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') {
@@ -3277,6 +3296,12 @@ var formContents = '/config/admin/online/onlineForm/render';
3277
3296
 
3278
3297
  /***/ }),
3279
3298
  /* 2 */
3299
+ /***/ (function(module, exports) {
3300
+
3301
+ module.exports = require("eoss-element");
3302
+
3303
+ /***/ }),
3304
+ /* 3 */
3280
3305
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3281
3306
 
3282
3307
  "use strict";
@@ -3379,23 +3404,17 @@ function normalizeComponent(
3379
3404
  }
3380
3405
 
3381
3406
 
3382
- /***/ }),
3383
- /* 3 */
3384
- /***/ (function(module, exports) {
3385
-
3386
- module.exports = require("qs");
3387
-
3388
3407
  /***/ }),
3389
3408
  /* 4 */
3390
3409
  /***/ (function(module, exports) {
3391
3410
 
3392
- module.exports = require("axios");
3411
+ module.exports = require("qs");
3393
3412
 
3394
3413
  /***/ }),
3395
3414
  /* 5 */
3396
3415
  /***/ (function(module, exports) {
3397
3416
 
3398
- module.exports = require("eoss-element");
3417
+ module.exports = require("axios");
3399
3418
 
3400
3419
  /***/ }),
3401
3420
  /* 6 */
@@ -3707,7 +3726,7 @@ colgroupvue_type_template_id_9b289ebe_render._withStripped = true
3707
3726
  // CONCATENATED MODULE: ./packages/data-table-form/src/colgroup.vue?vue&type=script&lang=js&
3708
3727
  /* harmony default export */ var src_colgroupvue_type_script_lang_js_ = (colgroupvue_type_script_lang_js_);
3709
3728
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
3710
- var componentNormalizer = __webpack_require__(2);
3729
+ var componentNormalizer = __webpack_require__(3);
3711
3730
 
3712
3731
  // CONCATENATED MODULE: ./packages/data-table-form/src/colgroup.vue
3713
3732
 
package/lib/data-table.js CHANGED
@@ -91,13 +91,13 @@ module.exports =
91
91
 
92
92
  "use strict";
93
93
  /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
94
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
94
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
95
95
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
96
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
96
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
97
97
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
98
98
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
99
99
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
100
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5);
100
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
101
101
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
102
102
  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; };
103
103
 
@@ -1908,8 +1908,6 @@ var isFunction = function isFunction(obj) {
1908
1908
  * @param {boolean} [redirect] - 是否重定向(用于新脚手架)
1909
1909
  **/
1910
1910
  var isLogined = function isLogined(_ref8) {
1911
- var _this = this;
1912
-
1913
1911
  var to = _ref8.to,
1914
1912
  from = _ref8.from,
1915
1913
  next = _ref8.next,
@@ -1928,6 +1926,17 @@ var isLogined = function isLogined(_ref8) {
1928
1926
  if (logined || cookie == true || cookie == 1) {
1929
1927
  if (loginPage) {
1930
1928
  sessionStorage.setItem('loginPage', loginPage);
1929
+ if (!startWith(loginPage, ['http', '/'], true)) {
1930
+ var pathname = win.top.location.pathname;
1931
+ if (pathname !== '/') {
1932
+ pathname = pathname.split('/');
1933
+ pathname.splice(pathname.length - 1);
1934
+ pathname = pathname.join('/');
1935
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1936
+ } else {
1937
+ loginPage = pathname + loginPage.replace('./', '');
1938
+ }
1939
+ }
1931
1940
  }
1932
1941
  next();
1933
1942
  } else {
@@ -1940,7 +1949,7 @@ var isLogined = function isLogined(_ref8) {
1940
1949
  url = win.location.href;
1941
1950
  break;
1942
1951
  case 'blank':
1943
- url = win.location.href;
1952
+ url = win.open(url);
1944
1953
  break;
1945
1954
  case 'parent':
1946
1955
  url = win.parent.location.href;
@@ -1999,31 +2008,41 @@ var isLogined = function isLogined(_ref8) {
1999
2008
  }
2000
2009
  break;
2001
2010
  case 4:
2002
- _this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2011
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2003
2012
  confirmButtonText: '确定',
2004
- type: 'error'
2005
- }).then(function () {
2006
- sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2007
- window.location.href = delUrlParam({ key: 'code' });
2008
- if (loginPage) {
2009
- win.top.location.replace(loginPage);
2010
- } else if (document.referrer) {
2011
- win.top.location.replace(document.referrer);
2012
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2013
- win.top.location.href = './login.html';
2014
- } else {
2015
- next('/login');
2013
+ type: 'error',
2014
+ callback: function callback() {
2015
+ sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2016
+ if (loginPage) {
2017
+ win.top.location.replace(loginPage);
2018
+ } else if (document.referrer) {
2019
+ win.top.location.replace(document.referrer);
2020
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2021
+ win.top.location.href = './login.html';
2022
+ } else {
2023
+ next('/login');
2024
+ }
2016
2025
  }
2017
- }).catch(function (e) {});
2026
+ });
2018
2027
  break;
2019
2028
  default:
2020
2029
  }
2021
2030
  } else {
2022
- if (token) {
2023
- next();
2024
- } else {
2025
- alert(res.msg);
2026
- }
2031
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].alert(res.msg, '提示', {
2032
+ confirmButtonText: '确定',
2033
+ type: 'error',
2034
+ callback: function callback() {
2035
+ if (loginPage) {
2036
+ win.top.location.replace(loginPage);
2037
+ } else if (document.referrer) {
2038
+ win.top.location.replace(document.referrer);
2039
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2040
+ win.top.location.href = './login.html';
2041
+ } else {
2042
+ next('/login');
2043
+ }
2044
+ }
2045
+ });
2027
2046
  }
2028
2047
  }).catch(function (e) {});
2029
2048
  } 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') {
@@ -3277,6 +3296,12 @@ var formContents = '/config/admin/online/onlineForm/render';
3277
3296
 
3278
3297
  /***/ }),
3279
3298
  /* 2 */
3299
+ /***/ (function(module, exports) {
3300
+
3301
+ module.exports = require("eoss-element");
3302
+
3303
+ /***/ }),
3304
+ /* 3 */
3280
3305
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3281
3306
 
3282
3307
  "use strict";
@@ -3379,23 +3404,17 @@ function normalizeComponent(
3379
3404
  }
3380
3405
 
3381
3406
 
3382
- /***/ }),
3383
- /* 3 */
3384
- /***/ (function(module, exports) {
3385
-
3386
- module.exports = require("qs");
3387
-
3388
3407
  /***/ }),
3389
3408
  /* 4 */
3390
3409
  /***/ (function(module, exports) {
3391
3410
 
3392
- module.exports = require("axios");
3411
+ module.exports = require("qs");
3393
3412
 
3394
3413
  /***/ }),
3395
3414
  /* 5 */
3396
3415
  /***/ (function(module, exports) {
3397
3416
 
3398
- module.exports = require("eoss-element");
3417
+ module.exports = require("axios");
3399
3418
 
3400
3419
  /***/ }),
3401
3420
  /* 6 */
@@ -5747,7 +5766,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5747
5766
  // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=script&lang=js&
5748
5767
  /* harmony default export */ var src_columnvue_type_script_lang_js_ = (columnvue_type_script_lang_js_);
5749
5768
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
5750
- var componentNormalizer = __webpack_require__(2);
5769
+ var componentNormalizer = __webpack_require__(3);
5751
5770
 
5752
5771
  // CONCATENATED MODULE: ./packages/data-table/src/column.vue
5753
5772
 
@@ -6071,7 +6090,7 @@ var sizer_component = Object(componentNormalizer["a" /* default */])(
6071
6090
  var bus = __webpack_require__(13);
6072
6091
 
6073
6092
  // EXTERNAL MODULE: external "qs"
6074
- var external_qs_ = __webpack_require__(3);
6093
+ var external_qs_ = __webpack_require__(4);
6075
6094
  var external_qs_default = /*#__PURE__*/__webpack_require__.n(external_qs_);
6076
6095
 
6077
6096
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=script&lang=js&
@@ -92,13 +92,13 @@ module.exports =
92
92
 
93
93
  "use strict";
94
94
  /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
95
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
95
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
96
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__(3);
97
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
98
98
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
99
99
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
100
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__(5);
101
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
102
102
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
103
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
104
 
@@ -1909,8 +1909,6 @@ var isFunction = function isFunction(obj) {
1909
1909
  * @param {boolean} [redirect] - 是否重定向(用于新脚手架)
1910
1910
  **/
1911
1911
  var isLogined = function isLogined(_ref8) {
1912
- var _this = this;
1913
-
1914
1912
  var to = _ref8.to,
1915
1913
  from = _ref8.from,
1916
1914
  next = _ref8.next,
@@ -1929,6 +1927,17 @@ var isLogined = function isLogined(_ref8) {
1929
1927
  if (logined || cookie == true || cookie == 1) {
1930
1928
  if (loginPage) {
1931
1929
  sessionStorage.setItem('loginPage', loginPage);
1930
+ if (!startWith(loginPage, ['http', '/'], true)) {
1931
+ var pathname = win.top.location.pathname;
1932
+ if (pathname !== '/') {
1933
+ pathname = pathname.split('/');
1934
+ pathname.splice(pathname.length - 1);
1935
+ pathname = pathname.join('/');
1936
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1937
+ } else {
1938
+ loginPage = pathname + loginPage.replace('./', '');
1939
+ }
1940
+ }
1932
1941
  }
1933
1942
  next();
1934
1943
  } else {
@@ -1941,7 +1950,7 @@ var isLogined = function isLogined(_ref8) {
1941
1950
  url = win.location.href;
1942
1951
  break;
1943
1952
  case 'blank':
1944
- url = win.location.href;
1953
+ url = win.open(url);
1945
1954
  break;
1946
1955
  case 'parent':
1947
1956
  url = win.parent.location.href;
@@ -2000,31 +2009,41 @@ var isLogined = function isLogined(_ref8) {
2000
2009
  }
2001
2010
  break;
2002
2011
  case 4:
2003
- _this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2012
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2004
2013
  confirmButtonText: '确定',
2005
- type: 'error'
2006
- }).then(function () {
2007
- sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2008
- window.location.href = delUrlParam({ key: 'code' });
2009
- if (loginPage) {
2010
- win.top.location.replace(loginPage);
2011
- } else if (document.referrer) {
2012
- win.top.location.replace(document.referrer);
2013
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2014
- win.top.location.href = './login.html';
2015
- } else {
2016
- next('/login');
2014
+ type: 'error',
2015
+ callback: function callback() {
2016
+ sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2017
+ if (loginPage) {
2018
+ win.top.location.replace(loginPage);
2019
+ } else if (document.referrer) {
2020
+ win.top.location.replace(document.referrer);
2021
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2022
+ win.top.location.href = './login.html';
2023
+ } else {
2024
+ next('/login');
2025
+ }
2017
2026
  }
2018
- }).catch(function (e) {});
2027
+ });
2019
2028
  break;
2020
2029
  default:
2021
2030
  }
2022
2031
  } else {
2023
- if (token) {
2024
- next();
2025
- } else {
2026
- alert(res.msg);
2027
- }
2032
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].alert(res.msg, '提示', {
2033
+ confirmButtonText: '确定',
2034
+ type: 'error',
2035
+ callback: function callback() {
2036
+ if (loginPage) {
2037
+ win.top.location.replace(loginPage);
2038
+ } else if (document.referrer) {
2039
+ win.top.location.replace(document.referrer);
2040
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2041
+ win.top.location.href = './login.html';
2042
+ } else {
2043
+ next('/login');
2044
+ }
2045
+ }
2046
+ });
2028
2047
  }
2029
2048
  }).catch(function (e) {});
2030
2049
  } 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') {
@@ -3280,6 +3299,13 @@ var formContents = '/config/admin/online/onlineForm/render';
3280
3299
  /***/ }),
3281
3300
 
3282
3301
  /***/ 2:
3302
+ /***/ (function(module, exports) {
3303
+
3304
+ module.exports = require("eoss-element");
3305
+
3306
+ /***/ }),
3307
+
3308
+ /***/ 3:
3283
3309
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3284
3310
 
3285
3311
  "use strict";
@@ -3382,26 +3408,19 @@ function normalizeComponent(
3382
3408
  }
3383
3409
 
3384
3410
 
3385
- /***/ }),
3386
-
3387
- /***/ 3:
3388
- /***/ (function(module, exports) {
3389
-
3390
- module.exports = require("qs");
3391
-
3392
3411
  /***/ }),
3393
3412
 
3394
3413
  /***/ 4:
3395
3414
  /***/ (function(module, exports) {
3396
3415
 
3397
- module.exports = require("axios");
3416
+ module.exports = require("qs");
3398
3417
 
3399
3418
  /***/ }),
3400
3419
 
3401
3420
  /***/ 5:
3402
3421
  /***/ (function(module, exports) {
3403
3422
 
3404
- module.exports = require("eoss-element");
3423
+ module.exports = require("axios");
3405
3424
 
3406
3425
  /***/ }),
3407
3426
 
@@ -3590,7 +3609,7 @@ var _formats = {
3590
3609
  // CONCATENATED MODULE: ./packages/date-picker/src/main.vue?vue&type=script&lang=js&
3591
3610
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
3592
3611
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
3593
- var componentNormalizer = __webpack_require__(2);
3612
+ var componentNormalizer = __webpack_require__(3);
3594
3613
 
3595
3614
  // CONCATENATED MODULE: ./packages/date-picker/src/main.vue
3596
3615
  var render, staticRenderFns
package/lib/dialog.js CHANGED
@@ -91,13 +91,13 @@ module.exports =
91
91
 
92
92
  "use strict";
93
93
  /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
94
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
94
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
95
95
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
96
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
96
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
97
97
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
98
98
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
99
99
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
100
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5);
100
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
101
101
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
102
102
  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; };
103
103
 
@@ -1908,8 +1908,6 @@ var isFunction = function isFunction(obj) {
1908
1908
  * @param {boolean} [redirect] - 是否重定向(用于新脚手架)
1909
1909
  **/
1910
1910
  var isLogined = function isLogined(_ref8) {
1911
- var _this = this;
1912
-
1913
1911
  var to = _ref8.to,
1914
1912
  from = _ref8.from,
1915
1913
  next = _ref8.next,
@@ -1928,6 +1926,17 @@ var isLogined = function isLogined(_ref8) {
1928
1926
  if (logined || cookie == true || cookie == 1) {
1929
1927
  if (loginPage) {
1930
1928
  sessionStorage.setItem('loginPage', loginPage);
1929
+ if (!startWith(loginPage, ['http', '/'], true)) {
1930
+ var pathname = win.top.location.pathname;
1931
+ if (pathname !== '/') {
1932
+ pathname = pathname.split('/');
1933
+ pathname.splice(pathname.length - 1);
1934
+ pathname = pathname.join('/');
1935
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1936
+ } else {
1937
+ loginPage = pathname + loginPage.replace('./', '');
1938
+ }
1939
+ }
1931
1940
  }
1932
1941
  next();
1933
1942
  } else {
@@ -1940,7 +1949,7 @@ var isLogined = function isLogined(_ref8) {
1940
1949
  url = win.location.href;
1941
1950
  break;
1942
1951
  case 'blank':
1943
- url = win.location.href;
1952
+ url = win.open(url);
1944
1953
  break;
1945
1954
  case 'parent':
1946
1955
  url = win.parent.location.href;
@@ -1999,31 +2008,41 @@ var isLogined = function isLogined(_ref8) {
1999
2008
  }
2000
2009
  break;
2001
2010
  case 4:
2002
- _this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2011
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2003
2012
  confirmButtonText: '确定',
2004
- type: 'error'
2005
- }).then(function () {
2006
- sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2007
- window.location.href = delUrlParam({ key: 'code' });
2008
- if (loginPage) {
2009
- win.top.location.replace(loginPage);
2010
- } else if (document.referrer) {
2011
- win.top.location.replace(document.referrer);
2012
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2013
- win.top.location.href = './login.html';
2014
- } else {
2015
- next('/login');
2013
+ type: 'error',
2014
+ callback: function callback() {
2015
+ sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2016
+ if (loginPage) {
2017
+ win.top.location.replace(loginPage);
2018
+ } else if (document.referrer) {
2019
+ win.top.location.replace(document.referrer);
2020
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2021
+ win.top.location.href = './login.html';
2022
+ } else {
2023
+ next('/login');
2024
+ }
2016
2025
  }
2017
- }).catch(function (e) {});
2026
+ });
2018
2027
  break;
2019
2028
  default:
2020
2029
  }
2021
2030
  } else {
2022
- if (token) {
2023
- next();
2024
- } else {
2025
- alert(res.msg);
2026
- }
2031
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].alert(res.msg, '提示', {
2032
+ confirmButtonText: '确定',
2033
+ type: 'error',
2034
+ callback: function callback() {
2035
+ if (loginPage) {
2036
+ win.top.location.replace(loginPage);
2037
+ } else if (document.referrer) {
2038
+ win.top.location.replace(document.referrer);
2039
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2040
+ win.top.location.href = './login.html';
2041
+ } else {
2042
+ next('/login');
2043
+ }
2044
+ }
2045
+ });
2027
2046
  }
2028
2047
  }).catch(function (e) {});
2029
2048
  } 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') {
@@ -3277,6 +3296,12 @@ var formContents = '/config/admin/online/onlineForm/render';
3277
3296
 
3278
3297
  /***/ }),
3279
3298
  /* 2 */
3299
+ /***/ (function(module, exports) {
3300
+
3301
+ module.exports = require("eoss-element");
3302
+
3303
+ /***/ }),
3304
+ /* 3 */
3280
3305
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3281
3306
 
3282
3307
  "use strict";
@@ -3379,23 +3404,17 @@ function normalizeComponent(
3379
3404
  }
3380
3405
 
3381
3406
 
3382
- /***/ }),
3383
- /* 3 */
3384
- /***/ (function(module, exports) {
3385
-
3386
- module.exports = require("qs");
3387
-
3388
3407
  /***/ }),
3389
3408
  /* 4 */
3390
3409
  /***/ (function(module, exports) {
3391
3410
 
3392
- module.exports = require("axios");
3411
+ module.exports = require("qs");
3393
3412
 
3394
3413
  /***/ }),
3395
3414
  /* 5 */
3396
3415
  /***/ (function(module, exports) {
3397
3416
 
3398
- module.exports = require("eoss-element");
3417
+ module.exports = require("axios");
3399
3418
 
3400
3419
  /***/ }),
3401
3420
  /* 6 */
@@ -4538,7 +4557,7 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
4538
4557
  // CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=script&lang=js&
4539
4558
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
4540
4559
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
4541
- var componentNormalizer = __webpack_require__(2);
4560
+ var componentNormalizer = __webpack_require__(3);
4542
4561
 
4543
4562
  // CONCATENATED MODULE: ./packages/dialog/src/main.vue
4544
4563