eoss-ui 0.4.57 → 0.4.59

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 (76) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/lib/button-group.js +19 -5
  3. package/lib/button.js +19 -5
  4. package/lib/checkbox-group.js +19 -5
  5. package/lib/clients.js +95 -4
  6. package/lib/data-table-form.js +19 -5
  7. package/lib/data-table.js +24 -11
  8. package/lib/date-picker.js +19 -5
  9. package/lib/dialog.js +19 -5
  10. package/lib/eoss-ui.common.js +1361 -1074
  11. package/lib/flow-group.js +928 -860
  12. package/lib/flow-list.js +19 -5
  13. package/lib/flow.js +32 -16
  14. package/lib/form.js +19 -5
  15. package/lib/handle-user.js +19 -5
  16. package/lib/handler.js +38 -15
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +19 -5
  19. package/lib/input.js +31 -10
  20. package/lib/login.js +102 -33
  21. package/lib/main.js +71 -36
  22. package/lib/mainComp.js +19 -5
  23. package/lib/nav.js +19 -5
  24. package/lib/page.js +19 -5
  25. package/lib/player.js +19 -5
  26. package/lib/qr-code.js +19 -5
  27. package/lib/radio-group.js +19 -5
  28. package/lib/retrial-auth.js +24 -9
  29. package/lib/select-ganged.js +19 -5
  30. package/lib/select.js +19 -5
  31. package/lib/selector-panel.js +19 -5
  32. package/lib/selector.js +19 -5
  33. package/lib/sizer.js +19 -5
  34. package/lib/steps.js +19 -5
  35. package/lib/switch.js +19 -5
  36. package/lib/table-form.js +26 -11
  37. package/lib/tabs.js +19 -5
  38. package/lib/theme-chalk/clients.css +1 -1
  39. package/lib/theme-chalk/flow-group.css +1 -1
  40. package/lib/theme-chalk/index.css +1 -1
  41. package/lib/theme-chalk/login.css +1 -1
  42. package/lib/theme-chalk/upload.css +1 -1
  43. package/lib/tips.js +19 -5
  44. package/lib/toolbar.js +0 -1
  45. package/lib/tree-group.js +19 -5
  46. package/lib/tree.js +19 -5
  47. package/lib/upload.js +110 -62
  48. package/lib/utils/util.js +19 -5
  49. package/lib/wujie.js +19 -5
  50. package/lib/wxlogin.js +19 -5
  51. package/package.json +2 -2
  52. package/packages/clients/src/main.vue +60 -2
  53. package/packages/data-table/src/main.vue +0 -1
  54. package/packages/flow/src/main.vue +1 -0
  55. package/packages/flow/src/startTaskRead.vue +2 -2
  56. package/packages/flow-group/src/main.vue +284 -265
  57. package/packages/form/src/table.vue +3 -2
  58. package/packages/handler/src/main.vue +20 -10
  59. package/packages/input/src/main.vue +7 -2
  60. package/packages/login/src/main.vue +77 -27
  61. package/packages/main/src/main.vue +28 -16
  62. package/packages/main/src/userinfo.vue +20 -9
  63. package/packages/retrial-auth/src/main.vue +3 -2
  64. package/packages/theme-chalk/lib/clients.css +1 -1
  65. package/packages/theme-chalk/lib/flow-group.css +1 -1
  66. package/packages/theme-chalk/lib/index.css +1 -1
  67. package/packages/theme-chalk/lib/login.css +1 -1
  68. package/packages/theme-chalk/lib/upload.css +1 -1
  69. package/packages/theme-chalk/src/clients.scss +8 -0
  70. package/packages/theme-chalk/src/flow-group.scss +9 -3
  71. package/packages/theme-chalk/src/login.scss +3 -0
  72. package/packages/theme-chalk/src/upload.scss +50 -26
  73. package/packages/toolbar/src/main.vue +0 -1
  74. package/packages/upload/src/main.vue +56 -37
  75. package/src/index.js +1 -1
  76. package/src/utils/util.js +21 -10
