eoss-ui 0.6.31 → 0.6.32

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/main.js CHANGED
@@ -4100,8 +4100,8 @@ render._withStripped = true
4100
4100
  // EXTERNAL MODULE: ./src/config/image.js
4101
4101
  var config_image = __webpack_require__(17);
4102
4102
 
4103
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=41fb1477&scoped=true&
4104
- var simplicityvue_type_template_id_41fb1477_scoped_true_render = function () {
4103
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=9473ec14&scoped=true&
4104
+ var simplicityvue_type_template_id_9473ec14_scoped_true_render = function () {
4105
4105
  var _vm = this
4106
4106
  var _h = _vm.$createElement
4107
4107
  var _c = _vm._self._c || _h
@@ -4737,11 +4737,11 @@ var simplicityvue_type_template_id_41fb1477_scoped_true_render = function () {
4737
4737
  ),
4738
4738
  ])
4739
4739
  }
4740
- var simplicityvue_type_template_id_41fb1477_scoped_true_staticRenderFns = []
4741
- simplicityvue_type_template_id_41fb1477_scoped_true_render._withStripped = true
4740
+ var simplicityvue_type_template_id_9473ec14_scoped_true_staticRenderFns = []
4741
+ simplicityvue_type_template_id_9473ec14_scoped_true_render._withStripped = true
4742
4742
 
4743
4743
 
4744
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=41fb1477&scoped=true&
4744
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=9473ec14&scoped=true&
4745
4745
 
4746
4746
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/avatar.vue?vue&type=template&id=e722b45c&scoped=true&
4747
4747
  var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
@@ -11479,19 +11479,23 @@ var events = [function (tabs, index, that) {
11479
11479
  this.tabs.push(tab);
11480
11480
  this.activeName = res.id;
11481
11481
  } else {
11482
- var _tab6 = this.tabs[i];
11483
- if (_tab6.method === 'iframe') {
11484
- this.activeName = res.id;
11485
- this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab6.url));
11486
- } else {
11487
- if (_tab6.method === 'wujie' && _tab6.appCode) {
11488
- window.document.querySelector('iframe[name=' + _tab6.appCode + ']').contentWindow.location.reload(true);
11489
- }
11490
- if (_tab6.method === 'router') {
11491
- this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
11492
- }
11493
- this.activeName = res.id;
11494
- }
11482
+ this.tabs = events[0](this.tabs, i, this);
11483
+ // let tab = this.tabs[i];
11484
+ // if (tab.method === 'iframe') {
11485
+ // this.activeName = res.id;
11486
+ // this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
11487
+ // } else {
11488
+ // if (tab.method === 'wujie' && tab.appCode) {
11489
+ // window.document
11490
+ // .querySelector(`iframe[name=${tab.appCode}]`)
11491
+ // .contentWindow.location.reload(true);
11492
+ // }
11493
+ // if (tab.method === 'router') {
11494
+ // this.$set(this.tabs[i], 'keys', util.uuid());
11495
+ // }
11496
+ // this.activeName = res.id;
11497
+ // }
11498
+ this.activeName = res.id;
11495
11499
  }
11496
11500
  },
11497
11501
 
@@ -11546,14 +11550,14 @@ var events = [function (tabs, index, that) {
11546
11550
  if (tab.method === 'iframe') {
11547
11551
  tab.url = util["a" /* default */].handlerUrl(tab.url);
11548
11552
  } else {
11549
- var _tab7 = this.tabs[i];
11550
- if (_tab7.method === 'iframe') {
11551
- this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab7.url));
11553
+ var _tab6 = this.tabs[i];
11554
+ if (_tab6.method === 'iframe') {
11555
+ this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab6.url));
11552
11556
  }
