eoss-ui 0.5.10 → 0.5.11

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 (59) hide show
  1. package/lib/button-group.js +18 -33
  2. package/lib/button.js +18 -33
  3. package/lib/checkbox-group.js +18 -33
  4. package/lib/data-table-form.js +18 -33
  5. package/lib/data-table.js +36 -42
  6. package/lib/date-picker.js +18 -33
  7. package/lib/dialog.js +18 -33
  8. package/lib/eoss-ui.common.js +217 -486
  9. package/lib/flow-group.js +18 -33
  10. package/lib/flow-list.js +18 -33
  11. package/lib/flow.js +18 -33
  12. package/lib/form.js +50 -172
  13. package/lib/handle-user.js +18 -33
  14. package/lib/handler.js +18 -33
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +18 -33
  17. package/lib/input.js +18 -33
  18. package/lib/login.js +18 -33
  19. package/lib/main.js +117 -282
  20. package/lib/nav.js +18 -33
  21. package/lib/page.js +18 -33
  22. package/lib/player.js +18 -33
  23. package/lib/qr-code.js +18 -33
  24. package/lib/radio-group.js +21 -36
  25. package/lib/retrial-auth.js +18 -33
  26. package/lib/select-ganged.js +18 -33
  27. package/lib/select.js +18 -33
  28. package/lib/selector-panel.js +18 -33
  29. package/lib/selector.js +18 -33
  30. package/lib/sizer.js +18 -33
  31. package/lib/steps.js +18 -33
  32. package/lib/switch.js +18 -33
  33. package/lib/table-form.js +30 -61
  34. package/lib/tabs.js +18 -33
  35. package/lib/theme-chalk/index.css +1 -1
  36. package/lib/theme-chalk/pagination.css +1 -1
  37. package/lib/theme-chalk/toolbar.css +1 -1
  38. package/lib/tips.js +18 -33
  39. package/lib/toolbar.js +19 -9
  40. package/lib/tree-group.js +18 -33
  41. package/lib/tree.js +18 -33
  42. package/lib/upload.js +18 -33
  43. package/lib/utils/util.js +18 -33
  44. package/lib/wujie.js +18 -33
  45. package/lib/wxlogin.js +18 -33
  46. package/package.json +1 -1
  47. package/packages/data-table/src/main.vue +14 -6
  48. package/packages/form/src/main.vue +11 -46
  49. package/packages/form/src/table.vue +6 -11
  50. package/packages/main/src/main.vue +12 -150
  51. package/packages/radio-group/src/main.vue +1 -5
  52. package/packages/theme-chalk/lib/index.css +1 -1
  53. package/packages/theme-chalk/lib/pagination.css +1 -1
  54. package/packages/theme-chalk/lib/toolbar.css +1 -1
  55. package/packages/theme-chalk/src/pagination.scss +8 -0
  56. package/packages/theme-chalk/src/toolbar.scss +1 -0
  57. package/packages/toolbar/src/main.vue +17 -8
  58. package/src/index.js +1 -1
  59. package/src/utils/util.js +20 -34
