eoss-ui 0.6.83 → 0.6.85

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 (82) hide show
  1. package/lib/button-group.js +105 -93
  2. package/lib/button.js +105 -93
  3. package/lib/calogin.js +105 -93
  4. package/lib/checkbox-group.js +105 -93
  5. package/lib/data-table-form.js +105 -93
  6. package/lib/data-table.js +105 -93
  7. package/lib/date-picker.js +105 -93
  8. package/lib/dialog.js +105 -93
  9. package/lib/eoss-ui.common.js +540 -460
  10. package/lib/flow-group.js +112 -95
  11. package/lib/flow-list.js +105 -93
  12. package/lib/flow.js +309 -151
  13. package/lib/form.js +216 -264
  14. package/lib/handle-user.js +105 -93
  15. package/lib/handler.js +105 -93
  16. package/lib/icon.js +105 -93
  17. package/lib/icons.js +1 -1
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +105 -93
  20. package/lib/input.js +105 -93
  21. package/lib/login.js +112 -97
  22. package/lib/main.js +105 -93
  23. package/lib/nav.js +105 -93
  24. package/lib/page.js +105 -93
  25. package/lib/pagination.js +105 -93
  26. package/lib/player.js +105 -93
  27. package/lib/qr-code.js +105 -93
  28. package/lib/radio-group.js +105 -93
  29. package/lib/retrial-auth.js +105 -93
  30. package/lib/select-ganged.js +105 -93
  31. package/lib/select.js +105 -93
  32. package/lib/selector-panel.js +105 -93
  33. package/lib/selector.js +123 -99
  34. package/lib/sizer.js +105 -93
  35. package/lib/steps.js +105 -93
  36. package/lib/switch.js +105 -93
  37. package/lib/table-form.js +164 -190
  38. package/lib/tabs.js +105 -93
  39. package/lib/theme-chalk/base.css +1 -1
  40. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  41. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  42. package/lib/theme-chalk/icon.css +1 -1
  43. package/lib/theme-chalk/index.css +1 -1
  44. package/lib/theme-chalk/main.css +1 -1
  45. package/lib/theme-chalk/menu.css +1 -1
  46. package/lib/theme-chalk/simplicity.css +1 -1
  47. package/lib/theme-chalk/sizer.css +1 -1
  48. package/lib/theme-chalk/upload.css +1 -1
  49. package/lib/tips.js +105 -93
  50. package/lib/tree-group.js +105 -93
  51. package/lib/tree.js +105 -93
  52. package/lib/upload.js +105 -93
  53. package/lib/utils/util.js +105 -93
  54. package/lib/wujie.js +105 -93
  55. package/lib/wxlogin.js +105 -93
  56. package/package.json +1 -1
  57. package/packages/flow/src/component/taskUnionExamine.vue +18 -6
  58. package/packages/flow/src/main.vue +79 -24
  59. package/packages/flow/src/selectUser.vue +22 -8
  60. package/packages/flow/src/startTaskRead.vue +7 -0
  61. package/packages/flow/src/supervise.vue +5 -2
  62. package/packages/flow-group/src/main.vue +4 -0
  63. package/packages/form/src/main.vue +84 -72
  64. package/packages/form/src/table.vue +42 -36
  65. package/packages/icons/src/icon.json +1 -1
  66. package/packages/login/src/main.vue +5 -8
  67. package/packages/selector/src/main.vue +20 -4
  68. package/packages/theme-chalk/lib/base.css +1 -1
  69. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  70. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  71. package/packages/theme-chalk/lib/icon.css +1 -1
  72. package/packages/theme-chalk/lib/index.css +1 -1
  73. package/packages/theme-chalk/lib/main.css +1 -1
  74. package/packages/theme-chalk/lib/menu.css +1 -1
  75. package/packages/theme-chalk/lib/simplicity.css +1 -1
  76. package/packages/theme-chalk/lib/sizer.css +1 -1
  77. package/packages/theme-chalk/lib/upload.css +1 -1
  78. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  79. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  80. package/packages/theme-chalk/src/icon.scss +12 -0
  81. package/src/index.js +1 -1
  82. package/src/utils/util.js +141 -129
package/lib/form.js CHANGED
@@ -257,99 +257,7 @@ var ajax = function ajax(_ref) {
257
257
  }
258
258
  }
