eoss-ui 0.4.56 → 0.4.58

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 (60) hide show
  1. package/lib/button-group.js +5 -2
  2. package/lib/button.js +5 -2
  3. package/lib/checkbox-group.js +5 -2
  4. package/lib/data-table-form.js +5 -2
  5. package/lib/data-table.js +11 -7
  6. package/lib/date-picker.js +5 -2
  7. package/lib/dialog.js +5 -2
  8. package/lib/eoss-ui.common.js +383 -118
  9. package/lib/flow-group.js +5 -2
  10. package/lib/flow-list.js +5 -2
  11. package/lib/flow.js +275 -28
  12. package/lib/form.js +22 -20
  13. package/lib/handle-user.js +5 -2
  14. package/lib/handler.js +5 -2
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +5 -2
  17. package/lib/input.js +5 -2
  18. package/lib/login.js +8 -4
  19. package/lib/main.js +15 -10
  20. package/lib/mainComp.js +5 -2
  21. package/lib/nav.js +5 -2
  22. package/lib/page.js +5 -2
  23. package/lib/player.js +5 -2
  24. package/lib/qr-code.js +5 -2
  25. package/lib/radio-group.js +5 -2
  26. package/lib/retrial-auth.js +10 -6
  27. package/lib/select-ganged.js +5 -2
  28. package/lib/select.js +5 -2
  29. package/lib/selector-panel.js +5 -2
  30. package/lib/selector.js +5 -2
  31. package/lib/sizer.js +5 -2
  32. package/lib/steps.js +5 -2
  33. package/lib/switch.js +5 -2
  34. package/lib/table-form.js +5 -2
  35. package/lib/tabs.js +5 -2
  36. package/lib/theme-chalk/index.css +1 -1
  37. package/lib/theme-chalk/upload.css +1 -1
  38. package/lib/tips.js +5 -2
  39. package/lib/toolbar.js +12 -8
  40. package/lib/tree-group.js +5 -2
  41. package/lib/tree.js +5 -2
  42. package/lib/upload.js +30 -17
  43. package/lib/utils/util.js +5 -2
  44. package/lib/wujie.js +5 -2
  45. package/lib/wxlogin.js +5 -2
  46. package/package.json +2 -2
  47. package/packages/data-table/src/main.vue +1 -0
  48. package/packages/flow/src/main.vue +148 -11
  49. package/packages/flow/src/startTaskRead.vue +12 -9
  50. package/packages/form/src/main.vue +13 -7
  51. package/packages/login/src/main.vue +1 -0
  52. package/packages/main/src/main.vue +8 -6
  53. package/packages/retrial-auth/src/main.vue +3 -2
  54. package/packages/theme-chalk/lib/index.css +1 -1
  55. package/packages/theme-chalk/lib/upload.css +1 -1
  56. package/packages/theme-chalk/src/upload.scss +50 -26
  57. package/packages/toolbar/src/main.vue +6 -1
  58. package/packages/upload/src/main.vue +13 -10
  59. package/src/index.js +1 -1
  60. package/src/utils/util.js +5 -2
package/lib/form.js CHANGED
@@ -249,7 +249,9 @@ var ajax = function ajax(_ref) {
249
249
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
250
250
  if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
251
251
  clearTimeout(loginMsg);
252
- loginMsg = setTimeout(function () {
252
+ var remind = sessionStorage.getItem('remind');
253
+ !remind && (loginMsg = setTimeout(function () {
254
+ sessionStorage.setItem('remind', 1);
253
255
  eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
254
256
  confirmButtonText: '确定',
255
257
  closeOnClickModal: false,
@@ -276,7 +278,7 @@ var ajax = function ajax(_ref) {
276
278
  }
277
279
  }
278
280
  }).catch(function (e) {});
279
- }, 1000);
281
+ }, 1000));
280
282
  }
