eoss-ui 0.7.68 → 0.7.70

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
@@ -4574,8 +4574,8 @@ if(false) {}
4574
4574
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4575
4575
 
4576
4576
  "use strict";
4577
- /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_settings_vue_vue_type_style_index_0_id_96dd3768_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
4578
- /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_settings_vue_vue_type_style_index_0_id_96dd3768_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_settings_vue_vue_type_style_index_0_id_96dd3768_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
4577
+ /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_settings_vue_vue_type_style_index_0_id_b9929eaa_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
4578
+ /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_settings_vue_vue_type_style_index_0_id_b9929eaa_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_settings_vue_vue_type_style_index_0_id_b9929eaa_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
4579
4579
  /* unused harmony reexport * */
4580
4580
 
4581
4581
 
@@ -4585,7 +4585,7 @@ if(false) {}
4585
4585
 
4586
4586
  exports = module.exports = __webpack_require__(29)(false);
4587
4587
  // Module
4588
- exports.push([module.i, "\n.es-setting-top-nav-side[data-v-96dd3768]::before {\r\n content: '';\r\n display: block;\r\n position: absolute;\r\n left: 0;\r\n width: 8px;\r\n top: 10px;\r\n bottom: 0;\r\n z-index: 2;\r\n background-color: rgb(0, 80, 179);\n}\r\n", ""]);
4588
+ exports.push([module.i, "\n.es-setting-top-nav-side[data-v-b9929eaa]::before {\r\n content: '';\r\n display: block;\r\n position: absolute;\r\n left: 0;\r\n width: 8px;\r\n top: 10px;\r\n bottom: 0;\r\n z-index: 2;\r\n background-color: rgb(0, 80, 179);\n}\r\n", ""]);
4589
4589
 
4590
4590
 
4591
4591
 
@@ -5189,7 +5189,7 @@ module.exports = function (css) {
5189
5189
  // ESM COMPAT FLAG
5190
5190
  __webpack_require__.r(__webpack_exports__);
5191
5191
 
5192
- // 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=6ee4a0ee&
5192
+ // 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=08d4664a&
5193
5193
  var render = function () {
5194
5194
  var _vm = this
5195
5195
  var _h = _vm.$createElement
@@ -5337,13 +5337,13 @@ var staticRenderFns = []
5337
5337
  render._withStripped = true
5338
5338
 
5339
5339
 
5340
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=6ee4a0ee&
5340
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=08d4664a&
5341
5341
 
5342
5342
  // EXTERNAL MODULE: ./src/config/image.js
5343
5343
  var config_image = __webpack_require__(19);
5344
5344
 
5345
- // 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=7679eaf2&scoped=true&
5346
- var simplicityvue_type_template_id_7679eaf2_scoped_true_render = function () {
5345
+ // 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=429559f0&scoped=true&
5346
+ var simplicityvue_type_template_id_429559f0_scoped_true_render = function () {
5347
5347
  var _vm = this
5348
5348
  var _h = _vm.$createElement
5349
5349
  var _c = _vm._self._c || _h
@@ -6107,11 +6107,11 @@ var simplicityvue_type_template_id_7679eaf2_scoped_true_render = function () {
6107
6107
  ),
6108
6108
  ])
6109
6109
  }
6110
- var simplicityvue_type_template_id_7679eaf2_scoped_true_staticRenderFns = []
6111
- simplicityvue_type_template_id_7679eaf2_scoped_true_render._withStripped = true
6110
+ var simplicityvue_type_template_id_429559f0_scoped_true_staticRenderFns = []
6111
+ simplicityvue_type_template_id_429559f0_scoped_true_render._withStripped = true
6112
6112
 
6113
6113
 
6114
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=7679eaf2&scoped=true&
6114
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=429559f0&scoped=true&
6115
6115
 
6116
6116
  // 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&
6117
6117
  var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
@@ -9901,8 +9901,8 @@ var notice_component = Object(componentNormalizer["a" /* default */])(
9901
9901
  )
9902
9902
 
9903
9903
  /* harmony default export */ var notice = (notice_component.exports);
9904
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/settings.vue?vue&type=template&id=96dd3768&scoped=true&
9905
- var settingsvue_type_template_id_96dd3768_scoped_true_render = function () {
9904
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/settings.vue?vue&type=template&id=b9929eaa&scoped=true&
9905
+ var settingsvue_type_template_id_b9929eaa_scoped_true_render = function () {
9906
9906
  var _vm = this
9907
9907
  var _h = _vm.$createElement
9908
9908
  var _c = _vm._self._c || _h
@@ -10245,7 +10245,7 @@ var settingsvue_type_template_id_96dd3768_scoped_true_render = function () {
10245
10245
  on: {
10246
10246
  click: function ($event) {
10247
10247
  $event.stopPropagation()
10248
- _vm.handleLayout("simplicity")
10248
+ _vm.handleLayout("simplicity", "simplicity")
10249
10249
  },
10250
10250
  },
10251
10251
  },
@@ -10292,7 +10292,7 @@ var settingsvue_type_template_id_96dd3768_scoped_true_render = function () {
10292
10292
  on: {
10293
10293
  click: function ($event) {
10294
10294
  $event.stopPropagation()
10295
- _vm.handleLayout("simplicityTop")
10295
+ _vm.handleLayout("simplicityTop", "simplicityTop")
10296
10296
  },
10297
10297
  },
10298
10298
  },
@@ -10329,11 +10329,11 @@ var settingsvue_type_template_id_96dd3768_scoped_true_render = function () {
10329
10329
  ]
10330
10330
  )
10331
10331
  }
10332
- var settingsvue_type_template_id_96dd3768_scoped_true_staticRenderFns = []
10333
- settingsvue_type_template_id_96dd3768_scoped_true_render._withStripped = true
10332
+ var settingsvue_type_template_id_b9929eaa_scoped_true_staticRenderFns = []
10333
+ settingsvue_type_template_id_b9929eaa_scoped_true_render._withStripped = true
10334
10334
 
10335
10335
 
10336
- // CONCATENATED MODULE: ./packages/main/src/public/settings.vue?vue&type=template&id=96dd3768&scoped=true&
10336
+ // CONCATENATED MODULE: ./packages/main/src/public/settings.vue?vue&type=template&id=b9929eaa&scoped=true&
10337
10337
 
10338
10338
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/settings.vue?vue&type=script&lang=js&
10339
10339
  //
@@ -10590,8 +10590,8 @@ settingsvue_type_template_id_96dd3768_scoped_true_render._withStripped = true
10590
10590
  });
10591
10591
  // CONCATENATED MODULE: ./packages/main/src/public/settings.vue?vue&type=script&lang=js&
10592
10592
  /* harmony default export */ var public_settingsvue_type_script_lang_js_ = (settingsvue_type_script_lang_js_);
10593
- // EXTERNAL MODULE: ./packages/main/src/public/settings.vue?vue&type=style&index=0&id=96dd3768&prod&scoped=true&lang=css&
10594
- var settingsvue_type_style_index_0_id_96dd3768_prod_scoped_true_lang_css_ = __webpack_require__(27);
10593
+ // EXTERNAL MODULE: ./packages/main/src/public/settings.vue?vue&type=style&index=0&id=b9929eaa&prod&scoped=true&lang=css&
10594
+ var settingsvue_type_style_index_0_id_b9929eaa_prod_scoped_true_lang_css_ = __webpack_require__(27);
10595
10595
 
10596
10596
  // CONCATENATED MODULE: ./packages/main/src/public/settings.vue
10597
10597
 
@@ -10604,11 +10604,11 @@ var settingsvue_type_style_index_0_id_96dd3768_prod_scoped_true_lang_css_ = __we
10604
10604
 
10605
10605
  var settings_component = Object(componentNormalizer["a" /* default */])(
10606
10606
  public_settingsvue_type_script_lang_js_,
10607
- settingsvue_type_template_id_96dd3768_scoped_true_render,
10608
- settingsvue_type_template_id_96dd3768_scoped_true_staticRenderFns,
10607
+ settingsvue_type_template_id_b9929eaa_scoped_true_render,
10608
+ settingsvue_type_template_id_b9929eaa_scoped_true_staticRenderFns,
10609
10609
  false,
10610
10610
  null,
10611
- "96dd3768",
10611
+ "b9929eaa",
10612
10612
  null
10613
10613
 
10614
10614
  )
