eoss-ui 0.4.56 → 0.4.57

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 (53) hide show
  1. package/lib/button-group.js +4 -2
  2. package/lib/button.js +4 -2
  3. package/lib/checkbox-group.js +4 -2
  4. package/lib/data-table-form.js +4 -2
  5. package/lib/data-table.js +10 -7
  6. package/lib/date-picker.js +4 -2
  7. package/lib/dialog.js +4 -2
  8. package/lib/eoss-ui.common.js +330 -79
  9. package/lib/flow-group.js +4 -2
  10. package/lib/flow-list.js +4 -2
  11. package/lib/flow.js +274 -28
  12. package/lib/form.js +21 -20
  13. package/lib/handle-user.js +4 -2
  14. package/lib/handler.js +4 -2
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +4 -2
  17. package/lib/input.js +4 -2
  18. package/lib/login.js +7 -4
  19. package/lib/main.js +4 -2
  20. package/lib/mainComp.js +4 -2
  21. package/lib/nav.js +4 -2
  22. package/lib/page.js +4 -2
  23. package/lib/player.js +4 -2
  24. package/lib/qr-code.js +4 -2
  25. package/lib/radio-group.js +4 -2
  26. package/lib/retrial-auth.js +4 -2
  27. package/lib/select-ganged.js +4 -2
  28. package/lib/select.js +4 -2
  29. package/lib/selector-panel.js +4 -2
  30. package/lib/selector.js +4 -2
  31. package/lib/sizer.js +4 -2
  32. package/lib/steps.js +4 -2
  33. package/lib/switch.js +4 -2
  34. package/lib/table-form.js +4 -2
  35. package/lib/tabs.js +4 -2
  36. package/lib/tips.js +4 -2
  37. package/lib/toolbar.js +12 -8
  38. package/lib/tree-group.js +4 -2
  39. package/lib/tree.js +4 -2
  40. package/lib/upload.js +4 -2
  41. package/lib/utils/util.js +4 -2
  42. package/lib/wujie.js +4 -2
  43. package/lib/wxlogin.js +4 -2
  44. package/package.json +1 -1
  45. package/packages/data-table/src/main.vue +1 -0
  46. package/packages/flow/src/main.vue +148 -11
  47. package/packages/flow/src/startTaskRead.vue +12 -9
  48. package/packages/form/src/main.vue +13 -7
  49. package/packages/login/src/main.vue +1 -0
  50. package/packages/toolbar/src/main.vue +6 -1
  51. package/src/index.js +1 -1
  52. package/src/utils/util.js +4 -2
  53. package/CHANGELOG.md +0 -929
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);
@@ -2862,7 +2864,7 @@ module.exports = require("qs");
2862
2864
  // ESM COMPAT FLAG
2863
2865
  __webpack_require__.r(__webpack_exports__);
2864
2866
 
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&
2867
+ // 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
2868
  var render = function () {
2867
2869
  var _vm = this
2868
2870
  var _h = _vm.$createElement
@@ -13153,7 +13155,7 @@ var staticRenderFns = []
13153
13155
  render._withStripped = true
13154
13156
 
13155
13157
 
13156
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=7011090d&
13158
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=0312e450&
13157
13159
 
13158
13160
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
13159
13161
  var regenerator_ = __webpack_require__(9);
@@ -17439,7 +17441,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
17439
17441
  switch (_context2.prev = _context2.next) {
17440
17442
  case 0:
17441
17443
  if (valid) {
17442
- _this7.$emit('submit', _this7.models, res);
17444
+ _this7.$emit('submit', _this7.getNewValue(util["a" /* default */].extend({}, _this7._value, _this7.models), res), res);
17443
17445
  } else {
17444
17446
  _this7.setScroll(valid, triggers, _this7.$refs.scrollbar);
17445
17447
  }
@@ -17466,21 +17468,21 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
17466
17468
  } else if (res.event === 'stepPrev') {
17467
17469
  this.stepActive -= 1;
17468
17470
  this.$emit('stepChange', this.stepActive);
17469
- this.$emit('stepPrev', res, this.models, this.getNewValue(this.models, res));
17471
+ this.$emit('stepPrev', res, this.models, this.getNewValue(util["a" /* default */].extend({}, this._value, this.models), res));
17470
17472
  } else if (res.event === 'stepNext') {
17471
17473
  this.$refs.esForm.validate(function (valid, fields, triggers) {
17472
17474
  if (valid) {
17473
17475
  _this7.stepActive += 1;
17474
17476
  _this7.$emit('stepChange', _this7.stepActive);
17475
- _this7.$emit('stepNext', res, _this7.models, _this7.getNewValue(_this7.models, res));
17477
+ _this7.$emit('stepNext', res, _this7.models, _this7.getNewValue(util["a" /* default */].extend({}, _this7._value, _this7.models), res));
17476
17478
  } else {
17477
17479
  _this7.setScroll(valid, triggers, _this7.$refs.scrollbar);
17478
17480
  }
17479
17481
  });
17480
17482
  } else if (res.verify === false) {
17481
- this.$emit('click', res, this.models, this.getNewValue(this.models, res));
17483
+ this.$emit('click', res, this.models, this.getNewValue(util["a" /* default */].extend({}, this._value, this.models), res));
17482
17484
  } else {
17483
- this.$emit('click', res, this.models, this.getNewValue(this.models, res));
17485
+ this.$emit('click', res, this.models, this.getNewValue(util["a" /* default */].extend({}, this._value, this.models), res));
17484
17486
  }
17485
17487
  },