11553
- if (_tab7.method === 'wujie' && _tab7.appCode) {
11554
- window.document.querySelector('iframe[name=' + _tab7.appCode + ']').contentWindow.location.reload(true);
11557
+ if (_tab6.method === 'wujie' && _tab6.appCode) {
11558
+ window.document.querySelector('iframe[name=' + _tab6.appCode + ']').contentWindow.location.reload(true);
11555
11559
  }
11556
- if (_tab7.method === 'router') {
11560
+ if (_tab6.method === 'router') {
11557
11561
  this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
11558
11562
  }
11559
11563
  }
@@ -11846,14 +11850,14 @@ var events = [function (tabs, index, that) {
11846
11850
  var tab = this.setIframeType(obj);
11847
11851
  this.tabs.splice(n + 1, 0, tab);
11848
11852
  } else {
11849
- var _tab8 = this.tabs[i];
11850
- if (_tab8.method === 'iframe') {
11851
- this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab8.url));
11853
+ var _tab7 = this.tabs[i];
11854
+ if (_tab7.method === 'iframe') {
11855
+ this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab7.url));
11852
11856
  }
11853
- if (_tab8.method === 'wujie' && _tab8.appCode) {
11854
- window.document.querySelector('iframe[name=' + _tab8.appCode + ']').contentWindow.location.reload(true);
11857
+ if (_tab7.method === 'wujie' && _tab7.appCode) {
11858
+ window.document.querySelector('iframe[name=' + _tab7.appCode + ']').contentWindow.location.reload(true);
11855
11859
  }
11856
- if (_tab8.method === 'router') {
11860
+ if (_tab7.method === 'router') {
11857
11861
  this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
11858
11862
  }
11859
11863
  }
@@ -11914,11 +11918,11 @@ var events = [function (tabs, index, that) {
11914
11918
 
11915
11919
  var simplicity_component = Object(componentNormalizer["a" /* default */])(
11916
11920
  src_simplicityvue_type_script_lang_js_,
11917
- simplicityvue_type_template_id_41fb1477_scoped_true_render,
11918
- simplicityvue_type_template_id_41fb1477_scoped_true_staticRenderFns,
11921
+ simplicityvue_type_template_id_9473ec14_scoped_true_render,
11922
+ simplicityvue_type_template_id_9473ec14_scoped_true_staticRenderFns,
11919
11923
  false,
11920
11924
  null,
11921
- "41fb1477",
11925
+ "9473ec14",
11922
11926
  null
11923
11927
 
11924
11928
  )
package/lib/upload.js CHANGED
@@ -3995,8 +3995,8 @@ module.exports = require("js-base64");
3995
3995
  // ESM COMPAT FLAG
3996
3996
  __webpack_require__.r(__webpack_exports__);
3997
3997
 
3998
- // 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=42161038&
3999
- var mainvue_type_template_id_42161038_render = function () {
3998
+ // 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=1d0cf2a3&
3999
+ var mainvue_type_template_id_1d0cf2a3_render = function () {
4000
4000
  var _vm = this
4001
4001
  var _h = _vm.$createElement
4002
4002
  var _c = _vm._self._c || _h
@@ -4377,10 +4377,10 @@ var mainvue_type_template_id_42161038_render = function () {
4377
4377
  : _vm._e()
4378
4378
  }
4379
4379
  var staticRenderFns = []
4380
- mainvue_type_template_id_42161038_render._withStripped = true
4380
+ mainvue_type_template_id_1d0cf2a3_render._withStripped = true
4381
4381
 
4382
4382
 
4383
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=42161038&
4383
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=1d0cf2a3&
4384
4384
 
4385
4385
  // EXTERNAL MODULE: ./src/config/api.js
4386
4386
  var api = __webpack_require__(1);
@@ -4948,12 +4948,12 @@ var _props;
4948
4948
  return { success: true, error: true };
4949
4949
  },
4950
4950
  profile: function profile() {
4951
- var previewAdjunct = this.dochubConfig ? this.dochubConfig.downloadDocumentUrl : this.previewAdjunct;
4951
+ var previewAdjunct = this.dochubConfig.downloadDocumentUrl || this.previewAdjunct;
4952
4952
  if (this.image) {
4953
4953
  if (typeof this.image === 'string') {
4954
4954
  return this.image;
4955
4955
  }
4956
- return '' + this.host + previewAdjunct + '?documentId=' + this.image.adjunctId + '&adjunctId=' + this.image.adjunctId;
4956
+ return '' + this.host + previewAdjunct + '?documentId=' + this.image.adjunctId + '&adjunctId=' + this.image.adjunctId + '&_tt=' + new Date().getTime();
4957
4957
  }
4958
4958
  if (this.value) {
4959
4959
  if (typeof this.value === 'string') {
@@ -4966,15 +4966,15 @@ var _props;
4966
4966
  });
4967
4967
  return val;
4968
4968
  } else if (this.value.indexOf('/') === -1) {
4969
- return '' + this.host + previewAdjunct + '?documentId=' + this.value + '&adjunctId=' + this.value;
4969
+ return '' + this.host + previewAdjunct + '?documentId=' + this.value + '&adjunctId=' + this.value + '&_tt=' + new Date().getTime();
4970
4970
  }
4971
4971
  return this.value;
4972
4972
  } else if (Array.isArray(this.value)) {
4973
4973
  var adjunctId = this.value[0].response ? this.value[0].response.adjunctId : this.value[0].adjunctId;
4974
- return '' + this.host + previewAdjunct + '?documentId=' + adjunctId + '&adjunctId=' + adjunctId;
4974
+ return '' + this.host + previewAdjunct + '?documentId=' + adjunctId + '&adjunctId=' + adjunctId + '&_tt=' + new Date().getTime();
4975
4975
  } else {
4976
4976
  var _adjunctId = this.value.response ? this.value.response.adjunctId : this.value.adjunctId;
4977
- return '' + this.host + previewAdjunct + '?documentId=' + _adjunctId + '&adjunctId=' + _adjunctId;
4977
+ return '' + this.host + previewAdjunct + '?documentId=' + _adjunctId + '&adjunctId=' + _adjunctId + '&_tt=' + new Date().getTime();
4978
4978
  }
4979
4979
  }
4980
4980
  if (this.photo && typeof this.photo === 'string') {
@@ -4987,7 +4987,7 @@ var _props;
4987
4987
  });
4988
4988
  return _val;
4989
4989
  } else if (this.photo.indexOf('/') === -1) {
4990
- return '' + this.host + previewAdjunct + '?documentId=' + this.photo + '&adjunctId=' + this.photo;
4990
+ return '' + this.host + previewAdjunct + '?documentId=' + this.photo + '&adjunctId=' + this.photo + '&_tt=' + new Date().getTime();
4991
4991
  }