281
283
  } else if (response.data.rCode === 61) {
282
284
  clearTimeout(initAuth);
@@ -293,6 +295,7 @@ var ajax = function ajax(_ref) {
293
295
  return h('es-retrial-auth', {
294
296
  ref: 'auth',
295
297
  props: {
298
+ reload: response.data.results.reload || response.data.results.refresh,
296
299
  group: response.data.results.retrialAuthGroupIds,
297
300
  type: response.data.results.retrialAuthType,
298
301
  msgBox: msgBox
@@ -2862,7 +2865,7 @@ module.exports = require("qs");
2862
2865
  // ESM COMPAT FLAG
2863
2866
  __webpack_require__.r(__webpack_exports__);
2864
2867
 
2865
- // 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=7011090d&
2868
+ // 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=0312e450&
2866
2869
  var render = function () {
2867
2870
  var _vm = this
2868
2871
  var _h = _vm.$createElement
@@ -13153,7 +13156,7 @@ var staticRenderFns = []
13153
13156
  render._withStripped = true
13154
13157
 
13155
13158
 
13156
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=7011090d&
13159
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=0312e450&
13157
13160
 
13158
13161
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
13159
13162
  var regenerator_ = __webpack_require__(9);
@@ -17439,7 +17442,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
17439
17442
  switch (_context2.prev = _context2.next) {
17440
17443
  case 0:
17441
17444
  if (valid) {
17442
- _this7.$emit('submit', _this7.models, res);
17445
+ _this7.$emit('submit', _this7.getNewValue(util["a" /* default */].extend({}, _this7._value, _this7.models), res), res);
17443
17446
  } else {
17444
17447
  _this7.setScroll(valid, triggers, _this7.$refs.scrollbar);
17445
17448
  }
@@ -17466,21 +17469,21 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
17466
17469
  } else if (res.event === 'stepPrev') {
17467
17470
  this.stepActive -= 1;
17468
17471
  this.$emit('stepChange', this.stepActive);
17469
- this.$emit('stepPrev', res, this.models, this.getNewValue(this.models, res));
17472
+ this.$emit('stepPrev', res, this.models, this.getNewValue(util["a" /* default */].extend({}, this._value, this.models), res));
17470
17473
  } else if (res.event === 'stepNext') {
17471
17474
  this.$refs.esForm.validate(function (valid, fields, triggers) {
17472
17475
  if (valid) {
17473
17476
  _this7.stepActive += 1;
17474
17477
  _this7.$emit('stepChange', _this7.stepActive);
17475
- _this7.$emit('stepNext', res, _this7.models, _this7.getNewValue(_this7.models, res));
17478
+ _this7.$emit('stepNext', res, _this7.models, _this7.getNewValue(util["a" /* default */].extend({}, _this7._value, _this7.models), res));
17476
17479
  } else {
17477
17480
  _this7.setScroll(valid, triggers, _this7.$refs.scrollbar);
17478
17481
  }
17479
17482
  });
17480
17483
  } else if (res.verify === false) {
17481
- this.$emit('click', res, this.models, this.getNewValue(this.models, res));
17484
+ this.$emit('click', res, this.models, this.getNewValue(util["a" /* default */].extend({}, this._value, this.models), res));
17482
17485
  } else {
17483
- this.$emit('click', res, this.models, this.getNewValue(this.models, res));
17486
+ this.$emit('click', res, this.models, this.getNewValue(util["a" /* default */].extend({}, this._value, this.models), res));
17484
17487
  }
17485
17488
  },
17486
17489
  IdCardToInfo: function IdCardToInfo(id, res, type) {
@@ -17525,25 +17528,25 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
17525
17528
  var _this8 = this;
17526
17529
 
17527
17530
  if (Object.prototype.hasOwnProperty.call(a, 'idCard')) {
17528
- var _obj = this.IdCardToInfo(b, a);
17529
- if (_obj) {
17531
+ var obj = this.IdCardToInfo(b, a);
17532
+ if (obj) {
17530
17533
  if (Array.isArray(a.idCard)) {
17531
17534
  a.idCard.forEach(function (item) {
17532
17535
  if ((typeof item === 'undefined' ? 'undefined' : _typeof(item)) === 'object') {
17533
17536
  for (var i in item) {
17534
17537
  if (typeof item[i] === 'string') {
17535
- _this8.$set(_this8.models, i, _obj[item[i]]);
17538
+ _this8.$set(_this8.models, i, obj[item[i]]);
17536
17539
  } else {
17537
- _this8.$set(_this8.models, i, item[i][_obj.sex]);
17540
+ _this8.$set(_this8.models, i, item[i][obj.sex]);
17538
17541
  }
17539
17542
  }
17540
17543
  } else {
17541
- _this8.$set(_this8.models, item, _obj[item]);
17544
+ _this8.$set(_this8.models, item, obj[item]);
17542
17545
  }
17543
17546
  });
17544
17547
  } else {
17545
- this.$set(this.models, 'age', _obj.age);
17546
- this.$set(this.models, 'sex', _obj.sex);
17548
+ this.$set(this.models, 'age', obj.age);
17549
+ this.$set(this.models, 'sex', obj.sex);
17547
17550
  }
17548
17551
  }
17549
17552
  }
@@ -17870,7 +17873,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
17870
17873
  models[handle.table] = handle.join ? ids.join(',') : ids;
17871
17874
  }
17872
17875
  }
17873
-
17876
+ var obj = JSON.parse(JSON.stringify(models));
17874
17877
  if (this.within) {
17875
17878
  //within:把提交数据装到指定属性中
17876
17879
  var newData = {};
@@ -17895,11 +17898,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
17895
17898
  if (this.formatSubmit) {
17896
17899
  //formatSubmit:提交数据装到masterData或者指定属性中
17897
17900
  var masterData = {};
17898
- var _obj2 = JSON.parse(JSON.stringify(models));
17899
17901
  if (typeof this.formatSubmit === 'string') {
17900
- masterData[this.formatSubmit] = _obj2;
17902
+ masterData[this.formatSubmit] = obj;
17901
17903
  } else {
17902
- masterData['masterData'] = _obj2;
17904
+ masterData['masterData'] = obj;
17903
17905
  }
17904
17906
  models = masterData;
17905
17907
  }
@@ -249,7 +249,9 @@ var ajax = function ajax(_ref) {
249
249
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
250
250
  if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
251
251
  clearTimeout(loginMsg);
252
- loginMsg = setTimeout(function () {
252
+ var remind = sessionStorage.getItem('remind');
253
+ !remind && (loginMsg = setTimeout(function () {
254
+ sessionStorage.setItem('remind', 1);
253
255
  eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
254
256
  confirmButtonText: '确定',
255
257
  closeOnClickModal: false,
@@ -276,7 +278,7 @@ var ajax = function ajax(_ref) {
276
278
  }
277
279
  }
278
280
  }).catch(function (e) {});
279
- }, 1000);
281
+ }, 1000));
280
282
  }
281
283
  } else if (response.data.rCode === 61) {
282
284
  clearTimeout(initAuth);
@@ -293,6 +295,7 @@ var ajax = function ajax(_ref) {
293
295
  return h('es-retrial-auth', {
294
296
  ref: 'auth',
295
297
  props: {
298
+ reload: response.data.results.reload || response.data.results.refresh,
296
299
  group: response.data.results.retrialAuthGroupIds,
297
300
  type: response.data.results.retrialAuthType,
298
301
  msgBox: msgBox
package/lib/handler.js CHANGED
@@ -249,7 +249,9 @@ var ajax = function ajax(_ref) {
249
249
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
250
250
  if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
251
251
  clearTimeout(loginMsg);
252
- loginMsg = setTimeout(function () {
252
+ var remind = sessionStorage.getItem('remind');
253
+ !remind && (loginMsg = setTimeout(function () {
254
+ sessionStorage.setItem('remind', 1);
253
255
  eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
254
256
  confirmButtonText: '确定',
255
257
  closeOnClickModal: false,
@@ -276,7 +278,7 @@ var ajax = function ajax(_ref) {
276
278
  }
277
279
  }
278
280
  }).catch(function (e) {});
279
- }, 1000);
281
+ }, 1000));
280
282
  }
281
283
  } else if (response.data.rCode === 61) {
282
284
  clearTimeout(initAuth);
@@ -293,6 +295,7 @@ var ajax = function ajax(_ref) {
293
295
  return h('es-retrial-auth', {
294
296
  ref: 'auth',
295
297
  props: {
298
+ reload: response.data.results.reload || response.data.results.refresh,
296
299
  group: response.data.results.retrialAuthGroupIds,
297
300
  type: response.data.results.retrialAuthType,
298
301
  msgBox: msgBox