eoss-ui 0.7.69 → 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,7 +5337,7 @@ 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);
@@ -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
  )
@@ -13970,8 +13970,8 @@ var simplicity_component = Object(componentNormalizer["a" /* default */])(
13970
13970
  )
13971
13971
 
13972
13972
  /* harmony default export */ var simplicity = (simplicity_component.exports);
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=7e7a3d7a&scoped=true&
13974
- 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 () {
13975
13975
  var _vm = this
13976
13976
  var _h = _vm.$createElement
13977
13977
  var _c = _vm._self._c || _h
@@ -14060,7 +14060,7 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render = function ()
14060
14060
  _c("div", { staticClass: "es-simplicitytop-greeting" }, [
14061
14061
  _vm._v(
14062
14062
  "\n " +
14063
- _vm._s(_vm.user.username) +
14063
+ _vm._s(_vm.user.username || "-") +
14064
14064
  "," +
14065
14065
  _vm._s(_vm.greeting) +
14066
14066
  "\n "
@@ -14102,55 +14102,68 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render = function ()
14102
14102
  _c(
14103
14103
  "div",
14104
14104
  { staticClass: "es-simplicitytop-menu-children" },
14105
- _vm._l(_vm.myRemind, function (child, i) {
14106
- return _c(
14107
- "div",
14108
- {
14109
- key: i,
14110
- staticClass: "es-simplicitytop-menu-children-item",
14111
- on: {
14112
- click: function ($event) {
14113
- _vm.handleSelect(child)
14114
- },
14115
- },
14116
- },
14117
- [
14118
- _c(
14119
- "div",
14120
- { staticClass: "es-simplicitytop-menu-children-icon" },
14121
- [_c("i", { class: child.icon })]
14122
- ),
14123
- _c(
14124
- "div",
14125
- { staticClass: "es-simplicitytop-menu-children-name" },
14126
- [
14127
- _vm._v(
14128
- "\n " +
14129
- _vm._s(child.text || child.name) +
14130
- "\n "
14131
- ),
14132
- ]
14133
- ),
14134
- child.badge && child.num
14105
+ [
14106
+ _vm._l(_vm.myRemind, function (child, i) {
14107
+ return [
14108
+ child.hasPermission
14135
14109
  ? _c(
14136
14110
  "div",
14137
14111
  {
14112
+ key: i,
14138
14113
  staticClass:
14139
- "es-simplicitytop-menu-children-badge",
14114
+ "es-simplicitytop-menu-children-item",
14115
+ on: {
14116
+ click: function ($event) {
14117
+ _vm.handleSelect(child)
14118
+ },
14119
+ },
14140
14120
  },
14141
14121
  [
14142
- _vm._v(
14143
- "\n " +
14144
- _vm._s(child.num) +
14145
- "\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
+ ]
14146
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(),
14147
14160
  ]
14148
14161
  )
14149
14162
  : _vm._e(),
14150
14163
  ]
14151
- )
14152
- }),
14153
- 0
14164
+ }),
14165
+ ],
14166
+ 2
14154
14167
  ),
14155
14168
  ]
14156
14169
  ),
@@ -14168,49 +14181,51 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render = function ()
14168
14181
  "div",
14169
14182
  { staticClass: "es-simplicitytop-menu-children" },
14170
14183
  _vm._l(_vm.userCommonMenuList, function (child, i) {
14171
- return _c(
14172
- "div",
14173
- {
14174
- key: i,
14175
- staticClass:
14176
- "es-simplicitytop-menu-children-item",
14177
- on: {
14178
- click: function ($event) {
14179
- _vm.handleSelect(child, "wujie")
14180
- },
14181
- },
14182
- },
14183
- [
14184
- _c(
14185
- "div",
14186
- {
14187
- staticClass:
14188
- "es-simplicitytop-menu-children-icon",
14189
- },
14190
- [
14191
- _c("i", {
14192
- class: child.icons
14193
- ? child.icons
14194
- : "es-icon-application",
14195
- }),
14196
- ]
14197
- ),
14198
- _c(
14184
+ return child.hasPermission
14185
+ ? _c(
14199
14186
  "div",
14200
14187
  {
14188
+ key: i,
14201
14189
  staticClass:
14202
- "es-simplicitytop-menu-children-name",
14190
+ "es-simplicitytop-menu-children-item",
14191
+ on: {
14192
+ click: function ($event) {
14193
+ _vm.handleSelect(child)
14194
+ },
14195
+ },
14203
14196
  },
14204
14197
  [
14205
- _vm._v(
14206
- "\n " +
14207
- _vm._s(child.text) +
14208
- "\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
+ ]
14209
14225
  ),
14210
14226
  ]
14211
- ),
14212
- ]
14213
- )
14227
+ )
14228
+ : _vm._e()
14214
14229
  }),
14215
14230
  0
14216
14231
  ),
@@ -14246,6 +14261,36 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render = function ()
14246
14261
  ],
14247
14262
  1
14248
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(),
14249
14294
  _c(
14250
14295
  "div",
14251
14296
  { staticClass: "es-simplicitytop-main-router" },
@@ -14448,12 +14493,6 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render = function ()
14448
14493
  1
14449
14494
  ),
14450
14495
  ]),
14451
- false
14452
- ? undefined
14453
- : _vm._e(),
14454
- false
14455
- ? undefined
14456
- : _vm._e(),
14457
14496
  _c(
14458
14497
  "settings",
14459
14498
  _vm._b(
@@ -14478,11 +14517,41 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render = function ()
14478
14517
  false
14479
14518
  )
14480
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
+ ),
14481
14550
  ],
14482
14551
  1
14483
14552
  )
14484
14553
  }
14485
- var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_staticRenderFns = [
14554
+ var simplicityTopvue_type_template_id_5a47c4f6_scoped_true_staticRenderFns = [
14486
14555
  function () {
14487
14556
  var _vm = this
14488
14557
  var _h = _vm.$createElement
@@ -14494,10 +14563,10 @@ var simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_staticRenderFns = [
14494
14563
  ])
14495
14564
  },
14496
14565
  ]
14497
- simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render._withStripped = true
14566
+ simplicityTopvue_type_template_id_5a47c4f6_scoped_true_render._withStripped = true
14498
14567
 
14499
14568
 
14500
- // 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&
14501
14570
 
14502
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&
14503
14572
  var avatarvue_type_template_id_30391b69_scoped_true_render = function () {
@@ -18646,252 +18715,6 @@ var simplicityTopvue_type_script_lang_js_extends = Object.assign || function (ta
18646
18715
  //
18647
18716
  //
18648
18717
  //
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
- //
18892
- //
18893
- //
18894
- //
18895
18718
 
18896
18719
 
18897
18720
 
@@ -18964,7 +18787,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
18964
18787
  return {
18965
18788
  esMain: this,
18966
18789
  refresh: this.handleRefresh,
18967
- jumpMenu: this.jumpMenu
18790
+ jumpMenu: this.jumpTopMenu
18968
18791
  };
18969
18792
  },
18970
18793
 
@@ -19151,199 +18974,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19151
18974
  }
19152
18975
  },
19153
18976
  icons: Object,
