eoss-ui 0.5.66 → 0.5.68

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
@@ -3845,7 +3845,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
3845
3845
  // ESM COMPAT FLAG
3846
3846
  __webpack_require__.r(__webpack_exports__);
3847
3847
 
3848
- // 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=b795be2e&
3848
+ // 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=c5d4acd0&
3849
3849
  var render = function () {
3850
3850
  var _vm = this
3851
3851
  var _h = _vm.$createElement
@@ -3855,15 +3855,13 @@ var render = function () {
3855
3855
  "div",
3856
3856
  {
3857
3857
  staticClass: "es-login-screen",
3858
- style: {
3859
- "background-image": _vm.getImgUrl(_vm.loginBackgroundUrl),
3860
- },
3858
+ style: _vm.getBackground(_vm.loginBackgroundImg),
3861
3859
  },
3862
3860
  [
3863
- _vm.loginLogoUrl
3861
+ _vm.loginLogoImg
3864
3862
  ? _c("img", {
3865
3863
  staticClass: "es-login-logo",
3866
- attrs: { src: _vm.loginLogoUrl },
3864
+ attrs: { src: _vm.loginLogoImg },
3867
3865
  })
3868
3866
  : _vm._e(),
3869
3867
  _vm._t("default"),
@@ -3889,26 +3887,24 @@ var render = function () {
3889
3887
  },
3890
3888
  },
3891
3889
  [
3892
- _vm.loginNameUrl
3890
+ _vm.loginNameImg
3893
3891
  ? _c("img", {
3894
3892
  staticClass: "es-login-name",
3895
- attrs: { src: _vm.loginNameUrl },
3893
+ attrs: { src: _vm.loginNameImg },
3896
3894
  })
3897
3895
  : _vm._e(),
3898
3896
  _c(
3899
3897
  "div",
3900
3898
  {
3901
3899
  staticClass: "es-login-main",
3902
- style: {
3903
- "background-image": _vm.getImgUrl(_vm.loginImageUrl),
3904
- },
3900
+ style: _vm.getBackground(_vm.loginMainImg),
3905
3901
  },
3906
3902
  [
3907
- _vm.loginTitleUrl
3903
+ _vm.loginTitleImg
3908
3904
  ? _c("div", { staticClass: "es-login-title-image" }, [
3909
3905
  _c("img", {
3910
3906
  staticClass: "es-login-title-img",
3911
- attrs: { src: _vm.loginTitleUrl },
3907
+ attrs: { src: _vm.loginTitleImg },
3912
3908
  }),
3913
3909
  ])
3914
3910
  : _vm._e(),
@@ -3965,7 +3961,7 @@ var render = function () {
3965
3961
  attrs: { model: _vm.formData },
3966
3962
  },
3967
3963
  [
3968
- !_vm.loginTitleUrl
3964
+ !_vm.loginTitleImg
3969
3965
  ? _c(
3970
3966
  "div",
3971
3967
  { staticClass: "es-login-title" },
@@ -4276,7 +4272,7 @@ var render = function () {
4276
4272
  "div",
4277
4273
  { staticClass: "es-login-qrcode" },
4278
4274
  [
4279
- !_vm.loginTitleUrl
4275
+ !_vm.loginTitleImg
4280
4276
  ? _c(
4281
4277
  "div",
4282
4278
  { staticClass: "es-login-title" },
@@ -4403,7 +4399,7 @@ var render = function () {
4403
4399
  attrs: { model: _vm.formData },
4404
4400
  },
4405
4401
  [
4406
- !_vm.loginTitleUrl
4402
+ !_vm.loginTitleImg
4407
4403
  ? _c(
4408
4404
  "div",
4409
4405
  { staticClass: "es-login-title" },
@@ -4769,7 +4765,7 @@ var staticRenderFns = []
4769
4765
  render._withStripped = true
4770
4766
 
4771
4767
 
4772
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=b795be2e&
4768
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=c5d4acd0&
4773
4769
 
4774
4770
  // 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=28f463b9&
4775
4771
  var resetPasswordvue_type_template_id_28f463b9_render = function () {
@@ -5684,13 +5680,6 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5684
5680
  //
5685
5681
  //
5686
5682
  //
5687
- //
5688
- //
5689
- //
5690
- //
5691
- //
5692
- //
5693
- //
5694
5683
 
5695
5684
 
5696
5685
 
@@ -5723,8 +5712,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5723
5712
  return {};
5724
5713
  }
5725
5714
  },
5726
- loginBackground: [String, Array],
5727
- loginImage: [String, Array],
5715
+ loginBackground: [String, Array, Object],
5716
+ loginImage: [String, Array, Object],
5728
5717
  loginLogo: String,
5729
5718
  loginTitle: String,
5730
5719
  loginName: String,
@@ -5927,21 +5916,6 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5927
5916
  return window.location.href || window.href;
5928
5917
  }
5929
5918
  },
5930
- loginBackgroundUrl: function loginBackgroundUrl() {
5931
- return this.loginBackground ? this.loginBackground : this.loginBackgroundImg;
5932
- },
5933
- loginImageUrl: function loginImageUrl() {
5934
- return this.loginImage ? this.loginImage : this.loginMainImg;
5935
- },
5936
- loginNameUrl: function loginNameUrl() {
5937
- return this.loginNameImg ? this.loginNameImg : this.loginName;
5938
- },
5939
- loginTitleUrl: function loginTitleUrl() {
5940
- return this.loginTitleImg ? this.loginTitleImg : this.loginTitle;
5941
- },
5942
- loginLogoUrl: function loginLogoUrl() {
5943
- return this.loginLogoImg ? this.loginLogoImg : this.loginLogo;
5944
- },
5945
5919
  warnInfo: function warnInfo() {
5946
5920
  return this.warning === false ? false : typeof this.warning === 'string' ? this.warning : '本系统为非涉密系统,禁止上传和处理任何涉密文件';
5947
5921
  },
@@ -6050,11 +6024,11 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6050
6024
  data: function data() {
6051
6025
  return {
6052
6026
  align: this.position,
6053
- loginBackgroundImg: null,
6054
- loginMainImg: null,
6055
- loginNameImg: null,
6056
- loginTitleImg: null,
6057
- loginLogoImg: null,
6027
+ loginBackgroundImg: this.loginBackground,
6028
+ loginMainImg: this.loginImage,
6029
+ loginNameImg: this.loginName,
6030
+ loginTitleImg: this.loginTitle,
6031
+ loginLogoImg: this.loginLogo,
6058
6032
  loginModel: this.type,
6059
6033
  passModifyModel: null,
6060
6034
  active: 0,
@@ -6148,19 +6122,36 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6148
6122
  }
6149
6123
  });
6150
6124
  },
6151
- getImgUrl: function getImgUrl(urls) {
6152
- var url = '';
6153
- if (!urls || !urls.length) {
6154
- return url;
6125
+ getBackground: function getBackground(res) {
6126
+ var style = {};
6127
+ if (!res || Array.isArray(res) && !res.length) {
6128
+ return style;
6155
6129
  }
6156
- if (Array.isArray(urls)) {
6157
- url = urls.map(function (item) {
6158
- return 'url(' + item + ')';
6159
- }).join(',');
6130
+ if (Array.isArray(res)) {
6131
+ var url = [];
6132
+ var image = [];
6133
+ res.forEach(function (item) {
6134
+ if (item.indexOf('url(') > -1) {
6135
+ url.push(item);
6136
+ } else {
6137
+ image.push('url(' + item + ')');
6138
+ }
6139
+ });
6140
+ if (url.length == res.length) {
6141
+ style = { background: url.join(',') };
6142
+ } else if (image.length == res.length) {
6143
+ style = { 'background-image': image.join(',') };
6144
+ } else {
6145
+ console.error('设置的样式不一致!');
6146
+ }
6147
+ } else if (util["a" /* default */].isObject(res)) {
6148
+ style = res;
6149
+ } else if (res.indexOf('url(') > -1) {
6150
+ style = { background: res };
6160
6151
  } else {
6161
- url = 'url(' + urls + ')';
6152
+ style = { 'background-image': 'url(' + res + ')' };
6162
6153
  }
6163
- return url;
6154
+ return style;
6164
6155
  },
6165
6156
  getRemember: function getRemember(user) {
6166
6157
  var values = localStorage.getItem('unpd');
@@ -6324,8 +6315,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6324
6315
  if (res.loginModel) {
6325
6316
  this.loginModel = res.loginModel;
6326
6317
  }
6327
- this.loginBackgroundImg = res.loginBackgroundUrl ? res.loginBackgroundUrl.split(',') : null;
6328
- this.loginLogoImg = res.loginLogoUrl ? res.loginLogoUrl : null;
6318
+ if (res.loginBackgroundUrl) {
6319
+ this.loginBackgroundImg = res.loginBackgroundUrl.split(',');
6320
+ }
6321
+ if (res.loginLogoUrl) {
6322
+ this.loginLogoImg = res.loginLogoUrl;
6323
+ }
6329
6324
  res.loginPage && sessionStorage.setItem('loginPage', res.loginPage);
6330
6325
  if (res.subsystemExtend && Object.keys(res.subsystemExtend).length) {
6331
6326
  this.icpInfo = res.subsystemExtend;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.66",
3
+ "version": "0.5.68",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -988,6 +988,11 @@ export default {
988
988
  this.isShort = isShort;
989
989
  this.taskReadName = taskReadName;
990
990
  this.flowData = wfHistoryList;
991
+ this.flowData.map(x => {
992
+ if(!x.deptid){
993
+ x.deptid = x.deptName
994
+ }
995
+ })
991
996
  this.splitReadingData = fyHistoryList;
992
997
  this.modify = modify;
993
998
  this.show = true;
@@ -2,11 +2,9 @@
2
2
  <div
3
3
  v-if="!code"
4
4
  class="es-login-screen"
5
- :style="{
6
- 'background-image': getImgUrl(loginBackgroundUrl)
7
- }"
5
+ :style="getBackground(loginBackgroundImg)"
8
6
  >
9
- <img v-if="loginLogoUrl" class="es-login-logo" :src="loginLogoUrl" />
7
+ <img v-if="loginLogoImg" class="es-login-logo" :src="loginLogoImg" />
10
8
  <slot></slot>
11
9
  <div
12
10
  class="es-login"
@@ -17,15 +15,10 @@
17
15
  :class="{ 'es-simple': mode == 'simple' }"
18
16
  :style="transform"
19
17
  >
20
- <img v-if="loginNameUrl" class="es-login-name" :src="loginNameUrl" />
21
- <div
22
- class="es-login-main"
23
- :style="{
24
- 'background-image': getImgUrl(loginImageUrl)
25
- }"
26
- >
27
- <div v-if="loginTitleUrl" class="es-login-title-image">
28
- <img class="es-login-title-img" :src="loginTitleUrl" />
18
+ <img v-if="loginNameImg" class="es-login-name" :src="loginNameImg" />
19
+ <div class="es-login-main" :style="getBackground(loginMainImg)">
20
+ <div v-if="loginTitleImg" class="es-login-title-image">
21
+ <img class="es-login-title-img" :src="loginTitleImg" />
29
22
  </div>
30
23
  <div
31
24
  v-if="switchs > 1"
@@ -50,7 +43,7 @@
50
43
  <div class="es-login-form-box">
51
44
  <template v-if="isShow(active) && (active == 0 || active == 12)">
52
45
  <el-form ref="login" class="es-login-form" :model="formData">
53
- <div class="es-login-title" v-if="!loginTitleUrl">
46
+ <div class="es-login-title" v-if="!loginTitleImg">
54
47
  <span class="es-login-title-content">{{ title }}</span>
55
48
  </div>
56
49
  <el-form-item
@@ -158,7 +151,7 @@
158
151
  v-if="isShow(active) && (active == 3 || active == 7 || active == 9)"
159
152
  >
160
153
  <div class="es-login-qrcode">
161
- <div class="es-login-title" v-if="!loginTitleUrl">
154
+ <div class="es-login-title" v-if="!loginTitleImg">
162
155
  <div class="es-login-title-content">
163
156
  {{ iconfonts[active].name }}
164
157
  </div>
@@ -206,7 +199,7 @@
206
199
  class="es-login-form es-login-verify"
207
200
  :model="formData"
208
201
  >
209
- <div class="es-login-title" v-if="!loginTitleUrl">
202
+ <div class="es-login-title" v-if="!loginTitleImg">
210
203
  <span class="es-login-title-content">{{
211
204
  iconfonts[active].name
212
205
  }}</span>
@@ -387,8 +380,8 @@ export default {
387
380
  return {};
388
381
  }
389
382
  },
390
- loginBackground: [String, Array],
391
- loginImage: [String, Array],
383
+ loginBackground: [String, Array, Object],
384
+ loginImage: [String, Array, Object],
392
385
  loginLogo: String,
393
386
  loginTitle: String,
394
387
  loginName: String,
@@ -602,23 +595,6 @@ export default {
602
595
  return window.location.href || window.href;
603
596
  }
604
597
  },
605
- loginBackgroundUrl() {
606
- return this.loginBackground
607
- ? this.loginBackground
608
- : this.loginBackgroundImg;
609
- },
610
- loginImageUrl() {
611
- return this.loginImage ? this.loginImage : this.loginMainImg;
612
- },
613
- loginNameUrl() {
614
- return this.loginNameImg ? this.loginNameImg : this.loginName;
615
- },
616
- loginTitleUrl() {
617
- return this.loginTitleImg ? this.loginTitleImg : this.loginTitle;
618
- },
619
- loginLogoUrl() {
620
- return this.loginLogoImg ? this.loginLogoImg : this.loginLogo;
621
- },
622
598
  warnInfo() {
623
599
  return this.warning === false
624
600
  ? false
@@ -736,11 +712,11 @@ export default {
736
712
  data() {
737
713
  return {
738
714
  align: this.position,
739
- loginBackgroundImg: null,
740
- loginMainImg: null,
741
- loginNameImg: null,
742
- loginTitleImg: null,
743
- loginLogoImg: null,
715
+ loginBackgroundImg: this.loginBackground,
716
+ loginMainImg: this.loginImage,
717
+ loginNameImg: this.loginName,
718
+ loginTitleImg: this.loginTitle,
719
+ loginLogoImg: this.loginLogo,
744
720
  loginModel: this.type,
745
721
  passModifyModel: null,
746
722
  active: 0,
@@ -844,21 +820,36 @@ export default {
844
820
  }
845
821
  });
846
822
  },
847
- getImgUrl(urls) {
848
- let url = '';
849
- if (!urls || !urls.length) {
850
- return url;
823
+ getBackground(res) {
824
+ let style = {};
825
+ if (!res || (Array.isArray(res) && !res.length)) {
826
+ return style;
851
827
  }
852
- if (Array.isArray(urls)) {
853
- url = urls
854
- .map((item) => {
855
- return `url(${item})`;
856
- })
857
- .join(',');
828
+ if (Array.isArray(res)) {
829
+ let url = [];
830
+ let image = [];
831
+ res.forEach((item) => {
832
+ if (item.indexOf('url(') > -1) {
833
+ url.push(item);
834
+ } else {
835
+ image.push(`url(${item})`);
836
+ }
837
+ });
838
+ if (url.length == res.length) {
839
+ style = { background: url.join(',') };
840
+ } else if (image.length == res.length) {
841
+ style = { 'background-image': image.join(',') };
842
+ } else {
843
+ console.error('设置的样式不一致!');
844
+ }
845
+ } else if (util.isObject(res)) {
846
+ style = res;
847
+ } else if (res.indexOf('url(') > -1) {
848
+ style = { background: res };
858
849
  } else {
859
- url = `url(${urls})`;
850
+ style = { 'background-image': `url(${res})` };
860
851
  }
861
- return url;
852
+ return style;
862
853
  },
863
854
  getRemember(user) {
864
855
  let values = localStorage.getItem('unpd');
@@ -1023,10 +1014,12 @@ export default {
1023
1014
  if (res.loginModel) {
1024
1015
  this.loginModel = res.loginModel;
1025
1016
  }
1026
- this.loginBackgroundImg = res.loginBackgroundUrl
1027
- ? res.loginBackgroundUrl.split(',')
1028
- : null;
1029
- this.loginLogoImg = res.loginLogoUrl ? res.loginLogoUrl : null;
1017
+ if (res.loginBackgroundUrl) {
1018
+ this.loginBackgroundImg = res.loginBackgroundUrl.split(',');
1019
+ }
1020
+ if (res.loginLogoUrl) {
1021
+ this.loginLogoImg = res.loginLogoUrl;
1022
+ }
1030
1023
  res.loginPage && sessionStorage.setItem('loginPage', res.loginPage);
1031
1024
  if (res.subsystemExtend && Object.keys(res.subsystemExtend).length) {
1032
1025
  this.icpInfo = res.subsystemExtend;
package/src/index.js CHANGED
@@ -121,7 +121,7 @@ if (typeof window !== 'undefined' && window.Vue) {
121
121
  }
122
122
 
123
123
  export default {
124
- version: '0.5.66',
124
+ version: '0.5.68',
125
125
  install,
126
126
  Button,
127
127
  ButtonGroup,