eoss-ui 0.7.75 → 0.7.77

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 (59) hide show
  1. package/lib/button-group.js +68 -36
  2. package/lib/button.js +68 -36
  3. package/lib/calogin.js +68 -36
  4. package/lib/checkbox-group.js +68 -36
  5. package/lib/data-table-form.js +68 -36
  6. package/lib/data-table.js +68 -36
  7. package/lib/date-picker.js +68 -36
  8. package/lib/dialog.js +68 -36
  9. package/lib/eoss-ui.common.js +245 -113
  10. package/lib/flow-group.js +68 -36
  11. package/lib/flow-list.js +68 -36
  12. package/lib/flow.js +68 -36
  13. package/lib/form.js +68 -36
  14. package/lib/handle-user.js +68 -36
  15. package/lib/handler.js +68 -36
  16. package/lib/icon.js +68 -36
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +68 -36
  19. package/lib/input.js +68 -36
  20. package/lib/login.js +75 -40
  21. package/lib/main.js +227 -98
  22. package/lib/nav.js +68 -36
  23. package/lib/page.js +68 -36
  24. package/lib/pagination.js +68 -36
  25. package/lib/player.js +68 -36
  26. package/lib/qr-code.js +68 -36
  27. package/lib/radio-group.js +68 -36
  28. package/lib/retrial-auth.js +68 -36
  29. package/lib/select-ganged.js +68 -36
  30. package/lib/select.js +68 -36
  31. package/lib/selector-panel.js +68 -36
  32. package/lib/selector.js +68 -36
  33. package/lib/sizer.js +68 -36
  34. package/lib/steps.js +68 -36
  35. package/lib/switch.js +68 -36
  36. package/lib/table-form.js +68 -36
  37. package/lib/tabs.js +68 -36
  38. package/lib/theme-chalk/index.css +1 -1
  39. package/lib/theme-chalk/main.css +1 -1
  40. package/lib/theme-chalk/simplicity-top.css +1 -1
  41. package/lib/tips.js +68 -36
  42. package/lib/tree-group.js +68 -36
  43. package/lib/tree.js +68 -36
  44. package/lib/upload.js +68 -36
  45. package/lib/utils/util.js +68 -36
  46. package/lib/wujie.js +68 -36
  47. package/lib/wxlogin.js +68 -36
  48. package/package.json +1 -1
  49. package/packages/login/src/main.vue +5 -2
  50. package/packages/main/src/main.vue +27 -15
  51. package/packages/main/src/simplicity/index.vue +6 -0
  52. package/packages/main/src/simplicityTop/handler.vue +6 -0
  53. package/packages/main/src/simplicityTop/index.vue +74 -10
  54. package/packages/theme-chalk/lib/index.css +1 -1
  55. package/packages/theme-chalk/lib/main.css +1 -1
  56. package/packages/theme-chalk/lib/simplicity-top.css +1 -1
  57. package/packages/theme-chalk/src/simplicity-top.scss +13 -0
  58. package/src/index.js +1 -1
  59. package/src/utils/util.js +172 -105