@@ -13120,13 +13120,17 @@ var events = [function (tabs, index, that) {
13120
13120
  var num = 0;
13121
13121
  obj.forEach(function (item) {
13122
13122
  var n = _this4.setTips(item);
13123
- num += n ? parseInt(n) : 0;
13124
- _this4.$set(obj, 'tips', num);
13125
- _this4.setDot(_this4.userApps, item.appCode, num);
13126
- _this4.setDot(_this4.applications, item.appCode, num);
13127
- _this4.setDot(_this4.business, item.appCode, num);
13128
- _this4.setDot(_this4.systems, item.appCode, num);
13123
+ n = n ? parseInt(n) : 0;
13124
+ num += n;
13125
+ if (n) {
13126
+ _this4.$set(obj, 'tips', n);
13127
+ _this4.setDot(_this4.userApps, item.appCode, n);
13128
+ _this4.setDot(_this4.applications, item.appCode, n);
13129
+ _this4.setDot(_this4.business, item.appCode, n);
13130
+ _this4.setDot(_this4.systems, item.appCode, n);
13131
+ }
13129
13132
  });
13133
+ return num;
13130
13134
  } else {
13131
13135
  if (obj.children && obj.children.length || obj.fourthTabs && obj.fourthTabs.length) {
13132
13136
  var _num = 0;
@@ -13956,18 +13960,18 @@ var events = [function (tabs, index, that) {
13956
13960
 
13957
13961
  var simplicity_component = Object(componentNormalizer["a" /* default */])(
13958
13962
  src_simplicityvue_type_script_lang_js_,
13959
- simplicityvue_type_template_id_7679eaf2_scoped_true_render,
13960
- simplicityvue_type_template_id_7679eaf2_scoped_true_staticRenderFns,
13963
+ simplicityvue_type_template_id_429559f0_scoped_true_render,
13964
+ simplicityvue_type_template_id_429559f0_scoped_true_staticRenderFns,
13961
13965
  false,
13962
13966
  null,
13963
- "7679eaf2",
13967
+ "429559f0",
13964
13968
  null
13965
13969
 
13966
13970
  )
13967
13971
 
13968
13972
  /* harmony default export */ var simplicity = (simplicity_component.exports);
13969
- // 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=7e7a3d7a&scoped=true&
13970
- var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render = function () {
13973
+ // 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=5a47c4f6&scoped=true&
13974
+ var simplicityTopvue_type_template_id_5a47c4f6_scoped_true_render = function () {
13971
13975
  var _vm = this
13972
13976
  var _h = _vm.$createElement
13973
13977
  var _c = _vm._self._c || _h
@@ -14056,7 +14060,7 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render = function ()
14056
14060
  _c("div", { staticClass: "es-simplicitytop-greeting" }, [
14057
14061
  _vm._v(
14058
14062
  "\n " +
14059
- _vm._s(_vm.user.username) +
14063
+ _vm._s(_vm.user.username || "-") +
14060
14064
  "," +
14061
14065
  _vm._s(_vm.greeting) +
14062
14066
  "\n "
@@ -14098,55 +14102,68 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render = function ()
14098
14102
  _c(
14099
14103
  "div",
14100
14104
  { staticClass: "es-simplicitytop-menu-children" },
14101
- _vm._l(_vm.myRemind, function (child, i) {
14102
- return _c(
14103
- "div",
14104
- {
14105
- key: i,
14106
- staticClass: "es-simplicitytop-menu-children-item",
14107
- on: {
14108
- click: function ($event) {
14109
- _vm.handleSelect(child)
14110
- },
14111
- },
14112
- },
14113
- [
14114
- _c(
14115
- "div",
14116
- { staticClass: "es-simplicitytop-menu-children-icon" },
14117
- [_c("i", { class: child.icon })]
14118
- ),
14119
- _c(
14120
- "div",
14121
- { staticClass: "es-simplicitytop-menu-children-name" },
14122
- [
14123
- _vm._v(
14124
- "\n " +
14125
- _vm._s(child.text || child.name) +
14126
- "\n "
14127
- ),
14128
- ]
14129
- ),
14130
- child.badge && child.num
14105
+ [
14106
+ _vm._l(_vm.myRemind, function (child, i) {
14107
+ return [
14108
+ child.hasPermission
14131
14109
  ? _c(
14132
14110
  "div",
14133
14111
  {
14112
+ key: i,
14134
14113
  staticClass:
14135
- "es-simplicitytop-menu-children-badge",
14114
+ "es-simplicitytop-menu-children-item",
14115
+ on: {
14116
+ click: function ($event) {
14117
+ _vm.handleSelect(child)
14118
+ },
14119
+ },
14136
14120
  },
14137
14121
  [
14138
- _vm._v(
14139
- "\n " +
14140
- _vm._s(child.num) +
14141
- "\n "
14122
+ _c(
14123
+ "div",
14124
+ {
14125
+ staticClass:
14126
+ "es-simplicitytop-menu-children-icon",
14127
+ },
14128
+ [_c("i", { class: child.icon })]
14129
+ ),
14130
+ _c(
14131
+ "div",
14132
+ {
14133
+ staticClass:
14134
+ "es-simplicitytop-menu-children-name",
14135
+ },
14136
+ [
14137
+ _vm._v(
14138
+ "\n " +
14139
+ _vm._s(child.text || child.name) +
14140
+ "\n "
14141
+ ),
14142
+ ]
14142
14143
  ),
14144
+ child.badge && child.num
14145
+ ? _c(
14146
+ "div",
14147
+ {
14148
+ staticClass:
14149
+ "es-simplicitytop-menu-children-badge",
14150
+ },
14151
+ [
14152
+ _vm._v(
14153
+ "\n " +
14154
+ _vm._s(child.num) +
14155
+ "\n "
14156
+ ),
14157
+ ]
14158
+ )
14159
+ : _vm._e(),
14143
14160
  ]
14144
14161
  )
14145
14162
  : _vm._e(),
14146
14163
  ]
14147
- )
14148
- }),
14149
- 0
14164
+ }),
14165
+ ],
14166
+ 2
14150
14167
  ),
14151
14168
  ]
14152
14169
  ),
@@ -14164,49 +14181,51 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render = function ()
14164
14181
  "div",
14165
14182
  { staticClass: "es-simplicitytop-menu-children" },
14166
14183
  _vm._l(_vm.userCommonMenuList, function (child, i) {
14167
- return _c(
14168
- "div",
14169
- {
14170
- key: i,
14171
- staticClass:
14172
- "es-simplicitytop-menu-children-item",
14173
- on: {
14174
- click: function ($event) {
14175
- _vm.handleSelect(child, "wujie")
14176
- },
14177
- },
14178
- },
14179
- [
14180
- _c(
14181
- "div",
14182
- {
14183
- staticClass:
14184
- "es-simplicitytop-menu-children-icon",
14185
- },
14186
- [
14187
- _c("i", {
14188
- class: child.icons
14189
- ? child.icons
14190
- : "es-icon-application",
14191
- }),
14192
- ]
14193
- ),
14194
- _c(
14184
+ return child.hasPermission
14185
+ ? _c(
14195
14186
  "div",
14196
14187
  {
14188
+ key: i,
14197
14189
  staticClass:
14198
- "es-simplicitytop-menu-children-name",
14190
+ "es-simplicitytop-menu-children-item",
14191
+ on: {
14192
+ click: function ($event) {
14193
+ _vm.handleSelect(child)
14194
+ },
14195
+ },
14199
14196
  },
14200
14197
  [
14201
- _vm._v(
14202
- "\n " +
14203
- _vm._s(child.text) +
14204
- "\n "
14198
+ _c(
14199
+ "div",
14200
+ {
14201
+ staticClass:
14202
+ "es-simplicitytop-menu-children-icon",
14203
+ },
14204
+ [
14205
+ _c("i", {
14206
+ class: child.icons
14207
+ ? child.icons
14208
+ : "es-icon-application",
14209
+ }),
14210
+ ]
14211
+ ),
14212
+ _c(
14213
+ "div",
14214
+ {
14215
+ staticClass:
14216
+ "es-simplicitytop-menu-children-name",
14217
+ },
14218
+ [
14219
+ _vm._v(
14220
+ "\n " +
14221
+ _vm._s(child.text) +
14222
+ "\n "
14223
+ ),
14224
+ ]
14205
14225
  ),
14206
14226
  ]
14207
- ),
14208
- ]
14209
- )
14227
+ )
14228
+ : _vm._e()
14210
14229
  }),
14211
14230
  0
14212
14231
  ),
@@ -14242,6 +14261,36 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render = function ()
14242
14261
  ],
14243
14262
  1
14244
14263
  ),
14264
+ _vm.currentPage.appCode && _vm.currentPage.appCode !== "indexUrl"
14265
+ ? _c(
14266
+ "div",
14267
+ { staticClass: "es-simplicitytop-main-fourth-tabs" },
14268
+ [
14269
+ _c(
14270
+ "el-tabs",
14271
+ {
14272
+ ref: "fourthTab",
14273
+ on: { "tab-click": _vm.fourthTabClick },
14274
+ model: {
14275
+ value: _vm.tabActiveName,
14276
+ callback: function ($$v) {
14277
+ _vm.tabActiveName = $$v
14278
+ },
14279
+ expression: "tabActiveName",
14280
+ },
14281
+ },
14282
+ _vm._l(_vm.fourthTabs, function (item, index) {
14283
+ return _c("el-tab-pane", {
14284
+ key: index,
14285
+ attrs: { label: item.text, name: item.id },
14286
+ })
14287
+ }),
14288
+ 1
14289
+ ),
14290
+ ],
14291
+ 1
14292
+ )
14293
+ : _vm._e(),
14245
14294
  _c(
14246
14295
  "div",
14247
14296
  { staticClass: "es-simplicitytop-main-router" },
@@ -14444,12 +14493,6 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render = function ()
14444
14493
  1
14445
14494
  ),
14446
14495
  ]),
14447
- false
14448
- ? undefined
14449
- : _vm._e(),
14450
- false
14451
- ? undefined
14452
- : _vm._e(),
14453
14496
  _c(
14454
14497
  "settings",
14455
14498
  _vm._b(
@@ -14474,11 +14517,41 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render = function ()
14474
14517
  false
14475
14518
  )
14476
14519
  ),
14520
+ _c(
14521
+ "es-dialog",
14522
+ {
14523
+ attrs: {
14524
+ title: _vm.dialog.title,
14525
+ visible: _vm.dialog.show,
14526
+ size: "md",
14527
+ },
14528
+ on: {
14529
+ "update:visible": function ($event) {
14530
+ _vm.$set(_vm.dialog, "show", $event)
14531
+ },
14532
+ },
14533
+ },
14534
+ [
14535
+ _vm.dialog.title == "查看在线人员" && !_vm.dialog.src
14536
+ ? [_c("online")]
14537
+ : _vm.dialog.show
14538
+ ? _c("iframe", {
14539
+ attrs: {
14540
+ width: "100%",
14541
+ height: "100%",
14542
+ frameborder: "0",
14543
+ src: _vm.dialog.src,
14544
+ },
14545
+ })
14546
+ : _vm._e(),
14547
+ ],
14548
+ 2
14549
+ ),
14477
14550
  ],
14478
14551
  1
14479
14552
  )
14480
14553
  }
14481
- var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_staticRenderFns = [
14554
+ var simplicityTopvue_type_template_id_5a47c4f6_scoped_true_staticRenderFns = [
14482
14555
  function () {
14483
14556
  var _vm = this
14484
14557
  var _h = _vm.$createElement
@@ -14490,10 +14563,10 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_staticRenderFns = [
14490
14563
  ])
14491
14564
  },
14492
14565
  ]
14493
- simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render._withStripped = true
14566
+ simplicityTopvue_type_template_id_5a47c4f6_scoped_true_render._withStripped = true
14494
14567
 
14495
14568
 
14496
- // CONCATENATED MODULE: ./packages/main/src/simplicityTop/index.vue?vue&type=template&id=7e7a3d7a&scoped=true&
14569
+ // CONCATENATED MODULE: ./packages/main/src/simplicityTop/index.vue?vue&type=template&id=5a47c4f6&scoped=true&
14497
14570
 
14498
14571
  // 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&
14499
14572
  var avatarvue_type_template_id_30391b69_scoped_true_render = function () {
@@ -18642,252 +18715,6 @@ var simplicityTopvue_type_script_lang_js_extends = Object.assign || function (ta
18642
18715
  //
18643
18716
  //
18644
18717
  //
18645
- //
18646
- //
18647
- //
18648
- //
18649
- //
18650
- //
18651
- //
18652
- //
18653
- //
18654
- //
18655
- //
18656
- //
18657
- //
18658
- //
18659
- //
18660
- //
18661
- //
18662
- //
18663
- //
18664
- //
18665
- //
18666
- //
18667
- //
18668
- //
18669
- //
18670
- //
18671
- //
18672
- //
18673
- //
18674
- //
18675
- //
18676
- //
18677
- //
18678
- //
18679
- //
18680
- //
18681
- //
18682
- //
18683
- //
18684
- //
18685
- //
18686
- //
18687
- //
18688
- //
18689
- //
18690
- //
18691
- //
18692
- //
18693
- //
18694
- //
18695
- //
18696
- //
18697
- //
18698
- //
18699
- //
18700
- //
18701
- //
18702
- //
18703
- //
18704
- //
18705
- //
18706
- //
18707
- //
18708
- //
18709
- //
18710
- //
18711
- //
18712
- //
18713
- //
18714
- //
18715
- //
18716
- //
18717
- //
18718
- //
18719
- //
18720
- //
18721
- //
18722
- //
18723
- //
18724
- //
18725
- //
18726
- //
18727
- //
18728
- //
18729
- //
18730
- //
18731
- //
18732
- //
18733
- //
18734
- //
18735
- //
18736
- //
18737
- //
18738
- //
18739
- //
18740
- //
18741
- //
18742
- //
18743
- //
18744
- //
18745
- //
18746
- //
18747
- //
18748
- //
18749
- //
18750
- //
18751
- //
18752
- //
18753
- //
18754
- //
18755
- //
18756
- //
18757
- //
18758
- //
18759
- //
18760
- //
18761
- //
18762
- //
18763
- //
18764
- //
18765
- //
18766
- //
18767
- //
18768
- //
18769
- //
18770
- //
18771
- //
18772
- //
18773
- //
18774
- //
18775
- //
18776
- //
18777
- //
18778
- //
18779
- //
18780
- //
18781
- //
18782
- //
18783
- //
18784
- //
18785
- //
18786
- //
18787
- //
18788
- //
18789
- //
18790
- //
18791
- //
18792
- //
18793
- //
18794
- //
18795
- //
18796
- //
18797
- //
18798
- //
18799
- //
18800
- //
18801
- //
18802
- //
18803
- //
18804
- //
18805
- //
18806
- //
18807
- //
18808
- //
18809
- //
18810
- //
18811
- //
18812
- //
18813
- //
18814
- //
18815
- //
18816
- //
18817
- //
18818
- //
18819
- //
18820
- //
18821
- //
18822
- //
18823
- //
18824
- //
18825
- //
18826
- //
18827
- //
18828
- //
18829
- //
18830
- //
18831
- //
18832
- //
18833
- //
18834
- //
18835
- //
18836
- //
18837
- //
18838
- //
18839
- //
18840
- //
18841
- //
18842
- //
18843
- //
18844
- //
18845
- //
18846
- //
18847
- //
18848
- //
18849
- //
18850
- //
18851
- //
18852
- //
18853
- //
18854
- //
18855
- //
18856
- //
18857
- //
18858
- //
18859
- //
18860
- //
18861
- //
18862
- //
18863
- //
18864
- //
18865
- //
18866
- //
18867
- //
18868
- //
18869
- //
18870
- //
18871
- //
18872
- //
18873
- //
18874
- //
18875
- //
18876
- //
18877
- //
18878
- //
18879
- //
18880
- //
18881
- //
18882
- //
18883
- //
18884
- //
18885
- //
18886
- //
18887
- //
18888
- //
18889
- //
18890
- //
18891
18718
 
18892
18719
 
18893
18720
 
@@ -18960,7 +18787,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
18960
18787
  return {
18961
18788
  esMain: this,
18962
18789
  refresh: this.handleRefresh,
18963
- jumpMenu: this.jumpMenu
18790
+ jumpMenu: this.jumpTopMenu
18964
18791
  };
18965
18792
  },
18966
18793
 
@@ -19147,199 +18974,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19147
18974
  }
19148
18975
  },
19149
18976
  icons: Object,
19150
- myRemind: {
19151
- type: Array,
19152
- default: function _default() {
19153
- return [{
19154
- badge: true,
19155
- icon: 'es-icon-solid-shijian',
19156
- id: '589cdcff17f44a58bccb5b44de0e90c5',
19157
- text: '待办事项',
19158
- icons: '',
19159
- url: '/bpm/wfPending/wfPending/makeList.dhtml',
19160
- target: 'stage',
19161
- sort: 1,
19162
- remindurl: 'http://boot-gateway:8080/bpm/wfPending/wfPending/getMakeNum.dhtml',
19163
- pid: 'd92e4c724cc74b13a4119f644eff0be8',
19164
- level: 3,
19165
- quickicons: '',
19166
- appType: '0',
19167
- urlopenmode: 0,
19168
- hasPermission: false,
19169
- appId: '',
19170
- extendData: {
19171
- businessStatus: 1,
19172
- businessWarnMsg: ''
19173
- },
19174
- fourthTabs: [],
19175
- children: [],
19176
- method: 'iframe',
19177
- loading: false,
19178
- num: 0
19179
- }, {
19180
- badge: false,
19181
- icon: 'es-icon-solid-yiban',
19182
- id: '259600a64a6840a4952251fe0a7bd890',
19183
- text: '已办事项',
19184
- icons: '',
19185
- url: '/bpm/wfpened/wfPended/list.dhtml?viewName=yibing',
19186
- target: 'stage',
19187
- sort: 3,
19188
- remindurl: '',
19189
- pid: 'd92e4c724cc74b13a4119f644eff0be8',
19190
- level: 3,
19191
- quickicons: '',
19192
- appType: '0',
19193
- appCode: 'yibingwdyb',
19194
- urlopenmode: 0,
19195
- hasPermission: false,
19196
- appId: '',
19197
- fourthTabs: [],
19198
- children: [],
19199
- method: 'iframe',
19200
- loading: false,
19201
- num: 0
19202
- }, {
19203
- text: '待签公文',
19204
- badge: true,
19205
- num: 0,
19206
- icon: 'es-icon-solid-daiqiangongwen',
19207
- id: '03158b72e0d644f6ae97e55ee598a17d',
19208
- url: '/archives-ui/webpack/index.html#/sign/signList',
19209
- remindurl: '',
19210
- pid: 'ec4a6e89b1b346a4a2e8f4245e315da3',
19211
- appCode: 'signList',
19212
- appId: 'q291a124fc151se5b4b890191c65e485',
19213
- fourthTabs: [],
19214
- children: [],
19215
- method: 'wujie'
19216
- }, {
19217
- badge: true,
19218
- icon: 'es-icon-juqiangongwen',
19219
- id: 'bbc03189766441e6a46550c556d61f03',
19220
- text: '拒签公文',
19221
- icons: '',
19222
- url: '/archives-ui/webpack/index.html#/dispatch/rejectedList',
19223
- target: 'stage',
19224
- sort: 4,
19225
- remindurl: '',
19226
- pid: '7fd13c86f596417b95d2b7622906f70f',
19227
- level: 3,
19228
- quickicons: '',
19229
- appType: '0',
19230
- appCode: 'rejectedList',
19231
- urlopenmode: 0,
19232
- hasPermission: false,
19233
- appId: 'q291a124fc151se5b4b890191c65e485',
19234
- extendData: {
19235
- businessStatus: 1,
19236
- businessWarnMsg: ''
19237
- },
19238
- fourthTabs: [],
19239
- children: [],
19240
- method: 'wujie'
19241
- }, {
19242
- badge: true,
19243
- num: 0,
19244
- icon: 'es-icon-solid-ziliao',
19245
- routerName: '',
19246
- id: 'df9d1baedf6a4107bfa9f5d763a98fc0',
19247
- text: '待收资料',
19248
- icons: '',
19249
- url: '/oa/sharefiles/receive/list.dhtml',
19250
- target: 'stage',
19251
- sort: 0,
19252
- remindurl: '',
19253
- pid: 'd648a3e7ae16458a823fdbe911e4d76e',
19254
- level: 2,
19255
- quickicons: '',
19256
- appType: '1',
19257
- appCode: 'sharefilesReceive',
19258
- urlopenmode: 0,
19259
- hasPermission: false,
19260
- appId: 'q291a124fc151se5b4b890191c65e485',
19261
- extendData: {
19262
- businessStatus: 1,
19263
- businessWarnMsg: ''
19264
- },
19265
- fourthTabs: [],
19266
- children: [],
19267
- method: 'iframe',
19268
- loading: false
19269
- }, {
19270
- text: '待签会议',
19271
- badge: true,
19272
- num: 0,
19273
- icon: 'es-icon-solid-huiyileixing',
19274
- id: '407eff212ecd4355ad1fb28c8de6e882',
19275
- icons: '',
19276
- url: '/conference/meetingReceive/receive_list.dhtml?meetState=-5',
19277
- target: 'stage',
19278
- sort: 0,
19279
- remindurl: '',
19280
- pid: 'bc1b01feafc64ae68beed2da5559ff7c',
19281
- level: 3,
19282
- quickicons: '',
19283
- appType: '0',
19284
- appCode: 'hyqs',
19285
- urlopenmode: 0,
19286
- hasPermission: false,
19287
- appId: '',
19288
- extendData: {
19289
- businessStatus: 1,
19290
- businessWarnMsg: ''
19291
- },
19292
- fourthTabs: [{
19293
- id: 'c2d3fb3c7d684b06b4511233a6b5f03b',
19294
- text: '未签收',
19295
- icons: '',
19296
- url: '/conference/meetingReceive/receive_list.dhtml?meetState=-5',
19297
- target: 'stage',
19298
- sort: 1,
19299
- remindurl: '',
19300
- pid: '407eff212ecd4355ad1fb28c8de6e882',
19301
- level: 4,
19302
- quickicons: '',
19303
- appType: '0',
19304
- appCode: 'wqsmeeting',
19305
- urlopenmode: 0,
19306
- hasPermission: false,
19307
- appId: '',
19308
- extendData: {
19309
- businessStatus: 1,
19310
- businessWarnMsg: ''
19311
- },
19312
- fourthTabs: [],
19313
- children: []
19314
- }, {
19315
- id: '9990c8064694403ba5ee85f098738aab',
19316
- text: '已签收',
19317
- icons: '',
19318
- url: '/conference/meetingReceive/receive_list.dhtml?meetState=-6',
19319
- target: 'stage',
19320
- sort: 2,
19321
- remindurl: '',
19322
- pid: '407eff212ecd4355ad1fb28c8de6e882',
19323
- level: 4,
19324
- quickicons: '',
19325
- appType: '0',
19326
- appCode: 'yqs',
19327
- urlopenmode: 0,
19328
- hasPermission: false,
19329
- appId: '',
19330
- extendData: {
19331
- businessStatus: 1,
19332
- businessWarnMsg: ''
19333
- },
19334
- fourthTabs: [],
19335
- children: []
19336
- }],
19337
- children: [],
19338
- method: 'iframe',
19339
- loading: false
19340
- }];
19341
- }
19342
- },
18977
+
19343
18978
  userCommonMenu: {
19344
18979
  type: String,
19345
18980
  default: api["Fb" /* queryUseCommonMenu */]
@@ -19347,6 +18982,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19347
18982
  },
19348
18983
  data: function data() {
19349
18984
  return {
18985
+ tabActiveName: '',
19350
18986
  currentPage: {
19351
18987
  method: ''
19352
18988
  },
@@ -19358,9 +18994,10 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19358
18994
  systemurl: null,
19359
18995
  icons: '',
19360
18996
  sort: 4,
19361
- menuCode: 'dispatch_org',
18997
+ appCode: 'dispatch_org',
19362
18998
  urlopenmode: 0,
19363
- defaultMenu: 1
18999
+ defaultMenu: 1,
19000
+ pid: 'cc529d06f2fe4c9aa5956e7f540b8cd2'
19364
19001
  }, {
19365
19002
  id: '00c9e4e6e9974a789dbf2d99620c1773',
19366
19003
  menutype: 1,
@@ -19369,9 +19006,10 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19369
19006
  systemurl: null,
19370
19007
  icons: '',
19371
19008
  sort: 5,
19372
- menuCode: 'sharefilesSend',
19009
+ appCode: 'sharefilesSend',
19373
19010
  urlopenmode: 0,
19374
- defaultMenu: 1
19011
+ defaultMenu: 1,
19012
+ pid: 'd648a3e7ae16458a823fdbe911e4d76e'
19375
19013
  }, {
19376
19014
  id: '7588320f81dd49d09fd8832037b1c57a',
19377
19015
  menutype: 0,
@@ -19380,9 +19018,10 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19380
19018
  systemurl: null,
19381
19019
  icons: '',
19382
19020
  sort: 1,
19383
- menuCode: 'receiptAdd',
19021
+ appCode: 'receiptAdd',
19384
19022
  urlopenmode: 0,
19385
- defaultMenu: 0
19023
+ defaultMenu: 0,
19024
+ pid: 'ec4a6e89b1b346a4a2e8f4245e315da3'
19386
19025
  }],
19387
19026
  //是否显示头像
19388
19027
  showAvatar: this.avatar,
@@ -19504,7 +19143,198 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19504
19143
  //展示系统操作按钮标题类型
19505
19144
  showTitleType: this.showHandlerTitleType,
19506
19145
  layout: this.scene.toLowerCase(),
19507
- reladding: false
19146
+ reladding: false,
19147
+ fourthTabs: [],
19148
+ jumpMenu: this.handleSelect,
19149
+ myRemind: [{
19150
+ badge: true,
19151
+ icon: 'es-icon-solid-shijian',
19152
+ id: '589cdcff17f44a58bccb5b44de0e90c5',
19153
+ text: '待办事项',
19154
+ icons: '',
19155
+ url: '/bpm/wfPending/wfPending/makeList.dhtml',
19156
+ target: 'stage',
19157
+ sort: 1,
19158
+ remindurl: 'http://boot-gateway:8080/bpm/wfPending/wfPending/getMakeNum.dhtml',
19159
+ pid: 'd92e4c724cc74b13a4119f644eff0be8',
19160
+ level: 3,
19161
+ quickicons: '',
19162
+ appType: '0',
19163
+ appCode: 'pengding_make1',
19164
+ urlopenmode: 0,
19165
+ hasPermission: false,
19166
+ appId: '',
19167
+ extendData: {
19168
+ businessStatus: 1,
19169
+ businessWarnMsg: ''
19170
+ },
19171
+ fourthTabs: [],
19172
+ children: [],
19173
+ method: 'iframe',
19174
+ loading: false,
19175
+ num: 0
19176
+ }, {
19177
+ badge: false,
19178
+ icon: 'es-icon-solid-yiban',
19179
+ id: '259600a64a6840a4952251fe0a7bd890',
19180
+ text: '已办事项',
19181
+ icons: '',
19182
+ url: '/bpm/wfpened/wfPended/list.dhtml?viewName=yibing',
19183
+ target: 'stage',
19184
+ sort: 3,
19185
+ remindurl: '',
19186
+ pid: 'd92e4c724cc74b13a4119f644eff0be8',
19187
+ level: 3,
19188
+ quickicons: '',
19189
+ appType: '0',
19190
+ appCode: 'yibingwdyb',
19191
+ urlopenmode: 0,
19192
+ hasPermission: false,
19193
+ appId: '',
19194
+ fourthTabs: [],
19195
+ children: [],
19196
+ method: 'iframe',
19197
+ loading: false,
19198
+ num: 0
19199
+ }, {
19200
+ text: '待签公文',
19201
+ badge: true,
19202
+ num: 0,
19203
+ icon: 'es-icon-solid-daiqiangongwen',
19204
+ id: '03158b72e0d644f6ae97e55ee598a17d',
19205
+ url: '/archives-ui/webpack/index.html#/sign/signList',
19206
+ remindurl: '',
19207
+ pid: 'ec4a6e89b1b346a4a2e8f4245e315da3',
19208
+ appCode: 'signList',
19209
+ appId: 'q291a124fc151se5b4b890191c65e485',
19210
+ fourthTabs: [],
19211
+ children: [],
19212
+ method: 'wujie'
19213
+ }, {
19214
+ badge: true,
19215
+ icon: 'es-icon-juqiangongwen',
19216
+ id: 'bbc03189766441e6a46550c556d61f03',
19217
+ text: '拒签公文',
19218
+ icons: '',
19219
+ url: '/archives-ui/webpack/index.html#/dispatch/rejectedList',
19220
+ target: 'stage',
19221
+ sort: 4,
19222
+ remindurl: '',
19223
+ pid: '7fd13c86f596417b95d2b7622906f70f',
19224
+ level: 3,
19225
+ quickicons: '',
19226
+ appType: '0',
19227
+ appCode: 'rejectedList',
19228
+ urlopenmode: 0,
19229
+ hasPermission: false,
19230
+ appId: 'q291a124fc151se5b4b890191c65e485',
19231
+ extendData: {
19232
+ businessStatus: 1,
19233
+ businessWarnMsg: ''
19234
+ },
19235
+ fourthTabs: [],
19236
+ children: [],
19237
+ method: 'wujie'
19238
+ }, {
19239
+ badge: true,
19240
+ num: 0,
19241
+ icon: 'es-icon-solid-ziliao',
19242
+ routerName: '',
19243
+ id: 'df9d1baedf6a4107bfa9f5d763a98fc0',
19244
+ text: '待收资料',
19245
+ icons: '',
19246
+ url: '/oa/sharefiles/receive/list.dhtml',
19247
+ target: 'stage',
19248
+ sort: 0,
19249
+ remindurl: '',
19250
+ pid: 'd648a3e7ae16458a823fdbe911e4d76e',
19251
+ level: 2,
19252
+ quickicons: '',
19253
+ appType: '1',
19254
+ appCode: 'sharefilesReceive',
19255
+ urlopenmode: 0,
19256
+ hasPermission: false,
19257
+ appId: 'q291a124fc151se5b4b890191c65e485',
19258
+ extendData: {
19259
+ businessStatus: 1,
19260
+ businessWarnMsg: ''
19261
+ },
19262
+ fourthTabs: [],
19263
+ children: [],
19264
+ method: 'iframe',
19265
+ loading: false
19266
+ }, {
19267
+ text: '待签会议',
19268
+ badge: true,
19269
+ num: 0,
19270
+ icon: 'es-icon-solid-huiyileixing',
19271
+ id: '407eff212ecd4355ad1fb28c8de6e882',
19272
+ icons: '',
19273
+ url: '/conference/meetingReceive/receive_list.dhtml?meetState=-5',
19274
+ target: 'stage',
19275
+ sort: 0,
19276
+ remindurl: '',
19277
+ pid: 'bc1b01feafc64ae68beed2da5559ff7c',
19278
+ level: 3,
19279
+ quickicons: '',
19280
+ appType: '0',
19281
+ appCode: 'hyqs',
19282
+ urlopenmode: 0,
19283
+ hasPermission: false,
19284
+ appId: '',
19285
+ extendData: {
19286
+ businessStatus: 1,
19287
+ businessWarnMsg: ''
19288
+ },
19289
+ fourthTabs: [{
19290
+ id: 'c2d3fb3c7d684b06b4511233a6b5f03b',
19291
+ text: '未签收',
19292
+ icons: '',
19293
+ url: '/conference/meetingReceive/receive_list.dhtml?meetState=-5',
19294
+ target: 'stage',
19295
+ sort: 1,
19296
+ remindurl: '',
19297
+ pid: '407eff212ecd4355ad1fb28c8de6e882',
19298
+ level: 4,
19299
+ quickicons: '',
19300
+ appType: '0',
19301
+ appCode: 'wqsmeeting',
19302
+ urlopenmode: 0,
19303
+ hasPermission: false,
19304
+ appId: '',
19305
+ extendData: {
19306
+ businessStatus: 1,
19307
+ businessWarnMsg: ''
19308
+ },
19309
+ fourthTabs: [],
19310
+ children: []
19311
+ }, {
19312
+ id: '9990c8064694403ba5ee85f098738aab',
19313
+ text: '已签收',
19314
+ icons: '',
19315
+ url: '/conference/meetingReceive/receive_list.dhtml?meetState=-6',
19316
+ target: 'stage',
19317
+ sort: 2,
19318
+ remindurl: '',
19319
+ pid: '407eff212ecd4355ad1fb28c8de6e882',
19320
+ level: 4,
19321
+ quickicons: '',
19322
+ appType: '0',
19323
+ appCode: 'yqs',
19324
+ urlopenmode: 0,
19325
+ hasPermission: false,
19326
+ appId: '',
19327
+ extendData: {
19328
+ businessStatus: 1,
19329
+ businessWarnMsg: ''
19330
+ },
19331
+ fourthTabs: [],
19332
+ children: []
19333
+ }],
19334
+ children: [],
19335
+ method: 'iframe',
19336
+ loading: false
19337
+ }]
19508
19338
  };
19509
19339
  },
19510
19340
 
@@ -19604,15 +19434,32 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19604
19434
  this.doorIndex = sessionStorage.getItem('doorIndex');
19605
19435
  },
19606
19436
  mounted: function mounted() {
19607
- this.handleListener();
19437
+ // this.handleListener();
19608
19438
  this.getNums();
19609
- window.top.jumpTopMenu = this.handleSelect;
19439
+ window.top.jumpMenu = window.top.jumpTopMenu = this.handleSelect;
19610
19440
  },
19611
19441
 
19612
19442
  methods: {
19443
+ // tab点击事件
19444
+ fourthTabClick: function fourthTabClick(res) {
19445
+ var _this2 = this;
19446
+
19447
+ var index = res.index;
19448
+ this.currentPage = {
19449
+ appCode: this.fourthTabs[index]
19450
+ };
19451
+ console.log(this.currentPage, 'this.currentPage');
19452
+
19453
+ // console.log(this.fourthTabs[index], 'this.fourthTabs[index]');
19454
+ // 增加阻塞 重载页面
19455
+ setTimeout(function () {
19456
+ _this2.currentPage = _this2.setIframeType(_this2.fourthTabs[index]);
19457
+ }, 0);
19458
+ },
19459
+
19613
19460
  //获取数量
19614
19461
  getNums: function getNums() {
19615
- var _this2 = this;
19462
+ var _this3 = this;
19616
19463
 
19617
19464
  this.getIndexCount();
19618
19465
  this.getUserTipsInstanceNum(0);
@@ -19622,7 +19469,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19622
19469
  this.reladding = true;
19623
19470
  if (this.reladding) {
19624
19471
  setTimeout(function () {
19625
- _this2.reladding = false;
19472
+ _this3.reladding = false;
19626
19473
  }, 1000);
19627
19474
  }
19628
19475
  },
@@ -19631,7 +19478,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19631
19478
  * getVoteMeetingNum: 查询会议数量
19632
19479
  */
19633
19480
  getVoteMeetingNum: function getVoteMeetingNum() {
19634
- var _this3 = this;
19481
+ var _this4 = this;
19635
19482
 
19636
19483
  util["a" /* default */].ajax({
19637
19484
  url: api["jb" /* getVoteMeetingNum */],
@@ -19642,8 +19489,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19642
19489
  method: 'get'
19643
19490
  }).then(function (res) {
19644
19491
  if (res.rCode === 0) {
19645
- _this3.myRemind[5].num = res.results > 99 ? '99+' : res.results;
19646
- console.log('查询会议数量', res.results);
19492
+ _this4.myRemind[5].num = res.results > 99 ? '99+' : res.results;
19647
19493
  }
19648
19494
  });
19649
19495
  },
@@ -19652,7 +19498,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19652
19498
  * getShareFilesReceiveCountNew: 查询待接收文件数量
19653
19499
  */
19654
19500
  getShareFilesReceiveCountNew: function getShareFilesReceiveCountNew() {
19655
- var _this4 = this;
19501
+ var _this5 = this;
19656
19502
 
19657
19503
  util["a" /* default */].ajax({
19658
19504
  url: api["db" /* getShareFilesReceiveCountNew */],
@@ -19662,7 +19508,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19662
19508
  method: 'get'
19663
19509
  }).then(function (res) {
19664
19510
  if (res.rCode === 0) {
19665
- _this4.myRemind[4].num = res.results > 99 ? '99+' : res.results;
19511
+ _this5.myRemind[4].num = res.results > 99 ? '99+' : res.results;
19666
19512
  }
19667
19513
  });
19668
19514
  },
@@ -19672,7 +19518,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19672
19518
  * getUserTipsInstanceNum: 查询待签收/据签收任务数量 1是拒签收 0是待签收
19673
19519
  */
19674
19520
  getUserTipsInstanceNum: function getUserTipsInstanceNum(type) {
19675
- var _this5 = this;
19521
+ var _this6 = this;
19676
19522
 
19677
19523
  var params = '?subjectCode=signCount&state=0&userId=' + util["a" /* default */].getStorage('userId') + '&queryOrgType=-1';
19678
19524
  if (type) {
@@ -19684,9 +19530,9 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19684
19530
  }).then(function (res) {
19685
19531
  if (res.rCode === 0) {
19686
19532
  if (type) {
19687
- _this5.myRemind[3].num = res.results > 99 ? '99+' : res.results;
19533
+ _this6.myRemind[3].num = res.results > 99 ? '99+' : res.results;
19688
19534
  } else {
19689
- _this5.myRemind[2].num = res.results > 99 ? '99+' : res.results;
19535
+ _this6.myRemind[2].num = res.results > 99 ? '99+' : res.results;
19690
19536
  }
19691
19537
  } else {
19692
19538
  console.error('查询待签收/据签收任务数量失败', res);
@@ -19698,7 +19544,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19698
19544
  * getIndexCount: 查询待办任务数量
19699
19545
  */
19700
19546
  getIndexCount: function getIndexCount() {
19701
- var _this6 = this;
19547
+ var _this7 = this;
19702
19548
 
19703
19549
  util["a" /* default */].ajax({
19704
19550
  url: api["P" /* getIndexCount */],
@@ -19710,8 +19556,8 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19710
19556
  if (res.rCode === 0) {
19711
19557
  var makePendingCount = res.results.makePendingCount || 0;
19712
19558
  var pendedCount = res.results.pendedCount || 0;
19713
- _this6.myRemind[0].num = makePendingCount > 99 ? '99+' : makePendingCount;
19714
- _this6.myRemind[1].num = pendedCount > 99 ? '99+' : pendedCount;
19559
+ _this7.myRemind[0].num = makePendingCount > 99 ? '99+' : makePendingCount;
19560
+ _this7.myRemind[1].num = pendedCount > 99 ? '99+' : pendedCount;
19715
19561
  } else {
19716
19562
  console.error('查询待办任务数量失败', res);
19717
19563
  }
@@ -19777,6 +19623,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19777
19623
  this.setConfig(results);
19778
19624
  if (this.remote && first) {
19779
19625
  this.getApplications();
19626
+ // 此处的快捷 是用户自定义的 不是系统配置的快捷菜单 所以注释掉
19780
19627
  // this.getUseCommonMenu();
19781
19628
  }
19782
19629
  },
@@ -19952,7 +19799,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19952
19799
  * @desc:获取用户自定义菜单
19953
19800
  **/
19954
19801
  getUseCommonMenu: function getUseCommonMenu() {
19955
- var _this7 = this;
19802
+ var _this8 = this;
19956
19803
 
19957
19804
  util["a" /* default */].ajax({
19958
19805
  url: this.userCommonMenu,
@@ -19964,17 +19811,17 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19964
19811
  }).then(function (res) {
19965
19812
  if (res.rCode === 0) {
19966
19813
  if (res.results && Object.keys(res.results).length) {
19967
- _this7.userCommonMenuList = res.results;
19814
+ _this8.userCommonMenuList = res.results;
19968
19815
  } else {
19969
- _this7.$message.error('未分配应用菜单权限,请联系管理员!');
19816
+ _this8.$message.error('未分配应用菜单权限,请联系管理员!');
19970
19817
  }
19971
19818
  } else {
19972
19819
  var msg = res.msg || '系统错误,请联系管理员!';
19973
- _this7.$message.error(msg);
19820
+ _this8.$message.error(msg);
19974
19821
  }
19975
19822
  }).catch(function (err) {
19976
19823
  if (err.message && err.message !== 'canceled') {
19977
- _this7.$message.error(err.message);
19824
+ _this8.$message.error(err.message);
19978
19825
  }
19979
19826
  });
19980
19827
  },
@@ -19985,15 +19832,15 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19985
19832
  * @date 2024年9月7日
19986
19833
  **/
19987
19834
  getApplications: function getApplications() {
19988
- var _this8 = this;
19835
+ var _this9 = this;
19989
19836
 
19990
19837
  var loading = util["a" /* default */].loading('', '加载中...');
19991
19838
  util["a" /* default */].ajax({
19992
19839
  url: this.appsUrl,
19993
19840
  defaults: true
19994
19841
  }).then(function (res) {
19995
- if (_this8.socket) {
19996
- _this8.initWebSocket();
19842
+ if (_this9.socket) {
19843
+ _this9.initWebSocket();
19997
19844
  }
19998
19845
  if (res.rCode === 0) {
19999
19846
  if (res.results && Object.keys(res.results).length) {
@@ -20003,29 +19850,29 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20003
19850
  app_system = _res$results.app_system,
20004
19851
  app_user = _res$results.app_user;
20005
19852
 
20006
- _this8.userApps = app_user.filter(function (item) {
19853
+ _this9.userApps = app_user.filter(function (item) {
20007
19854
  return item.permission !== false;
20008
19855
  });
20009
- _this8.applications = all;
20010
- _this8.business = app_special_business_system;
20011
- _this8.systems = app_system;
20012
- _this8.setTips(_this8.userApps);
20013
- _this8.setTips(_this8.applications);
20014
- _this8.setTips(_this8.business);
20015
- _this8.setTips(_this8.systems);
19856
+ _this9.applications = all;
19857
+ _this9.business = app_special_business_system;
19858
+ _this9.systems = app_system;
19859
+ _this9.setTips(_this9.userApps);
19860
+ _this9.setTips(_this9.applications);
19861
+ _this9.setTips(_this9.business);
19862
+ _this9.setTips(_this9.systems);
20016
19863
  } else {
20017
- _this8.$message.error('未分配应用菜单权限,请联系管理员!');
19864
+ _this9.$message.error('未分配应用菜单权限,请联系管理员!');
20018
19865
  }
20019
- _this8.getMenus(loading);
19866
+ _this9.getMenus(loading);
20020
19867
  } else {
20021
19868
  loading.close();
20022
19869
  var msg = res.msg || '系统错误,请联系管理员!';
20023
- _this8.$message.error(msg);
19870
+ _this9.$message.error(msg);
20024
19871
  }
20025
19872
  }).catch(function (err) {
20026
19873
  loading.close();
20027
19874
  if (err.message && err.message !== 'canceled') {
20028
- _this8.$message.error(err.message);
19875
+ _this9.$message.error(err.message);
20029
19876
  }
20030
19877
  });
20031
19878
  },
@@ -20036,33 +19883,26 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20036
19883
  * @date 2024年9月7日
20037
19884
  **/
20038
19885
  getMenus: function getMenus(loading) {
20039
- var _this9 = this;
20040
-
20041
- var menuData = store["a" /* default */].get('nav');
19886
+ var _this10 = this;
20042
19887
 
20043
- if (menuData && menuData.length) {
20044
- loading.close();
20045
- this.renderMenus(menuData);
20046
- return;
20047
- }
20048
19888
  util["a" /* default */].ajax({ url: this._menuUrl }).then(function (res) {
20049
19889
  loading.close();
20050
19890
  if (res.rCode === 0) {
20051
19891
  if (res.results && res.results.length) {
20052
19892
  //this.$emit('update:menuData', res.results);
20053
19893
  store["a" /* default */].set('nav', JSON.parse(JSON.stringify(res.results)));
20054
- _this9.renderMenus(JSON.parse(JSON.stringify(res.results)));
19894
+ _this10.renderMenus(JSON.parse(JSON.stringify(res.results)));
20055
19895
  } else {
20056
- _this9.$message.error('未分配菜单权限,请联系管理员!');
19896
+ _this10.$message.error('未分配菜单权限,请联系管理员!');
20057
19897
  }
20058
19898
  } else {
20059
19899
  var msg = res.msg || '系统错误,请联系管理员!';
20060
- _this9.$message.error(msg);
19900
+ _this10.$message.error(msg);
20061
19901
  }
20062
19902
  }).catch(function (err) {
20063
19903
  loading.close();
20064
19904
  if (err.message && err.message !== 'canceled') {
20065
- _this9.$message.error(err.message);
19905
+ _this10.$message.error(err.message);
20066
19906
  }
20067
19907
  });
20068
19908
  },
@@ -20073,100 +19913,76 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20073
19913
  * @date 2024年9月7日
20074
19914
  **/
20075
19915
  renderMenus: function renderMenus(res) {
20076
- this.menus = res;
19916
+ // console.log(res, 'renderMenus');
19917
+ // 此主题样式的情况下 只显示二级菜单 三级菜单以tab的形式加载 如果没有三级菜单 1.不需要展示tab,2.tab为二级菜单
19918
+ var rebuildMenu = res.map(function (level1Menu) {
19919
+ var transformedLevel1 = simplicityTopvue_type_script_lang_js_extends({}, level1Menu, {
19920
+ children: level1Menu.children.map(function (level2Menu) {
19921
+ var transformedLevel2 = simplicityTopvue_type_script_lang_js_extends({}, level2Menu, {
19922
+ // 处理三级菜单
19923
+ fourthTabs: level2Menu.children && level2Menu.children.length > 0 ? level2Menu.children.map(function (level3Menu) {
19924
+ return simplicityTopvue_type_script_lang_js_extends({}, level3Menu);
19925
+ }) : [simplicityTopvue_type_script_lang_js_extends({}, level2Menu)]
19926
+ });
19927
+
19928
+ // 清除children,避免渲染问题
19929
+ transformedLevel2.children = [];
19930
+
19931
+ return transformedLevel2;
19932
+ })
19933
+ });
19934
+
19935
+ return transformedLevel1;
19936
+ });
19937
+
19938
+ // 判断myRemind中每个项是否在菜单列表中,并设置hasPermission
19939
+ this.updateRemindPermission(res);
19940
+
19941
+ // console.log('rebuildMenu', rebuildMenu);
19942
+
19943
+ this.menus = rebuildMenu;
20077
19944
  this.setTips(this.menus);
20078
19945
  store["a" /* default */].set('nav', this.menus);
20079
- if (this.indexUrl) {
20080
- var obj = this.getMenu(this.menus, this.indexUrl);
20081
- obj = obj ? JSON.parse(JSON.stringify(obj)) : {
20082
- url: this.indexUrl,
20083
- text: this.indexTitle,
20084
- id: '0',
20085
- appCode: 'indexUrl'
20086
- };
20087
- this.homePage = this.setIframeType(obj);
20088
- this.currentPage = this.homePage;
20089
- // console.log(this.currentPage, 'currentPagecurrentPage');
19946
+ var obj = this.getMenu(this.menus, this.indexUrl);
19947
+ obj = obj ? JSON.parse(JSON.stringify(obj)) : {
19948
+ url: this.indexUrl,
19949
+ text: this.indexTitle,
19950
+ id: '0',
19951
+ appCode: 'indexUrl'
19952
+ };
19953
+ this.homePage = this.setIframeType(obj);
19954
+ this.currentPage = this.homePage;
19955
+ // console.log(this.currentPage, 'currentPage');
19956
+ },
20090
19957
 
20091
- if (!this.appCode) {
20092
- this.tabs = [this.homePage];
20093
- this.activeName = this.homePage.id;
20094
- }
20095
- }
20096
- if (this.appCode) {
20097
- var code = this.sysCode || this.appCode;
20098
- var app = this.userApps.filter(function (item) {
20099
- return item.code === code;
20100
- })[0];
20101
- if (app) {
20102
- this.active = app.id;
20103
- if (app.url) {
20104
- var _obj = this.getMenu(this.menus, app.url);
20105
- if (_obj) {
20106
- _obj = JSON.parse(JSON.stringify(_obj));
20107
- var tab = this.setIframeType(_obj);
20108
- this.tabs = [tab];
20109
- this.activeName = tab.id;
20110
- } else {
20111
- this.tabs = [app];
20112
- }
20113
- }
20114
- }
20115
- if (this.sysCode) {
20116
- var subMenus = this.getMenu(this.menus, this.sysCode, 'appCode');
20117
- if (subMenus) {
20118
- var _obj2 = this.getMenu(this.menus, this.appCode, 'appCode');
20119
- if (_obj2) {
20120
- if (_obj2.url) {
20121
- _obj2 = JSON.parse(JSON.stringify(_obj2));
20122
- } else {
20123
- _obj2 = JSON.parse(JSON.stringify(this.getFirst(_obj2)));
20124
- }
20125
- this.subActive = _obj2.id;
20126
- var _tab = this.setIframeType(_obj2);
20127
- this.tabs = [_tab];
20128
- this.activeName = _tab.id;
20129
- } else {
20130
- this.subActive = '';
20131
- }
20132
- this.subMenus = subMenus;
20133
- this.showMenu = subMenus.children && subMenus.children.length > 0 || subMenus.fourthTabs && subMenus.fourthTabs.length > 0;
20134
- } else {
20135
- this.subMenus = null;
20136
- this.showMenu = false;
20137
- this.$message.error('未分配菜单权限,请联系管理员!');
20138
- }
20139
- } else {
20140
- var _subMenus = this.getMenu(this.menus, this.appCode, 'appCode');
20141
- if (_subMenus) {
20142
- if (this.tabs.length == 0) {
20143
- var _obj3 = this.getFirst(_subMenus);
20144
- if (_obj3) {
20145
- _obj3 = JSON.parse(JSON.stringify(_obj3));
20146
- this.subActive = _obj3.id;
20147
- var _tab2 = this.setIframeType(_obj3);
20148
- this.tabs = [_tab2];
20149
- this.activeName = _tab2.id;
20150
- } else {
20151
- this.subActive = '';
20152
- }
20153
- }
20154
- this.subMenus = _subMenus;
20155
- this.showMenu = _subMenus.children && _subMenus.children.length > 0 || _subMenus.fourthTabs && _subMenus.fourthTabs.length > 0;
20156
- } else {
20157
- this.subMenus = null;
20158
- this.showMenu = false;
20159
- this.$message.error('未分配菜单权限,请联系管理员!');
19958
+ /**
19959
+ * 更新myRemind中各项的权限状态
19960
+ * @param {Array} menus - 完整的菜单列表
19961
+ */
19962
+ updateRemindPermission: function updateRemindPermission(menus) {
19963
+ // 创建一个Set存储所有菜单的id,方便快速查找
19964
+ var menuIdSet = new Set();
19965
+ // 递归遍历菜单列表,收集所有id
19966
+ var collectMenuIds = function collectMenuIds(menuList) {
19967
+ menuList.forEach(function (menu) {
19968
+ menuIdSet.add(menu.id);
19969
+ if (menu.children && menu.children.length > 0) {
19970
+ collectMenuIds(menu.children);
20160
19971
  }
20161
- }
20162
- } else if (this.initApps && this.initApps.length && !this.indexUrl) {
20163
- var _obj4 = this.getMenu(this.menus, this.initApps[this.initApps.length - 1]);
20164
- if (_obj4) {
20165
- var _tab3 = this.setIframeType(JSON.parse(JSON.stringify(_obj4)));
20166
- this.tabs.push(_tab3);
20167
- this.activeName = _tab3.id;
20168
- }
20169
- }
19972
+ });
19973
+ };
19974
+ // 收集所有菜单id
19975
+ collectMenuIds(menus);
19976
+ // 更新myRemind中各项的hasPermission
19977
+ this.myRemind.forEach(function (remind) {
19978
+ // 判断remind.id是否存在于菜单id集合中
19979
+ remind.hasPermission = menuIdSet.has(remind.id);
19980
+ });
19981
+ // 同时更新userCommonMenuList中各项的hasPermission
19982
+ this.userCommonMenuList.forEach(function (item) {
19983
+ // 判断item.id是否存在于菜单id集合中
19984
+ item.hasPermission = menuIdSet.has(item.id);
19985
+ });
20170
19986
  },
20171
19987
 
20172
19988
  /**
@@ -20250,9 +20066,9 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20250
20066
  return obj;
20251
20067
  }
20252
20068
  } else if (Object.prototype.hasOwnProperty.call(item, 'fourthTabs') && item.fourthTabs.length) {
20253
- var _obj5 = this.getMenu(item.fourthTabs, res, key);
20254
- if (_obj5) {
20255
- return _obj5;
20069
+ var _obj = this.getMenu(item.fourthTabs, res, key);
20070
+ if (_obj) {
20071
+ return _obj;
20256
20072
  }
20257
20073
  }
20258
20074
  }
@@ -20288,11 +20104,11 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20288
20104
  * @date 2024年9月7日
20289
20105
  **/
20290
20106
  setTips: function setTips(obj) {
20291
- var _this10 = this;
20107
+ var _this11 = this;
20292
20108
 
20293
20109
  if (Array.isArray(obj)) {
20294
20110
  obj.forEach(function (item) {
20295
- _this10.setTips(item);
20111
+ _this11.setTips(item);
20296
20112
  });
20297
20113
  } else {
20298
20114
  if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
@@ -20302,7 +20118,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20302
20118
  var flag = 0;
20303
20119
  if (obj.children && obj.children.length) {
20304
20120
  obj.children.forEach(function (item) {
20305
- var n = _this10.setTips(item);
20121
+ var n = _this11.setTips(item);
20306
20122
  flag += n ? parseInt(n) : 0;
20307
20123
  });
20308
20124
  if (flag) {
@@ -20315,7 +20131,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20315
20131
  }
20316
20132
  } else if (obj.fourthTabs && obj.fourthTabs.length) {
20317
20133
  obj.fourthTabs.forEach(function (item) {
20318
- var n = _this10.setTips(item);
20134
+ var n = _this11.setTips(item);
20319
20135
  flag += n ? parseInt(n) : 0;
20320
20136
  });
20321
20137
  if (flag) {
@@ -20337,11 +20153,11 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20337
20153
  return false;
20338
20154
  },
20339
20155
  setDot: function setDot(obj, code) {
20340
- var _this11 = this;
20156
+ var _this12 = this;
20341
20157
 
20342
20158
  if (Array.isArray(obj)) {
20343
20159
  obj.forEach(function (item) {
20344
- _this11.setDot(item, code);
20160
+ _this12.setDot(item, code);
20345
20161
  });
20346
20162
  } else if (obj.code === code) {
20347
20163
  this.$set(obj, 'tips', true);
@@ -20371,7 +20187,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20371
20187
  * @date 2024年9月7日
20372
20188
  **/
20373
20189
  initWebSocket: function initWebSocket() {
20374
- var _this12 = this;
20190
+ var _this13 = this;
20375
20191
 
20376
20192
  this.webSocket = util["a" /* default */].socket({
20377
20193
  url: api["Ic" /* wss */],
@@ -20381,32 +20197,32 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20381
20197
  for (var i in data) {
20382
20198
  if (data[i] !== null && data[i] !== undefined) {
20383
20199
  if (i === 'onlineUserNums' && data[i] > 0) {
20384
- _this12.$set(_this12.handleNums, 'online', data[i]);
20200
+ _this13.$set(_this13.handleNums, 'online', data[i]);
20385
20201
  }
20386
20202
  if (i === 'sysMsgNums' && data[i] !== null) {
20387
- _this12.$set(_this12.handleNums, 'notice', data[i]);
20388
- if (_this12.showMsg) {
20389
- _this12.$refs.message.getMsg(true);
20203
+ _this13.$set(_this13.handleNums, 'notice', data[i]);
20204
+ if (_this13.showMsg) {
20205
+ _this13.$refs.message.getMsg(true);
20390
20206
  }
20391
20207
  }
20392
20208
  if (i === 'menuTipsMap' && data[i] !== null) {
20393
- _this12.menuTips = data[i];
20209
+ _this13.menuTips = data[i];
20394
20210
  }
20395
20211
  if (i === 'sysMsgList' && data[i] !== null) {
20396
- _this12.sysMsg = data[i];
20397
- data[i] && data[i].length && _this12.$emit('bus-emit', 'waitdone');
20212
+ _this13.sysMsg = data[i];
20213
+ data[i] && data[i].length && _this13.$emit('bus-emit', 'waitdone');
20398
20214
  }
20399
20215
  if (i === 'extraData' && data[i] !== null) {
20400
- _this12.extraData = data[i];
20216
+ _this13.extraData = data[i];
20401
20217
  }
20402
20218
  }
20403
20219
  }
20404
- if (_this12.$store) {
20220
+ if (_this13.$store) {
20405
20221
  try {
20406
- _this12.$store.commit('websocket', data);
20222
+ _this13.$store.commit('websocket', data);
20407
20223
  } catch (error) {}
20408
20224
  }
20409
- var bus = _this12.bus || _this12.$eventBus || _this12.$root.Bus;
20225
+ var bus = _this13.bus || _this13.$eventBus || _this13.$root.Bus;
20410
20226
  if (bus) {
20411
20227
  bus.$emit('websocket', data);
20412
20228
  }
@@ -20501,9 +20317,9 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20501
20317
  }
20502
20318
  }
20503
20319
  } else {
20504
- var _tab4 = this.setIframeType(res);
20505
- this.tabs.push(_tab4);
20506
- this.activeName = _tab4.id;
20320
+ var _tab = this.setIframeType(res);
20321
+ this.tabs.push(_tab);
20322
+ this.activeName = _tab.id;
20507
20323
  }
20508
20324
  } else {
20509
20325
  if (res.method == 'iframe') {
@@ -20529,8 +20345,8 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20529
20345
  var _i = util["a" /* default */].indexOfObj(this.tabs, subMenus, 'id');
20530
20346
  this.activeName = subMenus.id;
20531
20347
  if (_i == -1) {
20532
- var _tab5 = this.setIframeType(subMenus);
20533
- this.tabs.push(_tab5);
20348
+ var _tab2 = this.setIframeType(subMenus);
20349
+ this.tabs.push(_tab2);
20534
20350
  } else {
20535
20351
  if (subMenus.method == 'iframe') {
20536
20352
  this.tabs[_i].url = util["a" /* default */].handlerUrl(subMenus.url);
@@ -20577,58 +20393,6 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20577
20393
  this.drawer = { visible: false };
20578
20394
  },
20579
20395
 
20580
- /**
20581
- * @desc:菜单点击
20582
- * @author huangbo
20583
- * @date 2024年9月7日
20584
- **/
20585
- handlerClickMenu: function handlerClickMenu(res) {
20586
- util["a" /* default */].ajax({
20587
- url: api["Gb" /* recordUserApp */],
20588
- params: {
20589
- userId: this.user.userId,
20590
- appId: res.id
20591
- }
20592
- }).then(function () {}).catch(function () {});
20593
- this.showMsg = false;
20594
- this.showSet = false;
20595
-
20596
- if (res.url) {
20597
- if (res.urlopenmode == 1 || res.openModel == 1) {
20598
- util["a" /* default */].win.open(res.url);
20599
- return;
20600
- } else if (res.urlopenmode == 2 || res.openModel == 2) {
20601
- util["a" /* default */].win.open(res.url, '_self');
20602
- return;
20603
- }
20604
- }
20605
- var i = util["a" /* default */].indexOfObj(this.tabs, res, 'id');
20606
- if (i == -1) {
20607
- var tab = this.setIframeType(res);
20608
- this.tabs.push(tab);
20609
- this.activeName = res.id;
20610
- } else {
20611
- this.tabs = simplicityTopvue_type_script_lang_js_events[0](this.tabs, i, this);
20612
- // let tab = this.tabs[i];
20613
- // if (tab.method === 'iframe') {
20614
- // this.activeName = res.id;
20615
- // this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
20616
- // } else {
20617
- // if (tab.method === 'wujie' && tab.appCode) {
20618
- // window.document
20619
- // .querySelector(`iframe[name=${tab.appCode}]`)
20620
- // .contentWindow.location.reload(true);
20621
- // }
20622
- // if (tab.method === 'router') {
20623
- // this.$set(this.tabs[i], 'keys', util.uuid());
20624
- // }
20625
- // this.activeName = res.id;
20626
- // }
20627
- this.activeName = res.id;
20628
- }
20629
- },
20630
-
20631
-
20632
20396
  /**
20633
20397
  * @desc:用户详情请求成功
20634
20398
  * @author huangbo
@@ -20674,6 +20438,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20674
20438
  * @date 2024年9月7日
20675
20439
  **/
20676
20440
  handleRefresh: function handleRefresh(arg) {
20441
+ this.getNums();
20677
20442
  var i = arg && arg != true && arg !== 'pageData' ? util["a" /* default */].indexOfObj(this.tabs, arg, 'appCode,code,id,url') : util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
20678
20443
  var tab = this.tabs[i];
20679
20444
  if (simplicityTopvue_type_script_lang_js_isIE || tab.method === 'iframe') {
@@ -20888,7 +20653,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20888
20653
  * @date 2024年9月7日
20889
20654
  **/
20890
20655
  handleQuit: function handleQuit() {
20891
- var _this13 = this;
20656
+ var _this14 = this;
20892
20657
 
20893
20658
  this.$confirm('确定退出吗?', '退出系统', {
20894
20659
  confirmButtonText: '确定',
@@ -20904,19 +20669,19 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20904
20669
  }
20905
20670
  break;
20906
20671
  }
20907
- if (_this13.singleLogout) {
20908
- for (var _i2 = 0; _i2 < _this13.singleLogout.length; _i2++) {
20672
+ if (_this14.singleLogout) {
20673
+ for (var _i2 = 0; _i2 < _this14.singleLogout.length; _i2++) {
20909
20674
  var iframe = document.createElement('iframe');
20910
20675
  iframe.style.display = 'none';
20911
- iframe.src = _this13.singleLogout[_i2];
20676
+ iframe.src = _this14.singleLogout[_i2];
20912
20677
  document.body.appendChild(iframe);
20913
20678
  }
20914
20679
  }
20915
20680
  util["a" /* default */].ajax({ method: 'post', url: api["vb" /* logout */] }).then(function (res) {
20916
20681
  if (res.rCode == 0) {
20917
20682
  util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
20918
- if (_this13.onQuit && typeof _this13.onQuit === 'function') {
20919
- _this13.onQuit();
20683
+ if (_this14.onQuit && typeof _this14.onQuit === 'function') {
20684
+ _this14.onQuit();
20920
20685
  } else {
20921
20686
  try {
20922
20687
  var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
@@ -20954,7 +20719,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20954
20719
  }
20955
20720
  }).catch(function (err) {
20956
20721
  if (err.message && err.message !== 'canceled') {
20957
- _this13.$message.error(err.message);
20722
+ _this14.$message.error(err.message);
20958
20723
  }
20959
20724
  });
20960
20725
  }).catch(function (e) {});
@@ -21011,121 +20776,160 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
21011
20776
  * @date 2024年9月7日
21012
20777
  **/
21013
20778
  handleOpened: function handleOpened(res) {
21014
- var _this14 = this;
20779
+ var _this15 = this;
21015
20780
 
21016
20781
  if (res === undefined) {
21017
20782
  this.sysMsg = [];
21018
20783
  } else if (res == false && this.sysMsg.length) {
21019
20784
  this.sysMsgOut = setTimeout(function () {
21020
- _this14.sysMsg = [];
20785
+ _this15.sysMsg = [];
21021
20786
  }, 3000);
21022
20787
  } else if (this.sysMsgOut) {
21023
20788
  clearTimeout(this.sysMsgOut);
21024
20789
  }
21025
20790
  },
21026
- jumpMenu: function jumpMenu(res, close) {
21027
- var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
21028
20791
 
21029
- var apps = res;
21030
- var param = params;
21031
- var reload = true;
21032
- if (typeof res === 'string') {
21033
- apps = res.split(',');
21034
- } else if (util["a" /* default */].isObject(res)) {
21035
- apps = Array.isArray(res.appCode) ? res.appCode : res.appCode.split(',');
21036
- res.param && (param = simplicityTopvue_type_script_lang_js_extends({}, res.param, params));
21037
- reload = Object.prototype.hasOwnProperty.call(res, 'reload') ? res.reload : true;
21038
- }
21039
- var obj = this.getMenu(this.menus, apps[apps.length - 1]);
21040
- if (obj) {
21041
- obj = JSON.parse(JSON.stringify(obj));
21042
- var i = util["a" /* default */].indexOfObj(this.tabs, obj, 'id,code,appCode');
21043
- var n = util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
21044
- var old = this.activeName;
21045
- this.activeName = obj.id;
21046
- if (i == -1) {
21047
- var tab = this.setIframeType(obj);
21048
- this.$set(tab, 'url', util["a" /* default */].handlerUrl(tab.url, param));
21049
- this.tabs.splice(n + 1, 0, tab);
21050
- } else {
21051
- var _tab6 = this.tabs[i];
21052
- if (_tab6.method === 'iframe') {
21053
- this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab6.url, param));
21054
- }
21055
- if (_tab6.method === 'wujie' && _tab6.appCode) {
21056
- var url = param ? util["a" /* default */].handlerUrl(_tab6.url, param) : _tab6.url;
21057
- if (reload || param) {
21058
- _tab6.url = '';
21059
- this.$nextTick(function () {
21060
- _tab6.url = url;
21061
- });
20792
+ /**
20793
+ * @desc:菜单点击事件
20794
+ * @author huangbo
20795
+ * @date 2024年9月7日
20796
+ * @param {*} res 菜单点击事件参数
20797
+ * @param {*} method 菜单点击事件方法
20798
+ * 1.顶部菜单点击跳转已经实现
20799
+ * 2.其他地方点击跳转,需要选中跳转的一二级菜单
20800
+ **/
20801
+ handleSelect: function handleSelect(res) {
20802
+ var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
20803
+
20804
+ console.log(res, 'handleSelect');
20805
+
20806
+ if (res.urlopenmode == 1 || res.openModel == 1) {
20807
+ util["a" /* default */].win.open(res.url || res.menuurl);
20808
+ } else if (res.urlopenmode == 2 || res.openModel == 2) {
20809
+ util["a" /* default */].win.open(res.url || res.menuurl, '_self');
20810
+ } else {
20811
+ var node = res.node ? res.node : res;
20812
+
20813
+ var _apps = node;
20814
+ var param = params;
20815
+ var reload = true;
20816
+ if (typeof res === 'string') {
20817
+ _apps = res.split(',');
20818
+ } else if (util["a" /* default */].isObject(node)) {
20819
+ var appCode = node.appCode || node.menuCode;
20820
+ _apps = Array.isArray(appCode) ? appCode : appCode.split(',');
20821
+ node.param && (param = simplicityTopvue_type_script_lang_js_extends({}, node.param, params));
20822
+ reload = Object.prototype.hasOwnProperty.call(node, 'reload') ? node.reload : true;
20823
+ }
20824
+
20825
+ var _findMenuById = this.findMenuById(_apps[_apps.length - 1]),
20826
+ currentPage = _findMenuById.currentPage,
20827
+ fourthTabs = _findMenuById.fourthTabs;
20828
+
20829
+ if (currentPage) {
20830
+ this.currentPage = {};
20831
+ this.fourthTabs = [];
20832
+ if (currentPage.fourthTabs && currentPage.fourthTabs.length > 0) {
20833
+ this.fourthTabs = currentPage.fourthTabs;
20834
+ this.currentPage = this.setIframeType(this.fourthTabs[0]);
20835
+ if (param) {
20836
+ this.currentPage.url = util["a" /* default */].handlerUrl(this.currentPage.url, param);
21062
20837
  }
21063
- // if (param) {
21064
- // window.document.querySelector(
21065
- // `iframe[name=${tab.appCode}]`
21066
- // ).contentWindow.location.href = util.handlerUrl(tab.url, param);
21067
- // } else {
21068
- // window.document
21069
- // .querySelector(`iframe[name=${tab.appCode}]`)
21070
- // .contentWindow.location.reload(true);
21071
- // }
21072
- }
21073
- if (_tab6.method === 'router') {
21074
- this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab6.url, param));
21075
- this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
20838
+ this.tabActiveName = this.currentPage.id;
20839
+ } else {
20840
+ this.fourthTabs = fourthTabs;
20841
+ this.currentPage = this.setIframeType(currentPage);
20842
+ if (param) {
20843
+ this.currentPage.url = util["a" /* default */].handlerUrl(this.currentPage.url, param);
20844
+ }
20845
+ this.tabActiveName = this.currentPage.id;
21076
20846
  }
20847
+ } else {
20848
+ this.$alert('没有关联菜单,请联系管理员!', '提示', {
20849
+ confirmButtonText: '确定',
20850
+ type: 'warning'
20851
+ }).catch(function () {});
21077
20852
  }
21078
- if (close) {
21079
- if (close === old) {
21080
- this.tabs.splice(n, 1);
20853
+ }
20854
+ },
20855
+ findMenuById: function findMenuById(res) {
20856
+ var targetMenu = null;
20857
+ var siblingMenus = [];
20858
+ var transformedMenus = this.menus;
20859
+ // 递归查找函数
20860
+ function searchMenu(menuList) {
20861
+ for (var _iterator = menuList, _isArray = Array.isArray(_iterator), _i3 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
20862
+ var _ref;
20863
+
20864
+ if (_isArray) {
20865
+ if (_i3 >= _iterator.length) break;
20866
+ _ref = _iterator[_i3++];
21081
20867
  } else {
21082
- var d = util["a" /* default */].indexOfObj(this.tabs, close, 'id,code,appCode');
21083
- if (d > -1) {
21084
- this.tabs.splice(d, 1);
21085
- }
20868
+ _i3 = _iterator.next();
20869
+ if (_i3.done) break;
20870
+ _ref = _i3.value;
20871
+ }
20872
+
20873
+ var menu = _ref;
20874
+
20875
+ // 检查是否为一级菜单
20876
+ if (menu.url === res || menu.id === res || menu.appCode === res) {
20877
+ targetMenu = simplicityTopvue_type_script_lang_js_extends({}, menu, { level: 1 });
20878
+ siblingMenus = transformedMenus;
20879
+ return true;
21086
20880
  }
21087
- }
21088
- } else {
21089
- this.$message.error('没有此菜单!');
21090
- }
21091
- },
21092
20881
 
21093
- //监听改变菜单
21094
- handleListener: function handleListener() {
21095
- var _this15 = this;
20882
+ // 检查是否为二级菜单
20883
+ if (menu.children) {
20884
+ for (var _iterator2 = menu.children, _isArray2 = Array.isArray(_iterator2), _i4 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
20885
+ var _ref2;
21096
20886
 
21097
- util["a" /* default */].win.addEventListener('message', function (e) {
21098
- var msg = e.data;
21099
- if (msg.key == 'jump_Menu') {
21100
- var res = msg.data1;
21101
- _this15.jumpMenu(res);
21102
- }
21103
- }, false);
21104
- },
21105
- handleSelect: function handleSelect(res, method) {
21106
- console.log(res, 'resss');
20887
+ if (_isArray2) {
20888
+ if (_i4 >= _iterator2.length) break;
20889
+ _ref2 = _iterator2[_i4++];
20890
+ } else {
20891
+ _i4 = _iterator2.next();
20892
+ if (_i4.done) break;
20893
+ _ref2 = _i4.value;
20894
+ }
21107
20895
 
21108
- if (method) {
21109
- if (res.urlopenmode == 0) {
21110
- this.currentPage = simplicityTopvue_type_script_lang_js_extends({
21111
- url: res.menuurl,
21112
- method: 'wujie'
21113
- }, res);
21114
- } else {
21115
- util["a" /* default */].win.open(res.menuurl);
20896
+ var level2Menu = _ref2;
20897
+
20898
+ if (level2Menu.url === res || level2Menu.id === res || level2Menu.appCode === res) {
20899
+ targetMenu = simplicityTopvue_type_script_lang_js_extends({}, level2Menu, {
20900
+ level: 2
20901
+ });
20902
+ siblingMenus = menu.children;
20903
+ return true;
20904
+ }
20905
+
20906
+ // 检查是否为三级菜单(在fourthTabs中)
20907
+ if (level2Menu.fourthTabs) {
20908
+ var foundInTabs = level2Menu.fourthTabs.find(function (tab) {
20909
+ return tab.id === res || tab.appCode === res || tab.url == res;
20910
+ });
20911
+ if (foundInTabs) {
20912
+ targetMenu = simplicityTopvue_type_script_lang_js_extends({}, foundInTabs, {
20913
+ level: 3,
20914
+ parentId: level2Menu.id
20915
+ });
20916
+ siblingMenus = level2Menu.fourthTabs;
20917
+ return true;
20918
+ }
20919
+ }
20920
+ }
20921
+ }
21116
20922
  }
21117
- } else {
21118
- this.currentPage = this.setIframeType(res.node ? res.node : res);
20923
+ return false;
21119
20924
  }
21120
- // console.log(this.currentPage, 'this.currentPage');
21121
20925
 
21122
- // this.showSearch = false;
21123
- // if (parent.name === '应用') {
21124
- // this.handlerClickApps(res);
21125
- // }
21126
- // if (parent.name === '菜单') {
21127
- // this.handlerClickApp(res);
21128
- // }
20926
+ // 开始查找
20927
+ searchMenu(this.menus);
20928
+
20929
+ return {
20930
+ currentPage: targetMenu,
20931
+ fourthTabs: siblingMenus // 不需要过滤自身
20932
+ };
21129
20933
  },
21130
20934
  handleLoadIframe: function handleLoadIframe(item) {
21131
20935
  this.$set(item, 'loading', false);
@@ -21151,11 +20955,11 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
21151
20955
 
21152
20956
  var simplicityTop_component = Object(componentNormalizer["a" /* default */])(
21153
20957
  src_simplicityTopvue_type_script_lang_js_,
21154
- simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render,
21155
- simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_staticRenderFns,
20958
+ simplicityTopvue_type_template_id_5a47c4f6_scoped_true_render,
20959
+ simplicityTopvue_type_template_id_5a47c4f6_scoped_true_staticRenderFns,
21156
20960
  false,
21157
20961
  null,
21158
- "7e7a3d7a",
20962
+ "5a47c4f6",
21159
20963
  null
21160
20964
 
21161
20965
  )
@@ -25169,6 +24973,8 @@ var default_component = Object(componentNormalizer["a" /* default */])(
25169
24973
 
25170
24974
  /* harmony default export */ var src_default = (default_component.exports);
25171
24975
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=script&lang=js&
24976
+ var _name$inheritAttrs$pr;
24977
+
25172
24978
  var mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
25173
24979
 
25174
24980
  function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
@@ -25255,7 +25061,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
25255
25061
 
25256
25062
 
25257
25063
 
25258
- /* harmony default export */ var mainvue_type_script_lang_js_ = ({
25064
+ /* harmony default export */ var mainvue_type_script_lang_js_ = (_name$inheritAttrs$pr = {
25259
25065
  name: 'EsMain',
25260
25066
  inheritAttrs: false,
25261
25067
  provide: function provide() {
@@ -25307,27 +25113,37 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
25307
25113
  layout: this.scene,
25308
25114
  isIE: /MSIE|Trident/.test(navigator.userAgent)
25309
25115
  };
25310
- },
25311
- created: function created() {
25312
- var layoutType = localStorage.getItem('layoutType');
25313
- if (layoutType) {
25314
- this.layoutType = layoutType;
25315
- }
25316
- this.params = util["a" /* default */].getParams() || {};
25317
- this.sysCode = this.params.sysCode;
25318
- this.appCode = this.params.appCode || this.params.appcode;
25319
- if (this.params.cookie && (this.params.cookie == true || this.params.cookie == 1)) {
25320
- this.isLogin = true;
25321
- }
25322
- },
25323
- mounted: function mounted() {
25116
+ }
25117
+ }, _name$inheritAttrs$pr['watch'] = {
25118
+ layoutType: function layoutType() {
25119
+ // 当主题变化时,重新绑定一次事件 防止事件丢失 或者绑定错误
25120
+ this.bindEvent();
25121
+ }
25122
+ }, _name$inheritAttrs$pr.created = function created() {
25123
+ var layoutType = localStorage.getItem('layoutType');
25124
+ if (layoutType) {
25125
+ this.layoutType = layoutType;
25126
+ }
25127
+ this.params = util["a" /* default */].getParams() || {};
25128
+ this.sysCode = this.params.sysCode;
25129
+ this.appCode = this.params.appCode || this.params.appcode;
25130
+ if (this.params.cookie && (this.params.cookie == true || this.params.cookie == 1)) {
25131
+ this.isLogin = true;
25132
+ }
25133
+ }, _name$inheritAttrs$pr.mounted = function mounted() {
25134
+ var token = util["a" /* default */].getStorage('token') || util["a" /* default */].getStorage('Authorization');
25135
+ this.isLogin = token ? true : this.isLogin;
25136
+ if (!token && Object.prototype.hasOwnProperty.call(this.params, 'serverId') && Object.prototype.hasOwnProperty.call(this.params, 'authType')) {
25137
+ return false;
25138
+ }
25139
+ this.bindEvent();
25140
+ }, _name$inheritAttrs$pr.methods = {
25141
+ /**
25142
+ * @desc: 绑定事件
25143
+ **/
25144
+ bindEvent: function bindEvent() {
25324
25145
  var _this = this;
25325
25146
 
25326
- var token = util["a" /* default */].getStorage('token') || util["a" /* default */].getStorage('Authorization');
25327
- this.isLogin = token ? true : this.isLogin;
25328
- if (!token && Object.prototype.hasOwnProperty.call(this.params, 'serverId') && Object.prototype.hasOwnProperty.call(this.params, 'authType')) {
25329
- return false;
25330
- }
25331
25147
  if (this.isLogin) {
25332
25148
  if (util["a" /* default */].win.$wujie) {
25333
25149
  util["a" /* default */].win.$wujie.bus.$on('changeTheme', function (res) {
@@ -25386,379 +25202,376 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
25386
25202
  }
25387
25203
  },
25388
25204
 
25389
- methods: {
25390
- /**
25391
- * @desc: 切换布局风格
25392
- * @author huangbo
25393
- * @date 2024年9月7日
25394
- **/
25395
- changLayout: function changLayout(res, active) {
25396
- var _this2 = this;
25205
+ /**
25206
+ * @desc: 切换布局风格
25207
+ * @author huangbo
25208
+ * @date 2024年9月7日
25209
+ **/
25210
+ changLayout: function changLayout(res, active) {
25211
+ var _this2 = this;
25397
25212
 
25398
- this.layoutType = res;
25399
- localStorage.setItem('layoutType', res);
25400
- if (active) {
25401
- this.layout = active;
25402
- }
25403
- var mainConfig = util["a" /* default */].getStorage('mainConfig');
25404
- if (mainConfig) {
25405
- mainConfig = JSON.parse(mainConfig);
25406
- this.$nextTick(function () {
25407
- _this2.$refs.main.init(mainConfig, true);
25408
- util["a" /* default */].getMainConfig(function (res) {
25409
- _this2.$refs.main.init(res, false);
25410
- });
25411
- });
25412
- } else {
25213
+ this.layoutType = res;
25214
+ localStorage.setItem('layoutType', res);
25215
+ if (active) {
25216
+ this.layout = active;
25217
+ }
25218
+ var mainConfig = util["a" /* default */].getStorage('mainConfig');
25219
+ if (mainConfig) {
25220
+ mainConfig = JSON.parse(mainConfig);
25221
+ this.$nextTick(function () {
25222
+ _this2.$refs.main.init(mainConfig, true);
25413
25223
  util["a" /* default */].getMainConfig(function (res) {
25414
- _this2.$refs.main.init(res, true);
25224
+ _this2.$refs.main.init(res, false);
25415
25225
  });
25416
- }
25417
- },
25226
+ });
25227
+ } else {
25228
+ util["a" /* default */].getMainConfig(function (res) {
25229
+ _this2.$refs.main.init(res, true);
25230
+ });
25231
+ }
25232
+ },
25418
25233
 
25419
- /**
25420
- * @desc:重新登录
25421
- * @author huangbo
25422
- * @date 2024年9月7日
25423
- **/
25424
- handleReLogin: function handleReLogin(res) {
25425
- var _this3 = this;
25234
+ /**
25235
+ * @desc:重新登录
25236
+ * @author huangbo
25237
+ * @date 2024年9月7日
25238
+ **/
25239
+ handleReLogin: function handleReLogin(res) {
25240
+ var _this3 = this;
25426
25241
 
25427
- if (res && typeof res == 'string') {
25428
- res = JSON.parse(res);
25429
- }
25430
- var msg = '提示';
25431
- var btn = {
25432
- confirmButtonText: '确定',
25433
- cancelButtonText: '取消',
25434
- closeOnClickModal: false,
25435
- type: 'warning'
25436
- };
25437
- if (res) {
25438
- if (res.rCode === 69) {
25439
- msg = '该账号在其他地方已登陆!';
25440
- btn = {
25441
- confirmButtonText: '确定',
25442
- closeOnClickModal: false,
25443
- type: 'warning'
25444
- };
25445
- } else {
25446
- msg = '登录已过期,请重新登录!';
25447
- }
25242
+ if (res && typeof res == 'string') {
25243
+ res = JSON.parse(res);
25244
+ }
25245
+ var msg = '提示';
25246
+ var btn = {
25247
+ confirmButtonText: '确定',
25248
+ cancelButtonText: '取消',
25249
+ closeOnClickModal: false,
25250
+ type: 'warning'
25251
+ };
25252
+ if (res) {
25253
+ if (res.rCode === 69) {
25254
+ msg = '该账号在其他地方已登陆!';
25255
+ btn = {
25256
+ confirmButtonText: '确定',
25257
+ closeOnClickModal: false,
25258
+ type: 'warning'
25259
+ };
25260
+ } else {
25261
+ msg = '登录已过期,请重新登录!';
25448
25262
  }
25449
- cl;
25450
- var remind = sessionStorage.getItem('remind');
25451
- if (!remind) {
25452
- clearTimeout(this.timer);
25453
- this.timer = setTimeout(function () {
25454
- console.log('handleReLogin');
25455
- sessionStorage.setItem('remind', 1);
25456
- _this3.$confirm(msg, btn).then(function () {
25457
- util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
25458
- var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
25459
- try {
25460
- if (loginPage) {
25461
- var src = void 0;
25462
- if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
25463
- var pathname = util["a" /* default */].win.top.location.pathname;
25464
- if (pathname !== '/') {
25465
- pathname = pathname.split('/');
25466
- pathname.splice(pathname.length - 1);
25467
- pathname = pathname.join('/');
25468
- src = pathname + '/' + loginPage.replace('./', '');
25469
- } else {
25470
- src = pathname + loginPage.replace('./', '');
25471
- }
25263
+ }
25264
+ cl;
25265
+ var remind = sessionStorage.getItem('remind');
25266
+ if (!remind) {
25267
+ clearTimeout(this.timer);
25268
+ this.timer = setTimeout(function () {
25269
+ console.log('handleReLogin');
25270
+ sessionStorage.setItem('remind', 1);
25271
+ _this3.$confirm(msg, btn).then(function () {
25272
+ util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
25273
+ var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
25274
+ try {
25275
+ if (loginPage) {
25276
+ var src = void 0;
25277
+ if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
25278
+ var pathname = util["a" /* default */].win.top.location.pathname;
25279
+ if (pathname !== '/') {
25280
+ pathname = pathname.split('/');
25281
+ pathname.splice(pathname.length - 1);
25282
+ pathname = pathname.join('/');
25283
+ src = pathname + '/' + loginPage.replace('./', '');
25472
25284
  } else {
25473
- src = loginPage;
25285
+ src = pathname + loginPage.replace('./', '');
25474
25286
  }
25475
- util["a" /* default */].win.top.location.href = src;
25476
- } else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
25477
- util["a" /* default */].win.top.location.href = './login.html';
25478
25287
  } else {
25479
- var hash = util["a" /* default */].win.top.location.hash;
25480
- if (hash) {
25481
- var len = util["a" /* default */].win.top.location.href.indexOf(hash);
25482
- util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
25483
- } else {
25484
- util["a" /* default */].win.top.location.href = '/login.html';
25485
- }
25288
+ src = loginPage;
25486
25289
  }
25487
- } catch (error) {}
25488
- }).catch(function (e) {
25489
- sessionStorage.removeItem('remind');
25490
- });
25491
- }, 2000);
25492
- }
25493
- },
25494
-
25495
- /**
25496
- * @desc:获取系统配置
25497
- * @author huangbo
25498
- * @date 2024年9月7日
25499
- **/
25500
- getConfig: function getConfig() {
25501
- var _this4 = this;
25502
-
25503
- var mainConfig = util["a" /* default */].getStorage('mainConfig');
25504
- if (mainConfig) {
25505
- mainConfig = JSON.parse(mainConfig);
25506
- this.$refs.main.init(mainConfig, true);
25507
- util["a" /* default */].getMainConfig(function (res) {
25508
- _this4.$refs.main.init(res, false);
25509
- });
25510
- } else {
25511
- util["a" /* default */].getMainConfig(function (res) {
25512
- _this4.$refs.main.init(res, true);
25290
+ util["a" /* default */].win.top.location.href = src;
25291
+ } else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
25292
+ util["a" /* default */].win.top.location.href = './login.html';
25293
+ } else {
25294
+ var hash = util["a" /* default */].win.top.location.hash;
25295
+ if (hash) {
25296
+ var len = util["a" /* default */].win.top.location.href.indexOf(hash);
25297
+ util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
25298
+ } else {
25299
+ util["a" /* default */].win.top.location.href = '/login.html';
25300
+ }
25301
+ }
25302
+ } catch (error) {}
25303
+ }).catch(function (e) {
25304
+ sessionStorage.removeItem('remind');
25513
25305
  });
25514
- }
25515
- },
25306
+ }, 2000);
25307
+ }
25308
+ },
25516
25309
 
25517
- /**
25518
- * @desc:打开dialog页面
25519
- * @author huangbo
25520
- * @date 2024年9月7日
25521
- **/
25522
- winOpen: function winOpen(_ref) {
25523
- var _this5 = this;
25310
+ /**
25311
+ * @desc:获取系统配置
25312
+ * @author huangbo
25313
+ * @date 2024年9月7日
25314
+ **/
25315
+ getConfig: function getConfig() {
25316
+ var _this4 = this;
25524
25317
 
25525
- var url = _ref.url,
25526
- name = _ref.name,
25527
- _ref$width = _ref.width,
25528
- width = _ref$width === undefined ? '100%' : _ref$width,
25529
- _ref$height = _ref.height,
25530
- height = _ref$height === undefined ? '100%' : _ref$height,
25531
- appCode = _ref.appCode,
25532
- id = _ref.id,
25533
- size = _ref.size,
25534
- config = _objectWithoutProperties(_ref, ['url', 'name', 'width', 'height', 'appCode', 'id', 'size']);
25535
-
25536
- url = typeof arguments[0] === 'string' ? arguments[0] : url;
25537
- id = id ? id : appCode ? undefined : 'iframe' + this.dialogs.length;
25538
- var openModel = util["a" /* default */].getStorage('openModel');
25539
- var src = url;
25540
- if (!util["a" /* default */].startWith(url, ['http', '/'], true)) {
25541
- var pathname = window.location.pathname;
25542
- if (pathname !== '/') {
25543
- pathname = pathname.split('/');
25544
- pathname.splice(pathname.length - 1);
25545
- pathname = pathname.join('/');
25546
- }
25547
- src = pathname + url.replace('./', '/');
25548
- }
25549
- if (openModel && openModel == 'dialog') {
25550
- var _dialog = mainvue_type_script_lang_js_extends({
25551
- id: id,
25552
- url: src,
25553
- name: name,
25554
- width: width,
25555
- height: height,
25556
- appCode: appCode,
25557
- visible: false,
25558
- size: size
25559
- }, config);
25560
- var n = this.dialogs.push(_dialog);
25561
- this.$nextTick(function () {
25562
- _this5.$set(_dialog, 'index', n - 1);
25563
- _this5.$set(_dialog, 'visible', true);
25564
- });
25565
- return _dialog;
25566
- }
25318
+ var mainConfig = util["a" /* default */].getStorage('mainConfig');
25319
+ if (mainConfig) {
25320
+ mainConfig = JSON.parse(mainConfig);
25321
+ this.$refs.main.init(mainConfig, true);
25322
+ util["a" /* default */].getMainConfig(function (res) {
25323
+ _this4.$refs.main.init(res, false);
25324
+ });
25325
+ } else {
25326
+ util["a" /* default */].getMainConfig(function (res) {
25327
+ _this4.$refs.main.init(res, true);
25328
+ });
25329
+ }
25330
+ },
25567
25331
 
25568
- if (name) {
25569
- var w = 0;
25570
- var h = 0;
25571
- try {
25572
- w = width ? width : util["a" /* default */].win.top.screen.availWidth - 10;
25573
- h = height ? height : util["a" /* default */].win.top.screen.availHeight - 60;
25574
- } catch (error) {
25575
- w = width ? width : util["a" /* default */].win.screen.availWidth - 10;
25576
- h = height ? height : util["a" /* default */].win.screen.availHeight - 60;
25577
- }
25578
- return util["a" /* default */].win.open(src, name, 'width=' + w + 'px,height=' + h + 'px,resizable=yes,status=yes,menubar=no,scrollbars=yes');
25579
- } else {
25580
- return util["a" /* default */].win.open(src);
25332
+ /**
25333
+ * @desc:打开dialog页面
25334
+ * @author huangbo
25335
+ * @date 2024年9月7日
25336
+ **/
25337
+ winOpen: function winOpen(_ref) {
25338
+ var _this5 = this;
25339
+
25340
+ var url = _ref.url,
25341
+ name = _ref.name,
25342
+ _ref$width = _ref.width,
25343
+ width = _ref$width === undefined ? '100%' : _ref$width,
25344
+ _ref$height = _ref.height,
25345
+ height = _ref$height === undefined ? '100%' : _ref$height,
25346
+ appCode = _ref.appCode,
25347
+ id = _ref.id,
25348
+ size = _ref.size,
25349
+ config = _objectWithoutProperties(_ref, ['url', 'name', 'width', 'height', 'appCode', 'id', 'size']);
25350
+
25351
+ url = typeof arguments[0] === 'string' ? arguments[0] : url;
25352
+ id = id ? id : appCode ? undefined : 'iframe' + this.dialogs.length;
25353
+ var openModel = util["a" /* default */].getStorage('openModel');
25354
+ var src = url;
25355
+ if (!util["a" /* default */].startWith(url, ['http', '/'], true)) {
25356
+ var pathname = window.location.pathname;
25357
+ if (pathname !== '/') {
25358
+ pathname = pathname.split('/');
25359
+ pathname.splice(pathname.length - 1);
25360
+ pathname = pathname.join('/');
25361
+ }
25362
+ src = pathname + url.replace('./', '/');
25363
+ }
25364
+ if (openModel && openModel == 'dialog') {
25365
+ var _dialog = mainvue_type_script_lang_js_extends({
25366
+ id: id,
25367
+ url: src,
25368
+ name: name,
25369
+ width: width,
25370
+ height: height,
25371
+ appCode: appCode,
25372
+ visible: false,
25373
+ size: size
25374
+ }, config);
25375
+ var n = this.dialogs.push(_dialog);
25376
+ this.$nextTick(function () {
25377
+ _this5.$set(_dialog, 'index', n - 1);
25378
+ _this5.$set(_dialog, 'visible', true);
25379
+ });
25380
+ return _dialog;
25381
+ }
25382
+
25383
+ if (name) {
25384
+ var w = 0;
25385
+ var h = 0;
25386
+ try {
25387
+ w = width ? width : util["a" /* default */].win.top.screen.availWidth - 10;
25388
+ h = height ? height : util["a" /* default */].win.top.screen.availHeight - 60;
25389
+ } catch (error) {
25390
+ w = width ? width : util["a" /* default */].win.screen.availWidth - 10;
25391
+ h = height ? height : util["a" /* default */].win.screen.availHeight - 60;
25581
25392
  }
25582
- },
25393
+ return util["a" /* default */].win.open(src, name, 'width=' + w + 'px,height=' + h + 'px,resizable=yes,status=yes,menubar=no,scrollbars=yes');
25394
+ } else {
25395
+ return util["a" /* default */].win.open(src);
25396
+ }
25397
+ },
25583
25398
 
25584
25399
 
25585
- /**
25586
- * @desc:关闭dialog页面
25587
- * @author huangbo
25588
- * @date 2024年9月7日
25589
- **/
25590
- winClose: function winClose(_ref2) {
25591
- var url = _ref2.url,
25592
- appCode = _ref2.appCode,
25593
- id = _ref2.id,
25594
- index = _ref2.index,
25595
- refresh = _ref2.refresh,
25596
- jumpMenu = _ref2.jumpMenu,
25597
- callback = _ref2.callback;
25598
-
25599
- if (!appCode && !id) {
25600
- console.error('参数错误,缺少appCode或者id');
25601
- return;
25602
- }
25603
- if (index) {
25604
- this.$set(this.dialogs, 'visible', false);
25605
- this.dialogs.splice(dialog.index, 1);
25606
- } else {
25607
- var _dialog2 = this.dialogs.find(function (item) {
25608
- return item.url == url || item.appCode == appCode || item.id == id;
25609
- });
25400
+ /**
25401
+ * @desc:关闭dialog页面
25402
+ * @author huangbo
25403
+ * @date 2024年9月7日
25404
+ **/
25405
+ winClose: function winClose(_ref2) {
25406
+ var url = _ref2.url,
25407
+ appCode = _ref2.appCode,
25408
+ id = _ref2.id,
25409
+ index = _ref2.index,
25410
+ refresh = _ref2.refresh,
25411
+ jumpMenu = _ref2.jumpMenu,
25412
+ callback = _ref2.callback;
25413
+
25414
+ if (!appCode && !id) {
25415
+ console.error('参数错误,缺少appCode或者id');
25416
+ return;
25417
+ }
25418
+ if (index) {
25419
+ this.$set(this.dialogs, 'visible', false);
25420
+ this.dialogs.splice(dialog.index, 1);
25421
+ } else {
25422
+ var _dialog2 = this.dialogs.find(function (item) {
25423
+ return item.url == url || item.appCode == appCode || item.id == id;
25424
+ });
25610
25425
 
25611
- if (_dialog2) {
25612
- this.$set(_dialog2, 'visible', false);
25613
- this.dialogs.splice(_dialog2.index, 1);
25614
- }
25426
+ if (_dialog2) {
25427
+ this.$set(_dialog2, 'visible', false);
25428
+ this.dialogs.splice(_dialog2.index, 1);
25615
25429
  }
25616
- if (callback) {
25617
- var bus = this.bus || this.$root.Bus;
25618
- if (bus) {
25619
- // 主应用发送事件
25620
- bus.$emit(callback, arguments[0]);
25621
- }
25622
- } else {
25623
- var _$refs$main;
25624
-
25625
- refresh && this.$refs.main.handleRefresh(refresh);
25626
- jumpMenu && (Array.isArray(jumpMenu) ? (_$refs$main = this.$refs.main).jumpMenu.apply(_$refs$main, jumpMenu) : this.$refs.main.jumpMenu(jumpMenu));
25430
+ }
25431
+ if (callback) {
25432
+ var bus = this.bus || this.$root.Bus;
25433
+ if (bus) {
25434
+ // 主应用发送事件
25435
+ bus.$emit(callback, arguments[0]);
25627
25436
  }
25628
- },
25629
-
25630
-
25631
- /**
25632
- * @desc:postMessage消息处理
25633
- * @author huangbo
25634
- * @date 2024年9月7日
25635
- **/
25636
- handleMessage: function handleMessage(e) {
25637
- var _$refs$main2;
25638
-
25639
- var _e$data = e.data,
25640
- method = _e$data.method,
25641
- args = _e$data.args;
25437
+ } else {
25438
+ var _$refs$main;
25642
25439
 
25643
- switch (method) {
25644
- case 'reLogin':
25645
- this.handleReLogin(args);
25646
- break;
25647
- case 'refresh':
25648
- this.$refs.main.handleRefresh(args);
25649
- break;
25650
- case 'jumpMenu':
25651
- Array.isArray(args) ? (_$refs$main2 = this.$refs.main).jumpMenu.apply(_$refs$main2, args) : this.$refs.main.jumpMenu(args);
25652
- break;
25653
- case 'emit':
25654
- var origin = args.origin,
25655
- appCode = args.appCode,
25656
- id = args.id,
25657
- data = _objectWithoutProperties(args, ['origin', 'appCode', 'id']);
25658
-
25659
- var iframe = document.getElementById(appCode || id);
25660
- iframe.contentWindow.postMessage(data, origin ? origin : '*');
25661
- break;
25662
- case 'openDialog':
25663
- //打开弹窗
25664
- this.winOpen(args);
25665
- break;
25666
- case 'closeDialog':
25667
- //关闭弹窗
25668
- this.winClose(args);
25669
- break;
25670
- case 'windowOpen':
25671
- //打开弹窗
25672
- this.winOpen(args);
25673
- break;
25674
- case 'windowClose':
25675
- //关闭弹窗
25676
- this.winClose(args);
25677
- break;
25678
- }
25679
- },
25440
+ refresh && this.$refs.main.handleRefresh(refresh);
25441
+ jumpMenu && (Array.isArray(jumpMenu) ? (_$refs$main = this.$refs.main).jumpMenu.apply(_$refs$main, jumpMenu) : this.$refs.main.jumpMenu(jumpMenu));
25442
+ }
25443
+ },
25680
25444
 
25681
25445
 
25682
- /**
25683
- * @desc:dialog页面加载完成后通讯
25684
- * @author huangbo
25685
- * @date 2024年9月7日
25686
- **/
25687
- handleIframeLoad: function handleIframeLoad(iframe, data) {
25688
- iframe = iframe ? iframe : document.getElementById(data.appCode || data.id);
25689
- var origin = new URL(iframe.src).origin;
25690
- iframe.contentWindow.postMessage(mainvue_type_script_lang_js_extends({}, data, { method: 'windowOpen' }), origin);
25691
- },
25446
+ /**
25447
+ * @desc:postMessage消息处理
25448
+ * @author huangbo
25449
+ * @date 2024年9月7日
25450
+ **/
25451
+ handleMessage: function handleMessage(e) {
25452
+ var _$refs$main2;
25453
+
25454
+ var _e$data = e.data,
25455
+ method = _e$data.method,
25456
+ args = _e$data.args;
25457
+
25458
+ switch (method) {
25459
+ case 'reLogin':
25460
+ this.handleReLogin(args);
25461
+ break;
25462
+ case 'refresh':
25463
+ this.$refs.main.handleRefresh(args);
25464
+ break;
25465
+ case 'jumpMenu':
25466
+ Array.isArray(args) ? (_$refs$main2 = this.$refs.main).jumpMenu.apply(_$refs$main2, args) : this.$refs.main.jumpMenu(args);
25467
+ break;
25468
+ case 'emit':
25469
+ var origin = args.origin,
25470
+ appCode = args.appCode,
25471
+ id = args.id,
25472
+ data = _objectWithoutProperties(args, ['origin', 'appCode', 'id']);
25473
+
25474
+ var iframe = document.getElementById(appCode || id);
25475
+ iframe.contentWindow.postMessage(data, origin ? origin : '*');
25476
+ break;
25477
+ case 'openDialog':
25478
+ //打开弹窗
25479
+ this.winOpen(args);
25480
+ break;
25481
+ case 'closeDialog':
25482
+ //关闭弹窗
25483
+ this.winClose(args);
25484
+ break;
25485
+ case 'windowOpen':
25486
+ //打开弹窗
25487
+ this.winOpen(args);
25488
+ break;
25489
+ case 'windowClose':
25490
+ //关闭弹窗
25491
+ this.winClose(args);
25492
+ break;
25493
+ }
25494
+ },
25692
25495
 
25693
25496
 
25694
- /**
25695
- * @desc:排除属性
25696
- * @author huangbo
25697
- * @date 2024年9月7日
25698
- **/
25699
- exclAttribute: function exclAttribute(_ref3) {
25700
- var data = _ref3.data,
25701
- attrs = _ref3.attrs;
25497
+ /**
25498
+ * @desc:dialog页面加载完成后通讯
25499
+ * @author huangbo
25500
+ * @date 2024年9月7日
25501
+ **/
25502
+ handleIframeLoad: function handleIframeLoad(iframe, data) {
25503
+ iframe = iframe ? iframe : document.getElementById(data.appCode || data.id);
25504
+ var origin = new URL(iframe.src).origin;
25505
+ iframe.contentWindow.postMessage(mainvue_type_script_lang_js_extends({}, data, { method: 'windowOpen' }), origin);
25506
+ },
25702
25507
 
25703
- return util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
25704
- },
25705
25508
 
25706
- /**
25707
- * @desc:关闭dialog
25708
- * @author huangbo
25709
- * @date 2024年9月7日
25710
- **/
25711
- handleClosed: function handleClosed(res, index) {
25712
- var _this6 = this;
25509
+ /**
25510
+ * @desc:排除属性
25511
+ * @author huangbo
25512
+ * @date 2024年9月7日
25513
+ **/
25514
+ exclAttribute: function exclAttribute(_ref3) {
25515
+ var data = _ref3.data,
25516
+ attrs = _ref3.attrs;
25713
25517
 
25714
- // 在关闭弹窗后更新数量
25715
- if (this.layoutType == 'simplicityTop') {
25716
- this.$refs.main.getNums();
25717
- }
25718
- this.$nextTick(function () {
25719
- _this6.dialogs.splice(index, 1);
25720
- });
25721
- },
25518
+ return util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
25519
+ },
25722
25520
 
25723
- /**
25724
- * @desc:主应用向子应用发送事件
25725
- * @author huangbo
25726
- * @date 2024年9月7日
25727
- **/
25728
- busEmit: function busEmit(event, args) {
25729
- console.log('busEmit', event, args);
25521
+ /**
25522
+ * @desc:关闭dialog
25523
+ * @author huangbo
25524
+ * @date 2024年9月7日
25525
+ **/
25526
+ handleClosed: function handleClosed(res, index) {
25527
+ var _this6 = this;
25528
+
25529
+ // 在关闭弹窗后更新数量
25530
+ if (this.layoutType == 'simplicityTop') {
25531
+ this.$refs.main.getNums();
25532
+ }
25533
+ this.$nextTick(function () {
25534
+ _this6.dialogs.splice(index, 1);
25535
+ });
25536
+ },
25730
25537
 
25731
- external_wujie_vue2_default.a.bus.$emit(event, args);
25732
- var iframes = document.getElementsByTagName('iframe');
25733
- for (var i = 0; i < iframes.length; i++) {
25734
- var src = iframes[i] ? iframes[i].src : null;
25735
- var origin = util["a" /* default */].win.location.origin;
25736
- if (src && util["a" /* default */].startWith(src, 'http') && src.indexOf(origin) === -1) {
25737
- iframes[i] && iframes[i].contentWindow.postMessage({ method: event, query: args }, '*');
25738
- }
25538
+ /**
25539
+ * @desc:主应用向子应用发送事件
25540
+ * @author huangbo
25541
+ * @date 2024年9月7日
25542
+ **/
25543
+ busEmit: function busEmit(event, args) {
25544
+ console.log('busEmit', event, args);
25545
+
25546
+ external_wujie_vue2_default.a.bus.$emit(event, args);
25547
+ var iframes = document.getElementsByTagName('iframe');
25548
+ for (var i = 0; i < iframes.length; i++) {
25549
+ var src = iframes[i] ? iframes[i].src : null;
25550
+ var origin = util["a" /* default */].win.location.origin;
25551
+ if (src && util["a" /* default */].startWith(src, 'http') && src.indexOf(origin) === -1) {
25552
+ iframes[i] && iframes[i].contentWindow.postMessage({ method: event, query: args }, '*');
25739
25553
  }
25740
- var bus = this.bus || this.$root.Bus;
25741
- bus && bus.$emit(event, args);
25742
- this.$emit('busEvent', event, args);
25743
25554
  }
25744
- },
25745
- beforeDestroy: function beforeDestroy() {
25746
- window.removeEventListener('message', this.handleMessage);
25747
25555
  var bus = this.bus || this.$root.Bus;
25748
- if (bus) {
25749
- bus.$off('reLogin');
25750
- bus.$off('refresh');
25751
- bus.$off('windowOpen');
25752
- bus.$off('windowClose');
25753
- bus.$off('jumpMenu');
25754
- bus.$off('emit');
25755
- }
25756
- external_wujie_vue2_default.a.bus.$off('reLogin');
25757
- external_wujie_vue2_default.a.bus.$off('refresh');
25758
- external_wujie_vue2_default.a.bus.$off('jumpMenu');
25759
- external_wujie_vue2_default.a.bus.$off('emit');
25556
+ bus && bus.$emit(event, args);
25557
+ this.$emit('busEvent', event, args);
25760
25558
  }
25761
- });
25559
+ }, _name$inheritAttrs$pr.beforeDestroy = function beforeDestroy() {
25560
+ window.removeEventListener('message', this.handleMessage);
25561
+ var bus = this.bus || this.$root.Bus;
25562
+ if (bus) {
25563
+ bus.$off('reLogin');
25564
+ bus.$off('refresh');
25565
+ bus.$off('windowOpen');
25566
+ bus.$off('windowClose');
25567
+ bus.$off('jumpMenu');
25568
+ bus.$off('emit');
25569
+ }
25570
+ external_wujie_vue2_default.a.bus.$off('reLogin');
25571
+ external_wujie_vue2_default.a.bus.$off('refresh');
25572
+ external_wujie_vue2_default.a.bus.$off('jumpMenu');
25573
+ external_wujie_vue2_default.a.bus.$off('emit');
25574
+ }, _name$inheritAttrs$pr);
25762
25575
  // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=script&lang=js&
25763
25576
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
25764
25577
  // CONCATENATED MODULE: ./packages/main/src/main.vue