eoss-ui 0.5.98 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/lib/button-group.js +2 -2
  2. package/lib/button.js +2 -2
  3. package/lib/calendar.js +2 -2
  4. package/lib/card.js +2 -2
  5. package/lib/cascader.js +2 -2
  6. package/lib/checkbox-group.js +3 -2
  7. package/lib/clients.js +2 -2
  8. package/lib/data-table-form.js +3 -2
  9. package/lib/data-table.js +3 -2
  10. package/lib/date-picker.js +2 -2
  11. package/lib/dialog.js +6 -5
  12. package/lib/enterprise.js +2 -2
  13. package/lib/eoss-ui.common.js +629 -722
  14. package/lib/error-page.js +2 -2
  15. package/lib/flow-group.js +2 -2
  16. package/lib/flow-list.js +2 -2
  17. package/lib/flow.js +3 -2
  18. package/lib/form.js +3 -2
  19. package/lib/handle-user.js +2 -2
  20. package/lib/handler.js +11 -15
  21. package/lib/icon.js +2 -2
  22. package/lib/icons.js +2 -2
  23. package/lib/index.js +1 -1
  24. package/lib/input-number.js +2 -2
  25. package/lib/input.js +2 -2
  26. package/lib/label.js +2 -2
  27. package/lib/layout.js +2 -2
  28. package/lib/login.js +6 -4
  29. package/lib/main.js +648 -738
  30. package/lib/menu.js +2 -2
  31. package/lib/nav.js +2 -2
  32. package/lib/notify.js +2 -2
  33. package/lib/page.js +2 -2
  34. package/lib/pagination.js +2 -2
  35. package/lib/player.js +4 -4
  36. package/lib/qr-code.js +4 -4
  37. package/lib/radio-group.js +2 -2
  38. package/lib/retrial-auth.js +9 -9
  39. package/lib/select-ganged.js +9 -9
  40. package/lib/select.js +2 -2
  41. package/lib/selector-panel.js +3 -2
  42. package/lib/selector.js +2 -2
  43. package/lib/sizer.js +2 -2
  44. package/lib/steps.js +2 -2
  45. package/lib/switch.js +2 -2
  46. package/lib/table-form.js +2 -2
  47. package/lib/tabs-panel.js +2 -2
  48. package/lib/tabs.js +2 -2
  49. package/lib/theme-chalk/index.css +1 -1
  50. package/lib/theme-chalk/login.css +1 -1
  51. package/lib/theme-chalk/main.css +1 -1
  52. package/lib/theme-chalk/simplicity.css +1 -1
  53. package/lib/tips.js +2 -2
  54. package/lib/toolbar.js +2 -2
  55. package/lib/tree-group.js +2 -2
  56. package/lib/tree.js +2 -2
  57. package/lib/upload.js +3 -2
  58. package/lib/wujie.js +145 -145
  59. package/lib/wxlogin.js +2 -2
  60. package/package.json +2 -2
  61. package/packages/.DS_Store +0 -0
  62. package/packages/dialog/src/main.vue +1 -1
  63. package/packages/handler/.DS_Store +0 -0
  64. package/packages/handler/src/main.vue +0 -5
  65. package/packages/login/.DS_Store +0 -0
  66. package/packages/login/src/main.vue +1 -0
  67. package/packages/main/.DS_Store +0 -0
  68. package/packages/main/src/.DS_Store +0 -0
  69. package/packages/main/src/default/index.vue +27 -21
  70. package/packages/main/src/main.vue +13 -7
  71. package/packages/main/src/{default → public}/settings.vue +51 -19
  72. package/packages/main/src/simplicity/handler.vue +0 -11
  73. package/packages/main/src/simplicity/index.vue +139 -115
  74. package/packages/theme-chalk/lib/index.css +1 -1
  75. package/packages/theme-chalk/lib/login.css +1 -1
  76. package/packages/theme-chalk/lib/main.css +1 -1
  77. package/packages/theme-chalk/lib/simplicity.css +1 -1
  78. package/packages/theme-chalk/src/.DS_Store +0 -0
  79. package/packages/theme-chalk/src/login.scss +6 -0
  80. package/packages/theme-chalk/src/main.scss +16 -0
  81. package/packages/theme-chalk/src/simplicity.scss +37 -0
  82. package/src/index.js +1 -1
  83. package/packages/main/src/simplicity/settings.vue +0 -119
package/lib/main.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 29);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 30);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -3974,16 +3974,22 @@ module.exports = require("wujie-vue2");
3974
3974
  /* 24 */,
3975
3975
  /* 25 */,
3976
3976
  /* 26 */,
3977
- /* 27 */,
3977
+ /* 27 */
3978
+ /***/ (function(module, exports) {
3979
+
3980
+ module.exports = require("slate");
3981
+
3982
+ /***/ }),
3978
3983
  /* 28 */,
3979
- /* 29 */
3984
+ /* 29 */,
3985
+ /* 30 */
3980
3986
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3981
3987
 
3982
3988
  "use strict";
3983
3989
  // ESM COMPAT FLAG
3984
3990
  __webpack_require__.r(__webpack_exports__);
3985
3991
 