4992
4992
  }
4993
4993
  return this.photo;
@@ -5542,7 +5542,7 @@ var componentNormalizer = __webpack_require__(3);
5542
5542
 
5543
5543
  var component = Object(componentNormalizer["a" /* default */])(
5544
5544
  src_mainvue_type_script_lang_js_,
5545
- mainvue_type_template_id_42161038_render,
5545
+ mainvue_type_template_id_1d0cf2a3_render,
5546
5546
  staticRenderFns,
5547
5547
  false,
5548
5548
  null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.6.31",
3
+ "version": "0.6.32",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
Binary file
@@ -75,6 +75,10 @@ export default {
75
75
  this.job = val.identityList.filter((item) => {
76
76
  return item.id === val.identityId;
77
77
  })[0];
78
+ if (!this.job) {
79
+ console.error('identityId与identityList中的任何id不匹配!');
80
+ this.job = {};
81
+ }
78
82
  }
79
83
  }
80
84
  }
Binary file
@@ -1521,21 +1521,23 @@ export default {
1521
1521
  this.tabs.push(tab);
1522
1522
  this.activeName = res.id;
1523
1523
  } else {
1524
- let tab = this.tabs[i];
1525
- if (tab.method === 'iframe') {
1526
- this.activeName = res.id;
1527
- this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
1528
- } else {
1529
- if (tab.method === 'wujie' && tab.appCode) {
1530
- window.document
1531
- .querySelector(`iframe[name=${tab.appCode}]`)
1532
- .contentWindow.location.reload(true);
1533
- }
1534
- if (tab.method === 'router') {
1535
- this.$set(this.tabs[i], 'keys', util.uuid());
1536
- }
1537
- this.activeName = res.id;
1538
- }
1524
+ this.tabs = events[0](this.tabs, i, this);
1525
+ // let tab = this.tabs[i];
1526
+ // if (tab.method === 'iframe') {
1527
+ // this.activeName = res.id;
1528
+ // this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
1529
+ // } else {
1530
+ // if (tab.method === 'wujie' && tab.appCode) {
1531
+ // window.document
1532
+ // .querySelector(`iframe[name=${tab.appCode}]`)
1533
+ // .contentWindow.location.reload(true);
1534
+ // }
1535
+ // if (tab.method === 'router') {
1536
+ // this.$set(this.tabs[i], 'keys', util.uuid());
1537
+ // }
1538
+ // this.activeName = res.id;
1539
+ // }
1540
+ this.activeName = res.id;
1539
1541
  }