259
259
  if (response.status === 200) {
260
- if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
261
- removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump', 'showLaunch']);
262
- var href = '';
263
- try {
264
- href = win.top.location.href;
265
- } catch (error) {
266
- href = win.location.href;
267
- }
268
- if (href.indexOf('#/login') === -1 && href.indexOf('/login.html') === -1) {
269
- var remind = sessionStorage.getItem('remind');
270
- if (!remind) {
271
- clearTimeout(loginMsg);
272
- loginMsg = setTimeout(function () {
273
- sessionStorage.setItem('remind', 1);
274
- eoss_element__WEBPACK_IMPORTED_MODULE_7__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
275
- confirmButtonText: '确定',
276
- closeOnClickModal: false,
277
- type: 'warning'
278
- } : {
279
- confirmButtonText: '确定',
280
- cancelButtonText: '取消',
281
- closeOnClickModal: false,
282
- type: 'warning'
283
- }).then(function () {
284
- try {
285
- var loginPage = getStorage('login') || getStorage('loginPage');
286
- if (loginPage) {
287
- var src = void 0;
288
- if (!startWith(loginPage, ['http', '/'], true)) {
289
- var pathname = win.top.location.pathname;
290
- if (pathname !== '/') {
291
- pathname = pathname.split('/');
292
- pathname.splice(pathname.length - 1);
293
- pathname = pathname.join('/');
294
- src = pathname + '/' + loginPage.replace('./', '');
295
- } else {
296
- src = pathname + loginPage.replace('./', '');
297
- }
298
- } else {
299
- src = loginPage;
300
- }
301
- win.top.location.href = src;
302
- } else if (win.top.location.href.indexOf('main.html') > -1) {
303
- win.top.location.href = './login.html';
304
- } else {
305
- var hash = win.top.location.hash;
306
- if (hash) {
307
- var len = win.top.location.href.indexOf(hash);
308
- win.top.location.href = win.location.href.slice(0, len) + '#/login';
309
- } else {
310
- win.top.location.href = '/login.html';
311
- }
312
- }
313
- } catch (error) {
314
- win.postMessage({ type: 1 }, '*');
315
- }
316
- }).catch(function (e) {
317
- sessionStorage.removeItem('remind');
318
- });
319
- }, 2000);
320
- }
321
- }
322
- } else if (response.data.rCode === 61) {
323
- clearTimeout(initAuth);
324
- initAuth = setTimeout(function () {
325
- Object(eoss_element__WEBPACK_IMPORTED_MODULE_7__["MessageBox"])({
326
- title: '请进行二次鉴权',
327
- closeOnClickModal: false,
328
- closeOnPressEscape: false,
329
- showConfirmButton: false,
330
- dangerouslyUseHTMLString: true,
331
- scroll: false,
332
- customClass: 'es-retrial-auth-msg',
333
- render: function render(h, msgBox) {
334
- return h('es-retrial-auth', {
335
- ref: 'auth',
336
- props: {
337
- reload: response.data.results.reload || response.data.results.refresh,
338
- group: response.data.results.retrialAuthGroupIds,
339
- type: response.data.results.retrialAuthType,
340
- msgBox: msgBox
341
- }
342
- });
343
- },
344
- callback: function callback(res, obj) {
345
- obj.$children.forEach(function (item) {
346
- item.clearTimeouts && item.clearTimeouts();
347
- return;
348
- });
349
- }
350
- });
351
- }, 1000);
352
- }
260
+ responses(response.data);
353
261
  // eslint-disable-next-line no-undef
354
262
  return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
355
263
  }
@@ -2870,6 +2778,109 @@ var replenish = function replenish(_ref15) {
2870
2778
  return data;
2871
2779
  };
2872
2780
 
