eoss-ui 0.4.58 → 0.4.60

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 (74) hide show
  1. package/lib/button-group.js +20 -5
  2. package/lib/button.js +20 -5
  3. package/lib/checkbox-group.js +20 -5
  4. package/lib/clients.js +95 -4
  5. package/lib/data-table-form.js +20 -5
  6. package/lib/data-table.js +25 -11
  7. package/lib/date-picker.js +20 -5
  8. package/lib/dialog.js +20 -5
  9. package/lib/eoss-ui.common.js +1400 -1086
  10. package/lib/flow-group.js +929 -860
  11. package/lib/flow-list.js +20 -5
  12. package/lib/flow.js +33 -16
  13. package/lib/form.js +20 -5
  14. package/lib/handle-user.js +20 -5
  15. package/lib/handler.js +41 -15
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +20 -5
  18. package/lib/input.js +32 -10
  19. package/lib/login.js +103 -33
  20. package/lib/main.js +85 -38
  21. package/lib/mainComp.js +69 -30
  22. package/lib/nav.js +20 -5
  23. package/lib/page.js +20 -5
  24. package/lib/player.js +20 -5
  25. package/lib/qr-code.js +20 -5
  26. package/lib/radio-group.js +20 -5
  27. package/lib/retrial-auth.js +20 -5
  28. package/lib/select-ganged.js +20 -5
  29. package/lib/select.js +20 -5
  30. package/lib/selector-panel.js +20 -5
  31. package/lib/selector.js +20 -5
  32. package/lib/sizer.js +20 -5
  33. package/lib/steps.js +20 -5
  34. package/lib/switch.js +20 -5
  35. package/lib/table-form.js +27 -11
  36. package/lib/tabs.js +20 -5
  37. package/lib/theme-chalk/clients.css +1 -1
  38. package/lib/theme-chalk/flow-group.css +1 -1
  39. package/lib/theme-chalk/index.css +1 -1
  40. package/lib/theme-chalk/login.css +1 -1
  41. package/lib/tips.js +20 -5
  42. package/lib/toolbar.js +0 -1
  43. package/lib/tree-group.js +20 -5
  44. package/lib/tree.js +20 -5
  45. package/lib/upload.js +91 -52
  46. package/lib/utils/util.js +20 -5
  47. package/lib/wujie.js +20 -5
  48. package/lib/wxlogin.js +20 -5
  49. package/package.json +2 -2
  50. package/packages/clients/src/main.vue +60 -2
  51. package/packages/data-table/src/main.vue +0 -1
  52. package/packages/flow/src/main.vue +1 -0
  53. package/packages/flow/src/startTaskRead.vue +2 -2
  54. package/packages/flow-group/src/main.vue +284 -265
  55. package/packages/form/src/table.vue +3 -2
  56. package/packages/handler/src/main.vue +22 -10
  57. package/packages/input/src/main.vue +7 -2
  58. package/packages/login/src/main.vue +77 -27
  59. package/packages/main/src/main.vue +52 -32
  60. package/packages/main/src/userinfo.vue +22 -9
  61. package/packages/mainComp/src/main.vue +23 -10
  62. package/packages/mainComp/src/userinfo.vue +22 -9
  63. package/packages/theme-chalk/lib/clients.css +1 -1
  64. package/packages/theme-chalk/lib/flow-group.css +1 -1
  65. package/packages/theme-chalk/lib/index.css +1 -1
  66. package/packages/theme-chalk/lib/login.css +1 -1
  67. package/packages/theme-chalk/src/clients.scss +8 -0
  68. package/packages/theme-chalk/src/flow-group.scss +9 -3
  69. package/packages/theme-chalk/src/login.scss +3 -0
  70. package/packages/toolbar/src/main.vue +0 -1
  71. package/packages/upload/src/main.vue +43 -26
  72. package/src/index.js +1 -1
  73. package/src/utils/util.js +22 -10
  74. package/CHANGELOG.md +0 -929
package/lib/dialog.js CHANGED
@@ -263,20 +263,35 @@ 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
+ src = pathname + loginPage.replace('./', '/');
274
+ } else {
275
+ src = pathname + loginPage.replace('./', '');
276
+ }
277
+ } else {
278
+ src = loginPage;
279
+ }
280
+ win.top.location.href = src;
267
281
  } else if (win.top.location.href.indexOf('main.html') > -1) {
268
282
  win.top.location.href = './login.html';
269
283
  } else {
270
284
  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')) {
285
+ if (hash) {
272
286
  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;
287
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
275
288
  } else {
276
289
  win.top.location.href = '/login.html';
277
290
  }
278
291
  }
279
- }).catch(function (e) {});
292
+ }).catch(function (e) {
293
+ sessionStorage.removeItem('remind');
294
+ });
280
295
  }, 1000));
281
296
  }
282
297
  } else if (response.data.rCode === 61) {