eoss-ui 0.4.19 → 0.4.21

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.
package/lib/login.js CHANGED
@@ -2773,7 +2773,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
2773
2773
  // ESM COMPAT FLAG
2774
2774
  __webpack_require__.r(__webpack_exports__);
2775
2775
 
2776
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=51ac81ed&
2776
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=94b9d2bc&
2777
2777
  var render = function () {
2778
2778
  var _vm = this
2779
2779
  var _h = _vm.$createElement
@@ -3571,7 +3571,7 @@ var staticRenderFns = []
3571
3571
  render._withStripped = true
3572
3572
 
3573
3573
 
3574
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=51ac81ed&
3574
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=94b9d2bc&
3575
3575
 
3576
3576
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=669156c6&
3577
3577
  var resetPasswordvue_type_template_id_669156c6_render = function () {
@@ -4837,6 +4837,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4837
4837
  if (res.subsystemExtend.loginBoxAlign && this.useResults) {
4838
4838
  this.align = res.subsystemExtend.loginBoxAlign;
4839
4839
  }
4840
+ if (res.subsystemExtend.themeColor) {
4841
+ util["a" /* default */].updateTheme(res.subsystemExtend.themeColor);
4842
+ localStorage.setItem('theme', res.subsystemExtend.themeColor);
4843
+ }
4840
4844
  }
4841
4845
  this.passModifyModel = res.passModifyModel;
4842
4846
  this.wechatAppid = res.wechatAppid;
package/lib/upload.js CHANGED
@@ -2682,8 +2682,8 @@ module.exports = require("qs");
2682
2682
  // ESM COMPAT FLAG
2683
2683
  __webpack_require__.r(__webpack_exports__);
2684
2684
 
2685
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=757f82dc&
2686
- var mainvue_type_template_id_757f82dc_render = function () {
2685
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=386254b4&
2686
+ var mainvue_type_template_id_386254b4_render = function () {
2687
2687
  var _vm = this
2688
2688
  var _h = _vm.$createElement
2689
2689
  var _c = _vm._self._c || _h
@@ -3017,10 +3017,10 @@ var mainvue_type_template_id_757f82dc_render = function () {
3017
3017
  )
3018
3018
  }
3019
3019
  var staticRenderFns = []
3020
- mainvue_type_template_id_757f82dc_render._withStripped = true
3020
+ mainvue_type_template_id_386254b4_render._withStripped = true
3021
3021
 
3022
3022
 
3023
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=757f82dc&
3023
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=386254b4&
3024
3024
 
3025
3025
  // EXTERNAL MODULE: ./src/config/api.js
3026
3026
  var api = __webpack_require__(1);
@@ -3778,19 +3778,20 @@ var _props;
3778
3778
  var flag = false;
3779
3779
  var size = this._size;
3780
3780
  var text = '单个附件';
3781
+ var se = Math.ceil(file.size / 1024 * 100) / 100;
3781
3782
  if (this._size === 0 && this._totalSize === 0) {
3782
3783
  flag = true;
3783
3784
  } else if (this._size > 0 && this._totalSize === 0) {
3784
- flag = file.size < this._size;
3785
+ flag = se < this._size;
3785
3786
  size = this._size;
3786
3787
  text = '单个附件';
3787
3788
  } else if (this._size === 0 && this._totalSize > 0) {
3788
- flag = this.filesTotalSize + file.size < this._totalSize;
3789
+ flag = this.filesTotalSize + se < this._totalSize;
3789
3790
  size = this._totalSize;
3790
3791
  text = '附件总';
3791
3792
  } else {
3792
- flag = file.size < this._size && this.filesTotalSize + file.size < this._totalSize;
3793
- if (file.size < this._size) {
3793
+ flag = se < this._size && this.filesTotalSize + se < this._totalSize;
3794
+ if (se < this._size) {
3794
3795
  size = this._size;
3795
3796
  text = '单个附件';
3796
3797
  } else {
@@ -3799,7 +3800,7 @@ var _props;
3799
3800
  }
3800
3801
  }
3801
3802
  if (flag) {
3802
- this.filesTotalSize += file.size;
3803
+ this.filesTotalSize += se;
3803
3804
  } else {
3804
3805
  this.$message.error('\u4E0A\u4F20' + text + '\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7' + size + 'KB!');
3805
3806
  }
@@ -4008,7 +4009,7 @@ var componentNormalizer = __webpack_require__(2);
4008
4009
 
4009
4010
  var component = Object(componentNormalizer["a" /* default */])(
4010
4011
  src_mainvue_type_script_lang_js_,
4011
- mainvue_type_template_id_757f82dc_render,
4012
+ mainvue_type_template_id_386254b4_render,
4012
4013
  staticRenderFns,
4013
4014
  false,
4014
4015
  null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.4.19",
3
+ "version": "0.4.21",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -3487,6 +3487,11 @@ export default {
3487
3487
  this.model[typeof this.autoId === 'string' ? this.autoId : 'id']
3488
3488
  );
3489
3489
  } else {
3490
+ this.$set(
3491
+ this.model,
3492
+ typeof this.autoId === 'string' ? this.autoId : 'id',
3493
+ this.uuid
3494
+ );
3490
3495
  this.$emit('update:businessId', this.uuid);
3491
3496
  this.$emit('getId', this.uuid);
3492
3497
  }
@@ -4077,7 +4082,7 @@ export default {
4077
4082
  id.substring(10, 12) +
4078
4083
  '-' +
4079
4084
  id.substring(12, 14);
4080
- let sex = parseInt(id.substr(16, 2)) % 2 === 1 ? '男' : '女';
4085
+ let sex = parseInt(id.substr(16, 1)) % 2 === 1 ? '男' : '女';
4081
4086
  let ageDate = new Date();
4082
4087
  let month = ageDate.getMonth() + 1;
4083
4088
  let day = ageDate.getDate();
@@ -889,6 +889,10 @@ export default {
889
889
  if (res.subsystemExtend.loginBoxAlign && this.useResults) {
890
890
  this.align = res.subsystemExtend.loginBoxAlign;
891
891
  }
892
+ if (res.subsystemExtend.themeColor) {
893
+ util.updateTheme(res.subsystemExtend.themeColor);
894
+ localStorage.setItem('theme', res.subsystemExtend.themeColor);
895
+ }
892
896
  }
893
897
  this.passModifyModel = res.passModifyModel;
894
898
  this.wechatAppid = res.wechatAppid;
@@ -838,21 +838,20 @@ export default {
838
838
  let flag = false;
839
839
  let size = this._size;
840
840
  let text = '单个附件';
841
+ let se = Math.ceil((file.size / 1024) * 100) / 100;
841
842
  if (this._size === 0 && this._totalSize === 0) {
842
843
  flag = true;
843
844
  } else if (this._size > 0 && this._totalSize === 0) {
844
- flag = file.size < this._size;
845
+ flag = se < this._size;
845
846
  size = this._size;
846
847
  text = '单个附件';
847
848
  } else if (this._size === 0 && this._totalSize > 0) {
848
- flag = this.filesTotalSize + file.size < this._totalSize;
849
+ flag = this.filesTotalSize + se < this._totalSize;
849
850
  size = this._totalSize;
850
851
  text = '附件总';
851
852
  } else {
852
- flag =
853
- file.size < this._size &&
854
- this.filesTotalSize + file.size < this._totalSize;
855
- if (file.size < this._size) {
853
+ flag = se < this._size && this.filesTotalSize + se < this._totalSize;
854
+ if (se < this._size) {
856
855
  size = this._size;
857
856
  text = '单个附件';
858
857
  } else {
@@ -861,7 +860,7 @@ export default {
861
860
  }
862
861
  }
863
862
  if (flag) {
864
- this.filesTotalSize += file.size;
863
+ this.filesTotalSize += se;
865
864
  } else {
866
865
  this.$message.error(`上传${text}大小不能超过${size}KB!`);
867
866
  }
package/src/index.js CHANGED
@@ -113,7 +113,7 @@ if (typeof window !== 'undefined' && window.Vue) {
113
113
  }
114
114
 
115
115
  export default {
116
- version: '0.4.19',
116
+ version: '0.4.21',
117
117
  install,
118
118
  Button,
119
119
  ButtonGroup,