eoss-ui 0.6.72 → 0.6.74

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
@@ -4340,7 +4340,7 @@ var nightImg = 'data:image/jpeg;base64,/9j/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
4340
4340
  // ESM COMPAT FLAG
4341
4341
  __webpack_require__.r(__webpack_exports__);
4342
4342
 
4343
- // 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=7795d992&
4343
+ // 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=5a822b69&
4344
4344
  var render = function () {
4345
4345
  var _vm = this
4346
4346
  var _h = _vm.$createElement
@@ -5634,7 +5634,7 @@ var staticRenderFns = [
5634
5634
  render._withStripped = true
5635
5635
 
5636
5636
 
5637
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=7795d992&
5637
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=5a822b69&
5638
5638
 
5639
5639
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
5640
5640
  var regenerator_ = __webpack_require__(4);
@@ -7186,10 +7186,6 @@ var ceshi = util["a" /* default */].getParams('ceshi');
7186
7186
  downloadSetup: '',
7187
7187
  app: '',
7188
7188
  qrimg: '',
7189
- ios: '',
7190
- android: '',
7191
- pad: '',
7192
- ipad: '',
7193
7189
  interval: null,
7194
7190
  showResetPassword: false,
7195
7191
  operationCheckCode: '',
package/lib/main.js CHANGED
@@ -4419,8 +4419,8 @@ render._withStripped = true
4419
4419
  // EXTERNAL MODULE: ./src/config/image.js
4420
4420
  var config_image = __webpack_require__(20);
4421
4421
 
4422
- // 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=a8c92006&scoped=true&
4423
- var simplicityvue_type_template_id_a8c92006_scoped_true_render = function () {
4422
+ // 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=7ecd2ea0&scoped=true&
4423
+ var simplicityvue_type_template_id_7ecd2ea0_scoped_true_render = function () {
4424
4424
  var _vm = this
4425
4425
  var _h = _vm.$createElement
4426
4426
  var _c = _vm._self._c || _h
@@ -5086,11 +5086,11 @@ var simplicityvue_type_template_id_a8c92006_scoped_true_render = function () {
5086
5086
  ),
5087
5087
  ])
5088
5088
  }
5089
- var simplicityvue_type_template_id_a8c92006_scoped_true_staticRenderFns = []
5090
- simplicityvue_type_template_id_a8c92006_scoped_true_render._withStripped = true
5089
+ var simplicityvue_type_template_id_7ecd2ea0_scoped_true_staticRenderFns = []
5090
+ simplicityvue_type_template_id_7ecd2ea0_scoped_true_render._withStripped = true
5091
5091
 
5092
5092
 
5093
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=a8c92006&scoped=true&
5093
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=7ecd2ea0&scoped=true&
5094
5094
 
5095
5095
  // 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&
5096
5096
  var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
@@ -7214,8 +7214,8 @@ var apps_component = Object(componentNormalizer["a" /* default */])(
7214
7214
  )
7215
7215
 
7216
7216
  /* harmony default export */ var simplicity_apps = (apps_component.exports);
7217
- // 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/user.vue?vue&type=template&id=1d4b46d0&scoped=true&
7218
- var uservue_type_template_id_1d4b46d0_scoped_true_render = function () {
7217
+ // 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/user.vue?vue&type=template&id=d789fc64&scoped=true&
7218
+ var uservue_type_template_id_d789fc64_scoped_true_render = function () {
7219
7219
  var _vm = this
7220
7220
  var _h = _vm.$createElement
7221
7221
  var _c = _vm._self._c || _h
@@ -7280,9 +7280,9 @@ var uservue_type_template_id_1d4b46d0_scoped_true_render = function () {
7280
7280
  ]),
7281
7281
  _vm.user.postName
7282
7282
  ? [
7283
- _vm._v("\n |"),
7283
+ _vm._v("\n |\n "),
7284
7284
  _c("span", { staticClass: "es-simplicity-post-name" }, [
7285
- _vm._v(_vm._s(_vm.user.postName)),
7285
+ _vm._v(_vm._s(_vm.user.position || _vm.user.postName)),
7286
7286
  ]),
7287
7287
  ]
7288
7288
  : _vm._e(),
@@ -7376,11 +7376,11 @@ var uservue_type_template_id_1d4b46d0_scoped_true_render = function () {
7376
7376
  1
7377
7377
  )
7378
7378
  }
7379
- var uservue_type_template_id_1d4b46d0_scoped_true_staticRenderFns = []
7380
- uservue_type_template_id_1d4b46d0_scoped_true_render._withStripped = true
7379
+ var uservue_type_template_id_d789fc64_scoped_true_staticRenderFns = []
7380
+ uservue_type_template_id_d789fc64_scoped_true_render._withStripped = true
7381
7381
 
7382
7382
 
7383
- // CONCATENATED MODULE: ./packages/main/src/simplicity/user.vue?vue&type=template&id=1d4b46d0&scoped=true&
7383
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/user.vue?vue&type=template&id=d789fc64&scoped=true&
7384
7384
 
7385
7385
  // 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/userinfo.vue?vue&type=template&id=1c52f6d2&
7386
7386
  var userinfovue_type_template_id_1c52f6d2_render = function () {
@@ -7756,6 +7756,9 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
7756
7756
  //
7757
7757
  //
7758
7758
  //
7759
+ //
7760
+ //
7761
+ //
7759
7762
 
7760
7763
 
7761
7764
 
@@ -7944,11 +7947,11 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
7944
7947
 
7945
7948
  var user_component = Object(componentNormalizer["a" /* default */])(
7946
7949
  simplicity_uservue_type_script_lang_js_,
7947
- uservue_type_template_id_1d4b46d0_scoped_true_render,
7948
- uservue_type_template_id_1d4b46d0_scoped_true_staticRenderFns,
7950
+ uservue_type_template_id_d789fc64_scoped_true_render,
7951
+ uservue_type_template_id_d789fc64_scoped_true_staticRenderFns,
7949
7952
  false,
7950
7953
  null,
7951
- "1d4b46d0",
7954
+ "d789fc64",
7952
7955
  null
7953
7956
 
7954
7957
  )
@@ -11494,7 +11497,7 @@ var events = [function (tabs, index, that) {
11494
11497
  store["a" /* default */].set('nav', this.menus);
11495
11498
  if (this.indexUrl) {
11496
11499
  var obj = this.getMenu(this.menus, this.indexUrl);
11497
- obj = obj ? obj : {
11500
+ obj = obj ? JSON.parse(JSON.stringify(obj)) : {
11498
11501
  url: this.indexUrl,
11499
11502
  text: '工作台',
11500
11503
  id: '0',
@@ -11516,6 +11519,7 @@ var events = [function (tabs, index, that) {
11516
11519
  if (app.url) {
11517
11520
  var _obj = this.getMenu(this.menus, app.url);
11518
11521
  if (_obj) {
11522
+ _obj = JSON.parse(JSON.stringify(_obj));
11519
11523
  var tab = this.setIframeType(_obj);
11520
11524
  this.tabs = [tab];
11521
11525
  this.activeName = tab.id;
@@ -11529,8 +11533,10 @@ var events = [function (tabs, index, that) {
11529
11533
  if (subMenus) {
11530
11534
  var _obj2 = this.getMenu(this.menus, this.appCode, 'appCode');
11531
11535
  if (_obj2) {
11532
- if (!_obj2.url) {
11533
- _obj2 = this.getFirst(_obj2);
11536
+ if (_obj2.url) {
11537
+ _obj2 = JSON.parse(JSON.stringify(_obj2));
11538
+ } else {
11539
+ _obj2 = JSON.parse(JSON.stringify(this.getFirst(_obj2)));
11534
11540
  }
11535
11541
  this.subActive = _obj2.id;
11536
11542
  var _tab = this.setIframeType(_obj2);
@@ -11551,6 +11557,7 @@ var events = [function (tabs, index, that) {
11551
11557
  if (this.tabs.length == 0) {
11552
11558
  var _obj3 = this.getFirst(_subMenus);
11553
11559
  if (_obj3) {
11560
+ _obj3 = JSON.parse(JSON.stringify(_obj3));
11554
11561
  this.subActive = _obj3.id;
11555
11562
  var _tab2 = this.setIframeType(_obj3);
11556
11563
  this.tabs = [_tab2];
@@ -11569,7 +11576,7 @@ var events = [function (tabs, index, that) {
11569
11576
  } else if (this.initApps && this.initApps.length && !this.indexUrl) {
11570
11577
  var _obj4 = this.getMenu(this.menus, this.initApps[this.initApps.length - 1]);
11571
11578
  if (_obj4) {
11572
- var _tab3 = this.setIframeType(_obj4);
11579
+ var _tab3 = this.setIframeType(JSON.parse(JSON.stringify(_obj4)));
11573
11580
  this.tabs.push(_tab3);
11574
11581
  this.activeName = _tab3.id;
11575
11582
  }
@@ -11648,7 +11655,7 @@ var events = [function (tabs, index, that) {
11648
11655
  if (item[key] === res) {
11649
11656
  return item;
11650
11657
  }
11651
- } else if (item.url === res || item.id === res || item.appCode && item.appCode === res) {
11658
+ } else if (item.url === res || item.id === res || item.appCode === res) {
11652
11659
  return item;
11653
11660
  }
11654
11661
  if (Object.prototype.hasOwnProperty.call(item, 'children') && item.children.length) {
@@ -11895,6 +11902,7 @@ var events = [function (tabs, index, that) {
11895
11902
  if (i == -1) {
11896
11903
  var obj = res.code ? this.getMenu(this.menus, res.code, 'appCode') : null;
11897
11904
  if (obj) {
11905
+ obj = JSON.parse(JSON.stringify(obj));
11898
11906
  var n = util["a" /* default */].indexOfObj(this.tabs, obj, 'id');
11899
11907
  if (n == -1) {
11900
11908
  var tab = this.setIframeType(obj);
@@ -11930,6 +11938,7 @@ var events = [function (tabs, index, that) {
11930
11938
  this.showMenu = subMenus ? subMenus.children && subMenus.children.length > 0 || subMenus.fourthTabs && subMenus.fourthTabs.length > 0 : false;
11931
11939
  this.showApps = false;
11932
11940
  if (subMenus && subMenus.url) {
11941
+ subMenus = JSON.parse(JSON.stringify(subMenus));
11933
11942
  var _i = util["a" /* default */].indexOfObj(this.tabs, subMenus, 'id');
11934
11943
  this.activeName = subMenus.id;
11935
11944
  if (_i == -1) {
@@ -11937,7 +11946,7 @@ var events = [function (tabs, index, that) {
11937
11946
  this.tabs.push(_tab5);
11938
11947
  } else {
11939
11948
  if (subMenus.method == 'iframe') {
11940
- subMenus.url = util["a" /* default */].handlerUrl(subMenus.url);
11949
+ this.tabs[_i].url = util["a" /* default */].handlerUrl(subMenus.url);
11941
11950
  }
11942
11951
  }
11943
11952
  }
@@ -12402,6 +12411,7 @@ var events = [function (tabs, index, that) {
12402
12411
  }
12403
12412
  var obj = this.getMenu(this.menus, apps[apps.length - 1]);
12404
12413
  if (obj) {
12414
+ obj = JSON.parse(JSON.stringify(obj));
12405
12415
  var i = util["a" /* default */].indexOfObj(this.tabs, obj, 'id,code,appCode');
12406
12416
  var n = util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
12407
12417
  var old = this.activeName;
@@ -12495,11 +12505,11 @@ var events = [function (tabs, index, that) {
12495
12505
 
12496
12506
  var simplicity_component = Object(componentNormalizer["a" /* default */])(
12497
12507
  src_simplicityvue_type_script_lang_js_,
12498
- simplicityvue_type_template_id_a8c92006_scoped_true_render,
12499
- simplicityvue_type_template_id_a8c92006_scoped_true_staticRenderFns,
12508
+ simplicityvue_type_template_id_7ecd2ea0_scoped_true_render,
12509
+ simplicityvue_type_template_id_7ecd2ea0_scoped_true_staticRenderFns,
12500
12510
  false,
12501
12511
  null,
12502
- "a8c92006",
12512
+ "7ecd2ea0",
12503
12513
  null
12504
12514
 
12505
12515
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.6.72",
3
+ "version": "0.6.74",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -99,7 +99,7 @@
99
99
  "cp-cli": "^1.0.2",
100
100
  "cross-env": "^3.1.3",
101
101
  "css-loader": "^2.1.0",
102
- "eoss-element": "^0.3.47",
102
+ "eoss-element": "^0.3.48",
103
103
  "es6-promise": "^4.0.5",
104
104
  "eslint": "4.18.2",
105
105
  "eslint-config-elemefe": "0.1.1",
Binary file
@@ -356,7 +356,7 @@ export default {
356
356
  // 无数据时显示的文本
357
357
  emptyText: {
358
358
  type: String,
359
- default: ''
359
+ default: '暂无数据'
360
360
  },
361
361
  // 是否开启合计行区域
362
362
  total: {
Binary file
Binary file
Binary file
@@ -990,10 +990,6 @@ export default {
990
990
  downloadSetup: '',
991
991
  app: '',
992
992
  qrimg: '',
993
- ios: '',
994
- android: '',
995
- pad: '',
996
- ipad: '',
997
993
  interval: null,
998
994
  showResetPassword: false,
999
995
  operationCheckCode: '',
Binary file
Binary file
@@ -1043,7 +1043,7 @@ export default {
1043
1043
  if (this.indexUrl) {
1044
1044
  let obj = this.getMenu(this.menus, this.indexUrl);
1045
1045
  obj = obj
1046
- ? obj
1046
+ ? JSON.parse(JSON.stringify(obj))
1047
1047
  : {
1048
1048
  url: this.indexUrl,
1049
1049
  text: '工作台',
@@ -1066,6 +1066,7 @@ export default {
1066
1066
  if (app.url) {
1067
1067
  let obj = this.getMenu(this.menus, app.url);
1068
1068
  if (obj) {
1069
+ obj = JSON.parse(JSON.stringify(obj));
1069
1070
  let tab = this.setIframeType(obj);
1070
1071
  this.tabs = [tab];
1071
1072
  this.activeName = tab.id;
@@ -1079,8 +1080,10 @@ export default {
1079
1080
  if (subMenus) {
1080
1081
  let obj = this.getMenu(this.menus, this.appCode, 'appCode');
1081
1082
  if (obj) {
1082
- if (!obj.url) {
1083
- obj = this.getFirst(obj);
1083
+ if (obj.url) {
1084
+ obj = JSON.parse(JSON.stringify(obj));
1085
+ } else {
1086
+ obj = JSON.parse(JSON.stringify(this.getFirst(obj)));
1084
1087
  }
1085
1088
  this.subActive = obj.id;
1086
1089
  let tab = this.setIframeType(obj);
@@ -1103,6 +1106,7 @@ export default {
1103
1106
  if (this.tabs.length == 0) {
1104
1107
  let obj = this.getFirst(subMenus);
1105
1108
  if (obj) {
1109
+ obj = JSON.parse(JSON.stringify(obj));
1106
1110
  this.subActive = obj.id;
1107
1111
  let tab = this.setIframeType(obj);
1108
1112
  this.tabs = [tab];
@@ -1126,7 +1130,7 @@ export default {
1126
1130
  this.initApps[this.initApps.length - 1]
1127
1131
  );
1128
1132
  if (obj) {
1129
- let tab = this.setIframeType(obj);
1133
+ let tab = this.setIframeType(JSON.parse(JSON.stringify(obj)));
1130
1134
  this.tabs.push(tab);
1131
1135
  this.activeName = tab.id;
1132
1136
  }
@@ -1216,7 +1220,7 @@ export default {
1216
1220
  } else if (
1217
1221
  item.url === res ||
1218
1222
  item.id === res ||
1219
- (item.appCode && item.appCode === res)
1223
+ item.appCode === res
1220
1224
  ) {
1221
1225
  return item;
1222
1226
  }
@@ -1480,6 +1484,7 @@ export default {
1480
1484
  ? this.getMenu(this.menus, res.code, 'appCode')
1481
1485
  : null;
1482
1486
  if (obj) {
1487
+ obj = JSON.parse(JSON.stringify(obj));
1483
1488
  let n = util.indexOfObj(this.tabs, obj, 'id');
1484
1489
  if (n == -1) {
1485
1490
  let tab = this.setIframeType(obj);
@@ -1518,6 +1523,7 @@ export default {
1518
1523
  : false;
1519
1524
  this.showApps = false;
1520
1525
  if (subMenus && subMenus.url) {
1526
+ subMenus = JSON.parse(JSON.stringify(subMenus));
1521
1527
  let i = util.indexOfObj(this.tabs, subMenus, 'id');
1522
1528
  this.activeName = subMenus.id;
1523
1529
  if (i == -1) {
@@ -1525,7 +1531,7 @@ export default {
1525
1531
  this.tabs.push(tab);
1526
1532
  } else {
1527
1533
  if (subMenus.method == 'iframe') {
1528
- subMenus.url = util.handlerUrl(subMenus.url);
1534
+ this.tabs[i].url = util.handlerUrl(subMenus.url);
1529
1535
  }
1530
1536
  }
1531
1537
  }
@@ -2002,6 +2008,7 @@ export default {
2002
2008
  }
2003
2009
  let obj = this.getMenu(this.menus, apps[apps.length - 1]);
2004
2010
  if (obj) {
2011
+ obj = JSON.parse(JSON.stringify(obj));
2005
2012
  let i = util.indexOfObj(this.tabs, obj, 'id,code,appCode');
2006
2013
  let n = util.indexOfObj(this.tabs, this.activeName, 'id');
2007
2014
  let old = this.activeName;
@@ -27,7 +27,10 @@
27
27
  <div class="es-simplicity-dep-post">
28
28
  <span class="es-simplicity-dep-name"> {{ user.depName }}</span>
29
29
  <template v-if="user.postName">
30
- |<span class="es-simplicity-post-name">{{ user.postName }}</span>
30
+ |
31
+ <span class="es-simplicity-post-name">{{
32
+ user.position || user.postName
33
+ }}</span>
31
34
  </template>
32
35
  </div>
33
36
 
package/src/.DS_Store CHANGED
Binary file
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.6.72',
128
+ version: '0.6.74',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,