@@ -1 +1 @@
1
- .es-pagination .el-select .el-input{width:56px}.es-pagination:not(.is-background) .btn-next,.es-pagination:not(.is-background) .btn-prev,.es-pagination:not(.is-background) li{background-color:transparent!important}
1
+ .es-pagination .el-select .el-input{width:56px}.es-pagination:not(.is-background) .btn-next,.es-pagination:not(.is-background) .btn-prev,.es-pagination:not(.is-background) li{background-color:transparent!important}.es-pagination button,.es-pagination span:not([class*=suffix]){height:26px;line-height:26px}.es-pagination .el-input__suffix{line-height:26px}
@@ -1 +1 @@
1
- @charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:12px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange{max-width:300px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-input__icon,.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-range-separator{line-height:24px}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}.es-toolbar .el-form-item__content,.es-toolbar .el-form-item__label{line-height:32px!important}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}
1
+ @charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:12px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange{max-width:300px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-input__icon,.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-range-separator{line-height:24px}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}.es-toolbar .el-form-item__content{line-height:32px!important}.es-toolbar .el-form-item__label{line-height:32px!important;height:32px}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}
package/lib/tips.js CHANGED
@@ -746,6 +746,7 @@ var delUrlParam = function delUrlParam(_ref2) {
746
746
  key.forEach(function (item) {
747
747
  if (param.hasOwnProperty(item)) {
748
748
  var reg = item + '=' + param[item];
749
+ console.log(reg);
749
750
  if (src.indexOf(reg + '&') > -1) {
750
751
  src = src.replace(reg + '&', '');
751
752
  } else if (src.indexOf('&' + reg) > -1) {
@@ -1946,7 +1947,6 @@ var isLogined = function isLogined(_ref8) {
1946
1947
  next = _ref8.next,
1947
1948
  _ref8$exclude = _ref8.exclude,
1948
1949
  exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
1949
- open = _ref8.open,
1950
1950
  cookie = _ref8.cookie,
1951
1951
  loginPage = _ref8.loginPage,
1952
1952
  redirect = _ref8.redirect;
@@ -1954,24 +1954,24 @@ var isLogined = function isLogined(_ref8) {
1954
1954
  if (cookie === undefined) {
1955
1955
  cookie = getParams({ name: 'cookie' });
1956
1956
  }
1957
+ var pathname = win.top.location.pathname;
1957
1958
  if (loginPage) {
1958
1959
  sessionStorage.setItem('loginPage', loginPage);
1959
1960
  if (!startWith(loginPage, ['http', '/'], true)) {
1960
- var pathname = win.top.location.pathname;
1961
1961
  if (pathname !== '/') {
1962
- pathname = pathname.split('/');
1963
- pathname.splice(pathname.length - 1);
1964
- pathname = pathname.join('/');
1965
- loginPage = pathname + '/' + loginPage.replace('./', '');
1962
+ var path = pathname.split('/');
1963
+ path.splice(pathname.length - 1);
1964
+ path = path.join('/');
1965
+ loginPage = path + '/' + loginPage.replace('./', '');
1966
1966
  } else {
1967
1967
  loginPage = pathname + loginPage.replace('./', '');
1968
1968
  }
1969
1969
  }
1970
1970
  }
1971
1971
  var token = getStorage('token') || getStorage('Authorization');
1972
- var logined = getStorage('logined');
1972
+ // const logined = getStorage('logined');
1973
1973
  // eslint-disable-next-line eqeqeq
1974
- if (token || logined || cookie == true || cookie == 1) {
1974
+ if (token || cookie == true || cookie == 1) {
1975
1975
  next && next();
1976
1976
  } else {
1977
1977
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
@@ -1995,37 +1995,22 @@ var isLogined = function isLogined(_ref8) {
1995
1995
  deviceUnique: results.deviceUnique
1996
1996
  }
1997
1997
  });
1998
- next();
1998
+ var url = delUrlParam({
1999
+ url: win.top.location.href,
2000
+ key: ['serverId', 'authType', 'code', 'sessionId']
2001
+ });
2002
+ win.top.location.href = url;
2003
+ setTimeout(function () {
2004
+ win.top.location.reload();
2005
+ }, 200);
1999
2006
  break;
2000
2007
  case 1:
2001
2008
  break;
2002
2009
  case 2:
2003
2010
  break;
2004
2011
  case 3:
2005
- var url = win.top.location.href;
2006
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
2007
- if (to.query.openType) {
2008
- switch (to.query.openType) {
2009
- case 'self':
2010
- win.location.href = href;
2011
- break;
2012
- case 'blank':
2013
- win.open(href);
2014
- break;
2015
- case 'top':
2016
- win.top.location.href = href;
2017
- break;
2018
- case 'parent':
2019
- win.parent.location.href = href;
2020
- break;
2021
- }
2022
- } else {
2023
- if (open) {
2024
- win.open(href);
2025
- } else {
2026
- win.top.location.href = href;
2027
- }
2028
- }
2012
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2013
+ win.top.location.href = href;
2029
2014
  break;
2030
2015
  case 4:
2031
2016
  eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
package/lib/toolbar.js CHANGED
@@ -202,6 +202,8 @@ __webpack_require__.r(__webpack_exports__);
202
202
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/toolbar/src/main.vue?vue&type=script&lang=js&
203
203
  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; };
204
204
 
205
+ 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; }
206
+
205
207
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
206
208
  name: 'EsToolbar',
207
209
  inheritAttrs: false,
@@ -244,6 +246,14 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
244
246
  small: {
245
247
  type: Boolean,
246
248
  default: true
249
+ },
250
+ showLabel: {
251
+ type: Boolean,
252
+ default: false
253
+ },
254
+ labelWidth: {
255
+ type: String,
256
+ default: 'auto'
247
257
  }
248
258
  },
249
259
  computed: {
@@ -399,6 +409,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
399
409
  }, item.label || item.text);
400
410
  }))]);