1540
1542
  },
1541
1543
 
@@ -568,14 +568,15 @@ export default {
568
568
  return { success: true, error: true };
569
569
  },
570
570
  profile() {
571
- const previewAdjunct = this.dochubConfig
572
- ? this.dochubConfig.downloadDocumentUrl
573
- : this.previewAdjunct;
571
+ const previewAdjunct =
572
+ this.dochubConfig.downloadDocumentUrl || this.previewAdjunct;
574
573
  if (this.image) {
575
574
  if (typeof this.image === 'string') {
576
575
  return this.image;
577
576
  }
578
- return `${this.host}${previewAdjunct}?documentId=${this.image.adjunctId}&adjunctId=${this.image.adjunctId}`;
577
+ return `${this.host}${previewAdjunct}?documentId=${
578
+ this.image.adjunctId
579
+ }&adjunctId=${this.image.adjunctId}&_tt=${new Date().getTime()}`;
579
580
  }
580
581
  if (this.value) {
581
582
  if (typeof this.value === 'string') {
@@ -590,19 +591,25 @@ export default {
590
591
  });
591
592
  return val;
592
593
  } else if (this.value.indexOf('/') === -1) {
593
- return `${this.host}${previewAdjunct}?documentId=${this.value}&adjunctId=${this.value}`;
594
+ return `${this.host}${previewAdjunct}?documentId=${
595
+ this.value
596
+ }&adjunctId=${this.value}&_tt=${new Date().getTime()}`;
594
597
  }
595
598
  return this.value;
596
599
  } else if (Array.isArray(this.value)) {
597
600
  let adjunctId = this.value[0].response
598
601
  ? this.value[0].response.adjunctId
599
602
  : this.value[0].adjunctId;
600
- return `${this.host}${previewAdjunct}?documentId=${adjunctId}&adjunctId=${adjunctId}`;
603
+ return `${
604
+ this.host
605
+ }${previewAdjunct}?documentId=${adjunctId}&adjunctId=${adjunctId}&_tt=${new Date().getTime()}`;
601
606
  } else {
602
607
  let adjunctId = this.value.response
603
608
  ? this.value.response.adjunctId
604
609
  : this.value.adjunctId;
605
- return `${this.host}${previewAdjunct}?documentId=${adjunctId}&adjunctId=${adjunctId}`;
610
+ return `${
611
+ this.host
612
+ }${previewAdjunct}?documentId=${adjunctId}&adjunctId=${adjunctId}&_tt=${new Date().getTime()}`;
606
613
  }
607
614
  }
608
615
  if (this.photo && typeof this.photo === 'string') {
@@ -617,7 +624,9 @@ export default {
617
624
  });
618
625
  return val;
619
626
  } else if (this.photo.indexOf('/') === -1) {
620
- return `${this.host}${previewAdjunct}?documentId=${this.photo}&adjunctId=${this.photo}`;
627
+ return `${this.host}${previewAdjunct}?documentId=${
628
+ this.photo
629
+ }&adjunctId=${this.photo}&_tt=${new Date().getTime()}`;
621
630
  }
622
631
  }
623
632
  return this.photo;
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.6.31',
124
+ version: '0.6.32',
125
125
  install,
126
126
  Button,
127
127
  ButtonGroup,