19154
- myRemind: {
19155
- type: Array,
19156
- default: function _default() {
19157
- return [{
19158
- badge: true,
19159
- icon: 'es-icon-solid-shijian',
19160
- id: '589cdcff17f44a58bccb5b44de0e90c5',
19161
- text: '待办事项',
19162
- icons: '',
19163
- url: '/bpm/wfPending/wfPending/makeList.dhtml',
19164
- target: 'stage',
19165
- sort: 1,
19166
- remindurl: 'http://boot-gateway:8080/bpm/wfPending/wfPending/getMakeNum.dhtml',
19167
- pid: 'd92e4c724cc74b13a4119f644eff0be8',
19168
- level: 3,
19169
- quickicons: '',
19170
- appType: '0',
19171
- urlopenmode: 0,
19172
- hasPermission: false,
19173
- appId: '',
19174
- extendData: {
19175
- businessStatus: 1,
19176
- businessWarnMsg: ''
19177
- },
19178
- fourthTabs: [],
19179
- children: [],
19180
- method: 'iframe',
19181
- loading: false,
19182
- num: 0
19183
- }, {
19184
- badge: false,
19185
- icon: 'es-icon-solid-yiban',
19186
- id: '259600a64a6840a4952251fe0a7bd890',
19187
- text: '已办事项',
19188
- icons: '',
19189
- url: '/bpm/wfpened/wfPended/list.dhtml?viewName=yibing',
19190
- target: 'stage',
19191
- sort: 3,
19192
- remindurl: '',
19193
- pid: 'd92e4c724cc74b13a4119f644eff0be8',
19194
- level: 3,
19195
- quickicons: '',
19196
- appType: '0',
19197
- appCode: 'yibingwdyb',
19198
- urlopenmode: 0,
19199
- hasPermission: false,
19200
- appId: '',
19201
- fourthTabs: [],
19202
- children: [],
19203
- method: 'iframe',
19204
- loading: false,
19205
- num: 0
19206
- }, {
19207
- text: '待签公文',
19208
- badge: true,
19209
- num: 0,
19210
- icon: 'es-icon-solid-daiqiangongwen',
19211
- id: '03158b72e0d644f6ae97e55ee598a17d',
19212
- url: '/archives-ui/webpack/index.html#/sign/signList',
19213
- remindurl: '',
19214
- pid: 'ec4a6e89b1b346a4a2e8f4245e315da3',
19215
- appCode: 'signList',
19216
- appId: 'q291a124fc151se5b4b890191c65e485',
19217
- fourthTabs: [],
19218
- children: [],
19219
- method: 'wujie'
19220
- }, {
19221
- badge: true,
19222
- icon: 'es-icon-juqiangongwen',
19223
- id: 'bbc03189766441e6a46550c556d61f03',
19224
- text: '拒签公文',
19225
- icons: '',
19226
- url: '/archives-ui/webpack/index.html#/dispatch/rejectedList',
19227
- target: 'stage',
19228
- sort: 4,
19229
- remindurl: '',
19230
- pid: '7fd13c86f596417b95d2b7622906f70f',
19231
- level: 3,
19232
- quickicons: '',
19233
- appType: '0',
19234
- appCode: 'rejectedList',
19235
- urlopenmode: 0,
19236
- hasPermission: false,
19237
- appId: 'q291a124fc151se5b4b890191c65e485',
19238
- extendData: {
19239
- businessStatus: 1,
19240
- businessWarnMsg: ''
19241
- },
19242
- fourthTabs: [],
19243
- children: [],
19244
- method: 'wujie'
19245
- }, {
19246
- badge: true,
19247
- num: 0,
19248
- icon: 'es-icon-solid-ziliao',
19249
- routerName: '',
19250
- id: 'df9d1baedf6a4107bfa9f5d763a98fc0',
19251
- text: '待收资料',
19252
- icons: '',
19253
- url: '/oa/sharefiles/receive/list.dhtml',
19254
- target: 'stage',
19255
- sort: 0,
19256
- remindurl: '',
19257
- pid: 'd648a3e7ae16458a823fdbe911e4d76e',
19258
- level: 2,
19259
- quickicons: '',
19260
- appType: '1',
19261
- appCode: 'sharefilesReceive',
19262
- urlopenmode: 0,
19263
- hasPermission: false,
19264
- appId: 'q291a124fc151se5b4b890191c65e485',
19265
- extendData: {
19266
- businessStatus: 1,
19267
- businessWarnMsg: ''
19268
- },
19269
- fourthTabs: [],
19270
- children: [],
19271
- method: 'iframe',
19272
- loading: false
19273
- }, {
19274
- text: '待签会议',
19275
- badge: true,
19276
- num: 0,
19277
- icon: 'es-icon-solid-huiyileixing',
19278
- id: '407eff212ecd4355ad1fb28c8de6e882',
19279
- icons: '',
19280
- url: '/conference/meetingReceive/receive_list.dhtml?meetState=-5',
19281
- target: 'stage',
19282
- sort: 0,
19283
- remindurl: '',
19284
- pid: 'bc1b01feafc64ae68beed2da5559ff7c',
19285
- level: 3,
19286
- quickicons: '',
19287
- appType: '0',
19288
- appCode: 'hyqs',
19289
- urlopenmode: 0,
19290
- hasPermission: false,
19291
- appId: '',
19292
- extendData: {
19293
- businessStatus: 1,
19294
- businessWarnMsg: ''
19295
- },
19296
- fourthTabs: [{
19297
- id: 'c2d3fb3c7d684b06b4511233a6b5f03b',
19298
- text: '未签收',
19299
- icons: '',
19300
- url: '/conference/meetingReceive/receive_list.dhtml?meetState=-5',
19301
- target: 'stage',
19302
- sort: 1,
19303
- remindurl: '',
19304
- pid: '407eff212ecd4355ad1fb28c8de6e882',
19305
- level: 4,
19306
- quickicons: '',
19307
- appType: '0',
19308
- appCode: 'wqsmeeting',
19309
- urlopenmode: 0,
19310
- hasPermission: false,
19311
- appId: '',
19312
- extendData: {
19313
- businessStatus: 1,
19314
- businessWarnMsg: ''
19315
- },
19316
- fourthTabs: [],
19317
- children: []
19318
- }, {
19319
- id: '9990c8064694403ba5ee85f098738aab',
19320
- text: '已签收',
19321
- icons: '',
19322
- url: '/conference/meetingReceive/receive_list.dhtml?meetState=-6',
19323
- target: 'stage',
19324
- sort: 2,
19325
- remindurl: '',
19326
- pid: '407eff212ecd4355ad1fb28c8de6e882',
19327
- level: 4,
19328
- quickicons: '',
19329
- appType: '0',
19330
- appCode: 'yqs',
19331
- urlopenmode: 0,
19332
- hasPermission: false,
19333
- appId: '',
19334
- extendData: {
19335
- businessStatus: 1,
19336
- businessWarnMsg: ''
19337
- },
19338
- fourthTabs: [],
19339
- children: []
19340
- }],
19341
- children: [],
19342
- method: 'iframe',
19343
- loading: false
19344
- }];
19345
- }
19346
- },
18977
+
19347
18978
  userCommonMenu: {
19348
18979
  type: String,
19349
18980
  default: api["Fb" /* queryUseCommonMenu */]
@@ -19351,6 +18982,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19351
18982
  },
19352
18983
  data: function data() {
19353
18984
  return {
18985
+ tabActiveName: '',
19354
18986
  currentPage: {
19355
18987
  method: ''
19356
18988
  },
@@ -19362,9 +18994,10 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19362
18994
  systemurl: null,
19363
18995
  icons: '',
19364
18996
  sort: 4,
19365
- menuCode: 'dispatch_org',
18997
+ appCode: 'dispatch_org',
19366
18998
  urlopenmode: 0,
19367
- defaultMenu: 1
18999
+ defaultMenu: 1,
19000
+ pid: 'cc529d06f2fe4c9aa5956e7f540b8cd2'
19368
19001
  }, {
19369
19002
  id: '00c9e4e6e9974a789dbf2d99620c1773',
19370
19003
  menutype: 1,
@@ -19373,9 +19006,10 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19373
19006
  systemurl: null,
19374
19007
  icons: '',
19375
19008
  sort: 5,
19376
- menuCode: 'sharefilesSend',
19009
+ appCode: 'sharefilesSend',
19377
19010
  urlopenmode: 0,
19378
- defaultMenu: 1
19011
+ defaultMenu: 1,
19012
+ pid: 'd648a3e7ae16458a823fdbe911e4d76e'
19379
19013
  }, {
19380
19014
  id: '7588320f81dd49d09fd8832037b1c57a',
19381
19015
  menutype: 0,
@@ -19384,9 +19018,10 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19384
19018
  systemurl: null,
19385
19019
  icons: '',
19386
19020
  sort: 1,
19387
- menuCode: 'receiptAdd',
19021
+ appCode: 'receiptAdd',
19388
19022
  urlopenmode: 0,
19389
- defaultMenu: 0
19023
+ defaultMenu: 0,
19024
+ pid: 'ec4a6e89b1b346a4a2e8f4245e315da3'
19390
19025
  }],
19391
19026
  //是否显示头像
19392
19027
  showAvatar: this.avatar,
@@ -19508,7 +19143,198 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19508
19143
  //展示系统操作按钮标题类型