401
411
  }
412
+
413
+ var config = items.config,
414
+ other = _objectWithoutProperties(items, ['config']);
415
+
402
416
  if (items.type === 'search') {
403
417
  var itemClass = {
404
418
  radio: 'es-toolbar-item-radio',
@@ -406,13 +420,11 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
406
420
  switch: 'es-toolbar-item-switch'
407
421
  };
408
422
  search = [h('es-form', {
409
- class: ['es-form-search', _this2.small ? 'es-form-search-small' : '', _this2.showFormBtn ? '' : 'es-form-search-nobtn'],
423
+ class: ['es-form-search', _this2.small ? 'es-form-search-small' : '', _this2.showLabel ? 'es-form-search-nobtn' : ''],
410
424
  props: _extends({
411
- showButton: items.showButton,
412
- formatSubmit: items.formatSubmit
413
- }, items.config || {}, {
414
425
  size: 'medium',
415
- showLabel: false,
426
+ showLabel: _this2.showLabel,
427
+ labelWidth: _this2.labelWidth,
416
428
  closeDialog: false,
417
429
  model: _this2.searchData,
418
430
  contents: items.contents,
@@ -421,7 +433,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
421
433
  search: true,
422
434
  isReset: items.reset,
423
435
  showButton: _this2.showFormBtn
424
- }),
436
+ }, other, config || {}),
425
437
  on: {
426
438
  submit: function submit(data) {
427
439
  _this2.hanleSearch(data, items.multiCondition);
@@ -465,9 +477,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
465
477
  }, [h('es-form', {
466
478
  class: 'es-form-search',
467
479
  ref: 'filter',
468
- props: _extends({
469
- formatSubmit: items.formatSubmit
470
- }, items.config || {}, {
480
+ props: _extends({}, other, config || {}, {
471
481
  size: 'medium',
472
482
  closeDialog: false,
473
483
  model: _this2.advancedData,
package/lib/tree-group.js CHANGED
@@ -746,6 +746,7 @@ var delUrlParam = function delUrlParam(_ref2) {
746
746
  key.forEach(function (item) {
747
747
  if (param.hasOwnProperty(item)) {
748
748
  var reg = item + '=' + param[item];
749
+ console.log(reg);
749
750
  if (src.indexOf(reg + '&') > -1) {
750
751
  src = src.replace(reg + '&', '');
751
752
  } else if (src.indexOf('&' + reg) > -1) {
@@ -1946,7 +1947,6 @@ var isLogined = function isLogined(_ref8) {
1946
1947
  next = _ref8.next,
1947
1948
  _ref8$exclude = _ref8.exclude,
1948
1949
  exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
1949
- open = _ref8.open,
1950
1950
  cookie = _ref8.cookie,
1951
1951
  loginPage = _ref8.loginPage,
1952
1952
  redirect = _ref8.redirect;
@@ -1954,24 +1954,24 @@ var isLogined = function isLogined(_ref8) {
1954
1954
  if (cookie === undefined) {
1955
1955
  cookie = getParams({ name: 'cookie' });
1956
1956
  }
1957
+ var pathname = win.top.location.pathname;
1957
1958
  if (loginPage) {
1958
1959
  sessionStorage.setItem('loginPage', loginPage);
1959
1960
  if (!startWith(loginPage, ['http', '/'], true)) {
1960
- var pathname = win.top.location.pathname;
1961
1961
  if (pathname !== '/') {
1962
- pathname = pathname.split('/');
1963
- pathname.splice(pathname.length - 1);
1964
- pathname = pathname.join('/');
1965
- loginPage = pathname + '/' + loginPage.replace('./', '');
1962
+ var path = pathname.split('/');
1963
+ path.splice(pathname.length - 1);
1964
+ path = path.join('/');
1965
+ loginPage = path + '/' + loginPage.replace('./', '');
1966
1966
  } else {
1967
1967
  loginPage = pathname + loginPage.replace('./', '');
1968
1968
  }
1969
1969
  }
1970
1970
  }
1971
1971
  var token = getStorage('token') || getStorage('Authorization');
1972
- var logined = getStorage('logined');
1972
+ // const logined = getStorage('logined');
1973
1973
  // eslint-disable-next-line eqeqeq
1974
- if (token || logined || cookie == true || cookie == 1) {
1974
+ if (token || cookie == true || cookie == 1) {
1975
1975
  next && next();
1976
1976
  } else {
1977
1977
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
@@ -1995,37 +1995,22 @@ var isLogined = function isLogined(_ref8) {
1995
1995
  deviceUnique: results.deviceUnique
1996
1996
  }
1997
1997
  });
1998
- next();
1998
+ var url = delUrlParam({
1999
+ url: win.top.location.href,
2000
+ key: ['serverId', 'authType', 'code', 'sessionId']
2001
+ });
2002
+ win.top.location.href = url;
2003
+ setTimeout(function () {
2004
+ win.top.location.reload();
2005
+ }, 200);
1999
2006
  break;
2000
2007
  case 1:
2001
2008
  break;
2002
2009
  case 2:
2003
2010
  break;
2004
2011
  case 3:
2005
- var url = win.top.location.href;
2006
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
2007
- if (to.query.openType) {
2008
- switch (to.query.openType) {
2009
- case 'self':
2010
- win.location.href = href;
2011
- break;
2012
- case 'blank':
2013
- win.open(href);
2014
- break;
2015
- case 'top':
2016
- win.top.location.href = href;
2017
- break;
2018
- case 'parent':
2019
- win.parent.location.href = href;
2020
- break;
2021
- }
2022
- } else {
2023
- if (open) {
2024
- win.open(href);
2025
- } else {
2026
- win.top.location.href = href;
2027
- }
2028
- }
2012
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2013
+ win.top.location.href = href;
2029
2014
  break;
2030
2015
  case 4:
2031
2016
  eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
package/lib/tree.js CHANGED
@@ -746,6 +746,7 @@ var delUrlParam = function delUrlParam(_ref2) {
746
746
  key.forEach(function (item) {
747
747
  if (param.hasOwnProperty(item)) {
748
748
  var reg = item + '=' + param[item];
749
+ console.log(reg);
749
750
  if (src.indexOf(reg + '&') > -1) {
750
751
  src = src.replace(reg + '&', '');
751
752
  } else if (src.indexOf('&' + reg) > -1) {
@@ -1946,7 +1947,6 @@ var isLogined = function isLogined(_ref8) {
1946
1947
  next = _ref8.next,
1947
1948
  _ref8$exclude = _ref8.exclude,
1948
1949
  exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
1949
- open = _ref8.open,
1950
1950
  cookie = _ref8.cookie,
1951
1951
  loginPage = _ref8.loginPage,
1952
1952
  redirect = _ref8.redirect;
@@ -1954,24 +1954,24 @@ var isLogined = function isLogined(_ref8) {
1954
1954
  if (cookie === undefined) {
1955
1955
  cookie = getParams({ name: 'cookie' });
1956
1956
  }
1957
+ var pathname = win.top.location.pathname;
1957
1958
  if (loginPage) {
1958
1959
  sessionStorage.setItem('loginPage', loginPage);
1959
1960
  if (!startWith(loginPage, ['http', '/'], true)) {
1960
- var pathname = win.top.location.pathname;
1961
1961
  if (pathname !== '/') {
1962
- pathname = pathname.split('/');
1963
- pathname.splice(pathname.length - 1);
1964
- pathname = pathname.join('/');
1965
- loginPage = pathname + '/' + loginPage.replace('./', '');
1962
+ var path = pathname.split('/');
1963
+ path.splice(pathname.length - 1);
1964
+ path = path.join('/');
1965
+ loginPage = path + '/' + loginPage.replace('./', '');
1966
1966
  } else {
1967
1967
  loginPage = pathname + loginPage.replace('./', '');
1968
1968
  }
1969
1969
  }
1970
1970
  }
1971
1971
  var token = getStorage('token') || getStorage('Authorization');
1972
- var logined = getStorage('logined');
1972
+ // const logined = getStorage('logined');
1973
1973
  // eslint-disable-next-line eqeqeq
1974
- if (token || logined || cookie == true || cookie == 1) {
1974
+ if (token || cookie == true || cookie == 1) {
1975
1975
  next && next();
1976
1976
  } else {
1977
1977
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
@@ -1995,37 +1995,22 @@ var isLogined = function isLogined(_ref8) {
1995
1995
  deviceUnique: results.deviceUnique
1996
1996
  }
1997
1997
  });
1998
- next();
1998
+ var url = delUrlParam({
1999
+ url: win.top.location.href,
2000
+ key: ['serverId', 'authType', 'code', 'sessionId']
2001
+ });
2002
+ win.top.location.href = url;
2003
+ setTimeout(function () {
2004
+ win.top.location.reload();
2005
+ }, 200);
1999
2006
  break;
2000
2007
  case 1:
2001
2008
  break;
2002
2009
  case 2:
2003
2010
  break;
2004
2011
  case 3:
2005
- var url = win.top.location.href;
2006
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
2007
- if (to.query.openType) {
2008
- switch (to.query.openType) {
2009
- case 'self':
2010
- win.location.href = href;
2011
- break;
2012
- case 'blank':
2013
- win.open(href);
2014
- break;
2015
- case 'top':
2016
- win.top.location.href = href;
2017
- break;
2018
- case 'parent':
2019
- win.parent.location.href = href;
2020
- break;
2021
- }
2022
- } else {
2023
- if (open) {
2024
- win.open(href);
2025
- } else {
2026
- win.top.location.href = href;
2027
- }
2028
- }
2012
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2013
+ win.top.location.href = href;
2029
2014
  break;
2030
2015
  case 4:
2031
2016
  eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
package/lib/upload.js CHANGED
@@ -745,6 +745,7 @@ var delUrlParam = function delUrlParam(_ref2) {
745
745
  key.forEach(function (item) {
746
746
  if (param.hasOwnProperty(item)) {
747
747
  var reg = item + '=' + param[item];
748
+ console.log(reg);
748
749
  if (src.indexOf(reg + '&') > -1) {
749
750
  src = src.replace(reg + '&', '');
750
751
  } else if (src.indexOf('&' + reg) > -1) {
@@ -1945,7 +1946,6 @@ var isLogined = function isLogined(_ref8) {
1945
1946
  next = _ref8.next,
1946
1947
  _ref8$exclude = _ref8.exclude,
1947
1948
  exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
1948
- open = _ref8.open,
1949
1949
  cookie = _ref8.cookie,
1950
1950
  loginPage = _ref8.loginPage,
1951
1951
  redirect = _ref8.redirect;
@@ -1953,24 +1953,24 @@ var isLogined = function isLogined(_ref8) {
1953
1953
  if (cookie === undefined) {
1954
1954
  cookie = getParams({ name: 'cookie' });
1955
1955
  }
1956
+ var pathname = win.top.location.pathname;
1956
1957
  if (loginPage) {
1957
1958
  sessionStorage.setItem('loginPage', loginPage);
1958
1959
  if (!startWith(loginPage, ['http', '/'], true)) {
1959
- var pathname = win.top.location.pathname;
1960
1960
  if (pathname !== '/') {
1961
- pathname = pathname.split('/');
1962
- pathname.splice(pathname.length - 1);
1963
- pathname = pathname.join('/');
1964
- loginPage = pathname + '/' + loginPage.replace('./', '');
1961
+ var path = pathname.split('/');
1962
+ path.splice(pathname.length - 1);
1963
+ path = path.join('/');
1964
+ loginPage = path + '/' + loginPage.replace('./', '');
1965
1965
  } else {
1966
1966
  loginPage = pathname + loginPage.replace('./', '');
1967
1967
  }
1968
1968
  }
1969
1969
  }
1970
1970
  var token = getStorage('token') || getStorage('Authorization');
1971
- var logined = getStorage('logined');
1971
+ // const logined = getStorage('logined');
1972
1972
  // eslint-disable-next-line eqeqeq
1973
- if (token || logined || cookie == true || cookie == 1) {
1973
+ if (token || cookie == true || cookie == 1) {
1974
1974
  next && next();
1975
1975
  } else {
1976
1976
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
@@ -1994,37 +1994,22 @@ var isLogined = function isLogined(_ref8) {
1994
1994
  deviceUnique: results.deviceUnique
1995
1995
  }
1996
1996
  });
1997
- next();
1997
+ var url = delUrlParam({
1998
+ url: win.top.location.href,
1999
+ key: ['serverId', 'authType', 'code', 'sessionId']
2000
+ });
2001
+ win.top.location.href = url;
2002
+ setTimeout(function () {
2003
+ win.top.location.reload();
2004
+ }, 200);
1998
2005
  break;
1999
2006
  case 1:
2000
2007
  break;
2001
2008
  case 2:
2002
2009
  break;
2003
2010
  case 3:
2004
- var url = win.top.location.href;
2005
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
2006
- if (to.query.openType) {
2007
- switch (to.query.openType) {
2008
- case 'self':
2009
- win.location.href = href;
2010
- break;
2011
- case 'blank':
2012
- win.open(href);
2013
- break;
2014
- case 'top':
2015
- win.top.location.href = href;
2016
- break;
2017
- case 'parent':
2018
- win.parent.location.href = href;
2019
- break;
2020
- }
2021
- } else {
2022
- if (open) {
2023
- win.open(href);
2024
- } else {
2025
- win.top.location.href = href;
2026
- }
2027
- }
2011
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2012
+ win.top.location.href = href;
2028
2013
  break;
2029
2014
  case 4:
2030
2015
  eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
package/lib/utils/util.js CHANGED
@@ -663,6 +663,7 @@ var delUrlParam = function delUrlParam(_ref2) {
663
663
  key.forEach(function (item) {
664
664
  if (param.hasOwnProperty(item)) {
665
665
  var reg = item + '=' + param[item];
666
+ console.log(reg);
666
667
  if (src.indexOf(reg + '&') > -1) {
667
668
  src = src.replace(reg + '&', '');
668
669
  } else if (src.indexOf('&' + reg) > -1) {
@@ -1863,7 +1864,6 @@ var isLogined = function isLogined(_ref8) {
1863
1864
  next = _ref8.next,
1864
1865
  _ref8$exclude = _ref8.exclude,
1865
1866
  exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
1866
- open = _ref8.open,
1867
1867
  cookie = _ref8.cookie,
1868
1868
  loginPage = _ref8.loginPage,
1869
1869
  redirect = _ref8.redirect;
@@ -1871,24 +1871,24 @@ var isLogined = function isLogined(_ref8) {
1871
1871
  if (cookie === undefined) {
1872
1872
  cookie = getParams({ name: 'cookie' });
1873
1873
  }
1874
+ var pathname = win.top.location.pathname;
1874
1875
  if (loginPage) {
1875
1876
  sessionStorage.setItem('loginPage', loginPage);
1876
1877
  if (!startWith(loginPage, ['http', '/'], true)) {
1877
- var pathname = win.top.location.pathname;
1878
1878
  if (pathname !== '/') {
1879
- pathname = pathname.split('/');
1880
- pathname.splice(pathname.length - 1);
1881
- pathname = pathname.join('/');
1882
- loginPage = pathname + '/' + loginPage.replace('./', '');
1879
+ var path = pathname.split('/');
1880
+ path.splice(pathname.length - 1);
1881
+ path = path.join('/');
1882
+ loginPage = path + '/' + loginPage.replace('./', '');
1883
1883
  } else {
1884
1884
  loginPage = pathname + loginPage.replace('./', '');
1885
1885
  }
1886
1886
  }
1887
1887
  }
1888
1888
  var token = getStorage('token') || getStorage('Authorization');
1889
- var logined = getStorage('logined');
1889
+ // const logined = getStorage('logined');
1890
1890
  // eslint-disable-next-line eqeqeq
1891
- if (token || logined || cookie == true || cookie == 1) {
1891
+ if (token || cookie == true || cookie == 1) {
1892
1892
  next && next();
1893
1893
  } else {
1894
1894
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
@@ -1912,37 +1912,22 @@ var isLogined = function isLogined(_ref8) {
1912
1912
  deviceUnique: results.deviceUnique
1913
1913
  }
1914
1914
  });
1915
- next();
1915
+ var url = delUrlParam({
1916
+ url: win.top.location.href,
1917
+ key: ['serverId', 'authType', 'code', 'sessionId']
1918
+ });
1919
+ win.top.location.href = url;
1920
+ setTimeout(function () {
1921
+ win.top.location.reload();
1922
+ }, 200);
1916
1923
  break;
1917
1924
  case 1:
1918
1925
  break;
1919
1926
  case 2:
1920
1927
  break;
1921
1928
  case 3:
1922
- var url = win.top.location.href;
1923
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
1924
- if (to.query.openType) {
1925
- switch (to.query.openType) {
1926
- case 'self':
1927
- win.location.href = href;
1928
- break;
1929
- case 'blank':
1930
- win.open(href);
1931
- break;
1932
- case 'top':
1933
- win.top.location.href = href;
1934
- break;
1935
- case 'parent':
1936
- win.parent.location.href = href;
1937
- break;
1938
- }
1939
- } else {
1940
- if (open) {
1941
- win.open(href);
1942
- } else {
1943
- win.top.location.href = href;
1944
- }
1945
- }
1929
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
1930
+ win.top.location.href = href;
1946
1931
  break;
1947
1932
  case 4:
1948
1933
  _eossElement.MessageBox.alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
package/lib/wujie.js CHANGED
@@ -746,6 +746,7 @@ var delUrlParam = function delUrlParam(_ref2) {
746
746
  key.forEach(function (item) {
747
747
  if (param.hasOwnProperty(item)) {
748
748
  var reg = item + '=' + param[item];
749
+ console.log(reg);
749
750
  if (src.indexOf(reg + '&') > -1) {
750
751
  src = src.replace(reg + '&', '');
751
752
  } else if (src.indexOf('&' + reg) > -1) {
@@ -1946,7 +1947,6 @@ var isLogined = function isLogined(_ref8) {
1946
1947
  next = _ref8.next,
1947
1948
  _ref8$exclude = _ref8.exclude,
1948
1949
  exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
1949
- open = _ref8.open,
1950
1950
  cookie = _ref8.cookie,
1951
1951
  loginPage = _ref8.loginPage,
1952
1952
  redirect = _ref8.redirect;
@@ -1954,24 +1954,24 @@ var isLogined = function isLogined(_ref8) {
1954
1954
  if (cookie === undefined) {
1955
1955
  cookie = getParams({ name: 'cookie' });
1956
1956
  }
1957
+ var pathname = win.top.location.pathname;
1957
1958
  if (loginPage) {
1958
1959
  sessionStorage.setItem('loginPage', loginPage);
1959
1960
  if (!startWith(loginPage, ['http', '/'], true)) {
1960
- var pathname = win.top.location.pathname;
1961
1961
  if (pathname !== '/') {
1962
- pathname = pathname.split('/');
1963
- pathname.splice(pathname.length - 1);
1964
- pathname = pathname.join('/');
1965
- loginPage = pathname + '/' + loginPage.replace('./', '');
1962
+ var path = pathname.split('/');
1963
+ path.splice(pathname.length - 1);
1964
+ path = path.join('/');
1965
+ loginPage = path + '/' + loginPage.replace('./', '');
1966
1966
  } else {
1967
1967
  loginPage = pathname + loginPage.replace('./', '');
1968
1968
  }
1969
1969
  }
1970
1970
  }
1971
1971
  var token = getStorage('token') || getStorage('Authorization');
1972
- var logined = getStorage('logined');
1972
+ // const logined = getStorage('logined');
1973
1973
  // eslint-disable-next-line eqeqeq
1974
- if (token || logined || cookie == true || cookie == 1) {
1974
+ if (token || cookie == true || cookie == 1) {
1975
1975
  next && next();
1976
1976
  } else {
1977
1977
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
@@ -1995,37 +1995,22 @@ var isLogined = function isLogined(_ref8) {
1995
1995
  deviceUnique: results.deviceUnique
1996
1996
  }
1997
1997
  });
1998
- next();
1998
+ var url = delUrlParam({
1999
+ url: win.top.location.href,
2000
+ key: ['serverId', 'authType', 'code', 'sessionId']
2001
+ });
2002
+ win.top.location.href = url;
2003
+ setTimeout(function () {
2004
+ win.top.location.reload();
2005
+ }, 200);
1999
2006
  break;
2000
2007
  case 1:
2001
2008
  break;
2002
2009
  case 2:
2003
2010
  break;
2004
2011
  case 3:
2005
- var url = win.top.location.href;
2006
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
2007
- if (to.query.openType) {
2008
- switch (to.query.openType) {
2009
- case 'self':
2010
- win.location.href = href;
2011
- break;
2012
- case 'blank':
2013
- win.open(href);
2014
- break;
2015
- case 'top':
2016
- win.top.location.href = href;
2017
- break;
2018
- case 'parent':
2019
- win.parent.location.href = href;
2020
- break;
2021
- }
2022
- } else {
2023
- if (open) {
2024
- win.open(href);
2025
- } else {
2026
- win.top.location.href = href;
2027
- }
2028
- }
2012
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2013
+ win.top.location.href = href;
2029
2014
  break;
2030
2015
  case 4:
2031
2016
  eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {