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
package/lib/main.js CHANGED
@@ -399,7 +399,6 @@ var util_ajax = function ajax(_ref) {
399
399
  loading && loading.close();
400
400
  if (response.headers.authorization) {
401
401
  response.headers.authorization !== getStorage('token') && setStorage({
402
-
403
402
  key: ['token', 'Authorization'],
404
403
  value: response.headers.authorization
405
404
  });
@@ -736,7 +735,11 @@ var ajaxStream = function ajaxStream(_ref2) {
736
735
  } else if (error.response) {
737
736
  errorMessage = '\u670D\u52A1\u5668\u9519\u8BEF (' + error.response.status + '): ' + (error.response.data || '未知错误');
738
737
  }
739
- fail && fail({ status: 0, message: { role: 'assistant', content: errorMessage }, controller: controller });
738
+ fail && fail({
739
+ status: 0,
740
+ message: { role: 'assistant', content: errorMessage },
741
+ controller: controller
742
+ });
740
743
  } finally {
741
744
  final && final({ status: -1, message: null, controller: controller });
742
745
  }
@@ -1502,7 +1505,7 @@ var formatDate = function formatDate(date, fmt) {
1502
1505
  'm+': obj.getMinutes(), // 分钟 (0-59)
1503
1506
  's+': obj.getSeconds(), // 秒 (0-59)
1504
1507
  'q+': quarter[Math.floor(monthNum / 3)], // 季度 (一~四)
1505
- 'S': obj.getMilliseconds() // 毫秒 (0-999)
1508
+ S: obj.getMilliseconds() // 毫秒 (0-999)
1506
1509
  };
1507
1510
 
1508
1511
  // 4. 处理年份
@@ -2161,26 +2164,51 @@ var getZoom = function getZoom() {
2161
2164
 
2162
2165
  var handlerUrl = function handlerUrl(url, param, before) {
2163
2166
  var arry = url.split('?');
2164
- if (arry.length > 2) {
2165
- var ary = arry.splice(1, arry.length);
2166
- arry.push(ary.join('?'));
2167
- }
2168
- if (arry.length > 1) {
2169
- if (arry[1].indexOf('_tt') > -1) {
2170
- var search = arry[1].split('&');
2171
- for (var i in search) {
2172
- if (search[i].indexOf('_tt') > -1) {
2173
- search[i] = '_tt=' + new Date().getTime();
2167
+ // /archives-ui/webpack/index.html?cookie=1#/fullTextSearch
2168
+ if (arry.length > 1 && arry[1].indexOf('#/') > -1) {
2169
+ // 分割成 arry[0] = /archives-ui/webpack/index.html 和 arry[1] = cookie=1#/fullTextSearch
2170
+ var hashs = arry[1].split('#/'); // 分割成 hashs[0] = cookie=1 和 hashs[1] = fullTextSearch
2171
+ if (hashs[1].indexOf('?') === -1) {
2172
+ hashs[1] += '?_tt=' + new Date().getTime();
2173
+ } else {
2174
+ if (hashs[1].indexOf('_tt') === -1) {
2175
+ hashs[1] += '&_tt=' + new Date().getTime();
2176
+ } else {
2177
+ var search = hashs[1].split('&');
2178
+ for (var i in search) {
2179
+ if (search[i].indexOf('_tt') > -1) {
2180
+ search[i] = '_tt=' + new Date().getTime();
2181
+ }
2174
2182
  }
2183
+ hashs[1] = search.join('&');
2175
2184
  }
2176
- arry[1] = search.join('&');
2177
- } else {
2178
- arry[1] += '&_tt=' + new Date().getTime();
2179
2185
  }
2180
- url = arry.join('?');
2186
+ // /archives-ui/webpack/index.html?cookie=1#/fullTextSearch&_tt=1764839214926&false
2187
+ // 会不会存在 参数中也有#/
2188
+ url = arry[0] + '?' + hashs.join('#/');
2181
2189
  } else {
2182
- url += '?_tt=' + new Date().getTime();
2190
+ if (arry.length > 2) {
2191
+ var ary = arry.splice(1, arry.length);
2192
+ arry.push(ary.join('?'));
2193
+ }
2194
+ if (arry.length > 1) {
2195
+ if (arry[1].indexOf('_tt') > -1) {
2196
+ var _search = arry[1].split('&');
2197
+ for (var _i7 in _search) {
2198
+ if (_search[_i7].indexOf('_tt') > -1) {
2199
+ _search[_i7] = '_tt=' + new Date().getTime();
2200
+ }
2201
+ }
2202
+ arry[1] = _search.join('&');
2203
+ } else {
2204
+ arry[1] += '&_tt=' + new Date().getTime();
2205
+ }
2206
+ url = arry.join('?');
2207
+ } else {
2208
+ url += '?_tt=' + new Date().getTime();
2209
+ }
2183
2210
  }
2211
+
2184
2212
  if (param) {
2185
2213
  var str = queryParams(param);
2186
2214
  url += '&' + str;
@@ -2476,7 +2504,11 @@ var isLogined = function () {
2476
2504
  break;
2477
2505
  }
2478
2506
 
2479
- loadingInstance = external_eoss_element_["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
2507
+ loadingInstance = external_eoss_element_["Loading"].service({
2508
+ text: '页面加载中',
2509
+ spinner: 'el-icon-loading',
2510
+ background: 'rgba(0, 0, 0, 0.65)'
2511
+ });
2480
2512
  _context.next = 17;
2481
2513
  return util_ajax({
2482
2514
  method: 'post',
@@ -3574,10 +3606,10 @@ var setStorage = function setStorage(_ref18) {
3574
3606
  }
3575
3607
  }
3576
3608
  } else {
3577
- for (var _i7 in key) {
3578
- var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
3579
- localStorage.setItem(_i7, val);
3580
- if (_i7 === 'token') {
3609
+ for (var _i8 in key) {
3610
+ var val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
3611
+ localStorage.setItem(_i8, val);
3612
+ if (_i8 === 'token') {
3581
3613
  setCookie('token', val);
3582
3614
  }
3583
3615
  }
@@ -3589,17 +3621,17 @@ var setStorage = function setStorage(_ref18) {
3589
3621
  setCookie('token', value);
3590
3622
  }
3591
3623
  } else if (Array.isArray(key)) {
3592
- for (var _i8 in key) {
3593
- sessionStorage.setItem(key[_i8], value);
3594
- if (key[_i8] === 'token') {
3624
+ for (var _i9 in key) {
3625
+ sessionStorage.setItem(key[_i9], value);
3626
+ if (key[_i9] === 'token') {
3595
3627
  setCookie('token', value);
3596
3628
  }
3597
3629
  }
3598
3630
  } else {
3599
- for (var _i9 in key) {
3600
- var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
3601
- sessionStorage.setItem(_i9, _val);
3602
- if (_i9 === 'token') {
3631
+ for (var _i10 in key) {
3632
+ var _val = _typeof(key[_i10]) === 'object' ? JSON.stringify(key[_i10]) : key[_i10];
3633
+ sessionStorage.setItem(_i10, _val);
3634
+ if (_i10 === 'token') {
3603
3635
  setCookie('token', _val);
3604
3636
  }
3605
3637
  }
@@ -3727,16 +3759,16 @@ var setCookie = function setCookie(name, value) {
3727
3759
  **/
3728
3760
  var getCookie = function getCookie(name) {
3729
3761
  var cookies = document.cookie.split(';');
3730
- for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i10 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
3762
+ for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i11 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
3731
3763
  var _ref19;
3732
3764
 
3733
3765
  if (_isArray) {
3734
- if (_i10 >= _iterator.length) break;
3735
- _ref19 = _iterator[_i10++];
3766
+ if (_i11 >= _iterator.length) break;
3767
+ _ref19 = _iterator[_i11++];
3736
3768
  } else {
3737
- _i10 = _iterator.next();
3738
- if (_i10.done) break;
3739
- _ref19 = _i10.value;
3769
+ _i11 = _iterator.next();
3770
+ if (_i11.done) break;
3771
+ _ref19 = _i11.value;
3740
3772
  }
3741
3773
 
3742
3774
  var cookie = _ref19;
@@ -5193,7 +5225,7 @@ module.exports = function (css) {
5193
5225
  // ESM COMPAT FLAG
5194
5226
  __webpack_require__.r(__webpack_exports__);
5195
5227
 
5196
- // 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&
5228
+ // 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&
5197
5229
  var render = function () {
5198
5230
  var _vm = this
5199
5231
  var _h = _vm.$createElement
@@ -5341,13 +5373,13 @@ var staticRenderFns = []
5341
5373
  render._withStripped = true
5342
5374
 
5343
5375
 
5344
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=0fbde292&
5376
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=48272c28&
5345
5377
 
5346
5378
  // EXTERNAL MODULE: ./src/config/image.js
5347
5379
  var config_image = __webpack_require__(19);
5348
5380
 
5349
- // 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&
5350
- var simplicityvue_type_template_id_6808c3e5_scoped_true_render = function () {
5381
+ // 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&
5382
+ var simplicityvue_type_template_id_560d8a6d_scoped_true_render = function () {
5351
5383
  var _vm = this
5352
5384
  var _h = _vm.$createElement
5353
5385
  var _c = _vm._self._c || _h
@@ -6113,11 +6145,11 @@ var simplicityvue_type_template_id_6808c3e5_scoped_true_render = function () {
6113
6145
  ),
6114
6146
  ])
6115
6147
  }
6116
- var simplicityvue_type_template_id_6808c3e5_scoped_true_staticRenderFns = []
6117
- simplicityvue_type_template_id_6808c3e5_scoped_true_render._withStripped = true
6148
+ var simplicityvue_type_template_id_560d8a6d_scoped_true_staticRenderFns = []
6149
+ simplicityvue_type_template_id_560d8a6d_scoped_true_render._withStripped = true
6118
6150
 
6119
6151
 
6120
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=6808c3e5&scoped=true&
6152
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=560d8a6d&scoped=true&
6121
6153
 
6122
6154
  // 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&
6123
6155
  var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
@@ -12345,6 +12377,10 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
12345
12377
  type: Number,
12346
12378
  default: 220
12347
12379
  },
12380
+ showTipNums: {
12381
+ type: Boolean,
12382
+ default: true
12383
+ },
12348
12384
  //路由方式
12349
12385
  routeType: String,
12350
12386
  host: {
@@ -13126,6 +13162,8 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
13126
13162
  setTips: function setTips(obj) {
13127
13163
  var _this4 = this;
13128
13164
 
13165
+ // 不显示菜单气泡提醒
13166
+ if (!this.showTipNums) return;
13129
13167
  if (!this.menuTips || !Object.keys(this.menuTips).length) {
13130
13168
  return false;
13131
13169
  }
@@ -13974,18 +14012,18 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
13974
14012
 
13975
14013
  var simplicity_component = Object(componentNormalizer["a" /* default */])(
13976
14014
  src_simplicityvue_type_script_lang_js_,
13977
- simplicityvue_type_template_id_6808c3e5_scoped_true_render,
13978
- simplicityvue_type_template_id_6808c3e5_scoped_true_staticRenderFns,
14015
+ simplicityvue_type_template_id_560d8a6d_scoped_true_render,
14016
+ simplicityvue_type_template_id_560d8a6d_scoped_true_staticRenderFns,
13979
14017
  false,
13980
14018
  null,
13981
- "6808c3e5",
14019
+ "560d8a6d",
13982
14020
  null
13983
14021
 
13984
14022
  )
13985
14023
 
13986
14024
  /* harmony default export */ var simplicity = (simplicity_component.exports);
13987
- // 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&
13988
- var simplicityTopvue_type_template_id_06dd3ec1_scoped_true_render = function () {
14025
+ // 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&
14026
+ var simplicityTopvue_type_template_id_48712a0c_scoped_true_render = function () {
13989
14027
  var _vm = this
13990
14028
  var _h = _vm.$createElement
13991
14029
  var _c = _vm._self._c || _h
@@ -14179,7 +14217,16 @@ var simplicityTopvue_type_template_id_06dd3ec1_scoped_true_render = function ()
14179
14217
  "div",
14180
14218
  { staticClass: "es-simplicitytop-menu-item" },
14181
14219
  [
14182
- _vm._m(0),
14220
+ _c("div", { staticClass: "es-simplicitytop-menu-title" }, [
14221
+ _c(
14222
+ "span",
14223
+ {
14224
+ staticClass: "es-simplicitytop-menu-name",
14225
+ on: { click: _vm.testReloadPage },
14226
+ },
14227
+ [_vm._v("我的快捷")]
14228
+ ),
14229
+ ]),
14183
14230
  _c(
14184
14231
  "el-scrollbar",
14185
14232
  { staticStyle: { height: "calc(100% - 45px)" } },
@@ -14505,6 +14552,10 @@ var simplicityTopvue_type_template_id_06dd3ec1_scoped_true_render = function ()
14505
14552
  false
14506
14553
  )
14507
14554
  ),
14555
+ _c("notice", {
14556
+ attrs: { data: _vm.sysMsg, winopen: _vm.winopen },
14557
+ on: { opened: _vm.handleOpened },
14558
+ }),
14508
14559
  _c(
14509
14560
  "es-dialog",
14510
14561
  {
@@ -14539,22 +14590,11 @@ var simplicityTopvue_type_template_id_06dd3ec1_scoped_true_render = function ()
14539
14590
  1
14540
14591
  )
14541
14592
  }
14542
- var simplicityTopvue_type_template_id_06dd3ec1_scoped_true_staticRenderFns = [
14543
- function () {
14544
- var _vm = this
14545
- var _h = _vm.$createElement
14546
- var _c = _vm._self._c || _h
14547
- return _c("div", { staticClass: "es-simplicitytop-menu-title" }, [
14548
- _c("span", { staticClass: "es-simplicitytop-menu-name" }, [
14549
- _vm._v("我的快捷"),
14550
- ]),
14551
- ])
14552
- },
14553
- ]
14554
- simplicityTopvue_type_template_id_06dd3ec1_scoped_true_render._withStripped = true
14593
+ var simplicityTopvue_type_template_id_48712a0c_scoped_true_staticRenderFns = []
14594
+ simplicityTopvue_type_template_id_48712a0c_scoped_true_render._withStripped = true
14555
14595
 
14556
14596
 
14557
- // CONCATENATED MODULE: ./packages/main/src/simplicityTop/index.vue?vue&type=template&id=06dd3ec1&scoped=true&
14597
+ // CONCATENATED MODULE: ./packages/main/src/simplicityTop/index.vue?vue&type=template&id=48712a0c&scoped=true&
14558
14598
 
14559
14599
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
14560
14600
  var regenerator_ = __webpack_require__(4);
@@ -14709,8 +14749,8 @@ var avatar_component = Object(componentNormalizer["a" /* default */])(
14709
14749
  )
14710
14750
 
14711
14751
  /* harmony default export */ var simplicityTop_avatar = (avatar_component.exports);
14712
- // 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&
14713
- var handlervue_type_template_id_6434fb72_scoped_true_render = function () {
14752
+ // 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&
14753
+ var handlervue_type_template_id_45fffc05_scoped_true_render = function () {
14714
14754
  var _vm = this
14715
14755
  var _h = _vm.$createElement
14716
14756
  var _c = _vm._self._c || _h
@@ -14802,6 +14842,23 @@ var handlervue_type_template_id_6434fb72_scoped_true_render = function () {
14802
14842
  _c("span", { staticClass: "es-simplicitytop-handler-text" }, [
14803
14843
  _vm._v(_vm._s(item.text)),
14804
14844
  ]),
14845
+ item.type == "notice" && _vm.nums[item.type] > 0
14846
+ ? _c(
14847
+ "div",
14848
+ { staticClass: "es-simplicitytop-handler-badge" },
14849
+ [
14850
+ _vm._v(
14851
+ "\n " +
14852
+ _vm._s(
14853
+ _vm.nums[item.type] > 99
14854
+ ? "99+"
14855
+ : _vm.nums[item.type]
14856
+ ) +
14857
+ "\n "
14858
+ ),
14859
+ ]
14860
+ )
14861
+ : _vm._e(),
14805
14862
  ],
14806
14863
  1
14807
14864
  ),
@@ -14811,11 +14868,11 @@ var handlervue_type_template_id_6434fb72_scoped_true_render = function () {
14811
14868
  2
14812
14869
  )
14813
14870
  }
14814
- var handlervue_type_template_id_6434fb72_scoped_true_staticRenderFns = []
14815
- handlervue_type_template_id_6434fb72_scoped_true_render._withStripped = true
14871
+ var handlervue_type_template_id_45fffc05_scoped_true_staticRenderFns = []
14872
+ handlervue_type_template_id_45fffc05_scoped_true_render._withStripped = true
14816
14873
 
14817
14874
 
14818
- // CONCATENATED MODULE: ./packages/main/src/simplicityTop/handler.vue?vue&type=template&id=6434fb72&scoped=true&
14875
+ // CONCATENATED MODULE: ./packages/main/src/simplicityTop/handler.vue?vue&type=template&id=45fffc05&scoped=true&
14819
14876
 
14820
14877
  // 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&
14821
14878
  var handlervue_type_script_lang_js_data;
@@ -14870,6 +14927,12 @@ var handlervue_type_script_lang_js_data;
14870
14927
  //
14871
14928
  //
14872
14929
  //
14930
+ //
14931
+ //
14932
+ //
14933
+ //
14934
+ //
14935
+ //
14873
14936
 
14874
14937
 
14875
14938
 
@@ -15029,11 +15092,11 @@ var handlervue_type_script_lang_js_data;
15029
15092
 
15030
15093
  var simplicityTop_handler_component = Object(componentNormalizer["a" /* default */])(
15031
15094
  src_simplicityTop_handlervue_type_script_lang_js_,
15032
- handlervue_type_template_id_6434fb72_scoped_true_render,
15033
- handlervue_type_template_id_6434fb72_scoped_true_staticRenderFns,
15095
+ handlervue_type_template_id_45fffc05_scoped_true_render,
15096
+ handlervue_type_template_id_45fffc05_scoped_true_staticRenderFns,
15034
15097
  false,
15035
15098
  null,
15036
- "6434fb72",
15099
+ "45fffc05",
15037
15100
  null
15038
15101
 
15039
15102
  )
@@ -17111,6 +17174,13 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
17111
17174
  //
17112
17175
  //
17113
17176
  //
17177
+ //
17178
+ //
17179
+ //
17180
+ //
17181
+ //
17182
+ //
17183
+ //
17114
17184
 
17115
17185
 
17116
17186
 
@@ -17126,6 +17196,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
17126
17196
 
17127
17197
 
17128
17198
 
17199
+
17200
+
17129
17201
  var simplicityTopvue_type_script_lang_js_isIE = /MSIE|Trident/.test(navigator.userAgent);
17130
17202
  var simplicityTopvue_type_script_lang_js_systemMode = util["a" /* default */].win.systemMode || 'default';
17131
17203
  // let events = [
@@ -17388,6 +17460,10 @@ var simplicityTopvue_type_script_lang_js_systemMode = util["a" /* default */].wi
17388
17460
  queryChildMenu: {
17389
17461
  type: String,
17390
17462
  default: api["Fb" /* queryChildMenuUrl */]
17463
+ },
17464
+ showTipNums: {
17465
+ type: Boolean,
17466
+ default: true
17391
17467
  }
17392
17468
  },
17393
17469
  data: function data() {
@@ -17960,7 +18036,7 @@ var simplicityTopvue_type_script_lang_js_systemMode = util["a" /* default */].wi
17960
18036
  url: api["jb" /* getVoteMeetingNum */],
17961
18037
  params: {
17962
18038
  userId: util["a" /* default */].getStorage('userId'),
17963
- type: 1
18039
+ type: 10
17964
18040
  },
17965
18041
  method: 'get'
17966
18042
  }).then(function (res) {
@@ -18438,7 +18514,7 @@ var simplicityTopvue_type_script_lang_js_systemMode = util["a" /* default */].wi
18438
18514
 
18439
18515
  this.menus = rebuildMenu;
18440
18516
  this.setTips(this.menus);
18441
- store["a" /* default */].set('nav', this.menus);
18517
+ // store.set('nav', this.menus);
18442
18518
  var obj = this.getMenu(this.menus, this.indexUrl);
18443
18519
  obj = obj ? JSON.parse(JSON.stringify(obj)) : {
18444
18520
  url: this.indexUrl,
@@ -18491,6 +18567,7 @@ var simplicityTopvue_type_script_lang_js_systemMode = util["a" /* default */].wi
18491
18567
  var url = res.url;
18492
18568
 
18493
18569
  var urls = url.split('?');
18570
+ console.log(res);
18494
18571
  if (urls[0].indexOf('.js') > 1 && !simplicityTopvue_type_script_lang_js_isIE) {
18495
18572
  res.method = 'wujie';
18496
18573
  if (!res.appCode) {
@@ -18603,6 +18680,8 @@ var simplicityTopvue_type_script_lang_js_systemMode = util["a" /* default */].wi
18603
18680
  setTips: function setTips(obj) {
18604
18681
  var _this12 = this;
18605
18682
 
18683
+ // 不显示菜单气泡提醒
18684
+ if (!this.showTipNums) return;
18606
18685
  if (Array.isArray(obj)) {
18607
18686
  obj.forEach(function (item) {
18608
18687
  _this12.setTips(item);
@@ -18823,17 +18902,55 @@ var simplicityTopvue_type_script_lang_js_systemMode = util["a" /* default */].wi
18823
18902
  this.webSocket.destroy();
18824
18903
  }
18825
18904
  },
18905
+ testReloadPage: function testReloadPage() {
18906
+ this.handleRefresh(1);
18907
+ },
18826
18908
 
18827
18909
  /**
18828
18910
  * @desc:刷新选中iframe页签
18829
18911
  * @author huangbo
18830
18912
  * @date 2024年9月7日
18831
18913
  **/
18832
- handleRefresh: function handleRefresh() {
18914
+ handleRefresh: function handleRefresh(arg) {
18833
18915
  this.getNums();
18916
+ console.log(arg, 'arg');
18834
18917
  if (window.top.refreshList) {
18835
18918
  window.top.refreshList();
18836
18919
  }
18920
+ if (arg != undefined) {
18921
+ var tab = this.currentPage;
18922
+ if (tab.appCode == 'indexUrl') return;
18923
+ if (simplicityTopvue_type_script_lang_js_isIE || tab.method === 'iframe') {
18924
+ if (arg && arg === 'pageData') {
18925
+ var iframe = document.getElementById(tab.id || tab.appCode);
18926
+ var source = tab.url;
18927
+ if (source && !util["a" /* default */].startWith(source, ['http', 'https'], true)) {
18928
+ source = location.origin + source.replace('./', '/');
18929
+ }
18930
+ !iframe && (iframe = document.getElementById(this.iframeId));
18931
+ iframe && iframe.contentWindow.postMessage({ method: 'pageData' }, source || '*');
18932
+ } else {
18933
+ this.$set(this.currentPage, 'url', util["a" /* default */].handlerUrl(tab.url));
18934
+ }
18935
+ return;
18936
+ }
18937
+ if (tab.method === 'wujie' && tab.appCode) {
18938
+ if (arg && arg === 'pageData') {
18939
+ external_wujie_vue2_default.a.$emit('pageData', tab);
18940
+ } else {
18941
+ window.document.querySelector('iframe[name=' + tab.appCode + ']').contentWindow.location.reload(true);
18942
+ }
18943
+ return;
18944
+ }
18945
+ if (tab.method === 'router') {
18946
+ if (arg && arg === 'pageData') {
18947
+ var bus = this.bus || this.$root.Bus;
18948
+ bus.$emit('pageData', tab);
18949
+ } else {
18950
+ this.$set(this.currentPage, 'keys', util["a" /* default */].uuid());
18951
+ }
18952
+ }
18953
+ }
18837
18954
  },
18838
18955
 
18839
18956
  /**
@@ -18961,7 +19078,6 @@ var simplicityTopvue_type_script_lang_js_systemMode = util["a" /* default */].wi
18961
19078
  // util.win.open(this.doorIndex, '_self');
18962
19079
  this.currentPage = simplicityTopvue_type_script_lang_js_extends({}, this.homePage);
18963
19080
  this.appCodes = 'indexUrl';
18964
- console.log(this.currentPage, 'this.currentPage');
18965
19081
  break;
18966
19082
  case 'userinfo':
18967
19083
  this.$refs.user.handleOpen();
@@ -19167,7 +19283,6 @@ var simplicityTopvue_type_script_lang_js_systemMode = util["a" /* default */].wi
19167
19283
  handleSelect: function handleSelect(res) {
19168
19284
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19169
19285
 
19170
- console.log(res, 'handleSelect');
19171
19286
  var node = res.node ? res.node : res;
19172
19287
  if (node.urlopenmode == 1 || node.openModel == 1) {
19173
19288
  util["a" /* default */].win.open(node.url || node.menuurl);
@@ -19177,11 +19292,12 @@ var simplicityTopvue_type_script_lang_js_systemMode = util["a" /* default */].wi
19177
19292
  var apps = node;
19178
19293
  var param = params;
19179
19294
  var reload = true;
19180
- if (typeof res === 'string') {
19181
- apps = res.split(',');
19295
+ if (typeof node === 'string') {
19296
+ apps = node.split(',');
19182
19297
  } else if (util["a" /* default */].isObject(node)) {
19183
19298
  var appCode = node.appCode || node.menuCode;
19184
- apps = Array.isArray(appCode) ? appCode : appCode.split(',');
19299
+ var id = node.id || node.menuId;
19300
+ apps = appCode ? Array.isArray(appCode) ? appCode : appCode.split(',') : [id];
19185
19301
  node.param && (param = simplicityTopvue_type_script_lang_js_extends({}, node.param, params));
19186
19302
  reload = Object.prototype.hasOwnProperty.call(node, 'reload') ? node.reload : true;
19187
19303
  }
@@ -19190,6 +19306,7 @@ var simplicityTopvue_type_script_lang_js_systemMode = util["a" /* default */].wi
19190
19306
  currentPage = _findMenuById.currentPage,
19191
19307
  fourthTabs = _findMenuById.fourthTabs;
19192
19308
 
19309
+ console.log('fourthTabs', fourthTabs, 'currentPage', currentPage);
19193
19310
  if (currentPage) {
19194
19311
  this.currentPage = {};
19195
19312
  this.fourthTabs = [];
@@ -19201,7 +19318,7 @@ var simplicityTopvue_type_script_lang_js_systemMode = util["a" /* default */].wi
19201
19318
  this.currentPage.url = util["a" /* default */].handlerUrl(this.currentPage.url, param);
19202
19319
  }
19203
19320
  this.tabActiveName = this.currentPage.id;
19204
- this.appCodes = this.currentPage.appCode;
19321
+ this.appCodes = this.currentPage.appCode || this.currentPage.id;
19205
19322
  } else {
19206
19323
  this.fourthTabs = fourthTabs;
19207
19324
  this.currentPage = this.setIframeType(currentPage);
@@ -19322,11 +19439,11 @@ var simplicityTopvue_type_script_lang_js_systemMode = util["a" /* default */].wi
19322
19439
 
19323
19440
  var simplicityTop_component = Object(componentNormalizer["a" /* default */])(
19324
19441
  src_simplicityTopvue_type_script_lang_js_,
19325
- simplicityTopvue_type_template_id_06dd3ec1_scoped_true_render,
19326
- simplicityTopvue_type_template_id_06dd3ec1_scoped_true_staticRenderFns,
19442
+ simplicityTopvue_type_template_id_48712a0c_scoped_true_render,
19443
+ simplicityTopvue_type_template_id_48712a0c_scoped_true_staticRenderFns,
19327
19444
  false,
19328
19445
  null,
19329
- "06dd3ec1",
19446
+ "48712a0c",
19330
19447
  null
19331
19448
 
19332
19449
  )
@@ -23458,7 +23575,11 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
23458
23575
  type: Number,
23459
23576
  default: 3000
23460
23577
  },
23461
- multiple: Boolean
23578
+ multiple: Boolean,
23579
+ changeThemeReload: {
23580
+ type: Boolean,
23581
+ default: false
23582
+ }
23462
23583
  },
23463
23584
  computed: {
23464
23585
  _launchImage: function _launchImage() {
@@ -23480,6 +23601,10 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
23480
23601
  };
23481
23602
  },
23482
23603
  created: function created() {
23604
+ var layoutType = localStorage.getItem('layoutType');
23605
+ if (layoutType) {
23606
+ this.layoutType = layoutType;
23607
+ }
23483
23608
  this.params = util["a" /* default */].getParams() || {};
23484
23609
  this.sysCode = this.params.sysCode;
23485
23610
  this.appCode = this.params.appCode || this.params.appcode;
@@ -23498,10 +23623,6 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
23498
23623
  this.$nextTick(function () {
23499
23624
  // 当主题变化时,重新绑定一次事件 防止事件丢失 或者绑定错误
23500
23625
  _this.bindEvent();
23501
- var layoutType = localStorage.getItem('layoutType');
23502
- if (layoutType) {
23503
- _this.layoutType = layoutType;
23504
- }
23505
23626
  });
23506
23627
  },
23507
23628
 
@@ -23610,20 +23731,29 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
23610
23731
  if (active) {
23611
23732
  this.layout = active;
23612
23733
  }
23734
+ // 重新加载页面,刷新布局风格配置信息
23735
+ // 如果不刷新,会导致事件绑定出现问题,导致事件丢失
23736
+ if (this.changeThemeReload) {
23737
+ window.top.location.reload();
23738
+ return;
23739
+ }
23740
+
23613
23741
  var mainConfig = util["a" /* default */].getStorage('mainConfig');
23614
- if (mainConfig) {
23615
- mainConfig = JSON.parse(mainConfig);
23616
- this.$nextTick(function () {
23742
+ // 切换布局风格后,重新绑定事件
23743
+ this.$nextTick(function () {
23744
+ _this3.bindEvent();
23745
+ if (mainConfig) {
23746
+ mainConfig = JSON.parse(mainConfig);
23617
23747
  _this3.$refs.main.init(mainConfig, true);
23618
23748
  util["a" /* default */].getMainConfig(function (res) {
23619
23749
  _this3.$refs.main.init(res, false);
23620
23750
  });
23621
- });
23622
- } else {
23623
- util["a" /* default */].getMainConfig(function (res) {
23624
- _this3.$refs.main.init(res, true);
23625
- });
23626
- }
23751
+ } else {
23752
+ util["a" /* default */].getMainConfig(function (res) {
23753
+ _this3.$refs.main.init(res, true);
23754
+ });
23755
+ }
23756
+ });
23627
23757
  },
23628
23758
 
23629
23759
  /**
@@ -23942,7 +24072,6 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
23942
24072
  **/
23943
24073
  busEmit: function busEmit(event, args) {
23944
24074
  console.log('busEmit', event, args);
23945
-
23946
24075
  external_wujie_vue2_default.a.bus.$emit(event, args);
23947
24076
  var iframes = document.getElementsByTagName('iframe');
23948
24077
  for (var i = 0; i < iframes.length; i++) {