@@ -1449,7 +1449,6 @@ var util_ajax = function ajax(_ref) {
1449
1449
  loading && loading.close();
1450
1450
  if (response.headers.authorization) {
1451
1451
  response.headers.authorization !== getStorage('token') && setStorage({
1452
-
1453
1452
  key: ['token', 'Authorization'],
1454
1453
  value: response.headers.authorization
1455
1454
  });
@@ -1786,7 +1785,11 @@ var ajaxStream = function ajaxStream(_ref2) {
1786
1785
  } else if (error.response) {
1787
1786
  errorMessage = '\u670D\u52A1\u5668\u9519\u8BEF (' + error.response.status + '): ' + (error.response.data || '未知错误');
1788
1787
  }
1789
- fail && fail({ status: 0, message: { role: 'assistant', content: errorMessage }, controller: controller });
1788
+ fail && fail({
1789
+ status: 0,
1790
+ message: { role: 'assistant', content: errorMessage },
1791
+ controller: controller
1792
+ });
1790
1793
  } finally {
1791
1794
  final && final({ status: -1, message: null, controller: controller });
1792
1795
  }
@@ -2552,7 +2555,7 @@ var util_formatDate = function formatDate(date, fmt) {
2552
2555
  'm+': obj.getMinutes(), // 分钟 (0-59)
2553
2556
  's+': obj.getSeconds(), // 秒 (0-59)
2554
2557
  'q+': quarter[Math.floor(monthNum / 3)], // 季度 (一~四)
2555
- 'S': obj.getMilliseconds() // 毫秒 (0-999)
2558
+ S: obj.getMilliseconds() // 毫秒 (0-999)
2556
2559
  };
2557
2560
 
2558
2561
  // 4. 处理年份
@@ -3211,26 +3214,51 @@ var getZoom = function getZoom() {
3211
3214
 
3212
3215
  var util_handlerUrl = function handlerUrl(url, param, before) {
3213
3216
  var arry = url.split('?');
3214
- if (arry.length > 2) {
3215
- var ary = arry.splice(1, arry.length);
3216
- arry.push(ary.join('?'));
3217
- }
3218
- if (arry.length > 1) {
3219
- if (arry[1].indexOf('_tt') > -1) {
3220
- var search = arry[1].split('&');
3221
- for (var i in search) {
3222
- if (search[i].indexOf('_tt') > -1) {
3223
- search[i] = '_tt=' + new Date().getTime();
3217
+ // /archives-ui/webpack/index.html?cookie=1#/fullTextSearch
3218
+ if (arry.length > 1 && arry[1].indexOf('#/') > -1) {
3219
+ // 分割成 arry[0] = /archives-ui/webpack/index.html 和 arry[1] = cookie=1#/fullTextSearch
3220
+ var hashs = arry[1].split('#/'); // 分割成 hashs[0] = cookie=1 和 hashs[1] = fullTextSearch
3221
+ if (hashs[1].indexOf('?') === -1) {
3222
+ hashs[1] += '?_tt=' + new Date().getTime();
3223
+ } else {
3224
+ if (hashs[1].indexOf('_tt') === -1) {
3225
+ hashs[1] += '&_tt=' + new Date().getTime();
3226
+ } else {
3227
+ var search = hashs[1].split('&');
3228
+ for (var i in search) {
3229
+ if (search[i].indexOf('_tt') > -1) {
3230
+ search[i] = '_tt=' + new Date().getTime();
3231
+ }
3224
3232
  }
3233
+ hashs[1] = search.join('&');
3225
3234
  }
3226
- arry[1] = search.join('&');
3227
- } else {
3228
- arry[1] += '&_tt=' + new Date().getTime();
3229
3235
  }
3230
- url = arry.join('?');
3236
+ // /archives-ui/webpack/index.html?cookie=1#/fullTextSearch&_tt=1764839214926&false
3237
+ // 会不会存在 参数中也有#/
3238
+ url = arry[0] + '?' + hashs.join('#/');
3231
3239
  } else {
3232
- url += '?_tt=' + new Date().getTime();
3240
+ if (arry.length > 2) {
3241
+ var ary = arry.splice(1, arry.length);
3242
+ arry.push(ary.join('?'));
3243
+ }
3244
+ if (arry.length > 1) {
3245
+ if (arry[1].indexOf('_tt') > -1) {
3246
+ var _search = arry[1].split('&');
3247
+ for (var _i7 in _search) {
3248
+ if (_search[_i7].indexOf('_tt') > -1) {
3249
+ _search[_i7] = '_tt=' + new Date().getTime();
3250
+ }
3251
+ }
3252
+ arry[1] = _search.join('&');
3253
+ } else {
3254
+ arry[1] += '&_tt=' + new Date().getTime();
3255
+ }
3256
+ url = arry.join('?');
3257
+ } else {
3258
+ url += '?_tt=' + new Date().getTime();
3259
+ }
3233
3260
  }
3261
+
3234
3262
  if (param) {
3235
3263
  var str = queryParams(param);
3236
3264
  url += '&' + str;
@@ -3526,7 +3554,11 @@ var util_isLogined = function () {
3526
3554
  break;
3527
3555
  }
3528
3556
 
3529
- loadingInstance = external_eoss_element_["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
3557
+ loadingInstance = external_eoss_element_["Loading"].service({
3558
+ text: '页面加载中',
3559
+ spinner: 'el-icon-loading',
3560
+ background: 'rgba(0, 0, 0, 0.65)'
3561
+ });
3530
3562
  _context.next = 17;
3531
3563
  return util_ajax({
3532
3564
  method: 'post',
@@ -4624,10 +4656,10 @@ var setStorage = function setStorage(_ref18) {
4624
4656
  }
4625
4657
  }
4626
4658
  } else {
4627
- for (var _i7 in key) {
4628
- var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
4629
- localStorage.setItem(_i7, val);
4630
- if (_i7 === 'token') {
4659
+ for (var _i8 in key) {
4660
+ var val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
4661
+ localStorage.setItem(_i8, val);
4662
+ if (_i8 === 'token') {
4631
4663
  setCookie('token', val);
4632
4664
  }
4633
4665
  }
@@ -4639,17 +4671,17 @@ var setStorage = function setStorage(_ref18) {
4639
4671
  setCookie('token', value);
4640
4672
  }
4641
4673
  } else if (Array.isArray(key)) {
4642
- for (var _i8 in key) {
4643
- sessionStorage.setItem(key[_i8], value);
4644
- if (key[_i8] === 'token') {
4674
+ for (var _i9 in key) {
4675
+ sessionStorage.setItem(key[_i9], value);
4676
+ if (key[_i9] === 'token') {
4645
4677
  setCookie('token', value);
4646
4678
  }
4647
4679
  }
4648
4680
  } else {
4649
- for (var _i9 in key) {
4650
- var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
4651
- sessionStorage.setItem(_i9, _val);
4652
- if (_i9 === 'token') {
4681
+ for (var _i10 in key) {
4682
+ var _val = _typeof(key[_i10]) === 'object' ? JSON.stringify(key[_i10]) : key[_i10];
4683
+ sessionStorage.setItem(_i10, _val);
4684
+ if (_i10 === 'token') {
4653
4685
  setCookie('token', _val);
4654
4686
  }
4655
4687
  }
@@ -4777,16 +4809,16 @@ var setCookie = function setCookie(name, value) {
4777
4809
  **/
4778
4810
  var getCookie = function getCookie(name) {
4779
4811
  var cookies = document.cookie.split(';');
4780
- for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i10 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
4812
+ for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i11 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
4781
4813
  var _ref19;
4782
4814
 
4783
4815
  if (_isArray) {
4784
- if (_i10 >= _iterator.length) break;
4785
- _ref19 = _iterator[_i10++];
4816
+ if (_i11 >= _iterator.length) break;
4817
+ _ref19 = _iterator[_i11++];
4786
4818
  } else {
4787
- _i10 = _iterator.next();
4788
- if (_i10.done) break;
4789
- _ref19 = _i10.value;
4819
+ _i11 = _iterator.next();
4820
+ if (_i11.done) break;
4821
+ _ref19 = _i11.value;
4790
4822
  }
4791
4823
 
4792
4824
  var cookie = _ref19;
@@ -57524,8 +57556,8 @@ layout_src_main.install = function (Vue) {
57524
57556
  };
57525
57557
 
57526
57558
  /* harmony default export */ var packages_layout = (layout_src_main);
57527
- // 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=7774c1e2&
57528
- var mainvue_type_template_id_7774c1e2_render = function () {
57559
+ // 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=29583bfe&
57560
+ var mainvue_type_template_id_29583bfe_render = function () {
57529
57561
  var _vm = this
57530
57562
  var _h = _vm.$createElement
57531
57563
  var _c = _vm._self._c || _h
@@ -58708,8 +58740,8 @@ var mainvue_type_template_id_7774c1e2_render = function () {
58708
58740
  {
58709
58741
  attrs: {
58710
58742
  title: "客户端下载",
58711
- width: _vm.download.length == 1 ? "450px" : "80%",
58712
- height: _vm.download.length == 1 ? "500px" : "80%",
58743
+ width: _vm.downloadLength == 1 ? "450px" : "80%",
58744
+ height: _vm.downloadLength == 1 ? "500px" : "80%",
58713
58745
  "custom-class": "es-clients-dialog",
58714
58746
  visible: _vm.showDownLoadApp,
58715
58747
  },
@@ -58799,7 +58831,7 @@ var mainvue_type_template_id_7774c1e2_render = function () {
58799
58831
  )
58800
58832
  : _vm._e()
58801
58833
  }
58802
- var mainvue_type_template_id_7774c1e2_staticRenderFns = [
58834
+ var mainvue_type_template_id_29583bfe_staticRenderFns = [
58803
58835
  function () {
58804
58836
  var _vm = this
58805
58837
  var _h = _vm.$createElement
@@ -58814,10 +58846,10 @@ var mainvue_type_template_id_7774c1e2_staticRenderFns = [
58814
58846
  ])
58815
58847
  },
58816
58848
  ]
58817
- mainvue_type_template_id_7774c1e2_render._withStripped = true
58849
+ mainvue_type_template_id_29583bfe_render._withStripped = true
58818
58850
 
58819
58851
 
58820
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=7774c1e2&
58852
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=29583bfe&
58821
58853
 
58822
58854
  // 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=325dc074&
58823
58855
  var resetPasswordvue_type_template_id_325dc074_render = function () {
@@ -60151,6 +60183,9 @@ var mainvue_type_script_lang_js_params = utils_util.getParams();
60151
60183
  }
60152
60184
  },
60153
60185
  computed: {
60186
+ downloadLength: function downloadLength() {
60187
+ return this.download ? Object.keys(this.download).length : 0;
60188
+ },
60154
60189
  transform: function transform() {
60155
60190
  var translate = this.translate ? this.translate : this.align === 'center' ? '-50%, -51%' : '-51%';
60156
60191
  if (this.align.indexOf('%') > -1) {
@@ -61423,8 +61458,8 @@ var mainvue_type_script_lang_js_params = utils_util.getParams();
61423
61458
 
61424
61459
  var login_src_main_component = normalizeComponent(
61425
61460
  packages_login_src_mainvue_type_script_lang_js_,
61426
- mainvue_type_template_id_7774c1e2_render,
61427
- mainvue_type_template_id_7774c1e2_staticRenderFns,
61461
+ mainvue_type_template_id_29583bfe_render,
61462
+ mainvue_type_template_id_29583bfe_staticRenderFns,
61428
61463
  false,
61429
61464
  null,
61430
61465
  null,
@@ -61441,8 +61476,8 @@ login_src_main.install = function (Vue) {
61441
61476
  };
61442
61477
 
61443
61478
  /* harmony default export */ var login = (login_src_main);
61444
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=0fbde292&
61445
- var mainvue_type_template_id_0fbde292_render = function () {
61479
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=48272c28&
61480
+ var mainvue_type_template_id_48272c28_render = function () {
61446
61481
  var _vm = this
61447
61482
  var _h = _vm.$createElement
61448
61483
  var _c = _vm._self._c || _h
@@ -61585,14 +61620,14 @@ var mainvue_type_template_id_0fbde292_render = function () {
61585
61620
  )
61586
61621
  : _vm._e()
61587
61622
  }
61588
- var mainvue_type_template_id_0fbde292_staticRenderFns = []
61589
- mainvue_type_template_id_0fbde292_render._withStripped = true
61623
+ var mainvue_type_template_id_48272c28_staticRenderFns = []
61624
+ mainvue_type_template_id_48272c28_render._withStripped = true
61590
61625
 
61591
61626
 
61592
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=0fbde292&
61627
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=48272c28&
61593
61628
 
61594
- // 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=6808c3e5&scoped=true&
61595
- var simplicityvue_type_template_id_6808c3e5_scoped_true_render = function () {
61629
+ // 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=560d8a6d&scoped=true&
61630
+ var simplicityvue_type_template_id_560d8a6d_scoped_true_render = function () {
61596
61631
  var _vm = this
61597
61632
  var _h = _vm.$createElement
61598
61633
  var _c = _vm._self._c || _h
@@ -62358,11 +62393,11 @@ var simplicityvue_type_template_id_6808c3e5_scoped_true_render = function () {
62358
62393
  ),
62359
62394
  ])
62360
62395
  }
62361
- var simplicityvue_type_template_id_6808c3e5_scoped_true_staticRenderFns = []
62362
- simplicityvue_type_template_id_6808c3e5_scoped_true_render._withStripped = true
62396
+ var simplicityvue_type_template_id_560d8a6d_scoped_true_staticRenderFns = []
62397
+ simplicityvue_type_template_id_560d8a6d_scoped_true_render._withStripped = true
62363
62398
 
62364
62399
 
62365
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=6808c3e5&scoped=true&
62400
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=560d8a6d&scoped=true&
62366
62401
 
62367
62402
  // 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&
62368
62403
  var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
@@ -68571,6 +68606,10 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
68571
68606
  type: Number,
68572
68607
  default: 220
68573
68608
  },
68609
+ showTipNums: {
68610
+ type: Boolean,
68611
+ default: true
68612
+ },
68574
68613
  //路由方式
68575
68614
  routeType: String,
68576
68615
  host: {
@@ -69352,6 +69391,8 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
69352
69391
  setTips: function setTips(obj) {
69353
69392
  var _this4 = this;
69354
69393
 
69394
+ // 不显示菜单气泡提醒
69395
+ if (!this.showTipNums) return;
69355
69396
  if (!this.menuTips || !Object.keys(this.menuTips).length) {
69356
69397
  return false;
69357
69398
  }
@@ -70200,18 +70241,18 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
70200
70241
 
70201
70242
  var simplicity_component = normalizeComponent(
70202
70243
  src_simplicityvue_type_script_lang_js_,
70203
- simplicityvue_type_template_id_6808c3e5_scoped_true_render,
70204
- simplicityvue_type_template_id_6808c3e5_scoped_true_staticRenderFns,
70244
+ simplicityvue_type_template_id_560d8a6d_scoped_true_render,
70245
+ simplicityvue_type_template_id_560d8a6d_scoped_true_staticRenderFns,
70205
70246
  false,
70206
70247
  null,
70207
- "6808c3e5",
70248
+ "560d8a6d",
70208
70249
  null
70209
70250
 
70210
70251
  )
70211
70252
 
70212
70253
  /* harmony default export */ var simplicity = (simplicity_component.exports);
70213
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/index.vue?vue&type=template&id=06dd3ec1&scoped=true&
70214
- var simplicityTopvue_type_template_id_06dd3ec1_scoped_true_render = function () {
70254
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/index.vue?vue&type=template&id=48712a0c&scoped=true&
70255
+ var simplicityTopvue_type_template_id_48712a0c_scoped_true_render = function () {
70215
70256
  var _vm = this
70216
70257
  var _h = _vm.$createElement
70217
70258
  var _c = _vm._self._c || _h
@@ -70405,7 +70446,16 @@ var simplicityTopvue_type_template_id_06dd3ec1_scoped_true_render = function ()
70405
70446
  "div",
70406
70447
  { staticClass: "es-simplicitytop-menu-item" },
70407
70448
  [
70408
- _vm._m(0),
70449
+ _c("div", { staticClass: "es-simplicitytop-menu-title" }, [
70450
+ _c(
70451
+ "span",
70452
+ {
70453
+ staticClass: "es-simplicitytop-menu-name",
70454
+ on: { click: _vm.testReloadPage },
70455
+ },
70456
+ [_vm._v("我的快捷")]
70457
+ ),
70458
+ ]),
70409
70459
  _c(
70410
70460
  "el-scrollbar",
70411
70461
  { staticStyle: { height: "calc(100% - 45px)" } },
@@ -70731,6 +70781,10 @@ var simplicityTopvue_type_template_id_06dd3ec1_scoped_true_render = function ()
70731
70781
  false
70732
70782
  )
70733
70783
  ),
70784
+ _c("notice", {
70785
+ attrs: { data: _vm.sysMsg, winopen: _vm.winopen },
70786
+ on: { opened: _vm.handleOpened },
70787
+ }),
70734
70788
  _c(
70735
70789
  "es-dialog",
70736
70790
  {
@@ -70765,22 +70819,11 @@ var simplicityTopvue_type_template_id_06dd3ec1_scoped_true_render = function ()
70765
70819
  1
70766
70820
  )
70767
70821
  }
70768
- var simplicityTopvue_type_template_id_06dd3ec1_scoped_true_staticRenderFns = [
70769
- function () {
70770
- var _vm = this
70771
- var _h = _vm.$createElement
70772
- var _c = _vm._self._c || _h
70773
- return _c("div", { staticClass: "es-simplicitytop-menu-title" }, [
70774
- _c("span", { staticClass: "es-simplicitytop-menu-name" }, [
70775
- _vm._v("我的快捷"),
70776
- ]),
70777
- ])
70778
- },
70779
- ]
70780
- simplicityTopvue_type_template_id_06dd3ec1_scoped_true_render._withStripped = true
70822
+ var simplicityTopvue_type_template_id_48712a0c_scoped_true_staticRenderFns = []
70823
+ simplicityTopvue_type_template_id_48712a0c_scoped_true_render._withStripped = true
70781
70824
 
70782
70825
 
70783
- // CONCATENATED MODULE: ./packages/main/src/simplicityTop/index.vue?vue&type=template&id=06dd3ec1&scoped=true&
70826
+ // CONCATENATED MODULE: ./packages/main/src/simplicityTop/index.vue?vue&type=template&id=48712a0c&scoped=true&
70784
70827
 
70785
70828
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/avatar.vue?vue&type=template&id=30391b69&scoped=true&
70786
70829
  var avatarvue_type_template_id_30391b69_scoped_true_render = function () {
@@ -70931,8 +70974,8 @@ var simplicityTop_avatar_component = normalizeComponent(
70931
70974
  )
70932
70975
 
70933
70976
  /* harmony default export */ var simplicityTop_avatar = (simplicityTop_avatar_component.exports);
70934
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/handler.vue?vue&type=template&id=6434fb72&scoped=true&
70935
- var handlervue_type_template_id_6434fb72_scoped_true_render = function () {
70977
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/handler.vue?vue&type=template&id=45fffc05&scoped=true&
70978
+ var handlervue_type_template_id_45fffc05_scoped_true_render = function () {
70936
70979
  var _vm = this
70937
70980
  var _h = _vm.$createElement
70938
70981
  var _c = _vm._self._c || _h
@@ -71024,6 +71067,23 @@ var handlervue_type_template_id_6434fb72_scoped_true_render = function () {
71024
71067
  _c("span", { staticClass: "es-simplicitytop-handler-text" }, [
71025
71068
  _vm._v(_vm._s(item.text)),
71026
71069
  ]),
71070
+ item.type == "notice" && _vm.nums[item.type] > 0
71071
+ ? _c(
71072
+ "div",
71073
+ { staticClass: "es-simplicitytop-handler-badge" },
71074
+ [
71075
+ _vm._v(
71076
+ "\n " +
71077
+ _vm._s(
71078
+ _vm.nums[item.type] > 99
71079
+ ? "99+"
71080
+ : _vm.nums[item.type]
71081
+ ) +
71082
+ "\n "
71083
+ ),
71084
+ ]
71085
+ )
71086
+ : _vm._e(),
71027
71087
  ],
71028
71088
  1
71029
71089
  ),
@@ -71033,11 +71093,11 @@ var handlervue_type_template_id_6434fb72_scoped_true_render = function () {
71033
71093
  2
71034
71094
  )
71035
71095
  }
71036
- var handlervue_type_template_id_6434fb72_scoped_true_staticRenderFns = []
71037
- handlervue_type_template_id_6434fb72_scoped_true_render._withStripped = true
71096
+ var handlervue_type_template_id_45fffc05_scoped_true_staticRenderFns = []
71097
+ handlervue_type_template_id_45fffc05_scoped_true_render._withStripped = true
71038
71098
 
71039
71099
 
71040
- // CONCATENATED MODULE: ./packages/main/src/simplicityTop/handler.vue?vue&type=template&id=6434fb72&scoped=true&
71100
+ // CONCATENATED MODULE: ./packages/main/src/simplicityTop/handler.vue?vue&type=template&id=45fffc05&scoped=true&
71041
71101
 
71042
71102
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/handler.vue?vue&type=script&lang=js&
71043
71103
  var simplicityTop_handlervue_type_script_lang_js_data;
@@ -71092,6 +71152,12 @@ var simplicityTop_handlervue_type_script_lang_js_data;
71092
71152
  //
71093
71153
  //
71094
71154
  //
71155
+ //
71156
+ //
71157
+ //
71158
+ //
71159
+ //
71160
+ //
71095
71161
 
71096
71162
 
71097
71163
 
@@ -71251,11 +71317,11 @@ var simplicityTop_handlervue_type_script_lang_js_data;
71251
71317
 
71252
71318
  var simplicityTop_handler_component = normalizeComponent(
71253
71319
  src_simplicityTop_handlervue_type_script_lang_js_,
71254
- handlervue_type_template_id_6434fb72_scoped_true_render,
71255
- handlervue_type_template_id_6434fb72_scoped_true_staticRenderFns,
71320
+ handlervue_type_template_id_45fffc05_scoped_true_render,
71321
+ handlervue_type_template_id_45fffc05_scoped_true_staticRenderFns,
71256
71322
  false,
71257
71323
  null,
71258
- "6434fb72",
71324
+ "45fffc05",
71259
71325
  null
71260
71326
 
71261
71327
  )
@@ -73333,6 +73399,13 @@ function simplicityTopvue_type_script_lang_js_asyncToGenerator(fn) { return func
73333
73399
  //
73334
73400
  //
73335
73401
  //
73402
+ //
73403
+ //
73404
+ //
73405
+ //
73406
+ //
73407
+ //
73408
+ //
73336
73409
 
73337
73410
 
73338
73411
 
@@ -73348,6 +73421,8 @@ function simplicityTopvue_type_script_lang_js_asyncToGenerator(fn) { return func
73348
73421
 
73349
73422
 
73350
73423
 
73424
+
73425
+
73351
73426
  var simplicityTopvue_type_script_lang_js_isIE = /MSIE|Trident/.test(navigator.userAgent);
73352
73427
  var simplicityTopvue_type_script_lang_js_systemMode = utils_util.win.systemMode || 'default';
73353
73428
  // let events = [
@@ -73610,6 +73685,10 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.win.systemMode
73610
73685
  queryChildMenu: {
73611
73686
  type: String,
73612
73687
  default: queryChildMenuUrl
73688
+ },
73689
+ showTipNums: {
73690
+ type: Boolean,
73691
+ default: true
73613
73692
  }
73614
73693
  },
73615
73694
  data: function data() {
@@ -74182,7 +74261,7 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.win.systemMode
74182
74261
  url: api_getVoteMeetingNum,
74183
74262
  params: {
74184
74263
  userId: utils_util.getStorage('userId'),
74185
- type: 1
74264
+ type: 10
74186
74265
  },
74187
74266
  method: 'get'
74188
74267
  }).then(function (res) {
@@ -74660,7 +74739,7 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.win.systemMode
74660
74739
 
74661
74740
  this.menus = rebuildMenu;
74662
74741
  this.setTips(this.menus);
74663
- utils_store.set('nav', this.menus);
74742
+ // store.set('nav', this.menus);
74664
74743
  var obj = this.getMenu(this.menus, this.indexUrl);
74665
74744
  obj = obj ? JSON.parse(JSON.stringify(obj)) : {
74666
74745
  url: this.indexUrl,
@@ -74713,6 +74792,7 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.win.systemMode
74713
74792
  var url = res.url;
74714
74793
 
74715
74794
  var urls = url.split('?');
74795
+ console.log(res);
74716
74796
  if (urls[0].indexOf('.js') > 1 && !simplicityTopvue_type_script_lang_js_isIE) {
74717
74797
  res.method = 'wujie';
74718
74798
  if (!res.appCode) {
@@ -74825,6 +74905,8 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.win.systemMode
74825
74905
  setTips: function setTips(obj) {
74826
74906
  var _this12 = this;
74827
74907
 
74908
+ // 不显示菜单气泡提醒
74909
+ if (!this.showTipNums) return;
74828
74910
  if (Array.isArray(obj)) {
74829
74911
  obj.forEach(function (item) {
74830
74912
  _this12.setTips(item);
@@ -75045,17 +75127,55 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.win.systemMode
75045
75127
  this.webSocket.destroy();
75046
75128
  }
75047
75129
  },
75130
+ testReloadPage: function testReloadPage() {
75131
+ this.handleRefresh(1);
75132
+ },
75048
75133
 
75049
75134
  /**
75050
75135
  * @desc:刷新选中iframe页签
75051
75136
  * @author huangbo
75052
75137
  * @date 2024年9月7日
75053
75138
  **/
75054
- handleRefresh: function handleRefresh() {
75139
+ handleRefresh: function handleRefresh(arg) {
75055
75140
  this.getNums();
75141
+ console.log(arg, 'arg');
75056
75142
  if (window.top.refreshList) {
75057
75143
  window.top.refreshList();
75058
75144
  }
75145
+ if (arg != undefined) {
75146
+ var tab = this.currentPage;
75147
+ if (tab.appCode == 'indexUrl') return;
75148
+ if (simplicityTopvue_type_script_lang_js_isIE || tab.method === 'iframe') {
75149
+ if (arg && arg === 'pageData') {
75150
+ var iframe = document.getElementById(tab.id || tab.appCode);
75151
+ var source = tab.url;
75152
+ if (source && !utils_util.startWith(source, ['http', 'https'], true)) {
75153
+ source = location.origin + source.replace('./', '/');
75154
+ }
75155
+ !iframe && (iframe = document.getElementById(this.iframeId));
75156
+ iframe && iframe.contentWindow.postMessage({ method: 'pageData' }, source || '*');
75157
+ } else {
75158
+ this.$set(this.currentPage, 'url', utils_util.handlerUrl(tab.url));
75159
+ }
75160
+ return;
75161
+ }
75162
+ if (tab.method === 'wujie' && tab.appCode) {
75163
+ if (arg && arg === 'pageData') {
75164
+ external_wujie_vue2_default.a.$emit('pageData', tab);
75165
+ } else {
75166
+ window.document.querySelector('iframe[name=' + tab.appCode + ']').contentWindow.location.reload(true);
75167
+ }
75168
+ return;
75169
+ }
75170
+ if (tab.method === 'router') {
75171
+ if (arg && arg === 'pageData') {
75172
+ var bus = this.bus || this.$root.Bus;
75173
+ bus.$emit('pageData', tab);
75174
+ } else {
75175
+ this.$set(this.currentPage, 'keys', utils_util.uuid());
75176
+ }
75177
+ }
75178
+ }
75059
75179
  },
75060
75180
 
75061
75181
  /**
@@ -75183,7 +75303,6 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.win.systemMode
75183
75303
  // util.win.open(this.doorIndex, '_self');
75184
75304
  this.currentPage = simplicityTopvue_type_script_lang_js_extends({}, this.homePage);
75185
75305
  this.appCodes = 'indexUrl';
75186
- console.log(this.currentPage, 'this.currentPage');
75187
75306
  break;
75188
75307
  case 'userinfo':
75189
75308
  this.$refs.user.handleOpen();
@@ -75389,7 +75508,6 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.win.systemMode
75389
75508
  handleSelect: function handleSelect(res) {
75390
75509
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
75391
75510
 
75392
- console.log(res, 'handleSelect');
75393
75511
  var node = res.node ? res.node : res;
75394
75512
  if (node.urlopenmode == 1 || node.openModel == 1) {
75395
75513
  utils_util.win.open(node.url || node.menuurl);
@@ -75399,11 +75517,12 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.win.systemMode
75399
75517
  var apps = node;
75400
75518
  var param = params;
75401
75519
  var reload = true;
75402
- if (typeof res === 'string') {
75403
- apps = res.split(',');
75520
+ if (typeof node === 'string') {
75521
+ apps = node.split(',');
75404
75522
  } else if (utils_util.isObject(node)) {
75405
75523
  var appCode = node.appCode || node.menuCode;
75406
- apps = Array.isArray(appCode) ? appCode : appCode.split(',');
75524
+ var id = node.id || node.menuId;
75525
+ apps = appCode ? Array.isArray(appCode) ? appCode : appCode.split(',') : [id];
75407
75526
  node.param && (param = simplicityTopvue_type_script_lang_js_extends({}, node.param, params));
75408
75527
  reload = Object.prototype.hasOwnProperty.call(node, 'reload') ? node.reload : true;
75409
75528
  }
@@ -75412,6 +75531,7 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.win.systemMode
75412
75531
  currentPage = _findMenuById.currentPage,
75413
75532
  fourthTabs = _findMenuById.fourthTabs;
75414
75533
 
75534
+ console.log('fourthTabs', fourthTabs, 'currentPage', currentPage);
75415
75535
  if (currentPage) {
75416
75536
  this.currentPage = {};
75417
75537
  this.fourthTabs = [];
@@ -75423,7 +75543,7 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.win.systemMode
75423
75543
  this.currentPage.url = utils_util.handlerUrl(this.currentPage.url, param);
75424
75544
  }
75425
75545
  this.tabActiveName = this.currentPage.id;
75426
- this.appCodes = this.currentPage.appCode;
75546
+ this.appCodes = this.currentPage.appCode || this.currentPage.id;
75427
75547
  } else {
75428
75548
  this.fourthTabs = fourthTabs;
75429
75549
  this.currentPage = this.setIframeType(currentPage);
@@ -75544,11 +75664,11 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.win.systemMode
75544
75664
 
75545
75665
  var simplicityTop_component = normalizeComponent(
75546
75666
  src_simplicityTopvue_type_script_lang_js_,
75547
- simplicityTopvue_type_template_id_06dd3ec1_scoped_true_render,
75548
- simplicityTopvue_type_template_id_06dd3ec1_scoped_true_staticRenderFns,
75667
+ simplicityTopvue_type_template_id_48712a0c_scoped_true_render,
75668
+ simplicityTopvue_type_template_id_48712a0c_scoped_true_staticRenderFns,
75549
75669
  false,
75550
75670
  null,
75551
- "06dd3ec1",
75671
+ "48712a0c",
75552
75672
  null
75553
75673
 
75554
75674
  )
@@ -79680,7 +79800,11 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
79680
79800
  type: Number,
79681
79801
  default: 3000
79682
79802
  },
79683
- multiple: Boolean
79803
+ multiple: Boolean,
79804
+ changeThemeReload: {
79805
+ type: Boolean,
79806
+ default: false
79807
+ }
79684
79808
  },
79685
79809
  computed: {
79686
79810
  _launchImage: function _launchImage() {
@@ -79702,6 +79826,10 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
79702
79826
  };
79703
79827
  },
79704
79828
  created: function created() {
79829
+ var layoutType = localStorage.getItem('layoutType');
79830
+ if (layoutType) {
79831
+ this.layoutType = layoutType;
79832
+ }
79705
79833
  this.params = utils_util.getParams() || {};
79706
79834
  this.sysCode = this.params.sysCode;
79707
79835
  this.appCode = this.params.appCode || this.params.appcode;
@@ -79720,10 +79848,6 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
79720
79848
  this.$nextTick(function () {
79721
79849
  // 当主题变化时,重新绑定一次事件 防止事件丢失 或者绑定错误
79722
79850
  _this.bindEvent();
79723
- var layoutType = localStorage.getItem('layoutType');
79724
- if (layoutType) {
79725
- _this.layoutType = layoutType;
79726
- }
79727
79851
  });
79728
79852
  },
79729
79853
 
@@ -79832,20 +79956,29 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
79832
79956
  if (active) {
79833
79957
  this.layout = active;
79834
79958
  }
79959
+ // 重新加载页面,刷新布局风格配置信息
79960
+ // 如果不刷新,会导致事件绑定出现问题,导致事件丢失
79961
+ if (this.changeThemeReload) {
79962
+ window.top.location.reload();
79963
+ return;
79964
+ }
79965
+
79835
79966
  var mainConfig = utils_util.getStorage('mainConfig');
79836
- if (mainConfig) {
79837
- mainConfig = JSON.parse(mainConfig);
79838
- this.$nextTick(function () {
79967
+ // 切换布局风格后,重新绑定事件
79968
+ this.$nextTick(function () {
79969
+ _this3.bindEvent();
79970
+ if (mainConfig) {
79971
+ mainConfig = JSON.parse(mainConfig);
79839
79972
  _this3.$refs.main.init(mainConfig, true);
79840
79973
  utils_util.getMainConfig(function (res) {
79841
79974
  _this3.$refs.main.init(res, false);
79842
79975
  });
79843
- });
79844
- } else {
79845
- utils_util.getMainConfig(function (res) {
79846
- _this3.$refs.main.init(res, true);
79847
- });
79848
- }
79976
+ } else {
79977
+ utils_util.getMainConfig(function (res) {
79978
+ _this3.$refs.main.init(res, true);
79979
+ });
79980
+ }
79981
+ });
79849
79982
  },
79850
79983
 
79851
79984
  /**
@@ -80164,7 +80297,6 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
80164
80297
  **/
80165
80298
  busEmit: function busEmit(event, args) {
80166
80299
  console.log('busEmit', event, args);
80167
-
80168
80300
  external_wujie_vue2_default.a.bus.$emit(event, args);
80169
80301
  var iframes = document.getElementsByTagName('iframe');
80170
80302
  for (var i = 0; i < iframes.length; i++) {
@@ -80196,8 +80328,8 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
80196
80328
 
80197
80329
  var main_src_main_component = normalizeComponent(
80198
80330
  packages_main_src_mainvue_type_script_lang_js_,
80199
- mainvue_type_template_id_0fbde292_render,
80200
- mainvue_type_template_id_0fbde292_staticRenderFns,
80331
+ mainvue_type_template_id_48272c28_render,
80332
+ mainvue_type_template_id_48272c28_staticRenderFns,
80201
80333
  false,
80202
80334
  null,
80203
80335
  null,
@@ -100897,7 +101029,7 @@ if (typeof window !== 'undefined' && window.Vue) {
100897
101029
  }
100898
101030
 
100899
101031
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
100900
- version: '0.7.75',
101032
+ version: '0.7.77',
100901
101033
  install: install,
100902
101034
  Button: packages_button,
100903
101035
  ButtonGroup: button_group,