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/flow-list.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/flow.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
@@ -3048,7 +3062,7 @@ var component = Object(componentNormalizer["a" /* default */])(
3048
3062
  // ESM COMPAT FLAG
3049
3063
  __webpack_require__.r(__webpack_exports__);
3050
3064
 
3051
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=fd0d2338&
3065
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=122da260&
3052
3066
  var render = function () {
3053
3067
  var _vm = this
3054
3068
  var _h = _vm.$createElement
@@ -4552,7 +4566,7 @@ var staticRenderFns = []
4552
4566
  render._withStripped = true
4553
4567
 
4554
4568
 
4555
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=fd0d2338&
4569
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=122da260&
4556
4570
 
4557
4571
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
4558
4572
  var regenerator_ = __webpack_require__(9);
@@ -9611,8 +9625,8 @@ var processReject_component = Object(componentNormalizer["a" /* default */])(
9611
9625
  )
9612
9626
 
9613
9627
  /* harmony default export */ var processReject = (processReject_component.exports);
9614
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=template&id=503131e8&
9615
- var startTaskReadvue_type_template_id_503131e8_render = function () {
9628
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=template&id=44f07b3f&
9629
+ var startTaskReadvue_type_template_id_44f07b3f_render = function () {
9616
9630
  var _vm = this
9617
9631
  var _h = _vm.$createElement
9618
9632
  var _c = _vm._self._c || _h
@@ -9987,11 +10001,11 @@ var startTaskReadvue_type_template_id_503131e8_render = function () {
9987
10001
  1
9988
10002
  )
9989
10003
  }
9990
- var startTaskReadvue_type_template_id_503131e8_staticRenderFns = []
9991
- startTaskReadvue_type_template_id_503131e8_render._withStripped = true
10004
+ var startTaskReadvue_type_template_id_44f07b3f_staticRenderFns = []
10005
+ startTaskReadvue_type_template_id_44f07b3f_render._withStripped = true
9992
10006
 
9993
10007
 
9994
- // CONCATENATED MODULE: ./packages/flow/src/startTaskRead.vue?vue&type=template&id=503131e8&
10008
+ // CONCATENATED MODULE: ./packages/flow/src/startTaskRead.vue?vue&type=template&id=44f07b3f&
9995
10009
 
9996
10010
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=script&lang=js&
9997
10011
  var startTaskReadvue_type_script_lang_js_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; };
@@ -10417,7 +10431,8 @@ var startTaskReadvue_type_script_lang_js_components;
10417
10431
  pendingId = this.pendingId,
10418
10432
  nextNode = this.nextNode,
10419
10433
  newsInfo = this.newsInfo,
10420
- multiple = this.multiple;
10434
+ multiple = this.multiple,
10435
+ type = this.type;
10421
10436
 
10422
10437
  var params = {
10423
10438
  url: api["zb" /* taskTransfer */],
@@ -10426,7 +10441,7 @@ var startTaskReadvue_type_script_lang_js_components;
10426
10441
  choiceOrgId: choiceOrgId,
10427
10442
  bCode: bCode,
10428
10443
  bName: bName,
10429
- nextUserId: multiple ? nextNode.nextUser.join(',') : nextNode.nextUser,
10444
+ nextUserId: multiple && type != 'transfer' ? nextNode.nextUser.join(',') : nextNode.nextUser,
10430
10445
  opinion: opinion,
10431
10446
  pendingId: pendingId,
10432
10447
  notificationType: nextNode.noticeType.join(','),
@@ -10591,8 +10606,8 @@ var startTaskReadvue_type_script_lang_js_components;
10591
10606
 
10592
10607
  var startTaskRead_component = Object(componentNormalizer["a" /* default */])(
10593
10608
  src_startTaskReadvue_type_script_lang_js_,
10594
- startTaskReadvue_type_template_id_503131e8_render,
10595
- startTaskReadvue_type_template_id_503131e8_staticRenderFns,
10609
+ startTaskReadvue_type_template_id_44f07b3f_render,
10610
+ startTaskReadvue_type_template_id_44f07b3f_staticRenderFns,
10596
10611
  false,
10597
10612
  null,
10598
10613
  null,
@@ -12266,6 +12281,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
12266
12281
  }
12267
12282
  },
12268
12283
  setShrink: function setShrink() {
12284
+ this.shrink = !this.shrink;
12269
12285
  this.$emit('shrink', this.shrink);
12270
12286
  },
12271
12287
  customLoading: function customLoading(type) {
package/lib/form.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/handler.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
@@ -2839,7 +2853,7 @@ module.exports = require("qs");
2839
2853
  // ESM COMPAT FLAG
2840
2854
  __webpack_require__.r(__webpack_exports__);
2841
2855
 
2842
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=template&id=36cec0d2&
2856
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=template&id=fae24fe8&
2843
2857
  var render = function () {
2844
2858
  var _vm = this
2845
2859
  var _h = _vm.$createElement
@@ -3014,7 +3028,7 @@ var staticRenderFns = []
3014
3028
  render._withStripped = true
3015
3029
 
3016
3030
 
3017
- // CONCATENATED MODULE: ./packages/handler/src/main.vue?vue&type=template&id=36cec0d2&
3031
+ // CONCATENATED MODULE: ./packages/handler/src/main.vue?vue&type=template&id=fae24fe8&
3018
3032
 
3019
3033
  // EXTERNAL MODULE: ./src/config/api.js
3020
3034
  var api = __webpack_require__(1);
@@ -3168,7 +3182,6 @@ var util = __webpack_require__(0);
3168
3182
  lists: function lists() {
3169
3183
  var _this = this;
3170
3184
 
3171
- console.log(111);
3172
3185
  if (this.data === undefined) {
3173
3186
  if (Object.keys(this.hide).length) {
3174
3187
  this.list.forEach(function (item) {
@@ -3287,7 +3300,22 @@ var util = __webpack_require__(0);
3287
3300
  if (_this2.onQuit && typeof _this2.onQuit === 'function') {
3288
3301
  _this2.onQuit();
3289
3302
  } else {
3290
- if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
3303
+ var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
3304
+ if (loginPage) {
3305
+ var src = void 0;
3306
+ if (!util["a" /* default */].startWith(loginPage, ['http', '/'])) {
3307
+ var pathname = util["a" /* default */].win.top.location.pathname;
3308
+ if (pathname !== '/') {
3309
+ pathname = pathname.split('/');
3310
+ pathname.splice(pathname.length - 1);
3311
+ pathname = pathname.join('/');
3312
+ }
3313
+ src = pathname + loginPage.replace('./', '');
3314
+ } else {
3315
+ src = loginPage;
3316
+ }
3317
+ util["a" /* default */].win.top.location.href = src;
3318
+ } else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
3291
3319
  util["a" /* default */].win.top.location.href = './login.html';
3292
3320
  } else {
3293
3321
  var hash = util["a" /* default */].win.top.location.hash;
@@ -3295,12 +3323,7 @@ var util = __webpack_require__(0);
3295
3323
  var len = util["a" /* default */].win.top.location.href.indexOf(hash);
3296
3324
  util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
3297
3325
  } else {
3298
- var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
3299
- if (loginPage) {
3300
- util["a" /* default */].win.top.location.href = loginPage;
3301
- } else {
3302
- util["a" /* default */].win.top.location.href = '/login.html';
3303
- }
3326
+ util["a" /* default */].win.top.location.href = '/login.html';
3304
3327
  }
3305
3328
  }
3306
3329
  }