2781
+ /**
2782
+ * responses
2783
+ * @desc:状态码响应
2784
+ * @author huangbo
2785
+ * @date 2022年5月7日
2786
+ * @param {object} [data] - 数字或字符串型数字
2787
+ **/
2788
+ var responses = function responses(data) {
2789
+ if (data.rCode === 64 || data.rCode === 65 || data.rCode === 67 || data.rCode === 69) {
2790
+ removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump', 'showLaunch']);
2791
+ var href = '';
2792
+ try {
2793
+ href = win.top.location.href;
2794
+ } catch (error) {
2795
+ href = win.location.href;
2796
+ }
2797
+ if (href.indexOf('#/login') === -1 && href.indexOf('/login.html') === -1) {
2798
+ var remind = sessionStorage.getItem('remind');
2799
+ if (!remind) {
2800
+ clearTimeout(loginMsg);
2801
+ loginMsg = setTimeout(function () {
2802
+ sessionStorage.setItem('remind', 1);
2803
+ eoss_element__WEBPACK_IMPORTED_MODULE_7__["MessageBox"].confirm(data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', data.rCode === 69 ? {
2804
+ confirmButtonText: '确定',
2805
+ closeOnClickModal: false,
2806
+ type: 'warning'
2807
+ } : {
2808
+ confirmButtonText: '确定',
2809
+ cancelButtonText: '取消',
2810
+ closeOnClickModal: false,
2811
+ type: 'warning'
2812
+ }).then(function () {
2813
+ try {
2814
+ var loginPage = getStorage('login') || getStorage('loginPage');
2815
+ if (loginPage) {
2816
+ var src = void 0;
2817
+ if (!startWith(loginPage, ['http', '/'], true)) {
2818
+ var pathname = win.top.location.pathname;
2819
+ if (pathname !== '/') {
2820
+ pathname = pathname.split('/');
2821
+ pathname.splice(pathname.length - 1);
2822
+ pathname = pathname.join('/');
2823
+ src = pathname + '/' + loginPage.replace('./', '');
2824
+ } else {
2825
+ src = pathname + loginPage.replace('./', '');
2826
+ }
2827
+ } else {
2828
+ src = loginPage;
2829
+ }
2830
+ win.top.location.href = src;
2831
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2832
+ win.top.location.href = './login.html';
2833
+ } else {
2834
+ var hash = win.top.location.hash;
2835
+ if (hash) {
2836
+ var len = win.top.location.href.indexOf(hash);
2837
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
2838
+ } else {
2839
+ win.top.location.href = '/login.html';
2840
+ }
2841
+ }
2842
+ } catch (error) {
2843
+ win.postMessage({ type: 1 }, '*');
2844
+ }
2845
+ }).catch(function (e) {
2846
+ sessionStorage.removeItem('remind');
2847
+ });
2848
+ }, 2000);
2849
+ }
2850
+ }
2851
+ } else if (data.rCode === 61) {
2852
+ clearTimeout(initAuth);
2853
+ initAuth = setTimeout(function () {
2854
+ Object(eoss_element__WEBPACK_IMPORTED_MODULE_7__["MessageBox"])({
2855
+ title: '请进行二次鉴权',
2856
+ closeOnClickModal: false,
2857
+ closeOnPressEscape: false,
2858
+ showConfirmButton: false,
2859
+ dangerouslyUseHTMLString: true,
2860
+ scroll: false,
2861
+ customClass: 'es-retrial-auth-msg',
2862
+ render: function render(h, msgBox) {
2863
+ return h('es-retrial-auth', {
2864
+ ref: 'auth',
2865
+ props: {
2866
+ reload: data.results.reload || data.results.refresh,
2867
+ group: data.results.retrialAuthGroupIds,
2868
+ type: data.results.retrialAuthType,
2869
+ msgBox: msgBox
2870
+ }
2871
+ });
2872
+ },
2873
+ callback: function callback(res, obj) {
2874
+ obj.$children.forEach(function (item) {
2875
+ item.clearTimeouts && item.clearTimeouts();
2876
+ return;
2877
+ });
2878
+ }
2879
+ });
2880
+ }, 1000);
2881
+ }
2882
+ };
2883
+
2873
2884
  /**
2874
2885
  * rgbToHsv
2875
2886
  * @desc:rgb转化成hsv
@@ -3526,6 +3537,7 @@ var watermark = function watermark(option) {
3526
3537
  receiveMessage: receiveMessage,
3527
3538
  removeStorage: removeStorage,
3528
3539
  replenish: replenish,
3540
+ responses: responses,
3529
3541
  rgbToHsv: rgbToHsv,
3530
3542
  rmbToCapital: rmbToCapital,
3531
3543
  sendMessage: sendMessage,
@@ -4339,7 +4351,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
4339
4351
  // ESM COMPAT FLAG
4340
4352
  __webpack_require__.r(__webpack_exports__);
4341
4353
 
4342
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=0b9762be&
4354
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=099da8e8&
4343
4355
  var render = function () {
4344
4356
  var _vm = this
4345
4357
  var _h = _vm.$createElement
@@ -5648,30 +5660,22 @@ var render = function () {
5648
5660
  )
5649
5661
  )
5650
5662
  : item.date ||
5651
- item.type ==
5652
- "date" ||
5653
- item.type ==
5654
- "year" ||
5655
- item.type ==
5656
- "month" ||
5657
- item.type ==
5658
- "date" ||
5659
- item.type ==
5660
- "dates" ||
5661
- item.type ==
5662
- "week" ||
5663
- item.type ==
5664
- "datetime" ||
5665
- item.type ==
5666
- "datetimerange" ||
5667
- item.type ==
5668
- "daterange" ||
5669
- item.type ==
5670
- "monthrange" ||
5671
- item.type ==
5672
- "quarter" ||
5673
- item.type ==
5674
- "halfyear"
5663
+ [
5664
+ "date",
5665
+ "year",
5666
+ "month",
5667
+ "date",
5668
+ "dates",
5669
+ "week",
5670
+ "datetime",
5671
+ "datetimerange",
5672
+ "daterange",
5673
+ "monthrange",
5674
+ "quarter",
5675
+ "halfyear",
5676
+ ].includes(
5677
+ item.type
5678
+ )
5675
5679
  ? _c(
5676
5680
  "es-date-picker",
5677
5681
  _vm._b(
@@ -6662,30 +6666,22 @@ var render = function () {
6662
6666
  )
6663
6667
  )
6664
6668
  : inline.date ||
6665
- inline.type ==
6666
- "date" ||
6667
- inline.type ==
6668
- "year" ||
6669
- inline.type ==
6670
- "month" ||
6671
- inline.type ==
6672
- "date" ||
6673
- inline.type ==
6674
- "dates" ||
6675
- inline.type ==
6676
- "week" ||
6677
- inline.type ==
6678
- "datetime" ||
6679
- inline.type ==
6680
- "datetimerange" ||
6681
- inline.type ==
6682
- "daterange" ||
6683
- inline.type ==
6684
- "monthrange" ||
6685
- inline.type ==
6686
- "quarter" ||
6687
- inline.type ==
6688
- "halfyear"
6669
+ [
6670
+ "date",
6671
+ "year",
6672
+ "month",
6673
+ "date",
6674
+ "dates",
6675
+ "week",
6676
+ "datetime",
6677
+ "datetimerange",
6678
+ "daterange",
6679
+ "monthrange",
6680
+ "quarter",
6681
+ "halfyear",
6682
+ ].includes(
6683
+ inline.type
6684
+ )
6689
6685
  ? _c(
6690
6686
  "es-date-picker",
6691
6687
  _vm._b(
@@ -7372,54 +7368,24 @@ var render = function () {
7372
7368
  : item
7373
7369
  .inline
7374
7370
  .date ||
7375
- item
7376
- .inline
7377
- .type ==
7378
- "date" ||
7379
- item
7380
- .inline
7381
- .type ==
7382
- "year" ||
7383
- item
7384
- .inline
7385
- .type ==
7386
- "month" ||
7387
- item
7388
- .inline
7389
- .type ==
7390
- "date" ||
7391
- item
7392
- .inline
7393
- .type ==
7394
- "dates" ||
7395
- item
7396
- .inline
7397
- .type ==
7398
- "week" ||
7399
- item
7400
- .inline
7401
- .type ==
7402
- "datetime" ||
7403
- item
7404
- .inline
7405
- .type ==
7406
- "datetimerange" ||
7407
- item
7408
- .inline
7409
- .type ==
7410
- "daterange" ||
7411
- item
7412
- .inline
7413
- .type ==
7414
- "monthrange" ||
7415
- item
7416
- .inline
7417
- .type ==
7418
- "quarter" ||
7419
- item
7420
- .inline
7421
- .type ==
7422
- "halfyear"
7371
+ [
7372
+ "date",
7373
+ "year",
7374
+ "month",
7375
+ "date",
7376
+ "dates",
7377
+ "week",
7378
+ "datetime",
7379
+ "datetimerange",
7380
+ "daterange",
7381
+ "monthrange",
7382
+ "quarter",
7383
+ "halfyear",
7384
+ ].includes(
7385
+ item
7386
+ .inline
7387
+ .type
7388
+ )
7423
7389
  ? _c(
7424
7390
  "es-date-picker",
7425
7391
  _vm._b(
@@ -8420,19 +8386,20 @@ var render = function () {
8420
8386
  )
8421
8387
  )
8422
8388
  : item.date ||
8423
- item.type == "date" ||
8424
- item.type == "year" ||
8425
- item.type == "month" ||
8426
- item.type == "date" ||
8427
- item.type == "dates" ||
8428
- item.type == "week" ||
8429
- item.type == "datetime" ||
8430
- item.type ==
8431
- "datetimerange" ||
8432
- item.type == "daterange" ||
8433
- item.type == "monthrange" ||
8434
- item.type == "quarter" ||
8435
- item.type == "halfyear"
8389
+ [
8390
+ "date",
8391
+ "year",
8392
+ "month",
8393
+ "date",
8394
+ "dates",
8395
+ "week",
8396
+ "datetime",
8397
+ "datetimerange",
8398
+ "daterange",
8399
+ "monthrange",
8400
+ "quarter",
8401
+ "halfyear",
8402
+ ].includes(item.type)
8436
8403
  ? _c(
8437
8404
  "es-date-picker",
8438
8405
  _vm._b(
@@ -9339,30 +9306,22 @@ var render = function () {
9339
9306
  )
9340
9307
  )
9341
9308
  : inline.date ||
9342
- inline.type ==
9343
- "date" ||
9344
- inline.type ==
9345
- "year" ||
9346
- inline.type ==
9347
- "month" ||
9348
- inline.type ==
9349
- "date" ||
9350
- inline.type ==
9351
- "dates" ||
9352
- inline.type ==
9353
- "week" ||
9354
- inline.type ==
9355
- "datetime" ||
9356
- inline.type ==
9357
- "datetimerange" ||
9358
- inline.type ==
9359
- "daterange" ||
9360
- inline.type ==
9361
- "monthrange" ||
9362
- inline.type ==
9363
- "quarter" ||
9364
- inline.type ==
9365
- "halfyear"
9309
+ [
9310
+ "date",
9311
+ "year",
9312
+ "month",
9313
+ "date",
9314
+ "dates",
9315
+ "week",
9316
+ "datetime",
9317
+ "datetimerange",
9318
+ "daterange",
9319
+ "monthrange",
9320
+ "quarter",
9321
+ "halfyear",
9322
+ ].includes(
9323
+ item.type
9324
+ )
9366
9325
  ? _c(
9367
9326
  "es-date-picker",
9368
9327
  _vm._b(
@@ -10031,42 +9990,23 @@ var render = function () {
10031
9990
  )
10032
9991
  : item.inline
10033
9992
  .date ||
10034
- item.inline
10035
- .type ==
10036
- "date" ||
10037
- item.inline
10038
- .type ==
10039
- "year" ||
10040
- item.inline
10041
- .type ==
10042
- "month" ||
10043
- item.inline
10044
- .type ==
10045
- "date" ||
10046
- item.inline
10047
- .type ==
10048
- "dates" ||
10049
- item.inline
10050
- .type ==
10051
- "week" ||
10052
- item.inline
10053
- .type ==
10054
- "datetime" ||
10055
- item.inline
10056
- .type ==
10057
- "datetimerange" ||
10058
- item.inline
10059
- .type ==
10060
- "daterange" ||
10061
- item.inline
10062
- .type ==
10063
- "monthrange" ||
10064
- item.inline
10065
- .type ==
10066
- "quarter" ||
10067
- item.inline
10068
- .type ==
10069
- "halfyear"
9993
+ [
9994
+ "date",
9995
+ "year",
9996
+ "month",
9997
+ "date",
9998
+ "dates",
9999
+ "week",
10000
+ "datetime",
10001
+ "datetimerange",
10002
+ "daterange",
10003
+ "monthrange",
10004
+ "quarter",
10005
+ "halfyear",
10006
+ ].includes(
10007
+ item.inline
10008
+ .type
10009
+ )
10070
10010
  ? _c(
10071
10011
  "es-date-picker",
10072
10012
  _vm._b(
@@ -10537,7 +10477,7 @@ var staticRenderFns = []
10537
10477
  render._withStripped = true
10538
10478
 
10539
10479
 
10540
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=0b9762be&
10480
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=099da8e8&
10541
10481
 
10542
10482
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
10543
10483
  var regenerator_ = __webpack_require__(4);
@@ -12958,6 +12898,18 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
12958
12898
  //
12959
12899
  //
12960
12900
  //
12901
+ //
12902
+ //
12903
+ //
12904
+ //
12905
+ //
12906
+ //
12907
+ //
12908
+ //
12909
+ //
12910
+ //
12911
+ //
12912
+ //
12961
12913
 
12962
12914
 
12963
12915