3986
- // 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=6f2b9926&
3992
+ // 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=72ff8660&
3987
3993
  var render = function () {
3988
3994
  var _vm = this
3989
3995
  var _h = _vm.$createElement
@@ -3993,7 +3999,7 @@ var render = function () {
3993
3999
  "div",
3994
4000
  { staticClass: "es-main-box" },
3995
4001
  [
3996
- _vm.layout == "simplicity"
4002
+ _vm.layoutType == "simplicity"
3997
4003
  ? _c(
3998
4004
  "simplicity",
3999
4005
  _vm._g(
@@ -4019,7 +4025,7 @@ var render = function () {
4019
4025
  _vm._b(
4020
4026
  {
4021
4027
  ref: "main",
4022
- attrs: { "new-version": _vm.multiple },
4028
+ attrs: { "new-version": _vm.multiple, scene: _vm.layout },
4023
4029
  on: { "chang-layout": _vm.changLayout },
4024
4030
  },
4025
4031
  "main-default",
@@ -4075,13 +4081,13 @@ var staticRenderFns = []
4075
4081
  render._withStripped = true
4076
4082
 
4077
4083
 
4078
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=6f2b9926&
4084
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=72ff8660&
4079
4085
 
4080
4086
  // EXTERNAL MODULE: ./src/config/image.js
4081
4087
  var config_image = __webpack_require__(18);
4082
4088
 
4083
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=38f18b0d&scoped=true&
4084
- var simplicityvue_type_template_id_38f18b0d_scoped_true_render = function () {
4089
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=2c8bf964&scoped=true&
4090
+ var simplicityvue_type_template_id_2c8bf964_scoped_true_render = function () {
4085
4091
  var _vm = this
4086
4092
  var _h = _vm.$createElement
4087
4093
  var _c = _vm._self._c || _h
@@ -4630,6 +4636,8 @@ var simplicityvue_type_template_id_38f18b0d_scoped_true_render = function () {
4630
4636
  _vm._b(
4631
4637
  {
4632
4638
  attrs: {
4639
+ "layout-type": "simplicity",
4640
+ active: "simplicity",
4633
4641
  theme: _vm.themeColor,
4634
4642
  predefine: _vm.themes,
4635
4643
  visible: _vm.showSet,
@@ -4639,6 +4647,7 @@ var simplicityvue_type_template_id_38f18b0d_scoped_true_render = function () {
4639
4647
  _vm.showSet = $event
4640
4648
  },
4641
4649
  change: _vm.handleChange,
4650
+ layout: _vm.handleLayout,
4642
4651
  },
4643
4652
  },
4644
4653
  "settings",
@@ -4708,11 +4717,11 @@ var simplicityvue_type_template_id_38f18b0d_scoped_true_render = function () {
4708
4717
  ),
4709
4718
  ])
4710
4719
  }
4711
- var simplicityvue_type_template_id_38f18b0d_scoped_true_staticRenderFns = []
4712
- simplicityvue_type_template_id_38f18b0d_scoped_true_render._withStripped = true
4720
+ var simplicityvue_type_template_id_2c8bf964_scoped_true_staticRenderFns = []
4721
+ simplicityvue_type_template_id_2c8bf964_scoped_true_render._withStripped = true
4713
4722
 
4714
4723
 
4715
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=38f18b0d&scoped=true&
4724
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=2c8bf964&scoped=true&
4716
4725
 
4717
4726
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/avatar.vue?vue&type=template&id=1560e8bf&scoped=true&
4718
4727
  var avatarvue_type_template_id_1560e8bf_scoped_true_render = function () {
@@ -4870,8 +4879,8 @@ var component = Object(componentNormalizer["a" /* default */])(
4870
4879
  )
4871
4880
 
4872
4881
  /* harmony default export */ var avatar = (component.exports);
4873
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/handler.vue?vue&type=template&id=d8a0cc36&scoped=true&
4874
- var handlervue_type_template_id_d8a0cc36_scoped_true_render = function () {
4882
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/handler.vue?vue&type=template&id=bfe50be8&scoped=true&
4883
+ var handlervue_type_template_id_bfe50be8_scoped_true_render = function () {
4875
4884
  var _vm = this
4876
4885
  var _h = _vm.$createElement
4877
4886
  var _c = _vm._self._c || _h
@@ -4947,11 +4956,11 @@ var handlervue_type_template_id_d8a0cc36_scoped_true_render = function () {
4947
4956
  2
4948
4957
  )
4949
4958
  }
4950
- var handlervue_type_template_id_d8a0cc36_scoped_true_staticRenderFns = []
4951
- handlervue_type_template_id_d8a0cc36_scoped_true_render._withStripped = true
4959
+ var handlervue_type_template_id_bfe50be8_scoped_true_staticRenderFns = []
4960
+ handlervue_type_template_id_bfe50be8_scoped_true_render._withStripped = true
4952
4961
 
4953
4962
 
4954
- // CONCATENATED MODULE: ./packages/main/src/simplicity/handler.vue?vue&type=template&id=d8a0cc36&scoped=true&
4963
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/handler.vue?vue&type=template&id=bfe50be8&scoped=true&
4955
4964
 
4956
4965
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/handler.vue?vue&type=script&lang=js&
4957
4966
  //
@@ -5035,16 +5044,6 @@ handlervue_type_template_id_d8a0cc36_scoped_true_render._withStripped = true
5035
5044
  };
5036
5045
  }
5037
5046
  },
5038
- old: {
5039
- type: Object,
5040
- default: function _default() {
5041
- return {
5042
- type: 'old',
5043
- icon: 'es-icon-shiyongjiuban',
5044
- title: '使用旧版'
5045
- };
5046
- }
5047
- },
5048
5047
  notice: {
5049
5048
  type: Object,
5050
5049
  default: function _default() {
@@ -5105,7 +5104,7 @@ handlervue_type_template_id_d8a0cc36_scoped_true_render._withStripped = true
5105
5104
  lists: function lists() {
5106
5105
  var _this = this;
5107
5106
 
5108
- var data = this.data ? this.data : [this.search, this.index, this.home, this.old, this.notice, this.quit, this.set];
5107
+ var data = this.data ? this.data : [this.search, this.index, this.home, this.notice, this.quit, this.set];
5109
5108
  return data.filter(function (item) {
5110
5109
  return !_this.hide[item.type];
5111
5110
  });
@@ -5153,11 +5152,11 @@ handlervue_type_template_id_d8a0cc36_scoped_true_render._withStripped = true
5153
5152
 
5154
5153
  var handler_component = Object(componentNormalizer["a" /* default */])(
5155
5154
  simplicity_handlervue_type_script_lang_js_,
5156
- handlervue_type_template_id_d8a0cc36_scoped_true_render,
5157
- handlervue_type_template_id_d8a0cc36_scoped_true_staticRenderFns,
5155
+ handlervue_type_template_id_bfe50be8_scoped_true_render,
5156
+ handlervue_type_template_id_bfe50be8_scoped_true_staticRenderFns,
5158
5157
  false,
5159
5158
  null,
5160
- "d8a0cc36",
5159
+ "bfe50be8",
5161
5160
  null
5162
5161
 
5163
5162
  )
@@ -8187,8 +8186,8 @@ var notice_component = Object(componentNormalizer["a" /* default */])(
8187
8186
  )
8188
8187
 
8189
8188
  /* harmony default export */ var notice = (notice_component.exports);
8190
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/settings.vue?vue&type=template&id=48437ba0&
8191
- var settingsvue_type_template_id_48437ba0_render = function () {
8189
+ // 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=47a98925&
8190
+ var settingsvue_type_template_id_47a98925_render = function () {
8192
8191
  var _vm = this
8193
8192
  var _h = _vm.$createElement
8194
8193
  var _c = _vm._self._c || _h
@@ -8266,16 +8265,277 @@ var settingsvue_type_template_id_48437ba0_render = function () {
8266
8265
  ],
8267
8266
  1
8268
8267
  ),
8268
+ _c("div", { staticClass: "es-setting-item" }, [
8269
+ _c("div", { staticClass: "es-setting-title" }, [_vm._v("菜单风格")]),
8270
+ _c(
8271
+ "div",
8272
+ { staticClass: "es-setting-navs-box" },
8273
+ [
8274
+ _c(
8275
+ "el-tooltip",
8276
+ {
8277
+ staticClass: "es-setting-navs-item",
8278
+ attrs: {
8279
+ effect: "dark",
8280
+ content: "顶部菜单布局",
8281
+ placement: "bottom",
8282
+ },
8283
+ },
8284
+ [
8285
+ _c(
8286
+ "div",
8287
+ {
8288
+ staticClass: "es-setting-navs es-setting-top-nav",
8289
+ on: {
8290
+ click: function ($event) {
8291
+ $event.stopPropagation()
8292
+ _vm.handleLayout("default", "topnav")
8293
+ },
8294
+ },
8295
+ },
8296
+ [
8297
+ _c("i", {
8298
+ directives: [
8299
+ {
8300
+ name: "show",
8301
+ rawName: "v-show",
8302
+ value:
8303
+ _vm.layoutType == "default" &&
8304
+ _vm.activeName == "topnav",
8305
+ expression:
8306
+ "layoutType == 'default' && activeName == 'topnav'",
8307
+ },
8308
+ ],
8309
+ staticClass: "es-icon-gou",
8310
+ }),
8311
+ ]
8312
+ ),
8313
+ ]
8314
+ ),
8315
+ _c(
8316
+ "el-tooltip",
8317
+ {
8318
+ staticClass: "es-setting-navs-item",
8319
+ attrs: {
8320
+ effect: "dark",
8321
+ content: "侧边双列菜单布局",
8322
+ placement: "bottom",
8323
+ },
8324
+ },
8325
+ [
8326
+ _c(
8327
+ "div",
8328
+ {
8329
+ staticClass: "es-setting-navs es-setting-side-nav",
8330
+ on: {
8331
+ click: function ($event) {
8332
+ $event.stopPropagation()
8333
+ _vm.handleLayout("default", "default")
8334
+ },
8335
+ },
8336
+ },
8337
+ [
8338
+ _c("div", { staticClass: "es-setting-side-sub-nav" }),
8339
+ _c("i", {
8340
+ directives: [
8341
+ {
8342
+ name: "show",
8343
+ rawName: "v-show",
8344
+ value:
8345
+ _vm.layoutType == "default" &&
8346
+ _vm.activeName == "default",
8347
+ expression:
8348
+ "layoutType == 'default' && activeName == 'default'",
8349
+ },
8350
+ ],
8351
+ staticClass: "es-icon-gou",
8352
+ }),
8353
+ ]
8354
+ ),
8355
+ ]
8356
+ ),
8357
+ _c(
8358
+ "el-tooltip",
8359
+ {
8360
+ staticClass: "es-setting-navs-item",
8361
+ attrs: {
8362
+ effect: "dark",
8363
+ content: "子系统+侧边菜单布局",
8364
+ placement: "bottom",
8365
+ },
8366
+ },
8367
+ [
8368
+ _c(
8369
+ "div",
8370
+ {
8371
+ staticClass: "es-setting-navs es-setting-subsystem-nav",
8372
+ on: {
8373
+ click: function ($event) {
8374
+ $event.stopPropagation()
8375
+ _vm.handleLayout("default", "subsystem")
8376
+ },
8377
+ },
8378
+ },
8379
+ [
8380
+ _c("i", {
8381
+ directives: [
8382
+ {
8383
+ name: "show",
8384
+ rawName: "v-show",
8385
+ value:
8386
+ _vm.layoutType == "default" &&
8387
+ _vm.activeName == "subsystem",
8388
+ expression:
8389
+ "layoutType == 'default' && activeName == 'subsystem'",
8390
+ },
8391
+ ],
8392
+ staticClass: "es-icon-gou",
8393
+ }),
8394
+ ]
8395
+ ),
8396
+ ]
8397
+ ),
8398
+ _c(
8399
+ "el-tooltip",
8400
+ {
8401
+ staticClass: "es-setting-navs-item",
8402
+ attrs: {
8403
+ effect: "dark",
8404
+ content: "顶部+侧边菜单布局",
8405
+ placement: "bottom",
8406
+ },
8407
+ },
8408
+ [
8409
+ _c(
8410
+ "div",
8411
+ {
8412
+ staticClass: "es-setting-navs es-setting-top-side-nav",
8413
+ on: {
8414
+ click: function ($event) {
8415
+ $event.stopPropagation()
8416
+ _vm.handleLayout("default", "topside")
8417
+ },
8418
+ },
8419
+ },
8420
+ [
8421
+ _c("i", {
8422
+ directives: [
8423
+ {
8424
+ name: "show",
8425
+ rawName: "v-show",
8426
+ value:
8427
+ _vm.layoutType == "default" &&
8428
+ _vm.activeName == "topside",
8429
+ expression:
8430
+ "layoutType == 'default' && activeName == 'topside'",
8431
+ },
8432
+ ],
8433
+ staticClass: "es-icon-gou",
8434
+ }),
8435
+ ]
8436
+ ),
8437
+ ]
8438
+ ),
8439
+ _c(
8440
+ "el-tooltip",
8441
+ {
8442
+ staticClass: "es-setting-navs-item",
8443
+ attrs: {
8444
+ effect: "dark",
8445
+ content: "侧边+按钮菜单布局",
8446
+ placement: "bottom",
8447
+ },
8448
+ },
8449
+ [
8450
+ _c(
8451
+ "div",
8452
+ {
8453
+ staticClass: "es-setting-navs es-setting-side-navs",
8454
+ on: {
8455
+ click: function ($event) {
8456
+ $event.stopPropagation()
8457
+ _vm.handleLayout("default", "side")
8458
+ },
8459
+ },
8460
+ },
8461
+ [
8462
+ _c("i", {
8463
+ directives: [
8464
+ {
8465
+ name: "show",
8466
+ rawName: "v-show",
8467
+ value:
8468
+ _vm.layoutType == "default" &&
8469
+ _vm.activeName == "side",
8470
+ expression:
8471
+ "layoutType == 'default' && activeName == 'side'",
8472
+ },
8473
+ ],
8474
+ staticClass: "es-icon-gou",
8475
+ }),
8476
+ ]
8477
+ ),
8478
+ ]
8479
+ ),
8480
+ _c(
8481
+ "el-tooltip",
8482
+ {
8483
+ staticClass: "es-setting-navs-item",
8484
+ attrs: {
8485
+ effect: "dark",
8486
+ content: "(新)应用菜单布局",
8487
+ placement: "bottom",
8488
+ },
8489
+ },
8490
+ [
8491
+ _c(
8492
+ "div",
8493
+ {
8494
+ staticClass: "es-setting-navs es-setting-app-nav",
8495
+ on: {
8496
+ click: function ($event) {
8497
+ $event.stopPropagation()
8498
+ _vm.handleLayout("simplicity")
8499
+ },
8500
+ },
8501
+ },
8502
+ [
8503
+ _c("div", { staticClass: "es-setting-side-sub-nav" }),
8504
+ _c("i", {
8505
+ directives: [
8506
+ {
8507
+ name: "show",
8508
+ rawName: "v-show",
8509
+ value:
8510
+ _vm.layoutType == "simplicity" &&
8511
+ _vm.activeName == "simplicity",
8512
+ expression:
8513
+ "layoutType == 'simplicity' && activeName == 'simplicity'",
8514
+ },
8515
+ ],
8516
+ staticClass: "es-icon-gou",
8517
+ }),
8518
+ ]
8519
+ ),
8520
+ ]
8521
+ ),
8522
+ ],
8523
+ 1
8524
+ ),
8525
+ ]),
8269
8526
  ]
8270
8527
  )
8271
8528
  }
8272
- var settingsvue_type_template_id_48437ba0_staticRenderFns = []
8273
- settingsvue_type_template_id_48437ba0_render._withStripped = true
8529
+ var settingsvue_type_template_id_47a98925_staticRenderFns = []
8530
+ settingsvue_type_template_id_47a98925_render._withStripped = true
8274
8531
 
8275
8532
 
8276
- // CONCATENATED MODULE: ./packages/main/src/simplicity/settings.vue?vue&type=template&id=48437ba0&
8533
+ // CONCATENATED MODULE: ./packages/main/src/public/settings.vue?vue&type=template&id=47a98925&
8277
8534
 
8278
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/settings.vue?vue&type=script&lang=js&
8535
+ // EXTERNAL MODULE: external "slate"
8536
+ var external_slate_ = __webpack_require__(27);
8537
+
8538
+ // 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&
8279
8539
  //
8280
8540
  //
8281
8541
  //
@@ -8313,32 +8573,134 @@ settingsvue_type_template_id_48437ba0_render._withStripped = true
8313
8573
  //
8314
8574
  //
8315
8575
  //
8316
-
8317
-
8318
- /* harmony default export */ var settingsvue_type_script_lang_js_ = ({
8319
- name: 'Message',
8320
- props: {
8321
- visible: Boolean,
8322
- //主题颜色选择颜色集合
8323
- themes: Array,
8324
- //默认主题色
8325
- theme: String,
8326
- //颜色板预设颜色
8327
- predefine: {
8328
- type: Array,
8329
- default: function _default() {
8330
- return ['#a60006', '#409eff'];
8331
- }
8332
- },
8333
- layout: {
8334
- type: String,
8335
- default: 'default'
8336
- }
8337
- },
8338
- computed: {
8339
- show: {
8340
- get: function get() {
8341
- return this.visible;
8576
+ //
8577
+ //
8578
+ //
8579
+ //
8580
+ //
8581
+ //
8582
+ //
8583
+ //
8584
+ //
8585
+ //
8586
+ //
8587
+ //
8588
+ //
8589
+ //
8590
+ //
8591
+ //
8592
+ //
8593
+ //
8594
+ //
8595
+ //
8596
+ //
8597
+ //
8598
+ //
8599
+ //
8600
+ //
8601
+ //
8602
+ //
8603
+ //
8604
+ //
8605
+ //
8606
+ //
8607
+ //
8608
+ //
8609
+ //
8610
+ //
8611
+ //
8612
+ //
8613
+ //
8614
+ //
8615
+ //
8616
+ //
8617
+ //
8618
+ //
8619
+ //
8620
+ //
8621
+ //
8622
+ //
8623
+ //
8624
+ //
8625
+ //
8626
+ //
8627
+ //
8628
+ //
8629
+ //
8630
+ //
8631
+ //
8632
+ //
8633
+ //
8634
+ //
8635
+ //
8636
+ //
8637
+ //
8638
+ //
8639
+ //
8640
+ //
8641
+ //
8642
+ //
8643
+ //
8644
+ //
8645
+ //
8646
+ //
8647
+ //
8648
+ //
8649
+ //
8650
+ //
8651
+ //
8652
+ //
8653
+ //
8654
+ //
8655
+ //
8656
+ //
8657
+ //
8658
+ //
8659
+ //
8660
+ //
8661
+ //
8662
+ //
8663
+ //
8664
+ //
8665
+ //
8666
+ //
8667
+ //
8668
+ //
8669
+ //
8670
+ //
8671
+ //
8672
+ //
8673
+ //
8674
+ //
8675
+ //
8676
+ //
8677
+ //
8678
+ //
8679
+
8680
+
8681
+
8682
+ /* harmony default export */ var settingsvue_type_script_lang_js_ = ({
8683
+ name: 'message',
8684
+ props: {
8685
+ visible: Boolean,
8686
+ //主题颜色选择颜色集合
8687
+ themes: Array,
8688
+ //默认主题色
8689
+ theme: String,
8690
+ //颜色板预设颜色
8691
+ predefine: {
8692
+ type: Array,
8693
+ default: function _default() {
8694
+ return ['#a60006', '#409eff'];
8695
+ }
8696
+ },
8697
+ active: String,
8698
+ layoutType: String
8699
+ },
8700
+ computed: {
8701
+ show: {
8702
+ get: function get() {
8703
+ return this.visible;
8342
8704
  },
8343
8705
  set: function set(val) {
8344
8706
  this.$emit('update:visible', val);
@@ -8367,7 +8729,8 @@ settingsvue_type_template_id_48437ba0_render._withStripped = true
8367
8729
  data: function data() {
8368
8730
  return {
8369
8731
  color: '',
8370
- activeName: this.layout
8732
+ layoutName: this.layoutType,
8733
+ activeName: this.active
8371
8734
  };
8372
8735
  },
8373
8736
  mounted: function mounted() {},
@@ -8385,17 +8748,17 @@ settingsvue_type_template_id_48437ba0_render._withStripped = true
8385
8748
  },
8386
8749
 
8387
8750
  //选择菜单布局
8388
- handleLayout: function handleLayout(res) {
8751
+ handleLayout: function handleLayout(res, active) {
8389
8752
  var old = this.activeName;
8390
- this.activeName = res;
8391
- this.$emit('update:layout', res);
8392
- this.$emit('layout', res, old);
8753
+ this.layoutName = res;
8754
+ this.activeName = active;
8755
+ this.$emit('layout', res, active, old);
8393
8756
  }
8394
8757
  }
8395
8758
  });
8396
- // CONCATENATED MODULE: ./packages/main/src/simplicity/settings.vue?vue&type=script&lang=js&
8397
- /* harmony default export */ var simplicity_settingsvue_type_script_lang_js_ = (settingsvue_type_script_lang_js_);
8398
- // CONCATENATED MODULE: ./packages/main/src/simplicity/settings.vue
8759
+ // CONCATENATED MODULE: ./packages/main/src/public/settings.vue?vue&type=script&lang=js&
8760
+ /* harmony default export */ var public_settingsvue_type_script_lang_js_ = (settingsvue_type_script_lang_js_);
8761
+ // CONCATENATED MODULE: ./packages/main/src/public/settings.vue
8399
8762
 
8400
8763
 
8401
8764
 
@@ -8404,9 +8767,9 @@ settingsvue_type_template_id_48437ba0_render._withStripped = true
8404
8767
  /* normalize component */
8405
8768
 
8406
8769
  var settings_component = Object(componentNormalizer["a" /* default */])(
8407
- simplicity_settingsvue_type_script_lang_js_,
8408
- settingsvue_type_template_id_48437ba0_render,
8409
- settingsvue_type_template_id_48437ba0_staticRenderFns,
8770
+ public_settingsvue_type_script_lang_js_,
8771
+ settingsvue_type_template_id_47a98925_render,
8772
+ settingsvue_type_template_id_47a98925_staticRenderFns,
8410
8773
  false,
8411
8774
  null,
8412
8775
  null,
@@ -9830,6 +10193,9 @@ var simplicityvue_type_script_lang_js_extends = Object.assign || function (targe
9830
10193
  //
9831
10194
  //
9832
10195
  //
10196
+ //
10197
+ //
10198
+ //
9833
10199
 
9834
10200
 
9835
10201
 
@@ -10224,18 +10590,22 @@ var events = [function (tabs, index, that) {
10224
10590
  }
10225
10591
  var pathname = url.substring(url.indexOf('#/') + 1);
10226
10592
  pathname = pathname.split('?')[0];
10593
+ var _code = void 0;
10227
10594
  if (res.path !== '/' && pathname == _path) {
10228
10595
  if (res.components) {
10229
- if (!res.components[code]) {
10230
- console.error('“命名视图”规范属性名称与菜单appCode不一致', res);
10596
+ if (!res.components[_code]) {
10597
+ console.error('路由“命名视图”规范属性名称与菜单appCode不一致', res, _code);
10598
+ _code = Object.keys(res.components).filter(function (item) {
10599
+ return item !== 'default';
10600
+ })[0];
10231
10601
  }
10232
10602
  } else {
10233
- console.error('请根据“命名视图”规范,正确添加components属性名称', res);
10603
+ console.error('请根据路由“命名视图”规范,正确添加components属性名称', res);
10234
10604
  }
10235
- return pathname;
10605
+ return _code ? { path: pathname, appCode: _code } : pathname;
10236
10606
  }
10237
10607
  if (res && Object.prototype.hasOwnProperty.call(res, 'children')) {
10238
- var _path2 = this.hasRouter(res.children, url, code);
10608
+ var _path2 = this.hasRouter(res.children, url, _code);
10239
10609
  if (_path2) {
10240
10610
  return _path2;
10241
10611
  }
@@ -10300,7 +10670,7 @@ var events = [function (tabs, index, that) {
10300
10670
  util["a" /* default */].setStorage('loginPage', results[i]);
10301
10671
  }
10302
10672
  if (i === 'sysLogoIco' && results[i]) {
10303
- sessionStorage.setItem('sysLogoIco', results[i]);
10673
+ localStorage.setItem('sysLogoIco', results[i]);
10304
10674
  util["a" /* default */].setFavicon(results[i]);
10305
10675
  }
10306
10676
  if (i === 'userStyle' && results[i]) {
@@ -10429,95 +10799,19 @@ var events = [function (tabs, index, that) {
10429
10799
  getMenus: function getMenus(loading) {
10430
10800
  var _this2 = this;
10431
10801
 
10802
+ var menuData = store["a" /* default */].get('nav');
10803
+ if (menuData && menuData.length) {
10804
+ loading.close();
10805
+ this.renderMenus(menuData);
10806
+ return;
10807
+ }
10432
10808
  util["a" /* default */].ajax({ url: this._menuUrl }).then(function (res) {
10433
10809
  loading.close();
10434
10810
  if (res.rCode === 0) {
10435
10811
  if (res.results && res.results.length) {
10436
- _this2.menus = res.results;
10437
- _this2.setTips(_this2.menus);
10438
- store["a" /* default */].set('nav', _this2.menus);
10439
- if (_this2.indexUrl) {
10440
- var obj = _this2.getMenu(_this2.menus, _this2.indexUrl);
10441
- obj = obj ? obj : {
10442
- url: _this2.indexUrl,
10443
- text: '工作台',
10444
- id: '0',
10445
- appCode: 'indexUrl'
10446
- };
10447
- _this2.homePage = _this2.setIframeType(obj);
10448
- if (!_this2.appCode) {
10449
- _this2.tabs = [_this2.homePage];
10450
- _this2.activeName = _this2.homePage.id;
10451
- }
10452
- }
10453
- if (_this2.appCode) {
10454
- var code = _this2.sysCode || _this2.appCode;
10455
- var app = _this2.userApps.filter(function (item) {
10456
- return item.code === code;
10457
- })[0];
10458
- if (app) {
10459
- _this2.active = app.id;
10460
- if (app.url) {
10461
- var _obj = _this2.getMenu(_this2.menus, app.url);
10462
- if (_obj) {
10463
- var tab = _this2.setIframeType(_obj);
10464
- _this2.tabs = [tab];
10465
- _this2.activeName = tab.id;
10466
- } else {
10467
- _this2.tabs = [app];
10468
- }
10469
- }
10470
- }
10471
- if (_this2.sysCode) {
10472
- var subMenus = _this2.getMenu(_this2.menus, _this2.sysCode, 'appCode');
10473
- if (subMenus) {
10474
- var _obj2 = _this2.getMenu(_this2.menus, _this2.appCode, 'appCode');
10475
- if (_obj2) {
10476
- if (!_obj2.url) {
10477
- _obj2 = _this2.getFirst(_obj2);
10478
- }
10479
- _this2.subActive = _obj2.id;
10480
- var _tab = _this2.setIframeType(_obj2);
10481
- _this2.tabs = [_tab];
10482
- _this2.activeName = _tab.id;
10483
- } else {
10484
- _this2.subActive = '';
10485
- }
10486
- _this2.subMenus = subMenus;
10487
- _this2.showMenu = true;
10488
- } else {
10489
- _this2.subMenus = null;
10490
- _this2.showMenu = false;
10491
- }
10492
- } else {
10493
- var _subMenus = _this2.getMenu(_this2.menus, _this2.appCode, 'appCode');
10494
- if (_subMenus) {
10495
- if (_this2.tabs.length == 0) {
10496
- var _obj3 = _this2.getFirst(_subMenus);
10497
- if (_obj3) {
10498
- _this2.subActive = _obj3.id;
10499
- var _tab2 = _this2.setIframeType(_obj3);
10500
- _this2.tabs = [_tab2];
10501
- _this2.activeName = _tab2.id;
10502
- } else {
10503
- _this2.subActive = '';
10504
- }
10505
- }
10506
- _this2.subMenus = _subMenus;
10507
- _this2.showMenu = true;
10508
- } else {
10509
- _this2.subMenus = null;
10510
- _this2.showMenu = false;
10511
- }
10512
- }
10513
- } else if (_this2.initApps && _this2.initApps.length && !_this2.indexUrl) {
10514
- var _obj4 = _this2.getMenu(_this2.menus, _this2.initApps[_this2.initApps.length - 1]);
10515
- if (_obj4) {
10516
- var _tab3 = _this2.setIframeType(_obj4);
10517
- _this2.tabs.push(_tab3);
10518
- _this2.activeName = _tab3.id;
10519
- }
10520
- }
10812
+ //this.$emit('update:menuData', res.results);
10813
+ store["a" /* default */].set('nav', JSON.parse(JSON.stringify(res.results)));
10814
+ _this2.renderMenus(JSON.parse(JSON.stringify(res.results)));
10521
10815
  } else {
10522
10816
  _this2.$message.error('未分配菜单权限,请联系管理员!');
10523
10817
  }
@@ -10533,6 +10827,99 @@ var events = [function (tabs, index, that) {
10533
10827
  });
10534
10828
  },
10535
10829
 
10830
+ /**
10831
+ * @desc:处理菜单列表
10832
+ * @author huangbo
10833
+ * @date 2024年9月7日
10834
+ **/
10835
+ renderMenus: function renderMenus(res) {
10836
+ this.menus = res;
10837
+ this.setTips(this.menus);
10838
+ store["a" /* default */].set('nav', this.menus);
10839
+ if (this.indexUrl) {
10840
+ var obj = this.getMenu(this.menus, this.indexUrl);
10841
+ obj = obj ? obj : {
10842
+ url: this.indexUrl,
10843
+ text: '工作台',
10844
+ id: '0',
10845
+ appCode: 'indexUrl'
10846
+ };
10847
+ this.homePage = this.setIframeType(obj);
10848
+ if (!this.appCode) {
10849
+ this.tabs = [this.homePage];
10850
+ this.activeName = this.homePage.id;
10851
+ }
10852
+ }
10853
+ if (this.appCode) {
10854
+ var code = this.sysCode || this.appCode;
10855
+ var app = this.userApps.filter(function (item) {
10856
+ return item.code === code;
10857
+ })[0];
10858
+ if (app) {
10859
+ this.active = app.id;
10860
+ if (app.url) {
10861
+ var _obj = this.getMenu(this.menus, app.url);
10862
+ if (_obj) {
10863
+ var tab = this.setIframeType(_obj);
10864
+ this.tabs = [tab];
10865
+ this.activeName = tab.id;
10866
+ } else {
10867
+ this.tabs = [app];
10868
+ }
10869
+ }
10870
+ }
10871
+ if (this.sysCode) {
10872
+ var subMenus = this.getMenu(this.menus, this.sysCode, 'appCode');
10873
+ if (subMenus) {
10874
+ var _obj2 = this.getMenu(this.menus, this.appCode, 'appCode');
10875
+ if (_obj2) {
10876
+ if (!_obj2.url) {
10877
+ _obj2 = this.getFirst(_obj2);
10878
+ }
10879
+ this.subActive = _obj2.id;
10880
+ var _tab = this.setIframeType(_obj2);
10881
+ this.tabs = [_tab];
10882
+ this.activeName = _tab.id;
10883
+ } else {
10884
+ this.subActive = '';
10885
+ }
10886
+ this.subMenus = subMenus;
10887
+ this.showMenu = true;
10888
+ } else {
10889
+ this.subMenus = null;
10890
+ this.showMenu = false;
10891
+ }
10892
+ } else {
10893
+ var _subMenus = this.getMenu(this.menus, this.appCode, 'appCode');
10894
+ if (_subMenus) {
10895
+ if (this.tabs.length == 0) {
10896
+ var _obj3 = this.getFirst(_subMenus);
10897
+ if (_obj3) {
10898
+ this.subActive = _obj3.id;
10899
+ var _tab2 = this.setIframeType(_obj3);
10900
+ this.tabs = [_tab2];
10901
+ this.activeName = _tab2.id;
10902
+ } else {
10903
+ this.subActive = '';
10904
+ }
10905
+ }
10906
+ this.subMenus = _subMenus;
10907
+ this.showMenu = true;
10908
+ } else {
10909
+ this.subMenus = null;
10910
+ this.showMenu = false;
10911
+ }
10912
+ }
10913
+ } else if (this.initApps && this.initApps.length && !this.indexUrl) {
10914
+ var _obj4 = this.getMenu(this.menus, this.initApps[this.initApps.length - 1]);
10915
+ if (_obj4) {
10916
+ var _tab3 = this.setIframeType(_obj4);
10917
+ this.tabs.push(_tab3);
10918
+ this.activeName = _tab3.id;
10919
+ }
10920
+ }
10921
+ },
10922
+
10536
10923
  /**
10537
10924
  * @desc:设置页面加载类型
10538
10925
  * @author huangbo
@@ -10558,7 +10945,12 @@ var events = [function (tabs, index, that) {
10558
10945
  var path = this.hasRouter(routes, urls[0], res.appCode);
10559
10946
  if (path && this.routeType !== 'wujie') {
10560
10947
  res.method = 'router';
10561
- res.path = path;
10948
+ if (typeof path === 'string') {
10949
+ res.path = path;
10950
+ } else {
10951
+ res.path = path.path;
10952
+ res.appCode = path.appCode;
10953
+ }
10562
10954
  res.keys = util["a" /* default */].uuid();
10563
10955
  } else {
10564
10956
  var urlopenmode = util["a" /* default */].getParams({
@@ -11108,13 +11500,6 @@ var events = [function (tabs, index, that) {
11108
11500
  case 'index':
11109
11501
  util["a" /* default */].win.open(this.doorIndex, '_self');
11110
11502
  break;
11111
- case 'old':
11112
- if (typeof this.showOld === 'string') {
11113
- window.location.href = this.showOld;
11114
- } else {
11115
- this.$emit('chang-layout', 'default');
11116
- }
11117
- break;
11118
11503
  case 'set':
11119
11504
  this.showSet = !this.showSet;
11120
11505
  this.showMsg = false;
@@ -11236,6 +11621,18 @@ var events = [function (tabs, index, that) {
11236
11621
  }
11237
11622
  },
11238
11623
 
11624
+ /**
11625
+ * @desc:菜单布局样式切换
11626
+ * @author huangbo
11627
+ * @date 2024年9月7日
11628
+ **/
11629
+ handleLayout: function handleLayout(res, active) {
11630
+ if (active) {
11631
+ localStorage.setItem('layout', active);
11632
+ }
11633
+ this.$emit('chang-layout', res, active);
11634
+ },
11635
+
11239
11636
  /**
11240
11637
  * @desc:消息修改总数
11241
11638
  * @author huangbo
@@ -11351,18 +11748,18 @@ var events = [function (tabs, index, that) {
11351
11748
 
11352
11749
  var simplicity_component = Object(componentNormalizer["a" /* default */])(
11353
11750
  src_simplicityvue_type_script_lang_js_,
11354
- simplicityvue_type_template_id_38f18b0d_scoped_true_render,
11355
- simplicityvue_type_template_id_38f18b0d_scoped_true_staticRenderFns,
11751
+ simplicityvue_type_template_id_2c8bf964_scoped_true_render,
11752
+ simplicityvue_type_template_id_2c8bf964_scoped_true_staticRenderFns,
11356
11753
  false,
11357
11754
  null,
11358
- "38f18b0d",
11755
+ "2c8bf964",
11359
11756
  null
11360
11757
 
11361
11758
  )
11362
11759
 
11363
11760
  /* harmony default export */ var simplicity = (simplicity_component.exports);
11364
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=149ff0da&
11365
- var defaultvue_type_template_id_149ff0da_render = function () {
11761
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=215ab02a&
11762
+ var defaultvue_type_template_id_215ab02a_render = function () {
11366
11763
  var _vm = this
11367
11764
  var _h = _vm.$createElement
11368
11765
  var _c = _vm._self._c || _h
@@ -11654,14 +12051,15 @@ var defaultvue_type_template_id_149ff0da_render = function () {
11654
12051
  _vm._b(
11655
12052
  {
11656
12053
  attrs: {
12054
+ "layout-type": "default",
12055
+ active: _vm.layout,
11657
12056
  theme: _vm.color,
11658
12057
  predefine: _vm.themes,
11659
- visible: _vm.showSet,
11660
- layout: _vm.layout,
12058
+ visible: _vm.showSets,
11661
12059
  },
11662
12060
  on: {
11663
12061
  "update:visible": function ($event) {
11664
- _vm.showSet = $event
12062
+ _vm.showSets = $event
11665
12063
  },
11666
12064
  change: _vm.handleChange,
11667
12065
  layout: _vm.handleLayout,
@@ -11749,11 +12147,11 @@ var defaultvue_type_template_id_149ff0da_render = function () {
11749
12147
  1
11750
12148
  )
11751
12149
  }
11752
- var defaultvue_type_template_id_149ff0da_staticRenderFns = []
11753
- defaultvue_type_template_id_149ff0da_render._withStripped = true
12150
+ var defaultvue_type_template_id_215ab02a_staticRenderFns = []
12151
+ defaultvue_type_template_id_215ab02a_render._withStripped = true
11754
12152
 
11755
12153
 
11756
- // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=149ff0da&
12154
+ // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=215ab02a&
11757
12155
 
11758
12156
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/userinfo.vue?vue&type=template&id=d207c2e8&
11759
12157
  var userinfovue_type_template_id_d207c2e8_render = function () {
@@ -12235,20 +12633,22 @@ var default_userinfo_component = Object(componentNormalizer["a" /* default */])(
12235
12633
  )
12236
12634
 
12237
12635
  /* harmony default export */ var default_userinfo = (default_userinfo_component.exports);
12238
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/settings.vue?vue&type=template&id=52aa078c&
12239
- var settingsvue_type_template_id_52aa078c_render = function () {
12636
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/message.vue?vue&type=template&id=503171a2&
12637
+ var messagevue_type_template_id_503171a2_render = function () {
12240
12638
  var _vm = this
12241
12639
  var _h = _vm.$createElement
12242
12640
  var _c = _vm._self._c || _h
12243
12641
  return _c(
12244
12642
  "el-drawer",
12245
12643
  {
12644
+ staticClass: "es-msgs-box",
12246
12645
  attrs: {
12247
- title: "设置",
12248
- "custom-class": "es-sets-drawer",
12249
- size: "280px",
12646
+ "custom-class": "es-msgs-main",
12647
+ direction: "rtl",
12648
+ size: "200px",
12649
+ modal: false,
12650
+ withHeader: false,
12250
12651
  visible: _vm.show,
12251
- "append-to-body": true,
12252
12652
  },
12253
12653
  on: {
12254
12654
  "update:visible": function ($event) {
@@ -12257,531 +12657,29 @@ var settingsvue_type_template_id_52aa078c_render = function () {
12257
12657
  },
12258
12658
  },
12259
12659
  [
12260
- _c(
12261
- "div",
12262
- { staticClass: "es-setting-item" },
12263
- [
12264
- _c("div", { staticClass: "es-setting-title" }, [_vm._v("主题色")]),
12265
- _vm.themes
12266
- ? _c(
12267
- "el-radio-group",
12660
+ _c("div", { staticClass: "es-msg-header" }, [
12661
+ _c("span", { staticClass: "es-msg-title" }, [_vm._v("消息提示")]),
12662
+ _c(
12663
+ "span",
12664
+ { staticClass: "es-overlook", on: { click: _vm.handleIgnoreAll } },
12665
+ [_vm._v("全部忽略")]
12666
+ ),
12667
+ ]),
12668
+ _c("div", { staticClass: "es-msg-lists-box" }, [
12669
+ _c(
12670
+ "div",
12671
+ { staticClass: "es-msg-lists" },
12672
+ [
12673
+ _c("el-scrollbar", { staticClass: "es-scrollbar" }, [
12674
+ _c(
12675
+ "div",
12268
12676
  {
12269
- staticClass: "es-setting-theme",
12270
- attrs: { size: "mini" },
12271
- on: { change: _vm.handleTheme },
12272
- model: {
12273
- value: _vm.color,
12274
- callback: function ($$v) {
12275
- _vm.color = $$v
12276
- },
12277
- expression: "color",
12278
- },
12279
- },
12280
- _vm._l(_vm.themes, function (item, index) {
12281
- return _c(
12282
- "el-radio-button",
12677
+ directives: [
12283
12678
  {
12284
- key: index,
12285
- style: { backgroundColor: item },
12286
- attrs: { label: index },
12287
- },
12288
- [_c("i", { staticClass: "el-icon-check" })]
12289
- )
12290
- }),
12291
- 1
12292
- )
12293
- : _c(
12294
- "div",
12295
- { staticClass: "es-color-picker" },
12296
- [
12297
- _c("el-color-picker", {
12298
- attrs: { predefine: _vm.predefineColor },
12299
- on: { change: _vm.handleTheme },
12300
- model: {
12301
- value: _vm.color,
12302
- callback: function ($$v) {
12303
- _vm.color = $$v
12304
- },
12305
- expression: "color",
12306
- },
12307
- }),
12308
- _c("div", { staticClass: "el-color-picker-tip" }, [
12309
- _vm._v("请不要选择偏白或者偏黑的颜色"),
12310
- ]),
12311
- ],
12312
- 1
12313
- ),
12314
- ],
12315
- 1
12316
- ),
12317
- _c("div", { staticClass: "es-setting-item" }, [
12318
- _c("div", { staticClass: "es-setting-title" }, [_vm._v("菜单风格")]),
12319
- _c(
12320
- "div",
12321
- { staticClass: "es-setting-navs-box" },
12322
- [
12323
- _c(
12324
- "el-tooltip",
12325
- {
12326
- staticClass: "es-setting-navs-item",
12327
- attrs: {
12328
- effect: "dark",
12329
- content: "顶部菜单布局",
12330
- placement: "bottom",
12331
- },
12332
- },
12333
- [
12334
- _c(
12335
- "div",
12336
- {
12337
- staticClass: "es-setting-navs es-setting-top-nav",
12338
- on: {
12339
- click: function ($event) {
12340
- $event.stopPropagation()
12341
- _vm.handleLayout("topnav")
12342
- },
12343
- },
12344
- },
12345
- [
12346
- _c("i", {
12347
- directives: [
12348
- {
12349
- name: "show",
12350
- rawName: "v-show",
12351
- value: _vm.activeName == "topnav",
12352
- expression: "activeName == 'topnav'",
12353
- },
12354
- ],
12355
- staticClass: "es-icon-gou",
12356
- }),
12357
- ]
12358
- ),
12359
- ]
12360
- ),
12361
- _c(
12362
- "el-tooltip",
12363
- {
12364
- staticClass: "es-setting-navs-item",
12365
- attrs: {
12366
- effect: "dark",
12367
- content: "侧边双列菜单布局",
12368
- placement: "bottom",
12369
- },
12370
- },
12371
- [
12372
- _c(
12373
- "div",
12374
- {
12375
- staticClass: "es-setting-navs es-setting-side-nav",
12376
- on: {
12377
- click: function ($event) {
12378
- $event.stopPropagation()
12379
- _vm.handleLayout("default")
12380
- },
12381
- },
12382
- },
12383
- [
12384
- _c("div", { staticClass: "es-setting-side-sub-nav" }),
12385
- _c("i", {
12386
- directives: [
12387
- {
12388
- name: "show",
12389
- rawName: "v-show",
12390
- value: _vm.activeName == "default",
12391
- expression: "activeName == 'default'",
12392
- },
12393
- ],
12394
- staticClass: "es-icon-gou",
12395
- }),
12396
- ]
12397
- ),
12398
- ]
12399
- ),
12400
- _c(
12401
- "el-tooltip",
12402
- {
12403
- staticClass: "es-setting-navs-item",
12404
- attrs: {
12405
- effect: "dark",
12406
- content: "子系统+侧边菜单布局",
12407
- placement: "bottom",
12408
- },
12409
- },
12410
- [
12411
- _c(
12412
- "div",
12413
- {
12414
- staticClass: "es-setting-navs es-setting-subsystem-nav",
12415
- on: {
12416
- click: function ($event) {
12417
- $event.stopPropagation()
12418
- _vm.handleLayout("subsystem")
12419
- },
12420
- },
12421
- },
12422
- [
12423
- _c("i", {
12424
- directives: [
12425
- {
12426
- name: "show",
12427
- rawName: "v-show",
12428
- value: _vm.activeName == "subsystem",
12429
- expression: "activeName == 'subsystem'",
12430
- },
12431
- ],
12432
- staticClass: "es-icon-gou",
12433
- }),
12434
- ]
12435
- ),
12436
- ]
12437
- ),
12438
- _c(
12439
- "el-tooltip",
12440
- {
12441
- staticClass: "es-setting-navs-item",
12442
- attrs: {
12443
- effect: "dark",
12444
- content: "顶部+侧边菜单布局",
12445
- placement: "bottom",
12446
- },
12447
- },
12448
- [
12449
- _c(
12450
- "div",
12451
- {
12452
- staticClass: "es-setting-navs es-setting-top-side-nav",
12453
- on: {
12454
- click: function ($event) {
12455
- $event.stopPropagation()
12456
- _vm.handleLayout("topside")
12457
- },
12458
- },
12459
- },
12460
- [
12461
- _c("i", {
12462
- directives: [
12463
- {
12464
- name: "show",
12465
- rawName: "v-show",
12466
- value: _vm.activeName == "topside",
12467
- expression: "activeName == 'topside'",
12468
- },
12469
- ],
12470
- staticClass: "es-icon-gou",
12471
- }),
12472
- ]
12473
- ),
12474
- ]
12475
- ),
12476
- _c(
12477
- "el-tooltip",
12478
- {
12479
- staticClass: "es-setting-navs-item",
12480
- attrs: {
12481
- effect: "dark",
12482
- content: "侧边+按钮菜单布局",
12483
- placement: "bottom",
12484
- },
12485
- },
12486
- [
12487
- _c(
12488
- "div",
12489
- {
12490
- staticClass: "es-setting-navs es-setting-side-navs",
12491
- on: {
12492
- click: function ($event) {
12493
- $event.stopPropagation()
12494
- _vm.handleLayout("side")
12495
- },
12496
- },
12497
- },
12498
- [
12499
- _c("i", {
12500
- directives: [
12501
- {
12502
- name: "show",
12503
- rawName: "v-show",
12504
- value: _vm.activeName == "side",
12505
- expression: "activeName == 'side'",
12506
- },
12507
- ],
12508
- staticClass: "es-icon-gou",
12509
- }),
12510
- ]
12511
- ),
12512
- ]
12513
- ),
12514
- ],
12515
- 1
12516
- ),
12517
- ]),
12518
- ]
12519
- )
12520
- }
12521
- var settingsvue_type_template_id_52aa078c_staticRenderFns = []
12522
- settingsvue_type_template_id_52aa078c_render._withStripped = true
12523
-
12524
-
12525
- // CONCATENATED MODULE: ./packages/main/src/default/settings.vue?vue&type=template&id=52aa078c&
12526
-
12527
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/settings.vue?vue&type=script&lang=js&
12528
- //
12529
- //
12530
- //
12531
- //
12532
- //
12533
- //
12534
- //
12535
- //
12536
- //
12537
- //
12538
- //
12539
- //
12540
- //
12541
- //
12542
- //
12543
- //
12544
- //
12545
- //
12546
- //
12547
- //
12548
- //
12549
- //
12550
- //
12551
- //
12552
- //
12553
- //
12554
- //
12555
- //
12556
- //
12557
- //
12558
- //
12559
- //
12560
- //
12561
- //
12562
- //
12563
- //
12564
- //
12565
- //
12566
- //
12567
- //
12568
- //
12569
- //
12570
- //
12571
- //
12572
- //
12573
- //
12574
- //
12575
- //
12576
- //
12577
- //
12578
- //
12579
- //
12580
- //
12581
- //
12582
- //
12583
- //
12584
- //
12585
- //
12586
- //
12587
- //
12588
- //
12589
- //
12590
- //
12591
- //
12592
- //
12593
- //
12594
- //
12595
- //
12596
- //
12597
- //
12598
- //
12599
- //
12600
- //
12601
- //
12602
- //
12603
- //
12604
- //
12605
- //
12606
- //
12607
- //
12608
- //
12609
- //
12610
- //
12611
- //
12612
- //
12613
- //
12614
- //
12615
- //
12616
- //
12617
- //
12618
- //
12619
- //
12620
- //
12621
- //
12622
- //
12623
- //
12624
- //
12625
- //
12626
- //
12627
- //
12628
- //
12629
- //
12630
- //
12631
- //
12632
- //
12633
- //
12634
- //
12635
- //
12636
-
12637
-
12638
- /* harmony default export */ var default_settingsvue_type_script_lang_js_ = ({
12639
- name: 'message',
12640
- props: {
12641
- visible: Boolean,
12642
- //主题颜色选择颜色集合
12643
- themes: Array,
12644
- //默认主题色
12645
- theme: String,
12646
- //颜色板预设颜色
12647
- predefine: {
12648
- type: Array,
12649
- default: function _default() {
12650
- return ['#a60006', '#409eff'];
12651
- }
12652
- },
12653
- layout: {
12654
- type: String,
12655
- default: 'default'
12656
- }
12657
- },
12658
- computed: {
12659
- show: {
12660
- get: function get() {
12661
- return this.visible;
12662
- },
12663
- set: function set(val) {
12664
- this.$emit('update:visible', val);
12665
- }
12666
- },
12667
- //颜色板预设颜色
12668
- predefineColor: function predefineColor() {
12669
- if (this.theme && this.predefine.indexOf(this.theme.toLowerCase()) === -1) {
12670
- var arry = this.predefine;
12671
- arry.push(this.theme);
12672
- return arry;
12673
- }
12674
- return this.predefine;
12675
- }
12676
- },
12677
- watch: {
12678
- theme: {
12679
- immediate: true,
12680
- handler: function handler(val) {
12681
- if (val) {
12682
- this.color = val;
12683
- }
12684
- }
12685
- }
12686
- },
12687
- data: function data() {
12688
- return {
12689
- color: '',
12690
- activeName: this.layout
12691
- };
12692
- },
12693
- mounted: function mounted() {},
12694
-
12695
- methods: {
12696
- //选择主题颜色
12697
- handleTheme: function handleTheme(res) {
12698
- res = res.toLowerCase();
12699
- // const rgb = util.getRgb(res);
12700
- // const luma = 0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2];
12701
- util["a" /* default */].updateTheme(res);
12702
- this.color = res;
12703
- this.$emit('change', { type: 'theme', value: res });
12704
- //this.setTheme(res);
12705
- },
12706
-
12707
- //选择菜单布局
12708
- handleLayout: function handleLayout(res) {
12709
- var old = this.activeName;
12710
- this.activeName = res;
12711
- this.$emit('update:layout', res);
12712
- this.$emit('layout', res, old);
12713
- }
12714
- }
12715
- });
12716
- // CONCATENATED MODULE: ./packages/main/src/default/settings.vue?vue&type=script&lang=js&
12717
- /* harmony default export */ var src_default_settingsvue_type_script_lang_js_ = (default_settingsvue_type_script_lang_js_);
12718
- // CONCATENATED MODULE: ./packages/main/src/default/settings.vue
12719
-
12720
-
12721
-
12722
-
12723
-
12724
- /* normalize component */
12725
-
12726
- var default_settings_component = Object(componentNormalizer["a" /* default */])(
12727
- src_default_settingsvue_type_script_lang_js_,
12728
- settingsvue_type_template_id_52aa078c_render,
12729
- settingsvue_type_template_id_52aa078c_staticRenderFns,
12730
- false,
12731
- null,
12732
- null,
12733
- null
12734
-
12735
- )
12736
-
12737
- /* harmony default export */ var default_settings = (default_settings_component.exports);
12738
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/message.vue?vue&type=template&id=503171a2&
12739
- var messagevue_type_template_id_503171a2_render = function () {
12740
- var _vm = this
12741
- var _h = _vm.$createElement
12742
- var _c = _vm._self._c || _h
12743
- return _c(
12744
- "el-drawer",
12745
- {
12746
- staticClass: "es-msgs-box",
12747
- attrs: {
12748
- "custom-class": "es-msgs-main",
12749
- direction: "rtl",
12750
- size: "200px",
12751
- modal: false,
12752
- withHeader: false,
12753
- visible: _vm.show,
12754
- },
12755
- on: {
12756
- "update:visible": function ($event) {
12757
- _vm.show = $event
12758
- },
12759
- },
12760
- },
12761
- [
12762
- _c("div", { staticClass: "es-msg-header" }, [
12763
- _c("span", { staticClass: "es-msg-title" }, [_vm._v("消息提示")]),
12764
- _c(
12765
- "span",
12766
- { staticClass: "es-overlook", on: { click: _vm.handleIgnoreAll } },
12767
- [_vm._v("全部忽略")]
12768
- ),
12769
- ]),
12770
- _c("div", { staticClass: "es-msg-lists-box" }, [
12771
- _c(
12772
- "div",
12773
- { staticClass: "es-msg-lists" },
12774
- [
12775
- _c("el-scrollbar", { staticClass: "es-scrollbar" }, [
12776
- _c(
12777
- "div",
12778
- {
12779
- directives: [
12780
- {
12781
- name: "infinite-scroll",
12782
- rawName: "v-infinite-scroll",
12783
- value: _vm.getMsg,
12784
- expression: "getMsg",
12679
+ name: "infinite-scroll",
12680
+ rawName: "v-infinite-scroll",
12681
+ value: _vm.getMsg,
12682
+ expression: "getMsg",
12785
12683
  },
12786
12684
  ],
12787
12685
  attrs: { "infinite-scroll-disabled": _vm.disabled },
@@ -13663,6 +13561,7 @@ var defaultvue_type_script_lang_js_extends = Object.assign || function (target)
13663
13561
  //
13664
13562
  //
13665
13563
  //
13564
+ //
13666
13565
 
13667
13566
 
13668
13567
 
@@ -13688,7 +13587,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
13688
13587
 
13689
13588
  components: {
13690
13589
  userinfo: default_userinfo,
13691
- settings: default_settings,
13590
+ settings: settings,
13692
13591
  message: default_message,
13693
13592
  notice: default_notice,
13694
13593
  online: online
@@ -13920,11 +13819,10 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
13920
13819
  topRightToolHide = JSON.parse(this.topRightToolHide.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g, '"$2":'));
13921
13820
  }
13922
13821
  var hides = {
13923
- set: !this.set,
13822
+ set: !this.showSet,
13924
13823
  index: this.doorIndex ? false : true,
13925
13824
  system: true,
13926
- home: this.homePage ? false : true,
13927
- new: this.showNew ? false : true
13825
+ home: this.homePage ? false : true
13928
13826
  };
13929
13827
 
13930
13828
  if (this.layout === 'subsystem' || this.application) {
@@ -13978,6 +13876,11 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
13978
13876
  util["a" /* default */].updateTheme(val);
13979
13877
  }
13980
13878
  }
13879
+ },
13880
+ scene: function scene(val) {
13881
+ if (val) {
13882
+ this.layout = val.toLowerCase();
13883
+ }
13981
13884
  }
13982
13885
  },
13983
13886
  data: function data() {
@@ -14046,7 +13949,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14046
13949
  //刷新路由
14047
13950
  refresh: true,
14048
13951
  //显示设置面板
14049
- showSet: false,
13952
+ showSets: false,
14050
13953
  //当前设置的主题
14051
13954
  color: util["a" /* default */].getStorage('theme') ? util["a" /* default */].getStorage('theme') : this.theme,
14052
13955
  //显示用户信息
@@ -14075,7 +13978,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14075
13978
  hideSubMenu: false,
14076
13979
  doorIndex: '',
14077
13980
  topRightToolHide: '',
14078
- showNew: this.newVersion
13981
+ showSet: this.set
14079
13982
  };
14080
13983
  },
14081
13984
  created: function created() {
@@ -14228,7 +14131,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14228
14131
 
14229
14132
  //显示隐藏设置面板
14230
14133
  handleSet: function handleSet() {
14231
- this.showSet = !this.showSet;
14134
+ this.showSets = !this.showSets;
14232
14135
  },
14233
14136
  setConfig: function setConfig(results) {
14234
14137
  if (this.socket) {
@@ -14322,8 +14225,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14322
14225
  if (results[i].portalPage || results[i].portalpage) {
14323
14226
  this.doorIndex = results[i].portalPage || results[i].portalpage;
14324
14227
  }
14325
- if (results[i].multipleVersion || results[i].newVersion) {
14326
- this.showNew = results[i].newVersion ? results[i].newVersion : true;
14228
+ if (results[i].multipleVersion) {
14229
+ this.showSet = true;
14327
14230
  }
14328
14231
  if (results[i].topRightToolHide) {
14329
14232
  this.topRightToolHide = results[i].topRightToolHide;
@@ -14533,6 +14436,13 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14533
14436
  getMenu: function getMenu() {
14534
14437
  var _this4 = this;
14535
14438
 
14439
+ var menuData = store["a" /* default */].get('nav');
14440
+ if (menuData && menuData.length) {
14441
+ this.menus = JSON.parse(JSON.stringify(menuData));
14442
+ this.setTips(this.menus);
14443
+ this.setMenu(this.menus);
14444
+ return;
14445
+ }
14536
14446
  var param = this.menuCode ? { menuCode: this.menuCode } : {};
14537
14447
  var params = defaultvue_type_script_lang_js_extends({}, this.param, param);
14538
14448
  util["a" /* default */].ajax({ url: this.action, params: params }).then(function (res) {
@@ -14540,7 +14450,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14540
14450
  if (res.results && res.results.length) {
14541
14451
  _this4.menus = JSON.parse(JSON.stringify(res.results));
14542
14452
  _this4.setTips(_this4.menus);
14543
- store["a" /* default */].set('nav', _this4.menus);
14453
+ store["a" /* default */].set('nav', JSON.parse(JSON.stringify(res.results)));
14544
14454
  _this4.setMenu(_this4.menus);
14545
14455
  } else {
14546
14456
  _this4.$message.error('未分配菜单权限,请联系管理员!');
@@ -15086,13 +14996,6 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15086
14996
  case 'set':
15087
14997
  this.handleSet();
15088
14998
  break;
15089
- case 'new':
15090
- if (typeof this.showNew === 'string') {
15091
- window.location.href = this.showNew;
15092
- } else {
15093
- this.$emit('chang-layout', 'simplicity');
15094
- }
15095
- break;
15096
14999
  case 'goView':
15097
15000
  util["a" /* default */].win.open(res.path, '_blank');
15098
15001
  break;
@@ -15253,8 +15156,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15253
15156
  }
15254
15157
  return false;
15255
15158
  },
15256
- handleLayout: function handleLayout(res, old) {
15257
- if (res == old) {
15159
+ handleLayout: function handleLayout(layout, res, old) {
15160
+ this.$emit('chang-layout', layout);
15161
+ if (res == old || layout == 'simplicity') {
15258
15162
  return;
15259
15163
  }
15260
15164
  this.layout = res;
@@ -15433,8 +15337,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15433
15337
 
15434
15338
  var default_component = Object(componentNormalizer["a" /* default */])(
15435
15339
  src_defaultvue_type_script_lang_js_,
15436
- defaultvue_type_template_id_149ff0da_render,
15437
- defaultvue_type_template_id_149ff0da_staticRenderFns,
15340
+ defaultvue_type_template_id_215ab02a_render,
15341
+ defaultvue_type_template_id_215ab02a_staticRenderFns,
15438
15342
  false,
15439
15343
  null,
15440
15344
  null,
@@ -15493,6 +15397,7 @@ var external_wujie_vue2_default = /*#__PURE__*/__webpack_require__.n(external_wu
15493
15397
  //
15494
15398
  //
15495
15399
  //
15400
+ //
15496
15401
 
15497
15402
 
15498
15403
 
@@ -15515,6 +15420,7 @@ var bus = external_wujie_vue2_default.a.bus;
15515
15420
  MainDefault: src_default
15516
15421
  },
15517
15422
  props: {
15423
+ scene: String,
15518
15424
  launch: Boolean,
15519
15425
  type: String,
15520
15426
  launchImage: {
@@ -15547,13 +15453,14 @@ var bus = external_wujie_vue2_default.a.bus;
15547
15453
  dialogs: [],
15548
15454
  visibles: [],
15549
15455
  isLogin: false,
15550
- layout: this.type
15456
+ layoutType: this.type,
15457
+ layout: this.scene
15551
15458
  };
15552
15459
  },
15553
15460
  created: function created() {
15554
15461
  var layoutType = localStorage.getItem('layoutType');
15555
15462
  if (layoutType) {
15556
- this.layout = layoutType;
15463
+ this.layoutType = layoutType;
15557
15464
  }
15558
15465
  this.params = util["a" /* default */].getParams() || {};
15559
15466
  this.sysCode = this.params.sysCode;
@@ -15623,9 +15530,12 @@ var bus = external_wujie_vue2_default.a.bus;
15623
15530
  * @author huangbo
15624
15531
  * @date 2024年9月7日
15625
15532
  **/
15626
- changLayout: function changLayout(res) {
15627
- this.layout = res;
15533
+ changLayout: function changLayout(res, active) {
15534
+ this.layoutType = res;
15628
15535
  localStorage.setItem('layoutType', res);
15536
+ if (active) {
15537
+ this.layout = active;
15538
+ }
15629
15539
  },
15630
15540
 
15631
15541
  /**