package/lib/mainComp.js CHANGED
@@ -263,20 +263,33 @@ var ajax = function ajax(_ref) {
263
263
  }).then(function () {
264
264
  var loginPage = getStorage('login') || getStorage('loginPage');
265
265
  if (loginPage) {
266
- win.top.location.href = loginPage;
266
+ var src = void 0;
267
+ if (!startWith(loginPage, ['http', '/'])) {
268
+ var pathname = win.top.location.pathname;
269
+ if (pathname !== '/') {
270
+ pathname = pathname.split('/');
271
+ pathname.splice(pathname.length - 1);
272
+ pathname = pathname.join('/');
273
+ }
274
+ src = pathname + loginPage.replace('./', '');
275
+ } else {
276
+ src = loginPage;
277
+ }
278
+ win.top.location.href = src;
267
279
  } else if (win.top.location.href.indexOf('main.html') > -1) {
268
280
  win.top.location.href = './login.html';
269
281
  } else {
270
282
  var hash = win.top.location.hash;
271
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
283
+ if (hash) {
272
284
  var len = win.top.location.href.indexOf(hash);
273
- var href = win.top.location.href.slice(0, len) + '#/login';
274
- win.top.location.href = href;
285
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
275
286
  } else {
276
287
  win.top.location.href = '/login.html';
277
288
  }
278
289
  }
279
- }).catch(function (e) {});
290
+ }).catch(function (e) {
291
+ sessionStorage.removeItem('remind');
292
+ });
280
293
  }, 1000));
281
294
  }