19509
19144
  showTitleType: this.showHandlerTitleType,
19510
19145
  layout: this.scene.toLowerCase(),
19511
- 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
+ }]
19512
19338
  };
19513
19339
  },
19514
19340
 
@@ -19608,15 +19434,32 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19608
19434
  this.doorIndex = sessionStorage.getItem('doorIndex');
19609
19435
  },
19610
19436
  mounted: function mounted() {
19611
- this.handleListener();
19437
+ // this.handleListener();
19612
19438
  this.getNums();
19613
- window.top.jumpTopMenu = this.handleSelect;
19439
+ window.top.jumpMenu = window.top.jumpTopMenu = this.handleSelect;
19614
19440
  },
19615
19441
 
19616
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
+
19617
19460
  //获取数量
19618
19461
  getNums: function getNums() {
19619
- var _this2 = this;
19462
+ var _this3 = this;
19620
19463
 
19621
19464
  this.getIndexCount();
19622
19465
  this.getUserTipsInstanceNum(0);
@@ -19626,7 +19469,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19626
19469
  this.reladding = true;
19627
19470
  if (this.reladding) {
19628
19471
  setTimeout(function () {
19629
- _this2.reladding = false;
19472
+ _this3.reladding = false;
19630
19473
  }, 1000);
19631
19474
  }
19632
19475
  },
@@ -19635,7 +19478,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19635
19478
  * getVoteMeetingNum: 查询会议数量
19636
19479
  */
19637
19480
  getVoteMeetingNum: function getVoteMeetingNum() {
19638
- var _this3 = this;
19481
+ var _this4 = this;
19639
19482
 
19640
19483
  util["a" /* default */].ajax({
19641
19484
  url: api["jb" /* getVoteMeetingNum */],
@@ -19646,8 +19489,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19646
19489
  method: 'get'
19647
19490
  }).then(function (res) {
19648
19491
  if (res.rCode === 0) {
19649
- _this3.myRemind[5].num = res.results > 99 ? '99+' : res.results;
19650
- console.log('查询会议数量', res.results);
19492
+ _this4.myRemind[5].num = res.results > 99 ? '99+' : res.results;
19651
19493
  }
19652
19494
  });
19653
19495
  },
@@ -19656,7 +19498,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19656
19498
  * getShareFilesReceiveCountNew: 查询待接收文件数量
19657
19499
  */
19658
19500
  getShareFilesReceiveCountNew: function getShareFilesReceiveCountNew() {
19659
- var _this4 = this;
19501
+ var _this5 = this;
19660
19502
 
19661
19503
  util["a" /* default */].ajax({
19662
19504
  url: api["db" /* getShareFilesReceiveCountNew */],
@@ -19666,7 +19508,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19666
19508
  method: 'get'
19667
19509
  }).then(function (res) {
19668
19510
  if (res.rCode === 0) {
19669
- _this4.myRemind[4].num = res.results > 99 ? '99+' : res.results;
19511
+ _this5.myRemind[4].num = res.results > 99 ? '99+' : res.results;
19670
19512
  }
19671
19513
  });
19672
19514
  },
@@ -19676,7 +19518,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19676
19518
  * getUserTipsInstanceNum: 查询待签收/据签收任务数量 1是拒签收 0是待签收
19677
19519
  */