17486
17488
  IdCardToInfo: function IdCardToInfo(id, res, type) {
@@ -17525,25 +17527,25 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
17525
17527
  var _this8 = this;
17526
17528
 
17527
17529
  if (Object.prototype.hasOwnProperty.call(a, 'idCard')) {
17528
- var _obj = this.IdCardToInfo(b, a);
17529
- if (_obj) {
17530
+ var obj = this.IdCardToInfo(b, a);
17531
+ if (obj) {
17530
17532
  if (Array.isArray(a.idCard)) {
17531
17533
  a.idCard.forEach(function (item) {
17532
17534
  if ((typeof item === 'undefined' ? 'undefined' : _typeof(item)) === 'object') {
17533
17535
  for (var i in item) {
17534
17536
  if (typeof item[i] === 'string') {
17535
- _this8.$set(_this8.models, i, _obj[item[i]]);
17537
+ _this8.$set(_this8.models, i, obj[item[i]]);
17536
17538
  } else {
17537
- _this8.$set(_this8.models, i, item[i][_obj.sex]);
17539
+ _this8.$set(_this8.models, i, item[i][obj.sex]);
17538
17540
  }
17539
17541
  }
17540
17542
  } else {
17541
- _this8.$set(_this8.models, item, _obj[item]);
17543
+ _this8.$set(_this8.models, item, obj[item]);
17542
17544
  }
17543
17545
  });
17544
17546
  } else {
17545
- this.$set(this.models, 'age', _obj.age);
17546
- this.$set(this.models, 'sex', _obj.sex);
17547
+ this.$set(this.models, 'age', obj.age);
17548
+ this.$set(this.models, 'sex', obj.sex);
17547
17549
  }
17548
17550
  }
17549
17551
  }
@@ -17870,7 +17872,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
17870
17872
  models[handle.table] = handle.join ? ids.join(',') : ids;
17871
17873
  }
17872
17874
  }
17873
-
17875
+ var obj = JSON.parse(JSON.stringify(models));
17874
17876
  if (this.within) {
17875
17877
  //within:把提交数据装到指定属性中
17876
17878
  var newData = {};
@@ -17895,11 +17897,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
17895
17897
  if (this.formatSubmit) {
17896
17898
  //formatSubmit:提交数据装到masterData或者指定属性中
17897
17899
  var masterData = {};
17898
- var _obj2 = JSON.parse(JSON.stringify(models));
17899
17900
  if (typeof this.formatSubmit === 'string') {
17900
- masterData[this.formatSubmit] = _obj2;
17901
+ masterData[this.formatSubmit] = obj;
17901
17902
  } else {
17902
- masterData['masterData'] = _obj2;
17903
+ masterData['masterData'] = obj;
17903
17904
  }
17904
17905
  models = masterData;
17905
17906
  }
@@ -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);
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);