282
295
  } else if (response.data.rCode === 61) {
@@ -294,6 +307,7 @@ var ajax = function ajax(_ref) {
294
307
  return h('es-retrial-auth', {
295
308
  ref: 'auth',
296
309
  props: {
310
+ reload: response.data.results.reload || response.data.results.refresh,
297
311
  group: response.data.results.retrialAuthGroupIds,
298
312
  type: response.data.results.retrialAuthType,
299
313
  msgBox: msgBox
package/lib/nav.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
295
308
  return h('es-retrial-auth', {
296
309
  ref: 'auth',
297
310
  props: {
311
+ reload: response.data.results.reload || response.data.results.refresh,
298
312
  group: response.data.results.retrialAuthGroupIds,
299
313
  type: response.data.results.retrialAuthType,
300
314
  msgBox: msgBox
package/lib/page.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
295
308
  return h('es-retrial-auth', {
296
309
  ref: 'auth',
297
310
  props: {
311
+ reload: response.data.results.reload || response.data.results.refresh,
298
312
  group: response.data.results.retrialAuthGroupIds,
299
313
  type: response.data.results.retrialAuthType,
300
314
  msgBox: msgBox
package/lib/player.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
295
308
  return h('es-retrial-auth', {
296
309
  ref: 'auth',
297
310
  props: {
311
+ reload: response.data.results.reload || response.data.results.refresh,
298
312
  group: response.data.results.retrialAuthGroupIds,
299
313
  type: response.data.results.retrialAuthType,
300
314
  msgBox: msgBox
package/lib/qr-code.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
295
308
  return h('es-retrial-auth', {
296
309
  ref: 'auth',
297
310
  props: {
311
+ reload: response.data.results.reload || response.data.results.refresh,
298
312
  group: response.data.results.retrialAuthGroupIds,
299
313
  type: response.data.results.retrialAuthType,
300
314
  msgBox: msgBox
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
295
308
  return h('es-retrial-auth', {
296
309
  ref: 'auth',
297
310
  props: {
311
+ reload: response.data.results.reload || response.data.results.refresh,
298
312
  group: response.data.results.retrialAuthGroupIds,
299
313
  type: response.data.results.retrialAuthType,
300
314
  msgBox: msgBox
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
295
308
  return h('es-retrial-auth', {
296
309
  ref: 'auth',
297
310
  props: {
311
+ reload: response.data.results.reload || response.data.results.refresh,
298
312
  group: response.data.results.retrialAuthGroupIds,
299
313
  type: response.data.results.retrialAuthType,
300
314
  msgBox: msgBox
@@ -2846,7 +2860,7 @@ module.exports = require("axios");
2846
2860
  // ESM COMPAT FLAG
2847
2861
  __webpack_require__.r(__webpack_exports__);
2848
2862
 
2849
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/retrial-auth/src/main.vue?vue&type=template&id=9a7a652e&
2863
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/retrial-auth/src/main.vue?vue&type=template&id=74d02fd0&
2850
2864
  var render = function () {
2851
2865
  var _vm = this
2852
2866
  var _h = _vm.$createElement
@@ -3000,7 +3014,7 @@ var staticRenderFns = []
3000
3014
  render._withStripped = true
3001
3015
 
3002
3016
 
3003
- // CONCATENATED MODULE: ./packages/retrial-auth/src/main.vue?vue&type=template&id=9a7a652e&
3017
+ // CONCATENATED MODULE: ./packages/retrial-auth/src/main.vue?vue&type=template&id=74d02fd0&
3004
3018
 
3005
3019
  // EXTERNAL MODULE: ./src/utils/util.js
3006
3020
  var util = __webpack_require__(0);
@@ -3074,6 +3088,7 @@ var api = __webpack_require__(1);
3074
3088
  name: 'EsRetrialAuth',
3075
3089
  inheritAttrs: false,
3076
3090
  props: {
3091
+ reload: Boolean,
3077
3092
  group: String,
3078
3093
  type: Array,
3079
3094
  msgBox: {}
@@ -3182,7 +3197,7 @@ var api = __webpack_require__(1);
3182
3197
  type: 'success'
3183
3198
  });
3184
3199
  _this3.msgBox.handleClose();
3185
- util["a" /* default */].win.top.location.reload();
3200
+ _this3.reload && util["a" /* default */].win.top.location.reload();
3186
3201
  } else {
3187
3202
  _this3.$message({
3188
3203
  message: msg,
@@ -3258,7 +3273,7 @@ var api = __webpack_require__(1);
3258
3273
  type: 'success'
3259
3274
  });
3260
3275
  _this5.msgBox.handleClose();
3261
- util["a" /* default */].win.top.location.reload();
3276
+ _this5.reload && util["a" /* default */].win.top.location.reload();
3262
3277
  } else {
3263
3278
  _this5.scanCode = setTimeout(function () {
3264
3279
  _this5.handleScanCodeRetrialAuth();
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
295
308
  return h('es-retrial-auth', {
296
309
  ref: 'auth',
297
310
  props: {
311
+ reload: response.data.results.reload || response.data.results.refresh,
298
312
  group: response.data.results.retrialAuthGroupIds,
299
313
  type: response.data.results.retrialAuthType,
300
314
  msgBox: msgBox
package/lib/select.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
295
308
  return h('es-retrial-auth', {
296
309
  ref: 'auth',
297
310
  props: {
311
+ reload: response.data.results.reload || response.data.results.refresh,
298
312
  group: response.data.results.retrialAuthGroupIds,
299
313
  type: response.data.results.retrialAuthType,
300
314
  msgBox: msgBox
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
295
308
  return h('es-retrial-auth', {
296
309
  ref: 'auth',
297
310
  props: {
311
+ reload: response.data.results.reload || response.data.results.refresh,
298
312
  group: response.data.results.retrialAuthGroupIds,
299
313
  type: response.data.results.retrialAuthType,
300
314
  msgBox: msgBox
package/lib/selector.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
295
308
  return h('es-retrial-auth', {
296
309
  ref: 'auth',
297
310
  props: {
311
+ reload: response.data.results.reload || response.data.results.refresh,
298
312
  group: response.data.results.retrialAuthGroupIds,
299
313
  type: response.data.results.retrialAuthType,
300
314
  msgBox: msgBox
package/lib/sizer.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
295
308
  return h('es-retrial-auth', {
296
309
  ref: 'auth',
297
310
  props: {
311
+ reload: response.data.results.reload || response.data.results.refresh,
298
312
  group: response.data.results.retrialAuthGroupIds,
299
313
  type: response.data.results.retrialAuthType,
300
314
  msgBox: msgBox