19678
19520
  getUserTipsInstanceNum: function getUserTipsInstanceNum(type) {
19679
- var _this5 = this;
19521
+ var _this6 = this;
19680
19522
 
19681
19523
  var params = '?subjectCode=signCount&state=0&userId=' + util["a" /* default */].getStorage('userId') + '&queryOrgType=-1';
19682
19524
  if (type) {
@@ -19688,9 +19530,9 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19688
19530
  }).then(function (res) {
19689
19531
  if (res.rCode === 0) {
19690
19532
  if (type) {
19691
- _this5.myRemind[3].num = res.results > 99 ? '99+' : res.results;
19533
+ _this6.myRemind[3].num = res.results > 99 ? '99+' : res.results;
19692
19534
  } else {
19693
- _this5.myRemind[2].num = res.results > 99 ? '99+' : res.results;
19535
+ _this6.myRemind[2].num = res.results > 99 ? '99+' : res.results;
19694
19536
  }
19695
19537
  } else {
19696
19538
  console.error('查询待签收/据签收任务数量失败', res);
@@ -19702,7 +19544,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19702
19544
  * getIndexCount: 查询待办任务数量
19703
19545
  */
19704
19546
  getIndexCount: function getIndexCount() {
19705
- var _this6 = this;
19547
+ var _this7 = this;
19706
19548
 
19707
19549
  util["a" /* default */].ajax({
19708
19550
  url: api["P" /* getIndexCount */],
@@ -19714,8 +19556,8 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19714
19556
  if (res.rCode === 0) {
19715
19557
  var makePendingCount = res.results.makePendingCount || 0;
19716
19558
  var pendedCount = res.results.pendedCount || 0;
19717
- _this6.myRemind[0].num = makePendingCount > 99 ? '99+' : makePendingCount;
19718
- _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;
19719
19561
  } else {
19720
19562
  console.error('查询待办任务数量失败', res);
19721
19563
  }
@@ -19781,6 +19623,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19781
19623
  this.setConfig(results);
19782
19624
  if (this.remote && first) {
19783
19625
  this.getApplications();
19626
+ // 此处的快捷 是用户自定义的 不是系统配置的快捷菜单 所以注释掉
19784
19627
  // this.getUseCommonMenu();
19785
19628
  }
19786
19629
  },
@@ -19956,7 +19799,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19956
19799
  * @desc:获取用户自定义菜单
19957
19800
  **/
19958
19801
  getUseCommonMenu: function getUseCommonMenu() {
19959
- var _this7 = this;
19802
+ var _this8 = this;
19960
19803
 
19961
19804
  util["a" /* default */].ajax({
19962
19805
  url: this.userCommonMenu,
@@ -19968,17 +19811,17 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19968
19811
  }).then(function (res) {
19969
19812
  if (res.rCode === 0) {
19970
19813
  if (res.results && Object.keys(res.results).length) {
19971
- _this7.userCommonMenuList = res.results;
19814
+ _this8.userCommonMenuList = res.results;
19972
19815
  } else {
19973
- _this7.$message.error('未分配应用菜单权限,请联系管理员!');
19816
+ _this8.$message.error('未分配应用菜单权限,请联系管理员!');
19974
19817
  }
19975
19818
  } else {
19976
19819
  var msg = res.msg || '系统错误,请联系管理员!';
19977
- _this7.$message.error(msg);
19820
+ _this8.$message.error(msg);
19978
19821
  }
19979
19822
  }).catch(function (err) {
19980
19823
  if (err.message && err.message !== 'canceled') {
19981
- _this7.$message.error(err.message);
19824
+ _this8.$message.error(err.message);
19982
19825
  }
19983
19826
  });
19984
19827
  },
@@ -19989,15 +19832,15 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
19989
19832
  * @date 2024年9月7日
19990
19833
  **/
19991
19834
  getApplications: function getApplications() {
19992
- var _this8 = this;
19835
+ var _this9 = this;
19993
19836
 
19994
19837
  var loading = util["a" /* default */].loading('', '加载中...');
19995
19838
  util["a" /* default */].ajax({
19996
19839
  url: this.appsUrl,
19997
19840
  defaults: true
19998
19841
  }).then(function (res) {
19999
- if (_this8.socket) {
20000
- _this8.initWebSocket();
19842
+ if (_this9.socket) {
19843
+ _this9.initWebSocket();
20001
19844
  }
20002
19845
  if (res.rCode === 0) {
20003
19846
  if (res.results && Object.keys(res.results).length) {
@@ -20007,29 +19850,29 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20007
19850
  app_system = _res$results.app_system,
20008
19851
  app_user = _res$results.app_user;
20009
19852
 
20010
- _this8.userApps = app_user.filter(function (item) {
19853
+ _this9.userApps = app_user.filter(function (item) {
20011
19854
  return item.permission !== false;
20012
19855
  });
20013
- _this8.applications = all;
20014
- _this8.business = app_special_business_system;
20015
- _this8.systems = app_system;
20016
- _this8.setTips(_this8.userApps);
20017
- _this8.setTips(_this8.applications);
20018
- _this8.setTips(_this8.business);
20019
- _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);
20020
19863
  } else {
20021
- _this8.$message.error('未分配应用菜单权限,请联系管理员!');
19864
+ _this9.$message.error('未分配应用菜单权限,请联系管理员!');
20022
19865
  }
20023
- _this8.getMenus(loading);
19866
+ _this9.getMenus(loading);
20024
19867
  } else {
20025
19868
  loading.close();
20026
19869
  var msg = res.msg || '系统错误,请联系管理员!';
20027
- _this8.$message.error(msg);
19870
+ _this9.$message.error(msg);
20028
19871
  }
20029
19872
  }).catch(function (err) {
20030
19873
  loading.close();
20031
19874
  if (err.message && err.message !== 'canceled') {
20032
- _this8.$message.error(err.message);
19875
+ _this9.$message.error(err.message);
20033
19876
  }
20034
19877
  });
20035
19878
  },
@@ -20040,33 +19883,26 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20040
19883
  * @date 2024年9月7日
20041
19884
  **/
20042
19885
  getMenus: function getMenus(loading) {
20043
- var _this9 = this;
20044
-
20045
- var menuData = store["a" /* default */].get('nav');
19886
+ var _this10 = this;
20046
19887
 
20047
- if (menuData && menuData.length) {
20048
- loading.close();
20049
- this.renderMenus(menuData);
20050
- return;
20051
- }
20052
19888
  util["a" /* default */].ajax({ url: this._menuUrl }).then(function (res) {
20053
19889
  loading.close();
20054
19890
  if (res.rCode === 0) {
20055
19891
  if (res.results && res.results.length) {
20056
19892
  //this.$emit('update:menuData', res.results);
20057
19893
  store["a" /* default */].set('nav', JSON.parse(JSON.stringify(res.results)));
20058
- _this9.renderMenus(JSON.parse(JSON.stringify(res.results)));
19894
+ _this10.renderMenus(JSON.parse(JSON.stringify(res.results)));
20059
19895
  } else {
20060
- _this9.$message.error('未分配菜单权限,请联系管理员!');
19896
+ _this10.$message.error('未分配菜单权限,请联系管理员!');
20061
19897
  }
20062
19898
  } else {
20063
19899
  var msg = res.msg || '系统错误,请联系管理员!';
20064
- _this9.$message.error(msg);
19900
+ _this10.$message.error(msg);
20065
19901
  }
20066
19902
  }).catch(function (err) {
20067
19903
  loading.close();
20068
19904
  if (err.message && err.message !== 'canceled') {
20069
- _this9.$message.error(err.message);
19905
+ _this10.$message.error(err.message);
20070
19906
  }
20071
19907
  });
20072
19908
  },
@@ -20077,100 +19913,76 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20077
19913
  * @date 2024年9月7日
20078
19914
  **/
20079
19915
  renderMenus: function renderMenus(res) {
20080
- 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;
20081
19944
  this.setTips(this.menus);
20082
19945
  store["a" /* default */].set('nav', this.menus);
20083
- if (this.indexUrl) {
20084
- var obj = this.getMenu(this.menus, this.indexUrl);
20085
- obj = obj ? JSON.parse(JSON.stringify(obj)) : {
20086
- url: this.indexUrl,
20087
- text: this.indexTitle,
20088
- id: '0',
20089
- appCode: 'indexUrl'
20090
- };
20091
- this.homePage = this.setIframeType(obj);
20092
- this.currentPage = this.homePage;
20093
- // 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
+ },
20094
19957
 
20095
- if (!this.appCode) {
20096
- this.tabs = [this.homePage];
20097
- this.activeName = this.homePage.id;
20098
- }
20099
- }
20100
- if (this.appCode) {
20101
- var code = this.sysCode || this.appCode;
20102
- var app = this.userApps.filter(function (item) {
20103
- return item.code === code;
20104
- })[0];
20105
- if (app) {
20106
- this.active = app.id;
20107
- if (app.url) {
20108
- var _obj = this.getMenu(this.menus, app.url);
20109
- if (_obj) {
20110
- _obj = JSON.parse(JSON.stringify(_obj));
20111
- var tab = this.setIframeType(_obj);
20112
- this.tabs = [tab];
20113
- this.activeName = tab.id;
20114
- } else {
20115
- this.tabs = [app];
20116
- }
20117
- }
20118
- }
20119
- if (this.sysCode) {
20120
- var subMenus = this.getMenu(this.menus, this.sysCode, 'appCode');
20121
- if (subMenus) {
20122
- var _obj2 = this.getMenu(this.menus, this.appCode, 'appCode');
20123
- if (_obj2) {
20124
- if (_obj2.url) {
20125
- _obj2 = JSON.parse(JSON.stringify(_obj2));
20126
- } else {
20127
- _obj2 = JSON.parse(JSON.stringify(this.getFirst(_obj2)));
20128
- }
20129
- this.subActive = _obj2.id;
20130
- var _tab = this.setIframeType(_obj2);
20131
- this.tabs = [_tab];
20132
- this.activeName = _tab.id;
20133
- } else {
20134
- this.subActive = '';
20135
- }
20136
- this.subMenus = subMenus;
20137
- this.showMenu = subMenus.children && subMenus.children.length > 0 || subMenus.fourthTabs && subMenus.fourthTabs.length > 0;
20138
- } else {
20139
- this.subMenus = null;
20140
- this.showMenu = false;
20141
- this.$message.error('未分配菜单权限,请联系管理员!');
20142
- }
20143
- } else {
20144
- var _subMenus = this.getMenu(this.menus, this.appCode, 'appCode');
20145
- if (_subMenus) {
20146
- if (this.tabs.length == 0) {
20147
- var _obj3 = this.getFirst(_subMenus);
20148
- if (_obj3) {
20149
- _obj3 = JSON.parse(JSON.stringify(_obj3));
20150
- this.subActive = _obj3.id;
20151
- var _tab2 = this.setIframeType(_obj3);
20152
- this.tabs = [_tab2];
20153
- this.activeName = _tab2.id;
20154
- } else {
20155
- this.subActive = '';
20156
- }
20157
- }
20158
- this.subMenus = _subMenus;
20159
- this.showMenu = _subMenus.children && _subMenus.children.length > 0 || _subMenus.fourthTabs && _subMenus.fourthTabs.length > 0;
20160
- } else {
20161
- this.subMenus = null;
20162
- this.showMenu = false;
20163
- 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);
20164
19971
  }
20165
- }
20166
- } else if (this.initApps && this.initApps.length && !this.indexUrl) {
20167
- var _obj4 = this.getMenu(this.menus, this.initApps[this.initApps.length - 1]);
20168
- if (_obj4) {
20169
- var _tab3 = this.setIframeType(JSON.parse(JSON.stringify(_obj4)));
20170
- this.tabs.push(_tab3);
20171
- this.activeName = _tab3.id;
20172
- }
20173
- }
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
+ });
20174
19986
  },
20175
19987
 
20176
19988
  /**
@@ -20254,9 +20066,9 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20254
20066
  return obj;
20255
20067
  }
20256
20068
  } else if (Object.prototype.hasOwnProperty.call(item, 'fourthTabs') && item.fourthTabs.length) {
20257
- var _obj5 = this.getMenu(item.fourthTabs, res, key);
20258
- if (_obj5) {
20259
- return _obj5;
20069
+ var _obj = this.getMenu(item.fourthTabs, res, key);
20070
+ if (_obj) {
20071
+ return _obj;
20260
20072
  }
20261
20073
  }
20262
20074
  }
@@ -20292,11 +20104,11 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20292
20104
  * @date 2024年9月7日
20293
20105
  **/
20294
20106
  setTips: function setTips(obj) {
20295
- var _this10 = this;
20107
+ var _this11 = this;
20296
20108
 
20297
20109
  if (Array.isArray(obj)) {
20298
20110
  obj.forEach(function (item) {
20299
- _this10.setTips(item);
20111
+ _this11.setTips(item);
20300
20112
  });
20301
20113
  } else {
20302
20114
  if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
@@ -20306,7 +20118,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20306
20118
  var flag = 0;
20307
20119
  if (obj.children && obj.children.length) {
20308
20120
  obj.children.forEach(function (item) {
20309
- var n = _this10.setTips(item);
20121
+ var n = _this11.setTips(item);
20310
20122
  flag += n ? parseInt(n) : 0;
20311
20123
  });
20312
20124
  if (flag) {
@@ -20319,7 +20131,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20319
20131
  }
20320
20132
  } else if (obj.fourthTabs && obj.fourthTabs.length) {
20321
20133
  obj.fourthTabs.forEach(function (item) {
20322
- var n = _this10.setTips(item);
20134
+ var n = _this11.setTips(item);
20323
20135
  flag += n ? parseInt(n) : 0;
20324
20136
  });
20325
20137
  if (flag) {
@@ -20341,11 +20153,11 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20341
20153
  return false;
20342
20154
  },
20343
20155
  setDot: function setDot(obj, code) {
20344
- var _this11 = this;
20156
+ var _this12 = this;
20345
20157
 
20346
20158
  if (Array.isArray(obj)) {
20347
20159
  obj.forEach(function (item) {
20348
- _this11.setDot(item, code);
20160
+ _this12.setDot(item, code);
20349
20161
  });
20350
20162
  } else if (obj.code === code) {
20351
20163
  this.$set(obj, 'tips', true);
@@ -20375,7 +20187,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20375
20187
  * @date 2024年9月7日
20376
20188
  **/
20377
20189
  initWebSocket: function initWebSocket() {
20378
- var _this12 = this;
20190
+ var _this13 = this;
20379
20191
 
20380
20192
  this.webSocket = util["a" /* default */].socket({
20381
20193
  url: api["Ic" /* wss */],
@@ -20385,32 +20197,32 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20385
20197
  for (var i in data) {
20386
20198
  if (data[i] !== null && data[i] !== undefined) {
20387
20199
  if (i === 'onlineUserNums' && data[i] > 0) {
20388
- _this12.$set(_this12.handleNums, 'online', data[i]);
20200
+ _this13.$set(_this13.handleNums, 'online', data[i]);
20389
20201
  }
20390
20202
  if (i === 'sysMsgNums' && data[i] !== null) {
20391
- _this12.$set(_this12.handleNums, 'notice', data[i]);
20392
- if (_this12.showMsg) {
20393
- _this12.$refs.message.getMsg(true);
20203
+ _this13.$set(_this13.handleNums, 'notice', data[i]);
20204
+ if (_this13.showMsg) {
20205
+ _this13.$refs.message.getMsg(true);
20394
20206
  }
20395
20207
  }
20396
20208
  if (i === 'menuTipsMap' && data[i] !== null) {
20397
- _this12.menuTips = data[i];
20209
+ _this13.menuTips = data[i];
20398
20210
  }
20399
20211
  if (i === 'sysMsgList' && data[i] !== null) {
20400
- _this12.sysMsg = data[i];
20401
- 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');
20402
20214
  }
20403
20215
  if (i === 'extraData' && data[i] !== null) {
20404
- _this12.extraData = data[i];
20216
+ _this13.extraData = data[i];
20405
20217
  }
20406
20218
  }
20407
20219
  }
20408
- if (_this12.$store) {
20220
+ if (_this13.$store) {
20409
20221
  try {
20410
- _this12.$store.commit('websocket', data);
20222
+ _this13.$store.commit('websocket', data);
20411
20223
  } catch (error) {}
20412
20224
  }
20413
- var bus = _this12.bus || _this12.$eventBus || _this12.$root.Bus;
20225
+ var bus = _this13.bus || _this13.$eventBus || _this13.$root.Bus;
20414
20226
  if (bus) {
20415
20227
  bus.$emit('websocket', data);
20416
20228
  }
@@ -20505,9 +20317,9 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20505
20317
  }
20506
20318
  }
20507
20319
  } else {
20508
- var _tab4 = this.setIframeType(res);
20509
- this.tabs.push(_tab4);
20510
- this.activeName = _tab4.id;
20320
+ var _tab = this.setIframeType(res);
20321
+ this.tabs.push(_tab);
20322
+ this.activeName = _tab.id;
20511
20323
  }
20512
20324
  } else {
20513
20325
  if (res.method == 'iframe') {
@@ -20533,8 +20345,8 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20533
20345
  var _i = util["a" /* default */].indexOfObj(this.tabs, subMenus, 'id');
20534
20346
  this.activeName = subMenus.id;
20535
20347
  if (_i == -1) {
20536
- var _tab5 = this.setIframeType(subMenus);
20537
- this.tabs.push(_tab5);
20348
+ var _tab2 = this.setIframeType(subMenus);
20349
+ this.tabs.push(_tab2);
20538
20350
  } else {
20539
20351
  if (subMenus.method == 'iframe') {
20540
20352
  this.tabs[_i].url = util["a" /* default */].handlerUrl(subMenus.url);
@@ -20581,58 +20393,6 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20581
20393
  this.drawer = { visible: false };
20582
20394
  },
20583
20395
 
20584
- /**
20585
- * @desc:菜单点击
20586
- * @author huangbo
20587
- * @date 2024年9月7日
20588
- **/
20589
- handlerClickMenu: function handlerClickMenu(res) {
20590
- util["a" /* default */].ajax({
20591
- url: api["Gb" /* recordUserApp */],
20592
- params: {
20593
- userId: this.user.userId,
20594
- appId: res.id
20595
- }
20596
- }).then(function () {}).catch(function () {});
20597
- this.showMsg = false;
20598
- this.showSet = false;
20599
-
20600
- if (res.url) {
20601
- if (res.urlopenmode == 1 || res.openModel == 1) {
20602
- util["a" /* default */].win.open(res.url);
20603
- return;
20604
- } else if (res.urlopenmode == 2 || res.openModel == 2) {
20605
- util["a" /* default */].win.open(res.url, '_self');
20606
- return;
20607
- }
20608
- }
20609
- var i = util["a" /* default */].indexOfObj(this.tabs, res, 'id');
20610
- if (i == -1) {
20611
- var tab = this.setIframeType(res);
20612
- this.tabs.push(tab);
20613
- this.activeName = res.id;
20614
- } else {
20615
- this.tabs = simplicityTopvue_type_script_lang_js_events[0](this.tabs, i, this);
20616
- // let tab = this.tabs[i];
20617
- // if (tab.method === 'iframe') {
20618
- // this.activeName = res.id;
20619
- // this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
20620
- // } else {
20621
- // if (tab.method === 'wujie' && tab.appCode) {
20622
- // window.document
20623
- // .querySelector(`iframe[name=${tab.appCode}]`)
20624
- // .contentWindow.location.reload(true);
20625
- // }
20626
- // if (tab.method === 'router') {
20627
- // this.$set(this.tabs[i], 'keys', util.uuid());
20628
- // }
20629
- // this.activeName = res.id;
20630
- // }
20631
- this.activeName = res.id;
20632
- }
20633
- },
20634
-
20635
-
20636
20396
  /**
20637
20397
  * @desc:用户详情请求成功
20638
20398
  * @author huangbo
@@ -20678,6 +20438,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20678
20438
  * @date 2024年9月7日
20679
20439
  **/
20680
20440
  handleRefresh: function handleRefresh(arg) {
20441
+ this.getNums();
20681
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');
20682
20443
  var tab = this.tabs[i];
20683
20444
  if (simplicityTopvue_type_script_lang_js_isIE || tab.method === 'iframe') {
@@ -20892,7 +20653,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20892
20653
  * @date 2024年9月7日
20893
20654
  **/
20894
20655
  handleQuit: function handleQuit() {
20895
- var _this13 = this;
20656
+ var _this14 = this;
20896
20657
 
20897
20658
  this.$confirm('确定退出吗?', '退出系统', {
20898
20659
  confirmButtonText: '确定',
@@ -20908,19 +20669,19 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20908
20669
  }
20909
20670
  break;
20910
20671
  }
20911
- if (_this13.singleLogout) {
20912
- for (var _i2 = 0; _i2 < _this13.singleLogout.length; _i2++) {
20672
+ if (_this14.singleLogout) {
20673
+ for (var _i2 = 0; _i2 < _this14.singleLogout.length; _i2++) {
20913
20674
  var iframe = document.createElement('iframe');
20914
20675
  iframe.style.display = 'none';
20915
- iframe.src = _this13.singleLogout[_i2];
20676
+ iframe.src = _this14.singleLogout[_i2];
20916
20677
  document.body.appendChild(iframe);
20917
20678
  }
20918
20679
  }
20919
20680
  util["a" /* default */].ajax({ method: 'post', url: api["vb" /* logout */] }).then(function (res) {
20920
20681
  if (res.rCode == 0) {
20921
20682
  util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
20922
- if (_this13.onQuit && typeof _this13.onQuit === 'function') {
20923
- _this13.onQuit();
20683
+ if (_this14.onQuit && typeof _this14.onQuit === 'function') {
20684
+ _this14.onQuit();
20924
20685
  } else {
20925
20686
  try {
20926
20687
  var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
@@ -20958,7 +20719,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
20958
20719
  }
20959
20720
  }).catch(function (err) {
20960
20721
  if (err.message && err.message !== 'canceled') {
20961
- _this13.$message.error(err.message);
20722
+ _this14.$message.error(err.message);
20962
20723
  }
20963
20724
  });
20964
20725
  }).catch(function (e) {});
@@ -21015,121 +20776,160 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
21015
20776
  * @date 2024年9月7日
21016
20777
  **/
21017
20778
  handleOpened: function handleOpened(res) {
21018
- var _this14 = this;
20779
+ var _this15 = this;
21019
20780
 
21020
20781
  if (res === undefined) {
21021
20782
  this.sysMsg = [];
21022
20783
  } else if (res == false && this.sysMsg.length) {
21023
20784
  this.sysMsgOut = setTimeout(function () {
21024
- _this14.sysMsg = [];
20785
+ _this15.sysMsg = [];
21025
20786
  }, 3000);
21026
20787
  } else if (this.sysMsgOut) {
21027
20788
  clearTimeout(this.sysMsgOut);
21028
20789
  }
21029
20790
  },
21030
- jumpMenu: function jumpMenu(res, close) {
21031
- var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
21032
20791
 
21033
- var apps = res;
21034
- var param = params;
21035
- var reload = true;
21036
- if (typeof res === 'string') {
21037
- apps = res.split(',');
21038
- } else if (util["a" /* default */].isObject(res)) {
21039
- apps = Array.isArray(res.appCode) ? res.appCode : res.appCode.split(',');
21040
- res.param && (param = simplicityTopvue_type_script_lang_js_extends({}, res.param, params));
21041
- reload = Object.prototype.hasOwnProperty.call(res, 'reload') ? res.reload : true;
21042
- }
21043
- var obj = this.getMenu(this.menus, apps[apps.length - 1]);
21044
- if (obj) {
21045
- obj = JSON.parse(JSON.stringify(obj));
21046
- var i = util["a" /* default */].indexOfObj(this.tabs, obj, 'id,code,appCode');
21047
- var n = util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
21048
- var old = this.activeName;
21049
- this.activeName = obj.id;
21050
- if (i == -1) {
21051
- var tab = this.setIframeType(obj);
21052
- this.$set(tab, 'url', util["a" /* default */].handlerUrl(tab.url, param));
21053
- this.tabs.splice(n + 1, 0, tab);
21054
- } else {
21055
- var _tab6 = this.tabs[i];
21056
- if (_tab6.method === 'iframe') {
21057
- this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab6.url, param));
21058
- }
21059
- if (_tab6.method === 'wujie' && _tab6.appCode) {
21060
- var url = param ? util["a" /* default */].handlerUrl(_tab6.url, param) : _tab6.url;
21061
- if (reload || param) {
21062
- _tab6.url = '';
21063
- this.$nextTick(function () {
21064
- _tab6.url = url;
21065
- });
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);
21066
20837
  }
21067
- // if (param) {
21068
- // window.document.querySelector(
21069
- // `iframe[name=${tab.appCode}]`
21070
- // ).contentWindow.location.href = util.handlerUrl(tab.url, param);
21071
- // } else {
21072
- // window.document
21073
- // .querySelector(`iframe[name=${tab.appCode}]`)
21074
- // .contentWindow.location.reload(true);
21075
- // }
21076
- }
21077
- if (_tab6.method === 'router') {
21078
- this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab6.url, param));
21079
- 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;
21080
20846
  }
20847
+ } else {
20848
+ this.$alert('没有关联菜单,请联系管理员!', '提示', {
20849
+ confirmButtonText: '确定',
20850
+ type: 'warning'
20851
+ }).catch(function () {});
21081
20852
  }
21082
- if (close) {
21083
- if (close === old) {
21084
- 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++];
21085
20867
  } else {
21086
- var d = util["a" /* default */].indexOfObj(this.tabs, close, 'id,code,appCode');
21087
- if (d > -1) {
21088
- this.tabs.splice(d, 1);
21089
- }
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;
21090
20880
  }
21091
- }
21092
- } else {
21093
- this.$message.error('没有此菜单!');
21094
- }
21095
- },
21096
20881
 
21097
- //监听改变菜单
21098
- handleListener: function handleListener() {
21099
- 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;
21100
20886
 
21101
- util["a" /* default */].win.addEventListener('message', function (e) {
21102
- var msg = e.data;
21103
- if (msg.key == 'jump_Menu') {
21104
- var res = msg.data1;
21105
- _this15.jumpMenu(res);
21106
- }
21107
- }, false);
21108
- },
21109
- handleSelect: function handleSelect(res, method) {
21110
- 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
+ }
21111
20895
 
21112
- if (method) {
21113
- if (res.urlopenmode == 0) {
21114
- this.currentPage = simplicityTopvue_type_script_lang_js_extends({
21115
- url: res.menuurl,
21116
- method: 'wujie'
21117
- }, res);
21118
- } else {
21119
- 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
+ }
21120
20922
  }
21121
- } else {
21122
- this.currentPage = this.setIframeType(res.node ? res.node : res);
20923
+ return false;
21123
20924
  }
21124
- // console.log(this.currentPage, 'this.currentPage');
21125
20925
 
21126
- // this.showSearch = false;
21127
- // if (parent.name === '应用') {
21128
- // this.handlerClickApps(res);
21129
- // }
21130
- // if (parent.name === '菜单') {
21131
- // this.handlerClickApp(res);
21132
- // }
20926
+ // 开始查找
20927
+ searchMenu(this.menus);
20928
+
20929
+ return {
20930
+ currentPage: targetMenu,
20931
+ fourthTabs: siblingMenus // 不需要过滤自身
20932
+ };
21133
20933
  },
21134
20934
  handleLoadIframe: function handleLoadIframe(item) {
21135
20935
  this.$set(item, 'loading', false);
@@ -21155,11 +20955,11 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
21155
20955
 
21156
20956
  var simplicityTop_component = Object(componentNormalizer["a" /* default */])(
21157
20957
  src_simplicityTopvue_type_script_lang_js_,
21158
- simplicityTopvue_type_template_id_7e7a3d7a_scoped_true_render,
21159
- 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,
21160
20960
  false,
21161
20961
  null,
21162
- "7e7a3d7a",
20962
+ "5a47c4f6",
21163
20963
  null
21164
20964
 
21165
20965
  )
@@ -25173,6 +24973,8 @@ var default_component = Object(componentNormalizer["a" /* default */])(
25173
24973
 
25174
24974
  /* harmony default export */ var src_default = (default_component.exports);
25175
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
+
25176
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; };
25177
24979
 
25178
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; }
@@ -25259,7 +25061,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
25259
25061
 
25260
25062
 
25261
25063
 
25262
- /* harmony default export */ var mainvue_type_script_lang_js_ = ({
25064
+ /* harmony default export */ var mainvue_type_script_lang_js_ = (_name$inheritAttrs$pr = {
25263
25065
  name: 'EsMain',
25264
25066
  inheritAttrs: false,
25265
25067
  provide: function provide() {
@@ -25311,27 +25113,37 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
25311
25113
  layout: this.scene,
25312
25114
  isIE: /MSIE|Trident/.test(navigator.userAgent)
25313
25115
  };
25314
- },
25315
- created: function created() {
25316
- var layoutType = localStorage.getItem('layoutType');
25317
- if (layoutType) {
25318
- this.layoutType = layoutType;
25319
- }
25320
- this.params = util["a" /* default */].getParams() || {};
25321
- this.sysCode = this.params.sysCode;
25322
- this.appCode = this.params.appCode || this.params.appcode;
25323
- if (this.params.cookie && (this.params.cookie == true || this.params.cookie == 1)) {
25324
- this.isLogin = true;
25325
- }
25326
- },
25327
- 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() {
25328
25145
  var _this = this;
25329
25146
 
25330
- var token = util["a" /* default */].getStorage('token') || util["a" /* default */].getStorage('Authorization');
25331
- this.isLogin = token ? true : this.isLogin;
25332
- if (!token && Object.prototype.hasOwnProperty.call(this.params, 'serverId') && Object.prototype.hasOwnProperty.call(this.params, 'authType')) {
25333
- return false;
25334
- }
25335
25147
  if (this.isLogin) {
25336
25148
  if (util["a" /* default */].win.$wujie) {
25337
25149
  util["a" /* default */].win.$wujie.bus.$on('changeTheme', function (res) {
@@ -25390,379 +25202,376 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
25390
25202
  }
25391
25203
  },
25392
25204
 
25393
- methods: {
25394
- /**
25395
- * @desc: 切换布局风格
25396
- * @author huangbo
25397
- * @date 2024年9月7日
25398
- **/
25399
- changLayout: function changLayout(res, active) {
25400
- 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;
25401
25212
 
25402
- this.layoutType = res;
25403
- localStorage.setItem('layoutType', res);
25404
- if (active) {
25405
- this.layout = active;
25406
- }
25407
- var mainConfig = util["a" /* default */].getStorage('mainConfig');
25408
- if (mainConfig) {
25409
- mainConfig = JSON.parse(mainConfig);
25410
- this.$nextTick(function () {
25411
- _this2.$refs.main.init(mainConfig, true);
25412
- util["a" /* default */].getMainConfig(function (res) {
25413
- _this2.$refs.main.init(res, false);
25414
- });
25415
- });
25416
- } 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);
25417
25223
  util["a" /* default */].getMainConfig(function (res) {
25418
- _this2.$refs.main.init(res, true);
25224
+ _this2.$refs.main.init(res, false);
25419
25225
  });
25420
- }
25421
- },
25226
+ });
25227
+ } else {
25228
+ util["a" /* default */].getMainConfig(function (res) {
25229
+ _this2.$refs.main.init(res, true);
25230
+ });
25231
+ }
25232
+ },
25422
25233
 
25423
- /**
25424
- * @desc:重新登录
25425
- * @author huangbo
25426
- * @date 2024年9月7日
25427
- **/
25428
- handleReLogin: function handleReLogin(res) {
25429
- var _this3 = this;
25234
+ /**
25235
+ * @desc:重新登录
25236
+ * @author huangbo
25237
+ * @date 2024年9月7日
25238
+ **/
25239
+ handleReLogin: function handleReLogin(res) {
25240
+ var _this3 = this;
25430
25241
 
25431
- if (res && typeof res == 'string') {
25432
- res = JSON.parse(res);
25433
- }
25434
- var msg = '提示';
25435
- var btn = {
25436
- confirmButtonText: '确定',
25437
- cancelButtonText: '取消',
25438
- closeOnClickModal: false,
25439
- type: 'warning'
25440
- };
25441
- if (res) {
25442
- if (res.rCode === 69) {
25443
- msg = '该账号在其他地方已登陆!';
25444
- btn = {
25445
- confirmButtonText: '确定',
25446
- closeOnClickModal: false,
25447
- type: 'warning'
25448
- };
25449
- } else {
25450
- msg = '登录已过期,请重新登录!';
25451
- }
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 = '登录已过期,请重新登录!';
25452
25262
  }
25453
- cl;
25454
- var remind = sessionStorage.getItem('remind');
25455
- if (!remind) {
25456
- clearTimeout(this.timer);
25457
- this.timer = setTimeout(function () {
25458
- console.log('handleReLogin');
25459
- sessionStorage.setItem('remind', 1);
25460
- _this3.$confirm(msg, btn).then(function () {
25461
- util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
25462
- var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
25463
- try {
25464
- if (loginPage) {
25465
- var src = void 0;
25466
- if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
25467
- var pathname = util["a" /* default */].win.top.location.pathname;
25468
- if (pathname !== '/') {
25469
- pathname = pathname.split('/');
25470
- pathname.splice(pathname.length - 1);
25471
- pathname = pathname.join('/');
25472
- src = pathname + '/' + loginPage.replace('./', '');
25473
- } else {
25474
- src = pathname + loginPage.replace('./', '');
25475
- }
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('./', '');
25476
25284
  } else {
25477
- src = loginPage;
25285
+ src = pathname + loginPage.replace('./', '');
25478
25286
  }
25479
- util["a" /* default */].win.top.location.href = src;
25480
- } else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
25481
- util["a" /* default */].win.top.location.href = './login.html';
25482
25287
  } else {
25483
- var hash = util["a" /* default */].win.top.location.hash;
25484
- if (hash) {
25485
- var len = util["a" /* default */].win.top.location.href.indexOf(hash);
25486
- util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
25487
- } else {
25488
- util["a" /* default */].win.top.location.href = '/login.html';
25489
- }
25288
+ src = loginPage;
25490
25289
  }
25491
- } catch (error) {}
25492
- }).catch(function (e) {
25493
- sessionStorage.removeItem('remind');
25494
- });
25495
- }, 2000);
25496
- }
25497
- },
25498
-
25499
- /**
25500
- * @desc:获取系统配置
25501
- * @author huangbo
25502
- * @date 2024年9月7日
25503
- **/
25504
- getConfig: function getConfig() {
25505
- var _this4 = this;
25506
-
25507
- var mainConfig = util["a" /* default */].getStorage('mainConfig');
25508
- if (mainConfig) {
25509
- mainConfig = JSON.parse(mainConfig);
25510
- this.$refs.main.init(mainConfig, true);
25511
- util["a" /* default */].getMainConfig(function (res) {
25512
- _this4.$refs.main.init(res, false);
25513
- });
25514
- } else {
25515
- util["a" /* default */].getMainConfig(function (res) {
25516
- _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');
25517
25305
  });
25518
- }
25519
- },
25306
+ }, 2000);
25307
+ }
25308
+ },
25520
25309
 
25521
- /**
25522
- * @desc:打开dialog页面
25523
- * @author huangbo
25524
- * @date 2024年9月7日
25525
- **/
25526
- winOpen: function winOpen(_ref) {
25527
- var _this5 = this;
25310
+ /**
25311
+ * @desc:获取系统配置
25312
+ * @author huangbo
25313
+ * @date 2024年9月7日
25314
+ **/
25315
+ getConfig: function getConfig() {
25316
+ var _this4 = this;
25528
25317
 
25529
- var url = _ref.url,
25530
- name = _ref.name,
25531
- _ref$width = _ref.width,
25532
- width = _ref$width === undefined ? '100%' : _ref$width,
25533
- _ref$height = _ref.height,
25534
- height = _ref$height === undefined ? '100%' : _ref$height,
25535
- appCode = _ref.appCode,
25536
- id = _ref.id,
25537
- size = _ref.size,
25538
- config = _objectWithoutProperties(_ref, ['url', 'name', 'width', 'height', 'appCode', 'id', 'size']);
25539
-
25540
- url = typeof arguments[0] === 'string' ? arguments[0] : url;
25541
- id = id ? id : appCode ? undefined : 'iframe' + this.dialogs.length;
25542
- var openModel = util["a" /* default */].getStorage('openModel');
25543
- var src = url;
25544
- if (!util["a" /* default */].startWith(url, ['http', '/'], true)) {
25545
- var pathname = window.location.pathname;
25546
- if (pathname !== '/') {
25547
- pathname = pathname.split('/');
25548
- pathname.splice(pathname.length - 1);
25549
- pathname = pathname.join('/');
25550
- }
25551
- src = pathname + url.replace('./', '/');
25552
- }
25553
- if (openModel && openModel == 'dialog') {
25554
- var _dialog = mainvue_type_script_lang_js_extends({
25555
- id: id,
25556
- url: src,
25557
- name: name,
25558
- width: width,
25559
- height: height,
25560
- appCode: appCode,
25561
- visible: false,
25562
- size: size
25563
- }, config);
25564
- var n = this.dialogs.push(_dialog);
25565
- this.$nextTick(function () {
25566
- _this5.$set(_dialog, 'index', n - 1);
25567
- _this5.$set(_dialog, 'visible', true);
25568
- });
25569
- return _dialog;
25570
- }
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
+ },
25571
25331
 
25572
- if (name) {
25573
- var w = 0;
25574
- var h = 0;
25575
- try {
25576
- w = width ? width : util["a" /* default */].win.top.screen.availWidth - 10;
25577
- h = height ? height : util["a" /* default */].win.top.screen.availHeight - 60;
25578
- } catch (error) {
25579
- w = width ? width : util["a" /* default */].win.screen.availWidth - 10;
25580
- h = height ? height : util["a" /* default */].win.screen.availHeight - 60;
25581
- }
25582
- return util["a" /* default */].win.open(src, name, 'width=' + w + 'px,height=' + h + 'px,resizable=yes,status=yes,menubar=no,scrollbars=yes');
25583
- } else {
25584
- 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;
25585
25392
  }
25586
- },
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
+ },
25587
25398
 
25588
25399
 
25589
- /**
25590
- * @desc:关闭dialog页面
25591
- * @author huangbo
25592
- * @date 2024年9月7日
25593
- **/
25594
- winClose: function winClose(_ref2) {
25595
- var url = _ref2.url,
25596
- appCode = _ref2.appCode,
25597
- id = _ref2.id,
25598
- index = _ref2.index,
25599
- refresh = _ref2.refresh,
25600
- jumpMenu = _ref2.jumpMenu,
25601
- callback = _ref2.callback;
25602
-
25603
- if (!appCode && !id) {
25604
- console.error('参数错误,缺少appCode或者id');
25605
- return;
25606
- }
25607
- if (index) {
25608
- this.$set(this.dialogs, 'visible', false);
25609
- this.dialogs.splice(dialog.index, 1);
25610
- } else {
25611
- var _dialog2 = this.dialogs.find(function (item) {
25612
- return item.url == url || item.appCode == appCode || item.id == id;
25613
- });
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
+ });
25614
25425
 
25615
- if (_dialog2) {
25616
- this.$set(_dialog2, 'visible', false);
25617
- this.dialogs.splice(_dialog2.index, 1);
25618
- }
25426
+ if (_dialog2) {
25427
+ this.$set(_dialog2, 'visible', false);
25428
+ this.dialogs.splice(_dialog2.index, 1);
25619
25429
  }
25620
- if (callback) {
25621
- var bus = this.bus || this.$root.Bus;
25622
- if (bus) {
25623
- // 主应用发送事件
25624
- bus.$emit(callback, arguments[0]);
25625
- }
25626
- } else {
25627
- var _$refs$main;
25628
-
25629
- refresh && this.$refs.main.handleRefresh(refresh);
25630
- 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]);
25631
25436
  }
25632
- },
25633
-
25634
-
25635
- /**
25636
- * @desc:postMessage消息处理
25637
- * @author huangbo
25638
- * @date 2024年9月7日
25639
- **/
25640
- handleMessage: function handleMessage(e) {
25641
- var _$refs$main2;
25642
-
25643
- var _e$data = e.data,
25644
- method = _e$data.method,
25645
- args = _e$data.args;
25437
+ } else {
25438
+ var _$refs$main;
25646
25439
 
25647
- switch (method) {
25648
- case 'reLogin':
25649
- this.handleReLogin(args);
25650
- break;
25651
- case 'refresh':
25652
- this.$refs.main.handleRefresh(args);
25653
- break;
25654
- case 'jumpMenu':
25655
- Array.isArray(args) ? (_$refs$main2 = this.$refs.main).jumpMenu.apply(_$refs$main2, args) : this.$refs.main.jumpMenu(args);
25656
- break;
25657
- case 'emit':
25658
- var origin = args.origin,
25659
- appCode = args.appCode,
25660
- id = args.id,
25661
- data = _objectWithoutProperties(args, ['origin', 'appCode', 'id']);
25662
-
25663
- var iframe = document.getElementById(appCode || id);
25664
- iframe.contentWindow.postMessage(data, origin ? origin : '*');
25665
- break;
25666
- case 'openDialog':
25667
- //打开弹窗
25668
- this.winOpen(args);
25669
- break;
25670
- case 'closeDialog':
25671
- //关闭弹窗
25672
- this.winClose(args);
25673
- break;
25674
- case 'windowOpen':
25675
- //打开弹窗
25676
- this.winOpen(args);
25677
- break;
25678
- case 'windowClose':
25679
- //关闭弹窗
25680
- this.winClose(args);
25681
- break;
25682
- }
25683
- },
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
+ },
25684
25444
 
25685
25445
 
25686
- /**
25687
- * @desc:dialog页面加载完成后通讯
25688
- * @author huangbo
25689
- * @date 2024年9月7日
25690
- **/
25691
- handleIframeLoad: function handleIframeLoad(iframe, data) {
25692
- iframe = iframe ? iframe : document.getElementById(data.appCode || data.id);
25693
- var origin = new URL(iframe.src).origin;
25694
- iframe.contentWindow.postMessage(mainvue_type_script_lang_js_extends({}, data, { method: 'windowOpen' }), origin);
25695
- },
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
+ },
25696
25495
 
25697
25496
 
25698
- /**
25699
- * @desc:排除属性
25700
- * @author huangbo
25701
- * @date 2024年9月7日
25702
- **/
25703
- exclAttribute: function exclAttribute(_ref3) {
25704
- var data = _ref3.data,
25705
- 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
+ },
25706
25507
 
25707
- return util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
25708
- },
25709
25508
 
25710
- /**
25711
- * @desc:关闭dialog
25712
- * @author huangbo
25713
- * @date 2024年9月7日
25714
- **/
25715
- handleClosed: function handleClosed(res, index) {
25716
- 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;
25717
25517
 
25718
- // 在关闭弹窗后更新数量
25719
- if (this.layoutType == 'simplicityTop') {
25720
- this.$refs.main.getNums();
25721
- }
25722
- this.$nextTick(function () {
25723
- _this6.dialogs.splice(index, 1);
25724
- });
25725
- },
25518
+ return util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
25519
+ },
25726
25520
 
25727
- /**
25728
- * @desc:主应用向子应用发送事件
25729
- * @author huangbo
25730
- * @date 2024年9月7日
25731
- **/
25732
- busEmit: function busEmit(event, args) {
25733
- 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
+ },
25734
25537
 
25735
- external_wujie_vue2_default.a.bus.$emit(event, args);
25736
- var iframes = document.getElementsByTagName('iframe');
25737
- for (var i = 0; i < iframes.length; i++) {
25738
- var src = iframes[i] ? iframes[i].src : null;
25739
- var origin = util["a" /* default */].win.location.origin;
25740
- if (src && util["a" /* default */].startWith(src, 'http') && src.indexOf(origin) === -1) {
25741
- iframes[i] && iframes[i].contentWindow.postMessage({ method: event, query: args }, '*');
25742
- }
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 }, '*');
25743
25553
  }
25744
- var bus = this.bus || this.$root.Bus;
25745
- bus && bus.$emit(event, args);
25746
- this.$emit('busEvent', event, args);
25747
25554
  }
25748
- },
25749
- beforeDestroy: function beforeDestroy() {
25750
- window.removeEventListener('message', this.handleMessage);
25751
25555
  var bus = this.bus || this.$root.Bus;
25752
- if (bus) {
25753
- bus.$off('reLogin');
25754
- bus.$off('refresh');
25755
- bus.$off('windowOpen');
25756
- bus.$off('windowClose');
25757
- bus.$off('jumpMenu');
25758
- bus.$off('emit');
25759
- }
25760
- external_wujie_vue2_default.a.bus.$off('reLogin');
25761
- external_wujie_vue2_default.a.bus.$off('refresh');
25762
- external_wujie_vue2_default.a.bus.$off('jumpMenu');
25763
- external_wujie_vue2_default.a.bus.$off('emit');
25556
+ bus && bus.$emit(event, args);
25557
+ this.$emit('busEvent', event, args);
25764
25558
  }
25765
- });
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);
25766
25575
  // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=script&lang=js&
25767
25576
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
25768
25577
  // CONCATENATED MODULE: ./packages/main/src/main.vue