eoss-ui 0.7.27 → 0.7.29

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 (283) hide show
  1. package/lib/button-group.js +35 -16
  2. package/lib/button.js +35 -16
  3. package/lib/calogin.js +268 -249
  4. package/lib/checkbox-group.js +35 -16
  5. package/lib/data-table-form.js +35 -16
  6. package/lib/data-table.js +47 -24
  7. package/lib/date-picker.js +35 -16
  8. package/lib/dialog.js +35 -16
  9. package/lib/eoss-ui.common.js +1777 -1427
  10. package/lib/flow-group.js +38 -19
  11. package/lib/flow-list.js +116 -97
  12. package/lib/flow.js +478 -411
  13. package/lib/form.js +35 -16
  14. package/lib/handle-user.js +35 -16
  15. package/lib/handler.js +35 -16
  16. package/lib/icon.js +35 -16
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +35 -16
  19. package/lib/input.js +35 -16
  20. package/lib/login.js +256 -126
  21. package/lib/main.js +742 -554
  22. package/lib/menu.js +0 -1
  23. package/lib/nav.js +35 -16
  24. package/lib/page.js +35 -16
  25. package/lib/pagination.js +35 -16
  26. package/lib/player.js +35 -16
  27. package/lib/qr-code.js +48 -29
  28. package/lib/radio-group.js +35 -16
  29. package/lib/retrial-auth.js +35 -16
  30. package/lib/select-ganged.js +35 -16
  31. package/lib/select.js +35 -16
  32. package/lib/selector-panel.js +35 -16
  33. package/lib/selector.js +35 -16
  34. package/lib/sizer.js +35 -16
  35. package/lib/steps.js +35 -16
  36. package/lib/switch.js +35 -16
  37. package/lib/table-form.js +35 -16
  38. package/lib/tabs.js +35 -16
  39. package/lib/tips.js +35 -16
  40. package/lib/tree-group.js +35 -16
  41. package/lib/tree.js +35 -16
  42. package/lib/upload.js +35 -16
  43. package/lib/utils/util.js +31 -12
  44. package/lib/wujie.js +35 -16
  45. package/lib/wxlogin.js +35 -16
  46. package/package.json +160 -160
  47. package/packages/.DS_Store +0 -0
  48. package/packages/button/index.js +5 -5
  49. package/packages/button/src/main.vue +418 -418
  50. package/packages/button-group/index.js +5 -5
  51. package/packages/button-group/src/main.vue +346 -346
  52. package/packages/calendar/index.js +5 -5
  53. package/packages/calogin/.DS_Store +0 -0
  54. package/packages/calogin/index.js +5 -5
  55. package/packages/calogin/src/main.vue +412 -412
  56. package/packages/calogin/src/plugin.js +915 -915
  57. package/packages/card/index.js +5 -5
  58. package/packages/card/src/main.vue +156 -156
  59. package/packages/cascader/index.js +5 -5
  60. package/packages/cascader/src/main.vue +168 -168
  61. package/packages/checkbox-group/index.js +5 -5
  62. package/packages/checkbox-group/src/main.vue +333 -333
  63. package/packages/clients/index.js +5 -5
  64. package/packages/clients/src/main.vue +151 -151
  65. package/packages/data-table/index.js +5 -5
  66. package/packages/data-table/src/children.vue +39 -39
  67. package/packages/data-table/src/column.vue +992 -988
  68. package/packages/data-table/src/main.vue +1831 -1831
  69. package/packages/data-table/src/sizer.vue +195 -195
  70. package/packages/data-table-form/index.js +5 -5
  71. package/packages/data-table-form/src/checkbox.vue +101 -101
  72. package/packages/data-table-form/src/colgroup.vue +17 -17
  73. package/packages/data-table-form/src/main.vue +181 -181
  74. package/packages/data-table-form/src/radio.vue +65 -65
  75. package/packages/data-table-form/src/table.vue +233 -233
  76. package/packages/data-table-form/src/tbody.vue +336 -336
  77. package/packages/data-table-form/src/thead.vue +68 -68
  78. package/packages/date-picker/.DS_Store +0 -0
  79. package/packages/date-picker/index.js +5 -5
  80. package/packages/date-picker/src/.DS_Store +0 -0
  81. package/packages/date-picker/src/main.vue +236 -236
  82. package/packages/dialog/index.js +5 -5
  83. package/packages/enable-drag/index.js +5 -5
  84. package/packages/enterprise/index.js +5 -5
  85. package/packages/enterprise/src/main.vue +66 -66
  86. package/packages/error-page/index.js +5 -5
  87. package/packages/error-page/src/main.vue +44 -44
  88. package/packages/flow/.DS_Store +0 -0
  89. package/packages/flow/index.js +5 -5
  90. package/packages/flow/src/.DS_Store +0 -0
  91. package/packages/flow/src/component/Circulate.vue +413 -413
  92. package/packages/flow/src/component/CommonOpinions.vue +373 -373
  93. package/packages/flow/src/component/CustomPreset.vue +322 -322
  94. package/packages/flow/src/component/FileList.vue +97 -97
  95. package/packages/flow/src/component/FreeCirculation.vue +240 -240
  96. package/packages/flow/src/component/Preset.vue +255 -255
  97. package/packages/flow/src/component/SendMsg.vue +242 -242
  98. package/packages/flow/src/component/TimeLimit.vue +190 -190
  99. package/packages/flow/src/component/taskUnionExamine.vue +755 -755
  100. package/packages/flow/src/form.vue +121 -121
  101. package/packages/flow/src/freeStartFlow.vue +2847 -2847
  102. package/packages/flow/src/main.vue +3855 -3854
  103. package/packages/flow/src/processForm.vue +1365 -1363
  104. package/packages/flow/src/processReject.vue +309 -309
  105. package/packages/flow/src/reset.vue +941 -941
  106. package/packages/flow/src/startTaskRead.vue +691 -691
  107. package/packages/flow/src/supervise.vue +159 -159
  108. package/packages/flow/src/table.vue +58 -58
  109. package/packages/flow-group/index.js +5 -5
  110. package/packages/flow-group/src/main.vue +717 -717
  111. package/packages/flow-list/.DS_Store +0 -0
  112. package/packages/flow-list/index.js +5 -5
  113. package/packages/flow-list/src/main.vue +1787 -1787
  114. package/packages/form/.DS_Store +0 -0
  115. package/packages/form/index.js +5 -5
  116. package/packages/form/src/main.vue +3901 -3901
  117. package/packages/form/src/table.vue +1512 -1512
  118. package/packages/handle-user/index.js +5 -5
  119. package/packages/handle-user/src/main.vue +137 -137
  120. package/packages/handler/index.js +5 -5
  121. package/packages/handler/src/main.vue +496 -496
  122. package/packages/icon/index.js +5 -5
  123. package/packages/icon/src/main.vue +104 -104
  124. package/packages/icons/index.js +5 -5
  125. package/packages/icons/src/main.vue +81 -81
  126. package/packages/input/index.js +5 -5
  127. package/packages/input/src/main.vue +356 -356
  128. package/packages/input-number/index.js +5 -5
  129. package/packages/input-number/src/main.vue +106 -106
  130. package/packages/label/index.js +5 -5
  131. package/packages/label/src/main.vue +457 -457
  132. package/packages/layout/index.js +5 -5
  133. package/packages/layout/src/item.vue +152 -152
  134. package/packages/layout/src/main.vue +31 -31
  135. package/packages/login/.DS_Store +0 -0
  136. package/packages/login/index.js +5 -5
  137. package/packages/login/src/main.vue +2068 -2020
  138. package/packages/login/src/resetPassword.vue +557 -557
  139. package/packages/main/.DS_Store +0 -0
  140. package/packages/main/index.js +5 -5
  141. package/packages/main/src/.DS_Store +0 -0
  142. package/packages/main/src/default/index.vue +2 -2
  143. package/packages/main/src/default/message.vue +249 -249
  144. package/packages/main/src/default/notice.vue +157 -157
  145. package/packages/main/src/default/userinfo.vue +502 -502
  146. package/packages/main/src/main.vue +165 -69
  147. package/packages/main/src/public/online.vue +89 -89
  148. package/packages/main/src/public/search.vue +464 -464
  149. package/packages/main/src/public/settings.vue +221 -221
  150. package/packages/main/src/simplicity/apps.vue +388 -388
  151. package/packages/main/src/simplicity/avatar.vue +82 -82
  152. package/packages/main/src/simplicity/handler.vue +144 -263
  153. package/packages/main/src/simplicity/index.vue +2253 -2135
  154. package/packages/main/src/simplicity/lists.vue +84 -84
  155. package/packages/main/src/simplicity/menu-list.vue +135 -135
  156. package/packages/main/src/simplicity/message.vue +259 -259
  157. package/packages/main/src/simplicity/notice.vue +190 -190
  158. package/packages/main/src/simplicity/router-page.vue +45 -45
  159. package/packages/main/src/simplicity/sub-menu.vue +266 -264
  160. package/packages/main/src/simplicity/user.vue +259 -259
  161. package/packages/main/src/simplicity/userinfo.vue +398 -398
  162. package/packages/menu/.DS_Store +0 -0
  163. package/packages/menu/index.js +5 -5
  164. package/packages/menu/src/main.vue +595 -596
  165. package/packages/nav/index.js +5 -5
  166. package/packages/nav/src/main.vue +351 -351
  167. package/packages/notify/index.js +5 -5
  168. package/packages/notify/src/main.vue +538 -538
  169. package/packages/page/index.js +5 -5
  170. package/packages/page/src/main.vue +167 -167
  171. package/packages/pagination/index.js +5 -5
  172. package/packages/pagination/src/main.vue +96 -96
  173. package/packages/player/index.js +5 -5
  174. package/packages/player/src/main.vue +194 -194
  175. package/packages/qr-code/index.js +5 -5
  176. package/packages/qr-code/src/main.vue +170 -170
  177. package/packages/radio-group/index.js +6 -6
  178. package/packages/radio-group/src/main.vue +319 -319
  179. package/packages/retrial-auth/index.js +5 -5
  180. package/packages/retrial-auth/src/main.vue +280 -280
  181. package/packages/select/.DS_Store +0 -0
  182. package/packages/select/index.js +5 -5
  183. package/packages/select/src/main.vue +782 -782
  184. package/packages/select-ganged/index.js +5 -5
  185. package/packages/select-ganged/src/main.vue +724 -724
  186. package/packages/selector/.DS_Store +0 -0
  187. package/packages/selector/index.js +5 -5
  188. package/packages/selector/src/main.vue +761 -761
  189. package/packages/selector-panel/.DS_Store +0 -0
  190. package/packages/selector-panel/index.js +5 -5
  191. package/packages/selector-panel/src/main.vue +1027 -1027
  192. package/packages/selector-panel/src/selection.vue +170 -170
  193. package/packages/selector-panel/src/tree.vue +129 -129
  194. package/packages/sizer/index.js +5 -5
  195. package/packages/sizer/src/main.vue +254 -254
  196. package/packages/steps/index.js +5 -5
  197. package/packages/steps/src/main.vue +181 -181
  198. package/packages/switch/index.js +5 -5
  199. package/packages/switch/src/main.vue +170 -170
  200. package/packages/table-form/index.js +5 -5
  201. package/packages/tabs/index.js +5 -5
  202. package/packages/tabs/src/main.vue +788 -788
  203. package/packages/tabs-panel/index.js +5 -5
  204. package/packages/tabs-panel/src/main.vue +29 -29
  205. package/packages/theme-chalk/src/.DS_Store +0 -0
  206. package/packages/theme-chalk/src/base.scss +261 -261
  207. package/packages/theme-chalk/src/button-group.scss +176 -176
  208. package/packages/theme-chalk/src/button.scss +24 -24
  209. package/packages/theme-chalk/src/calendar.scss +113 -113
  210. package/packages/theme-chalk/src/card.scss +99 -99
  211. package/packages/theme-chalk/src/checkbox-group.scss +8 -8
  212. package/packages/theme-chalk/src/clients.scss +87 -87
  213. package/packages/theme-chalk/src/data-table-form.scss +67 -67
  214. package/packages/theme-chalk/src/data-table.scss +293 -293
  215. package/packages/theme-chalk/src/date-picker.scss +7 -7
  216. package/packages/theme-chalk/src/dialog.scss +77 -77
  217. package/packages/theme-chalk/src/enable-drag.scss +181 -181
  218. package/packages/theme-chalk/src/enterprise.scss +5 -5
  219. package/packages/theme-chalk/src/error-page.scss +18 -18
  220. package/packages/theme-chalk/src/flow-group.scss +110 -110
  221. package/packages/theme-chalk/src/flow-list.scss +39 -39
  222. package/packages/theme-chalk/src/flow.scss +351 -351
  223. package/packages/theme-chalk/src/form.scss +501 -501
  224. package/packages/theme-chalk/src/handle-user.scss +40 -40
  225. package/packages/theme-chalk/src/handler.scss +148 -148
  226. package/packages/theme-chalk/src/icon.scss +1817 -1817
  227. package/packages/theme-chalk/src/icons.scss +99 -99
  228. package/packages/theme-chalk/src/input.scss +9 -9
  229. package/packages/theme-chalk/src/label.scss +24 -24
  230. package/packages/theme-chalk/src/layout.scss +46 -46
  231. package/packages/theme-chalk/src/login.scss +987 -987
  232. package/packages/theme-chalk/src/main.scss +663 -663
  233. package/packages/theme-chalk/src/menu.scss +224 -224
  234. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  235. package/packages/theme-chalk/src/nav.scss +111 -111
  236. package/packages/theme-chalk/src/page.scss +3 -3
  237. package/packages/theme-chalk/src/pagination.scss +29 -29
  238. package/packages/theme-chalk/src/player.scss +9 -9
  239. package/packages/theme-chalk/src/qr-code.scss +17 -17
  240. package/packages/theme-chalk/src/radio-group.scss +9 -9
  241. package/packages/theme-chalk/src/retrial-auth.scss +38 -38
  242. package/packages/theme-chalk/src/select-ganged.scss +8 -8
  243. package/packages/theme-chalk/src/select.scss +8 -8
  244. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  245. package/packages/theme-chalk/src/selector.scss +92 -92
  246. package/packages/theme-chalk/src/simplicity.scss +1370 -1370
  247. package/packages/theme-chalk/src/sizer.scss +36 -36
  248. package/packages/theme-chalk/src/steps.scss +88 -88
  249. package/packages/theme-chalk/src/switch.scss +3 -3
  250. package/packages/theme-chalk/src/table-form.scss +1 -1
  251. package/packages/theme-chalk/src/tabs.scss +87 -87
  252. package/packages/theme-chalk/src/tips.scss +7 -7
  253. package/packages/theme-chalk/src/toolbar.scss +179 -179
  254. package/packages/theme-chalk/src/tree-group.scss +72 -72
  255. package/packages/theme-chalk/src/tree.scss +165 -165
  256. package/packages/theme-chalk/src/upload.scss +172 -172
  257. package/packages/theme-chalk/src/wxlogin.scss +3 -3
  258. package/packages/tips/index.js +5 -5
  259. package/packages/tips/src/main.vue +141 -141
  260. package/packages/toolbar/index.js +5 -5
  261. package/packages/toolbar/src/main.vue +430 -430
  262. package/packages/tree/index.js +5 -5
  263. package/packages/tree-group/index.js +5 -5
  264. package/packages/upload/.DS_Store +0 -0
  265. package/packages/upload/index.js +5 -5
  266. package/packages/upload/src/main.vue +1343 -1343
  267. package/packages/upload/src/picture.js +15 -15
  268. package/packages/wujie/index.js +5 -5
  269. package/packages/wujie/src/main.vue +145 -145
  270. package/packages/wxlogin/index.js +5 -5
  271. package/packages/wxlogin/src/main.vue +128 -128
  272. package/src/.DS_Store +0 -0
  273. package/src/config/api.js +315 -315
  274. package/src/config/image.js +2 -2
  275. package/src/index.js +163 -163
  276. package/src/utils/.DS_Store +0 -0
  277. package/src/utils/bus.js +3 -3
  278. package/src/utils/date-util.js +312 -312
  279. package/src/utils/http.js +50 -50
  280. package/src/utils/rules.js +18 -18
  281. package/src/utils/store.js +21 -21
  282. package/src/utils/util.js +31 -12
  283. package/src/utils/webSocket.js +107 -107
package/lib/main.js CHANGED
@@ -122,8 +122,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
122
122
  **/
123
123
 
124
124
  /* eslint-disable indent */
125
- var sm2 = __webpack_require__(12).sm2;
126
- var lodash = __webpack_require__(13);
125
+ var sm2 = __webpack_require__(13).sm2;
126
+ var lodash = __webpack_require__(12);
127
127
 
128
128
 
129
129
 
@@ -132,6 +132,7 @@ var lodash = __webpack_require__(13);
132
132
 
133
133
 
134
134
  var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
135
+ var isIE = /MSIE|Trident/.test(navigator.userAgent);
135
136
  var parser = new ua_parser_js__WEBPACK_IMPORTED_MODULE_6__["UAParser"]();
136
137
  var $hueStep = 2;
137
138
  var $saturationStep1 = 0.16;
@@ -544,12 +545,6 @@ var ajaxStream = function ajaxStream(_ref2) {
544
545
  console.log('解析数据出错:', parseError);
545
546
  }
546
547
  }
547
- // }
548
- // else {
549
- // console.log('未处理的数据:', line);
550
- // // 保存未处理完的部分数据
551
- // remainingData += line.replace('data:', '\ndata:');
552
- // }
553
548
  });
554
549
  info.primeval = primeval;
555
550
  info.chunk = chunks;
@@ -672,11 +667,20 @@ var busEmit = function busEmit(that, _ref3) {
672
667
  var method = _ref3.method,
673
668
  args = _ref3.args;
674
669
 
675
- var bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
676
- if (bus) {
677
- Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
670
+ if (isIE) {
671
+ var bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
672
+ if (bus) {
673
+ Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
674
+ } else {
675
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
676
+ }
678
677
  } else {
679
- win.parent.postMessage({ method: method, query: args }, '*');
678
+ var _bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
679
+ if (_bus) {
680
+ Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args);
681
+ } else {
682
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
683
+ }
680
684
  }
681
685
  };
682
686
 
@@ -3516,7 +3520,6 @@ var setCookie = function setCookie(name, value) {
3516
3520
  var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3517
3521
  var time = arguments[3];
3518
3522
 
3519
- var isIE = /MSIE|Trident/.test(navigator.userAgent);
3520
3523
  try {
3521
3524
  var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
3522
3525
  ];
@@ -3603,6 +3606,20 @@ var removeCookie = function removeCookie(key) {
3603
3606
  }
3604
3607
  };
3605
3608
 
3609
+ var winTopOpen = function winTopOpen(config) {
3610
+ if (isIE) {
3611
+ if (win.top !== win.self) {
3612
+ try {
3613
+ win.top.windowOpen(config);
3614
+ } catch (error) {
3615
+ win.postMessage({ method: 'windowOpen', query: config }, '*');
3616
+ }
3617
+ }
3618
+ } else {
3619
+ busEmit('windowOpen', config);
3620
+ }
3621
+ };
3622
+
3606
3623
  /* harmony default export */ __webpack_exports__["a"] = ({
3607
3624
  ajax: ajax,
3608
3625
  ajaxStream: ajaxStream,
@@ -3656,6 +3673,7 @@ var removeCookie = function removeCookie(key) {
3656
3673
  isEmpty: isEmpty,
3657
3674
  isExist: isExist,
3658
3675
  isFunction: isFunction,
3676
+ isIE: isIE,
3659
3677
  isLogged: isLogged,
3660
3678
  isLogined: isLogined,
3661
3679
  isObject: isObject,
@@ -3695,7 +3713,8 @@ var removeCookie = function removeCookie(key) {
3695
3713
  urlJoinParams: urlJoinParams,
3696
3714
  uuid: uuid,
3697
3715
  watermark: watermark,
3698
- win: win
3716
+ win: win,
3717
+ winTopOpen: winTopOpen
3699
3718
  });
3700
3719
 
3701
3720
  /***/ }),
@@ -4419,13 +4438,13 @@ module.exports = require("ua-parser-js");
4419
4438
  /* 12 */
4420
4439
  /***/ (function(module, exports) {
4421
4440
 
4422
- module.exports = require("sm-crypto");
4441
+ module.exports = require("lodash");
4423
4442
 
4424
4443
  /***/ }),
4425
4444
  /* 13 */
4426
4445
  /***/ (function(module, exports) {
4427
4446
 
4428
- module.exports = require("lodash");
4447
+ module.exports = require("sm-crypto");
4429
4448
 
4430
4449
  /***/ }),
4431
4450
  /* 14 */
@@ -4495,7 +4514,7 @@ var nightImg = 'data:image/jpeg;base64,/9j/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
4495
4514
  // ESM COMPAT FLAG
4496
4515
  __webpack_require__.r(__webpack_exports__);
4497
4516
 
4498
- // 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=d57cecee&
4517
+ // 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=0d6a4fb9&
4499
4518
  var render = function () {
4500
4519
  var _vm = this
4501
4520
  var _h = _vm.$createElement
@@ -4554,38 +4573,55 @@ var render = function () {
4554
4573
  _vm._l(_vm.dialogs, function (item, index) {
4555
4574
  return _c(
4556
4575
  "es-dialog",
4557
- _vm._b(
4558
- {
4559
- key: item.id || item.name || index,
4560
- attrs: { visible: _vm.visibles[index], size: "md" },
4561
- on: {
4562
- "update:visible": function ($event) {
4563
- _vm.$set(_vm.visibles, index, $event)
4564
- },
4565
- close: function ($event) {
4566
- _vm.handleClosed(item, index)
4567
- },
4576
+ {
4577
+ key: item.appCode || item.id || item.name || index,
4578
+ attrs: {
4579
+ visible: item.visible,
4580
+ title: item.name,
4581
+ width: item.width,
4582
+ height: item.height,
4583
+ size: item.size,
4584
+ },
4585
+ on: {
4586
+ "update:visible": function ($event) {
4587
+ _vm.$set(item, "visible", $event)
4588
+ },
4589
+ close: function ($event) {
4590
+ _vm.handleClosed(item, index)
4568
4591
  },
4569
4592
  },
4570
- "es-dialog",
4571
- _vm.exclAttribute({
4572
- data: item,
4573
- attrs: ["visible", "url"],
4574
- }),
4575
- false
4576
- ),
4593
+ },
4577
4594
  [
4578
- _vm.visibles[index]
4579
- ? _c("iframe", {
4580
- attrs: {
4581
- width: "100%",
4582
- height: "100%",
4583
- frameborder: "0",
4584
- src: item.url,
4585
- },
4586
- })
4595
+ item.visible
4596
+ ? [
4597
+ item.openModel === "wujie" && !_vm.isIE
4598
+ ? _c("es-wujie", {
4599
+ attrs: {
4600
+ host: _vm.host,
4601
+ show: true,
4602
+ name: item.appCode,
4603
+ url: item.url,
4604
+ props: item,
4605
+ },
4606
+ })
4607
+ : _c("iframe", {
4608
+ attrs: {
4609
+ width: "100%",
4610
+ height: "100%",
4611
+ frameborder: "0",
4612
+ id: item.appCode || item.id,
4613
+ src: item.url,
4614
+ },
4615
+ on: {
4616
+ load: function (event) {
4617
+ return _vm.handleIframeLoad(event.target, item)
4618
+ },
4619
+ },
4620
+ }),
4621
+ ]
4587
4622
  : _vm._e(),
4588
- ]
4623
+ ],
4624
+ 2
4589
4625
  )
4590
4626
  }),
4591
4627
  ],
@@ -4597,13 +4633,13 @@ var staticRenderFns = []
4597
4633
  render._withStripped = true
4598
4634
 
4599
4635
 
4600
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=d57cecee&
4636
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=0d6a4fb9&
4601
4637
 
4602
4638
  // EXTERNAL MODULE: ./src/config/image.js
4603
4639
  var config_image = __webpack_require__(20);
4604
4640
 
4605
- // 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=3c4ceaef&scoped=true&
4606
- var simplicityvue_type_template_id_3c4ceaef_scoped_true_render = function () {
4641
+ // 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=5b9d34eb&scoped=true&
4642
+ var simplicityvue_type_template_id_5b9d34eb_scoped_true_render = function () {
4607
4643
  var _vm = this
4608
4644
  var _h = _vm.$createElement
4609
4645
  var _c = _vm._self._c || _h
@@ -5080,6 +5116,7 @@ var simplicityvue_type_template_id_3c4ceaef_scoped_true_render = function () {
5080
5116
  class: { "is-open": _vm.showMenu, "is-fold": _vm.fold },
5081
5117
  attrs: { closable: "", "hide-bar": "", opacity: "" },
5082
5118
  on: {
5119
+ "tab-click": _vm.handleTabClick,
5083
5120
  "tab-remove": _vm.handleRemove,
5084
5121
  "tab-contextmenu": _vm.handleContextmenu,
5085
5122
  },
@@ -5098,11 +5135,9 @@ var simplicityvue_type_template_id_3c4ceaef_scoped_true_render = function () {
5098
5135
  {
5099
5136
  attrs: {
5100
5137
  slot: "append",
5101
- data: _vm.handleData,
5102
- hide: _vm.hide,
5103
- contact: _vm.contact,
5104
- online: _vm.userNums,
5105
- "notice-num": _vm.notice,
5138
+ "show-title-type": _vm.showTitleType,
5139
+ data: _vm._handleDatas,
5140
+ nums: _vm.handleNums,
5106
5141
  },
5107
5142
  on: { click: _vm.handleClick },
5108
5143
  slot: "append",
@@ -5112,37 +5147,39 @@ var simplicityvue_type_template_id_3c4ceaef_scoped_true_render = function () {
5112
5147
  false
5113
5148
  )
5114
5149
  ),
5115
- _c(
5116
- "sub-menu",
5117
- _vm._b(
5118
- {
5119
- attrs: {
5120
- collapse: _vm.collapse,
5121
- mode: _vm.mode,
5122
- visible: _vm.showMenu,
5123
- closed: _vm.fold,
5124
- size: _vm.menuWidth,
5125
- title: _vm.title,
5126
- color: _vm.menuColor,
5127
- backgroundColor: _vm.menuBackgroundColor,
5128
- "menu-icon": _vm.menuIcon,
5129
- active: _vm.subActive,
5130
- },
5131
- on: {
5132
- "update:visible": function ($event) {
5133
- _vm.showMenu = $event
5134
- },
5135
- "update:closed": function ($event) {
5136
- _vm.fold = $event
5150
+ _vm.subMenus
5151
+ ? _c(
5152
+ "sub-menu",
5153
+ _vm._b(
5154
+ {
5155
+ attrs: {
5156
+ collapse: _vm.isCollapse,
5157
+ mode: _vm.mode,
5158
+ visible: _vm.showMenu,
5159
+ closed: _vm.fold,
5160
+ size: _vm.menuWidth,
5161
+ title: _vm.title,
5162
+ color: _vm.menuColor,
5163
+ backgroundColor: _vm.menuBackgroundColor,
5164
+ "menu-icon": _vm.menuIcon,
5165
+ active: _vm.subActive,
5166
+ },
5167
+ on: {
5168
+ "update:visible": function ($event) {
5169
+ _vm.showMenu = $event
5170
+ },
5171
+ "update:closed": function ($event) {
5172
+ _vm.fold = $event
5173
+ },
5174
+ command: _vm.handlerClickMenu,
5175
+ },
5137
5176
  },
5138
- command: _vm.handlerClickMenu,
5139
- },
5140
- },
5141
- "sub-menu",
5142
- _vm.subMenus,
5143
- false
5144
- )
5145
- ),
5177
+ "sub-menu",
5178
+ _vm.subMenus,
5179
+ false
5180
+ )
5181
+ )
5182
+ : _vm._e(),
5146
5183
  _vm._l(_vm.tabs, function (item) {
5147
5184
  return _c(
5148
5185
  "el-tab-pane",
@@ -5204,13 +5241,13 @@ var simplicityvue_type_template_id_3c4ceaef_scoped_true_render = function () {
5204
5241
  ? _c("message", {
5205
5242
  ref: "message",
5206
5243
  attrs: {
5207
- total: _vm.notice,
5244
+ total: _vm.handleNums.notice,
5208
5245
  visible: _vm.showMsg,
5209
5246
  winopen: _vm.winopen,
5210
5247
  },
5211
5248
  on: {
5212
5249
  "update:total": function ($event) {
5213
- _vm.notice = $event
5250
+ _vm.$set(_vm.handleNums, "notice", $event)
5214
5251
  },
5215
5252
  "update:visible": function ($event) {
5216
5253
  _vm.showMsg = $event
@@ -5306,11 +5343,11 @@ var simplicityvue_type_template_id_3c4ceaef_scoped_true_render = function () {
5306
5343
  ),
5307
5344
  ])
5308
5345
  }
5309
- var simplicityvue_type_template_id_3c4ceaef_scoped_true_staticRenderFns = []
5310
- simplicityvue_type_template_id_3c4ceaef_scoped_true_render._withStripped = true
5346
+ var simplicityvue_type_template_id_5b9d34eb_scoped_true_staticRenderFns = []
5347
+ simplicityvue_type_template_id_5b9d34eb_scoped_true_render._withStripped = true
5311
5348
 
5312
5349
 
5313
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=3c4ceaef&scoped=true&
5350
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=5b9d34eb&scoped=true&
5314
5351
 
5315
5352
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/avatar.vue?vue&type=template&id=e722b45c&scoped=true&
5316
5353
  var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
@@ -5470,8 +5507,8 @@ var component = Object(componentNormalizer["a" /* default */])(
5470
5507
  )
5471
5508
 
5472
5509
  /* harmony default export */ var avatar = (component.exports);
5473
- // 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=0e3b21b5&scoped=true&
5474
- var handlervue_type_template_id_0e3b21b5_scoped_true_render = function () {
5510
+ // 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=4a14597c&scoped=true&
5511
+ var handlervue_type_template_id_4a14597c_scoped_true_render = function () {
5475
5512
  var _vm = this
5476
5513
  var _h = _vm.$createElement
5477
5514
  var _c = _vm._self._c || _h
@@ -5479,7 +5516,7 @@ var handlervue_type_template_id_0e3b21b5_scoped_true_render = function () {
5479
5516
  "div",
5480
5517
  { staticClass: "es-simplicity-handler" },
5481
5518
  [
5482
- _vm._l(_vm.lists, function (item) {
5519
+ _vm._l(_vm.data, function (item) {
5483
5520
  return [
5484
5521
  item.type == "contact"
5485
5522
  ? _c(
@@ -5529,12 +5566,17 @@ var handlervue_type_template_id_0e3b21b5_scoped_true_render = function () {
5529
5566
  },
5530
5567
  },
5531
5568
  },
5532
- [_vm._v("\n " + _vm._s(_vm.online) + "\n ")]
5569
+ [
5570
+ _vm._v(
5571
+ "\n " + _vm._s(_vm.nums[item.type]) + "\n "
5572
+ ),
5573
+ ]
5533
5574
  ),
5534
5575
  _vm._v("\n 人在线\n "),
5535
5576
  ]
5536
5577
  )
5537
- : _c(
5578
+ : _vm.showTitleType === "tooltip"
5579
+ ? _c(
5538
5580
  "el-tooltip",
5539
5581
  {
5540
5582
  key: item.type,
@@ -5545,34 +5587,50 @@ var handlervue_type_template_id_0e3b21b5_scoped_true_render = function () {
5545
5587
  },
5546
5588
  },
5547
5589
  [
5548
- item.type === "notice" || item.type === "messsage"
5549
- ? _c(
5550
- "el-badge",
5551
- {
5552
- staticClass: "es-simplicity-handler-item",
5553
- attrs: {
5554
- value: _vm.noticeNum,
5555
- max: 99,
5556
- hidden: _vm.noticeNum < 1,
5590
+ _c(
5591
+ "el-badge",
5592
+ {
5593
+ staticClass: "es-simplicity-handler-item",
5594
+ attrs: {
5595
+ hidden: !_vm.nums[item.type] && !item.num,
5596
+ value: _vm.nums[item.type] || item.num || 0,
5597
+ max: 99,
5598
+ },
5599
+ },
5600
+ [
5601
+ _c("es-icon", {
5602
+ staticClass: "es-simplicity-handler-icon",
5603
+ attrs: { contents: item.icon },
5604
+ on: {
5605
+ click: function ($event) {
5606
+ $event.stopPropagation()
5607
+ _vm.handleClick(item)
5557
5608
  },
5558
5609
  },
5559
- [
5560
- _c("es-icon", {
5561
- staticClass: "es-simplicity-handler-icon",
5562
- attrs: { contents: item.icon },
5563
- on: {
5564
- click: function ($event) {
5565
- $event.stopPropagation()
5566
- _vm.handleClick(item)
5567
- },
5568
- },
5569
- }),
5570
- ],
5571
- 1
5572
- )
5573
- : _c("es-icon", {
5574
- staticClass:
5575
- "es-simplicity-handler-item es-simplicity-handler-icon",
5610
+ }),
5611
+ ],
5612
+ 1
5613
+ ),
5614
+ ],
5615
+ 1
5616
+ )
5617
+ : _c(
5618
+ "div",
5619
+ { key: item.type, staticClass: "es-simplicity-handler-item" },
5620
+ [
5621
+ _c(
5622
+ "el-badge",
5623
+ {
5624
+ staticClass: "es-simplicity-handler-item",
5625
+ attrs: {
5626
+ hidden: !_vm.nums[item.type] && !item.num,
5627
+ value: _vm.nums[item.type] || item.num || 0,
5628
+ max: 99,
5629
+ },
5630
+ },
5631
+ [
5632
+ _c("es-icon", {
5633
+ staticClass: "es-simplicity-handler-icon",
5576
5634
  attrs: { contents: item.icon },
5577
5635
  on: {
5578
5636
  click: function ($event) {
@@ -5581,6 +5639,12 @@ var handlervue_type_template_id_0e3b21b5_scoped_true_render = function () {
5581
5639
  },
5582
5640
  },
5583
5641
  }),
5642
+ ],
5643
+ 1
5644
+ ),
5645
+ _vm.showTitleType === "text"
5646
+ ? _c("span", {}, [_vm._v(_vm._s(item.title))])
5647
+ : _vm._e(),
5584
5648
  ],
5585
5649
  1
5586
5650
  ),
@@ -5590,17 +5654,21 @@ var handlervue_type_template_id_0e3b21b5_scoped_true_render = function () {
5590
5654
  2
5591
5655
  )
5592
5656
  }
5593
- var handlervue_type_template_id_0e3b21b5_scoped_true_staticRenderFns = []
5594
- handlervue_type_template_id_0e3b21b5_scoped_true_render._withStripped = true
5657
+ var handlervue_type_template_id_4a14597c_scoped_true_staticRenderFns = []
5658
+ handlervue_type_template_id_4a14597c_scoped_true_render._withStripped = true
5595
5659
 
5596
5660
 
5597
- // CONCATENATED MODULE: ./packages/main/src/simplicity/handler.vue?vue&type=template&id=0e3b21b5&scoped=true&
5661
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/handler.vue?vue&type=template&id=4a14597c&scoped=true&
5598
5662
 
5599
5663
  // 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&
5600
- var _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; };
5601
-
5602
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
5603
-
5664
+ //
5665
+ //
5666
+ //
5667
+ //
5668
+ //
5669
+ //
5670
+ //
5671
+ //
5604
5672
  //
5605
5673
  //
5606
5674
  //
@@ -5678,131 +5746,24 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5678
5746
  name: 'Handler',
5679
5747
  components: {},
5680
5748
  props: {
5681
- contact: Object,
5682
- dateTime: {
5683
- type: [Boolean, Object],
5684
- default: function _default() {
5685
- return { type: 'dateTime' };
5686
- },
5687
-
5688
- validator: function validator(val) {
5689
- return val === false || (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object';
5690
- }
5691
- },
5692
- onlineUser: {
5693
- type: [Boolean, Object],
5694
- default: function _default() {
5695
- return { type: 'onlineUser' };
5696
- },
5697
-
5698
- validator: function validator(val) {
5699
- return val === false || (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object';
5700
- }
5701
- },
5702
- search: {
5703
- type: [Boolean, Object],
5704
- default: function _default() {
5705
- return {
5706
- type: 'search',
5707
- icon: 'es-icon-magnifier',
5708
- title: '搜索'
5709
- };
5710
- },
5711
-
5712
- validator: function validator(val) {
5713
- return val === false || (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object';
5714
- }
5715
- },
5716
- im: {
5717
- type: [Boolean, Object],
5718
- default: function _default() {
5719
- return {
5720
- type: 'im',
5721
- icon: 'es-icon-liaotian',
5722
- title: 'IM'
5723
- };
5724
- },
5725
-
5726
- validator: function validator(val) {
5727
- return val === false || (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object';
5728
- }
5729
- },
5730
- index: {
5731
- type: [Boolean, Object],
5732
- default: function _default() {
5733
- return {
5734
- type: 'index',
5735
- icon: 'es-icon-home',
5736
- title: '门户'
5737
- };
5738
- },
5739
-
5740
- validator: function validator(val) {
5741
- return val === false || (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object';
5742
- }
5743
- },
5744
- home: {
5745
- type: [Boolean, Object],
5746
- default: function _default() {
5747
- return {
5748
- type: 'home',
5749
- icon: 'es-icon-zuomian',
5750
- title: '个人工作台'
5751
- };
5752
- }
5753
- },
5754
- notice: {
5755
- type: [Boolean, Object],
5756
- default: function _default() {
5757
- return {
5758
- type: 'notice',
5759
- icon: 'es-icon-tongzhi',
5760
- title: '通知消息'
5761
- };
5762
- }
5763
- },
5764
- quit: {
5765
- type: [Boolean, Object],
5766
- default: function _default() {
5767
- return {
5768
- type: 'quit',
5769
- icon: 'es-icon-guanji',
5770
- title: '退出'
5771
- };
5772
- }
5773
- },
5774
- set: {
5775
- type: [Boolean, Object],
5749
+ data: {
5750
+ type: Array,
5776
5751
  default: function _default() {
5777
- return {
5778
- type: 'set',
5779
- icon: 'es-icon-xitongguanli',
5780
- title: '设置'
5781
- };
5782
- },
5783
-
5784
- validator: function validator(val) {
5785
- return val === false || (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object';
5752
+ return [];
5786
5753
  }
5787
5754
  },
5788
- data: Array,
5789
- hide: {
5755
+ nums: {
5790
5756
  type: Object,
5791
5757
  default: function _default() {
5792
5758
  return {};
5793
5759
  }
5794
5760
  },
5795
- msgNum: {
5796
- type: Number,
5797
- default: 0
5798
- },
5799
- noticeNum: {
5800
- type: Number,
5801
- default: 0
5802
- },
5803
- online: {
5804
- type: Number,
5805
- default: 1
5761
+ showTitleType: {
5762
+ type: String,
5763
+ default: 'tooltip',
5764
+ validator: function validator(val) {
5765
+ return val === 'text' || val === 'tooltip';
5766
+ }
5806
5767
  }
5807
5768
  },
5808
5769
  data: function data() {
@@ -5814,16 +5775,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5814
5775
  },
5815
5776
 
5816
5777
  computed: {
5817
- lists: function lists() {
5818
- var hide = _extends({
5819
- old: true,
5820
- im: true
5821
- }, this.hide);
5822
- var data = this.data ? this.data : [this.contact ? _extends({}, this.contact, { type: 'contact' }) : {}, this.dateTime, this.onlineUser, this.search, this.im, this.index, this.home, this.notice, this.quit, this.set];
5823
- return data.filter(function (item) {
5824
- return item && Object.keys(item).length && !item.hide && !hide[item.type];
5825
- });
5826
- },
5827
5778
  isClick: function isClick() {
5828
5779
  var useCaseCodes = util["a" /* default */].getStorage('useCaseCodes');
5829
5780
  return useCaseCodes && useCaseCodes.includes('sys_user_onlineList');
@@ -5867,18 +5818,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5867
5818
 
5868
5819
  var handler_component = Object(componentNormalizer["a" /* default */])(
5869
5820
  simplicity_handlervue_type_script_lang_js_,
5870
- handlervue_type_template_id_0e3b21b5_scoped_true_render,
5871
- handlervue_type_template_id_0e3b21b5_scoped_true_staticRenderFns,
5821
+ handlervue_type_template_id_4a14597c_scoped_true_render,
5822
+ handlervue_type_template_id_4a14597c_scoped_true_staticRenderFns,
5872
5823
  false,
5873
5824
  null,
5874
- "0e3b21b5",
5825
+ "4a14597c",
5875
5826
  null
5876
5827
 
5877
5828
  )
5878
5829
 
5879
5830
  /* harmony default export */ var simplicity_handler = (handler_component.exports);
5880
- // 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/sub-menu.vue?vue&type=template&id=44287f71&scoped=true&
5881
- var sub_menuvue_type_template_id_44287f71_scoped_true_render = function () {
5831
+ // 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/sub-menu.vue?vue&type=template&id=e0dea43a&scoped=true&
5832
+ var sub_menuvue_type_template_id_e0dea43a_scoped_true_render = function () {
5882
5833
  var this$1 = this
5883
5834
  var _vm = this
5884
5835
  var _h = _vm.$createElement
@@ -6066,11 +6017,11 @@ var sub_menuvue_type_template_id_44287f71_scoped_true_render = function () {
6066
6017
  ]
6067
6018
  )
6068
6019
  }
6069
- var sub_menuvue_type_template_id_44287f71_scoped_true_staticRenderFns = []
6070
- sub_menuvue_type_template_id_44287f71_scoped_true_render._withStripped = true
6020
+ var sub_menuvue_type_template_id_e0dea43a_scoped_true_staticRenderFns = []
6021
+ sub_menuvue_type_template_id_e0dea43a_scoped_true_render._withStripped = true
6071
6022
 
6072
6023
 
6073
- // CONCATENATED MODULE: ./packages/main/src/simplicity/sub-menu.vue?vue&type=template&id=44287f71&scoped=true&
6024
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/sub-menu.vue?vue&type=template&id=e0dea43a&scoped=true&
6074
6025
 
6075
6026
  // 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/menu-list.vue?vue&type=template&id=49c7f205&scoped=true&
6076
6027
  var menu_listvue_type_template_id_49c7f205_scoped_true_render = function () {
@@ -6477,7 +6428,6 @@ var menu_list_component = Object(componentNormalizer["a" /* default */])(
6477
6428
  mode: String,
6478
6429
  collapse: Boolean,
6479
6430
  title: String,
6480
- active: String,
6481
6431
  closed: Boolean,
6482
6432
  color: {
6483
6433
  type: [String, Array],
@@ -6543,6 +6493,9 @@ var menu_list_component = Object(componentNormalizer["a" /* default */])(
6543
6493
  } else {
6544
6494
  this.width = this.size;
6545
6495
  }
6496
+ },
6497
+ visible: function visible(val) {
6498
+ val === false && (this.actives = []);
6546
6499
  }
6547
6500
  },
6548
6501
  created: function created() {},
@@ -6623,11 +6576,11 @@ var menu_list_component = Object(componentNormalizer["a" /* default */])(
6623
6576
 
6624
6577
  var sub_menu_component = Object(componentNormalizer["a" /* default */])(
6625
6578
  simplicity_sub_menuvue_type_script_lang_js_,
6626
- sub_menuvue_type_template_id_44287f71_scoped_true_render,
6627
- sub_menuvue_type_template_id_44287f71_scoped_true_staticRenderFns,
6579
+ sub_menuvue_type_template_id_e0dea43a_scoped_true_render,
6580
+ sub_menuvue_type_template_id_e0dea43a_scoped_true_staticRenderFns,
6628
6581
  false,
6629
6582
  null,
6630
- "44287f71",
6583
+ "e0dea43a",
6631
6584
  null
6632
6585
 
6633
6586
  )
@@ -7411,10 +7364,10 @@ var external_throttle_debounce_ = __webpack_require__(14);
7411
7364
  this.$emit('click', res);
7412
7365
  },
7413
7366
 
7414
- /**
7415
- * @desc:获取气泡提醒
7416
- * @author huangbo
7417
- * @date 2024年9月7日
7367
+ /**
7368
+ * @desc:获取气泡提醒
7369
+ * @author huangbo
7370
+ * @date 2024年9月7日
7418
7371
  **/
7419
7372
  getBadge: function getBadge(res) {
7420
7373
  var num = res.tips || 0;
@@ -7629,7 +7582,7 @@ userinfovue_type_template_id_30ec6271_render._withStripped = true
7629
7582
  // CONCATENATED MODULE: ./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=30ec6271&
7630
7583
 
7631
7584
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/userinfo.vue?vue&type=script&lang=js&
7632
- var userinfovue_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; };
7585
+ var _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; };
7633
7586
 
7634
7587
  var _props;
7635
7588
 
@@ -7714,7 +7667,7 @@ var _props;
7714
7667
 
7715
7668
  computed: {
7716
7669
  formRules: function formRules() {
7717
- return userinfovue_type_script_lang_js_extends({
7670
+ return _extends({
7718
7671
  idCard: [{
7719
7672
  required: this.model.idCard !== null && this.model.idCard !== undefined && this.model.idCard !== '',
7720
7673
  message: '请输入身份证号',
@@ -7860,13 +7813,13 @@ var _props;
7860
7813
  oldpassword = _model.oldpassword,
7861
7814
  password = _model.password;
7862
7815
 
7863
- var data = userinfovue_type_script_lang_js_extends({}, Object.fromEntries(Object.entries(this.model).filter(function (_ref) {
7816
+ var data = _extends({}, Object.fromEntries(Object.entries(this.model).filter(function (_ref) {
7864
7817
  var key = _ref[0];
7865
7818
  return _this2.formKey.includes(key);
7866
7819
  })));
7867
7820
  util["a" /* default */].ajax({
7868
7821
  url: api["wc" /* updateUserInfo */],
7869
- params: userinfovue_type_script_lang_js_extends({}, data, {
7822
+ params: _extends({}, data, {
7870
7823
  oldPassword: this.secret && initLogin && initLogin.secret && oldpassword ? util["a" /* default */].esmEncrypt({
7871
7824
  data: oldpassword,
7872
7825
  key: initLogin.secret
@@ -11245,22 +11198,57 @@ var events = [function (tabs, index, that) {
11245
11198
  //主题颜色选择颜色集合
11246
11199
  themes: Array,
11247
11200
  //操作栏配置
11248
- handleData: Array,
11249
- //操作栏单项配置
11250
- handleConfig: Object,
11251
- //需要隐藏的头部功能
11252
- hides: Object,
11253
- //菜单颜色
11254
- menuColor: [String, Array],
11255
- //菜单背景颜色
11256
- menuBackgroundColor: [String, Array],
11257
- //菜单是否折叠形式
11258
- collapse: Boolean,
11259
- //应用颜色
11260
- appColor: [String, Array],
11261
- //应用背景颜色
11262
- appBackgroundColor: [String, Array],
11263
- //默认头像
11201
+ handleData: {
11202
+ type: Array,
11203
+ default: function _default() {
11204
+ return [{
11205
+ type: 'contact'
11206
+ }, { type: 'dateTime' }, { type: 'onlineUser' }, {
11207
+ type: 'search',
11208
+ icon: 'es-icon-magnifier',
11209
+ title: '搜索'
11210
+ }, {
11211
+ type: 'im',
11212
+ icon: 'es-icon-liaotian',
11213
+ title: 'IM'
11214
+ }, {
11215
+ type: 'index',
11216
+ icon: 'es-icon-home',
11217
+ title: '门户'
11218
+ }, {
11219
+ type: 'home',
11220
+ icon: 'es-icon-zuomian',
11221
+ title: '首页'
11222
+ }, {
11223
+ type: 'notice',
11224
+ icon: 'es-icon-tongzhi',
11225
+ title: '消息'
11226
+ }, {
11227
+ type: 'quit',
11228
+ icon: 'es-icon-guanji',
11229
+ title: '退出'
11230
+ }, {
11231
+ type: 'set',
11232
+ icon: 'es-icon-xitongguanli',
11233
+ title: '设置'
11234
+ }];
11235
+ }
11236
+ },
11237
+ //操作栏单项配置
11238
+ handleConfig: Object,
11239
+ //需要隐藏的头部功能
11240
+ hides: Object,
11241
+ //菜单颜色
11242
+ menuColor: [String, Array],
11243
+ //菜单背景颜色
11244
+ menuBackgroundColor: [String, Array],
11245
+ //菜单是否折叠形式
11246
+ collapse: Boolean,
11247
+ //应用颜色
11248
+ appColor: [String, Array],
11249
+ //应用背景颜色
11250
+ appBackgroundColor: [String, Array],
11251
+ //默认头像
11264
11252
  userHead: String,
11265
11253
  //应用列表接口
11266
11254
  appsUrl: {
@@ -11324,7 +11312,15 @@ var events = [function (tabs, index, that) {
11324
11312
  //切换旧版样式
11325
11313
  oldVersion: Boolean,
11326
11314
  //运维联系人
11327
- contacts: Object
11315
+ contacts: Object,
11316
+ //展示系统操作按钮标题类型
11317
+ showHandlerTitleType: {
11318
+ type: String,
11319
+ default: 'tooltip',
11320
+ validator: function validator(val) {
11321
+ return ['tooltip', 'text'].includes(val);
11322
+ }
11323
+ }
11328
11324
  },
11329
11325
  data: function data() {
11330
11326
  return {
@@ -11358,6 +11354,8 @@ var events = [function (tabs, index, that) {
11358
11354
  subActive: '',
11359
11355
  //折叠菜单
11360
11356
  fold: false,
11357
+ //菜单样式是否折叠形式
11358
+ isCollapse: this.collapse,
11361
11359
  //人工智能配置
11362
11360
  aiConfig: null,
11363
11361
  //im配置
@@ -11406,14 +11404,16 @@ var events = [function (tabs, index, that) {
11406
11404
  doorIndex: '',
11407
11405
  //弹窗
11408
11406
  dialog: {},
11409
- //在线人数
11410
- userNums: 1,
11407
+ handleNums: {
11408
+ //消息数
11409
+ notice: 10,
11410
+ //在线人数
11411
+ online: 1
11412
+ },
11411
11413
  //消息列表展示状态
11412
11414
  showMsg: false,
11413
11415
  //搜索
11414
11416
  showSearch: false,
11415
- //消息数
11416
- notice: 0,
11417
11417
  //即时消息
11418
11418
  sysMsg: [],
11419
11419
  //定时关闭及时消息对象
@@ -11432,16 +11432,35 @@ var events = [function (tabs, index, that) {
11432
11432
  active: '',
11433
11433
  //单位名称
11434
11434
  simpleUserInfo: {},
11435
- topRightToolHide: '',
11435
+ handleDatas: this.handleData,
11436
+ //顶部右侧工具隐藏
11437
+ handleHides: '',
11438
+ // 显示旧设计
11436
11439
  showOld: this.oldVersion,
11437
11440
  //运维联系人
11438
11441
  contact: this.contacts,
11439
11442
  //单点退出地址
11440
- singleLogout: null
11443
+ singleLogout: null,
11444
+ //展示系统操作按钮标题类型
11445
+ showTitleType: this.showHandlerTitleType
11441
11446
  };
11442
11447
  },
11443
11448
 
11444
11449
  computed: {
11450
+ _handleDatas: function _handleDatas() {
11451
+ var _this = this;
11452
+
11453
+ return this.handleDatas.filter(function (item) {
11454
+ if (item.type === 'contact' && _this.contact) {
11455
+ item = simplicityvue_type_script_lang_js_extends({}, item, _this.contact);
11456
+ }
11457
+ if (item.type === 'contact' && !_this.contact) {
11458
+ return false;
11459
+ }
11460
+ return !item.hide && !_this.hide[item.type];
11461
+ });
11462
+ },
11463
+
11445
11464
  //菜单接口
11446
11465
  _menuUrl: function _menuUrl() {
11447
11466
  if (this.menuUrl) {
@@ -11478,11 +11497,12 @@ var events = [function (tabs, index, that) {
11478
11497
 
11479
11498
  //隐藏操作按键
11480
11499
  hide: function hide() {
11481
- var topRightToolHide = {};
11482
- if (this.topRightToolHide) {
11483
- topRightToolHide = JSON.parse(this.topRightToolHide.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g, '"$2":'));
11500
+ var handleHides = {};
11501
+ if (this.handleHides) {
11502
+ handleHides = JSON.parse(this.handleHides.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g, '"$2":'));
11484
11503
  }
11485
11504
  var hides = {
11505
+ contact: this.contact ? false : true,
11486
11506
  im: this.imConfig ? this.imUseCaseCode ? this.useCaseCodes.indexOf(this.imUseCaseCode) == -1 : false : true,
11487
11507
  home: this.indexUrl ? false : true,
11488
11508
  index: this.doorIndex ? false : true,
@@ -11495,7 +11515,7 @@ var events = [function (tabs, index, that) {
11495
11515
  if (this.layout === 'topside' || this.layout === 'side') {
11496
11516
  hides.user = true;
11497
11517
  }
11498
- return simplicityvue_type_script_lang_js_extends({}, hides, this.hides, topRightToolHide);
11518
+ return simplicityvue_type_script_lang_js_extends({}, hides, this.hides, handleHides);
11499
11519
  }
11500
11520
  },
11501
11521
  watch: {
@@ -11518,10 +11538,10 @@ var events = [function (tabs, index, that) {
11518
11538
  },
11519
11539
 
11520
11540
  methods: {
11521
- /**
11522
- * @desc:匹配路由
11523
- * @author huangbo
11524
- * @date 2024年9月7日
11541
+ /**
11542
+ * @desc:匹配路由
11543
+ * @author huangbo
11544
+ * @date 2024年9月7日
11525
11545
  **/
11526
11546
  hasRouter: function hasRouter(res, url, code) {
11527
11547
  if (!url) {
@@ -11565,10 +11585,10 @@ var events = [function (tabs, index, that) {
11565
11585
  return false;
11566
11586
  },
11567
11587
 
11568
- /**
11569
- * @desc:获取初始数据
11570
- * @author huangbo
11571
- * @date 2024年9月7日
11588
+ /**
11589
+ * @desc:获取初始数据
11590
+ * @author huangbo
11591
+ * @date 2024年9月7日
11572
11592
  **/
11573
11593
  init: function init(results, first) {
11574
11594
  this.setConfig(results);
@@ -11577,10 +11597,10 @@ var events = [function (tabs, index, that) {
11577
11597
  }
11578
11598
  },
11579
11599
 
11580
- /**
11581
- * @desc:设置用户配置及信息
11582
- * @author huangbo
11583
- * @date 2024年9月7日
11600
+ /**
11601
+ * @desc:设置用户配置及信息
11602
+ * @author huangbo
11603
+ * @date 2024年9月7日
11584
11604
  **/
11585
11605
  setConfig: function setConfig(results) {
11586
11606
  localStorage.setItem('mainConfig', JSON.stringify(results));
@@ -11615,7 +11635,7 @@ var events = [function (tabs, index, that) {
11615
11635
  document.title = results[i];
11616
11636
  }
11617
11637
  if (i === 'loginPage' && results[i]) {
11618
- util["a" /* default */].setStorage('loginPage', results[i]);
11638
+ util["a" /* default */].setStorage({ key: 'loginPage', value: results[i] });
11619
11639
  }
11620
11640
  if (i === 'sysLogoIco' && results[i]) {
11621
11641
  localStorage.setItem('sysLogoIco', results[i]);
@@ -11654,15 +11674,22 @@ var events = [function (tabs, index, that) {
11654
11674
  if (results[i].userInfoContents) {
11655
11675
  this.userInfoContents = JSON.parse(results[i].userInfoContents);
11656
11676
  }
11677
+ //水印配置
11657
11678
  if (results[i].webPageWatermark) {
11658
11679
  try {
11659
11680
  util["a" /* default */].win.webPageWatermark = results[i].webPageWatermark;
11660
11681
  util["a" /* default */].watermark(results[i].webPageWatermark);
11661
11682
  } catch (error) {}
11662
11683
  }
11684
+ //登录页页面地址
11663
11685
  if (results[i].loginPage) {
11664
- util["a" /* default */].setStorage('loginPage', results[i].loginPage);
11686
+ util["a" /* default */].setStorage({ key: 'loginPage', value: results[i].loginPage });
11665
11687
  }
11688
+ //登录页页面地址
11689
+ if (results[i].openModel) {
11690
+ util["a" /* default */].setStorage({ key: 'openModel', value: results[i].openModel });
11691
+ }
11692
+ //ai配置
11666
11693
  if (results[i].aiConfig) {
11667
11694
  if (typeof results[i].aiConfig == 'string') {
11668
11695
  try {
@@ -11674,6 +11701,7 @@ var events = [function (tabs, index, that) {
11674
11701
  this.aiConfig = results[i].aiConfig;
11675
11702
  }
11676
11703
  }
11704
+ //im配置
11677
11705
  if (results[i].imConfig) {
11678
11706
  if (typeof results[i].imConfig == 'string') {
11679
11707
  try {
@@ -11691,8 +11719,12 @@ var events = [function (tabs, index, that) {
11691
11719
  if (results[i].multipleVersion || results[i].oldVersion) {
11692
11720
  this.showOld = results[i].oldVersion ? JSON.parse(results[i].oldVersion) : true;
11693
11721
  }
11694
- if (results[i].topRightToolHide) {
11695
- this.topRightToolHide = JSON.parse(results[i].topRightToolHide);
11722
+
11723
+ if (results[i].handleDatas) {
11724
+ this.handleDatas = JSON.parse(results[i].handleDatas);
11725
+ }
11726
+ if (results[i].topRightToolHide || results[i].handleHides) {
11727
+ this.handleHides = JSON.parse(results[i].topRightToolHide || results[i].handleHides);
11696
11728
  }
11697
11729
  if (results[i].contact) {
11698
11730
  var contact = JSON.parse(results[i].contact);
@@ -11701,6 +11733,14 @@ var events = [function (tabs, index, that) {
11701
11733
  content: content
11702
11734
  });
11703
11735
  }
11736
+ //展示系统操作按钮标题类型
11737
+ if (results[i].showHandlerTitleType) {
11738
+ this.showTitleType = results[i].showHandlerTitleType;
11739
+ }
11740
+ //菜单样式是否折叠形式
11741
+ if (results[i].menuCollapse !== undefined) {
11742
+ this.isCollapse = results[i].menuCollapse !== false && results[i].menuCollapse !== 'false';
11743
+ }
11704
11744
  }
11705
11745
  if (i === 'userModel' && results[i]) {
11706
11746
  if (results[i].userHeadUrl) {
@@ -11712,6 +11752,9 @@ var events = [function (tabs, index, that) {
11712
11752
  results[i].userHeadUrl = this.userHead;
11713
11753
  }
11714
11754
  this.userModel = results[i];
11755
+ if (results[i].openModel) {
11756
+ util["a" /* default */].setStorage({ key: 'openModel', value: results[i].openModel });
11757
+ }
11715
11758
  }
11716
11759
  if (i === 'notifyList' && results[i]) {
11717
11760
  this.notifyList = results[i];
@@ -11720,21 +11763,21 @@ var events = [function (tabs, index, that) {
11720
11763
  }
11721
11764
  },
11722
11765
 
11723
- /**
11724
- * @desc:获取所有应用
11725
- * @author huangbo
11726
- * @date 2024年9月7日
11766
+ /**
11767
+ * @desc:获取所有应用
11768
+ * @author huangbo
11769
+ * @date 2024年9月7日
11727
11770
  **/
11728
11771
  getApplications: function getApplications() {
11729
- var _this = this;
11772
+ var _this2 = this;
11730
11773
 
11731
11774
  var loading = util["a" /* default */].loading('', '加载中...');
11732
11775
  util["a" /* default */].ajax({
11733
11776
  url: this.appsUrl,
11734
11777
  defaults: true
11735
11778
  }).then(function (res) {
11736
- if (_this.socket) {
11737
- _this.initWebSocket();
11779
+ if (_this2.socket) {
11780
+ _this2.initWebSocket();
11738
11781
  }
11739
11782
  if (res.rCode === 0) {
11740
11783
  if (res.results && Object.keys(res.results).length) {
@@ -11744,40 +11787,40 @@ var events = [function (tabs, index, that) {
11744
11787
  app_system = _res$results.app_system,
11745
11788
  app_user = _res$results.app_user;
11746
11789
 
11747
- _this.userApps = app_user.filter(function (item) {
11790
+ _this2.userApps = app_user.filter(function (item) {
11748
11791
  return item.permission !== false;
11749
11792
  });
11750
- _this.applications = all;
11751
- _this.business = app_special_business_system;
11752
- _this.systems = app_system;
11753
- _this.setTips(_this.userApps);
11754
- _this.setTips(_this.applications);
11755
- _this.setTips(_this.business);
11756
- _this.setTips(_this.systems);
11793
+ _this2.applications = all;
11794
+ _this2.business = app_special_business_system;
11795
+ _this2.systems = app_system;
11796
+ _this2.setTips(_this2.userApps);
11797
+ _this2.setTips(_this2.applications);
11798
+ _this2.setTips(_this2.business);
11799
+ _this2.setTips(_this2.systems);
11757
11800
  } else {
11758
- _this.$message.error('未分配应用菜单权限,请联系管理员!');
11801
+ _this2.$message.error('未分配应用菜单权限,请联系管理员!');
11759
11802
  }
11760
- _this.getMenus(loading);
11803
+ _this2.getMenus(loading);
11761
11804
  } else {
11762
11805
  loading.close();
11763
11806
  var msg = res.msg || '系统错误,请联系管理员!';
11764
- _this.$message.error(msg);
11807
+ _this2.$message.error(msg);
11765
11808
  }
11766
11809
  }).catch(function (err) {
11767
11810
  loading.close();
11768
11811
  if (err.message && err.message !== 'canceled') {
11769
- _this.$message.error(err.message);
11812
+ _this2.$message.error(err.message);
11770
11813
  }
11771
11814
  });
11772
11815
  },
11773
11816
 
11774
- /**
11775
- * @desc:获取菜单列表
11776
- * @author huangbo
11777
- * @date 2024年9月7日
11817
+ /**
11818
+ * @desc:获取菜单列表
11819
+ * @author huangbo
11820
+ * @date 2024年9月7日
11778
11821
  **/
11779
11822
  getMenus: function getMenus(loading) {
11780
- var _this2 = this;
11823
+ var _this3 = this;
11781
11824
 
11782
11825
  var menuData = store["a" /* default */].get('nav');
11783
11826
  if (menuData && menuData.length) {
@@ -11791,26 +11834,26 @@ var events = [function (tabs, index, that) {
11791
11834
  if (res.results && res.results.length) {
11792
11835
  //this.$emit('update:menuData', res.results);
11793
11836
  store["a" /* default */].set('nav', JSON.parse(JSON.stringify(res.results)));
11794
- _this2.renderMenus(JSON.parse(JSON.stringify(res.results)));
11837
+ _this3.renderMenus(JSON.parse(JSON.stringify(res.results)));
11795
11838
  } else {
11796
- _this2.$message.error('未分配菜单权限,请联系管理员!');
11839
+ _this3.$message.error('未分配菜单权限,请联系管理员!');
11797
11840
  }
11798
11841
  } else {
11799
11842
  var msg = res.msg || '系统错误,请联系管理员!';
11800
- _this2.$message.error(msg);
11843
+ _this3.$message.error(msg);
11801
11844
  }
11802
11845
  }).catch(function (err) {
11803
11846
  loading.close();
11804
11847
  if (err.message && err.message !== 'canceled') {
11805
- _this2.$message.error(err.message);
11848
+ _this3.$message.error(err.message);
11806
11849
  }
11807
11850
  });
11808
11851
  },
11809
11852
 
11810
- /**
11811
- * @desc:处理菜单列表
11812
- * @author huangbo
11813
- * @date 2024年9月7日
11853
+ /**
11854
+ * @desc:处理菜单列表
11855
+ * @author huangbo
11856
+ * @date 2024年9月7日
11814
11857
  **/
11815
11858
  renderMenus: function renderMenus(res) {
11816
11859
  this.menus = res;
@@ -11906,10 +11949,10 @@ var events = [function (tabs, index, that) {
11906
11949
  }
11907
11950
  },
11908
11951
 
11909
- /**
11910
- * @desc:设置页面加载类型
11911
- * @author huangbo
11912
- * @date 2024年9月7日
11952
+ /**
11953
+ * @desc:设置页面加载类型
11954
+ * @author huangbo
11955
+ * @date 2024年9月7日
11913
11956
  **/
11914
11957
  setIframeType: function setIframeType(res) {
11915
11958
  var url = res.url;
@@ -11965,10 +12008,10 @@ var events = [function (tabs, index, that) {
11965
12008
  return res;
11966
12009
  },
11967
12010
 
11968
- /**
11969
- * @desc:获取菜单
11970
- * @author huangbo
11971
- * @date 2024年9月7日
12011
+ /**
12012
+ * @desc:获取菜单
12013
+ * @author huangbo
12014
+ * @date 2024年9月7日
11972
12015
  **/
11973
12016
  getMenu: function getMenu(menus, res, key) {
11974
12017
  if (Array.isArray(menus)) {
@@ -11997,10 +12040,10 @@ var events = [function (tabs, index, that) {
11997
12040
  return false;
11998
12041
  },
11999
12042
 
12000
- /**
12001
- * @desc:获取菜单第一条数据
12002
- * @author huangbo
12003
- * @date 2024年9月7日
12043
+ /**
12044
+ * @desc:获取菜单第一条数据
12045
+ * @author huangbo
12046
+ * @date 2024年9月7日
12004
12047
  **/
12005
12048
  getFirst: function getFirst(obj) {
12006
12049
  if (!obj) {
@@ -12019,17 +12062,17 @@ var events = [function (tabs, index, that) {
12019
12062
  }
12020
12063
  },
12021
12064
 
12022
- /**
12023
- * @desc:遍历设置菜单气泡提醒
12024
- * @author huangbo
12025
- * @date 2024年9月7日
12065
+ /**
12066
+ * @desc:遍历设置菜单气泡提醒
12067
+ * @author huangbo
12068
+ * @date 2024年9月7日
12026
12069
  **/
12027
12070
  setTips: function setTips(obj) {
12028
- var _this3 = this;
12071
+ var _this4 = this;
12029
12072
 
12030
12073
  if (Array.isArray(obj)) {
12031
12074
  obj.forEach(function (item) {
12032
- _this3.setTips(item);
12075
+ _this4.setTips(item);
12033
12076
  });
12034
12077
  } else {
12035
12078
  if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
@@ -12039,7 +12082,7 @@ var events = [function (tabs, index, that) {
12039
12082
  var flag = 0;
12040
12083
  if (obj.children && obj.children.length) {
12041
12084
  obj.children.forEach(function (item) {
12042
- var n = _this3.setTips(item);
12085
+ var n = _this4.setTips(item);
12043
12086
  flag += n ? parseInt(n) : 0;
12044
12087
  });
12045
12088
  if (flag) {
@@ -12052,7 +12095,7 @@ var events = [function (tabs, index, that) {
12052
12095
  }
12053
12096
  } else if (obj.fourthTabs && obj.fourthTabs.length) {
12054
12097
  obj.fourthTabs.forEach(function (item) {
12055
- var n = _this3.setTips(item);
12098
+ var n = _this4.setTips(item);
12056
12099
  flag += n ? parseInt(n) : 0;
12057
12100
  });
12058
12101
  if (flag) {
@@ -12074,21 +12117,21 @@ var events = [function (tabs, index, that) {
12074
12117
  return false;
12075
12118
  },
12076
12119
  setDot: function setDot(obj, code) {
12077
- var _this4 = this;
12120
+ var _this5 = this;
12078
12121
 
12079
12122
  if (Array.isArray(obj)) {
12080
12123
  obj.forEach(function (item) {
12081
- _this4.setDot(item, code);
12124
+ _this5.setDot(item, code);
12082
12125
  });
12083
12126
  } else if (obj.code === code) {
12084
12127
  this.$set(obj, 'tips', true);
12085
12128
  }
12086
12129
  },
12087
12130
 
12088
- /**
12089
- * @desc:获取气泡提醒
12090
- * @author huangbo
12091
- * @date 2024年9月7日
12131
+ /**
12132
+ * @desc:获取气泡提醒
12133
+ * @author huangbo
12134
+ * @date 2024年9月7日
12092
12135
  **/
12093
12136
  getBadge: function getBadge(res) {
12094
12137
  var num = res.tips || 0;
@@ -12102,13 +12145,13 @@ var events = [function (tabs, index, that) {
12102
12145
  };
12103
12146
  },
12104
12147
 
12105
- /**
12106
- * @desc:开启weosocket
12107
- * @author huangbo
12108
- * @date 2024年9月7日
12148
+ /**
12149
+ * @desc:开启weosocket
12150
+ * @author huangbo
12151
+ * @date 2024年9月7日
12109
12152
  **/
12110
12153
  initWebSocket: function initWebSocket() {
12111
- var _this5 = this;
12154
+ var _this6 = this;
12112
12155
 
12113
12156
  this.webSocket = util["a" /* default */].socket({
12114
12157
  url: api["Cc" /* wss */],
@@ -12118,32 +12161,32 @@ var events = [function (tabs, index, that) {
12118
12161
  for (var i in data) {
12119
12162
  if (data[i] !== null && data[i] !== undefined) {
12120
12163
  if (i === 'onlineUserNums' && data[i] > 0) {
12121
- _this5.userNums = data[i];
12164
+ _this6.$set(_this6.handleNums, 'onlineUser', data[i]);
12122
12165
  }
12123
12166
  if (i === 'sysMsgNums' && data[i] !== null) {
12124
- _this5.notice = data[i];
12125
- if (_this5.showMsg) {
12126
- _this5.$refs.message.getMsg(true);
12167
+ _this6.$set(_this6.handleNums, 'notice', data[i]);
12168
+ if (_this6.showMsg) {
12169
+ _this6.$refs.message.getMsg(true);
12127
12170
  }
12128
12171
  }
12129
12172
  if (i === 'menuTipsMap' && data[i] !== null) {
12130
- _this5.menuTips = data[i];
12173
+ _this6.menuTips = data[i];
12131
12174
  }
12132
12175
  if (i === 'sysMsgList' && data[i] !== null) {
12133
- _this5.sysMsg = data[i];
12134
- data[i] && data[i].length && _this5.$emit('bus-emit', 'waitdone');
12176
+ _this6.sysMsg = data[i];
12177
+ data[i] && data[i].length && _this6.$emit('bus-emit', 'waitdone');
12135
12178
  }
12136
12179
  if (i === 'extraData' && data[i] !== null) {
12137
- _this5.extraData = data[i];
12180
+ _this6.extraData = data[i];
12138
12181
  }
12139
12182
  }
12140
12183
  }
12141
- if (_this5.$store) {
12184
+ if (_this6.$store) {
12142
12185
  try {
12143
- _this5.$store.commit('websocket', data);
12186
+ _this6.$store.commit('websocket', data);
12144
12187
  } catch (error) {}
12145
12188
  }
12146
- var bus = _this5.bus || _this5.$eventBus || _this5.$root.Bus;
12189
+ var bus = _this6.bus || _this6.$eventBus || _this6.$root.Bus;
12147
12190
  if (bus) {
12148
12191
  bus.$emit('websocket', data);
12149
12192
  }
@@ -12154,10 +12197,10 @@ var events = [function (tabs, index, that) {
12154
12197
  });
12155
12198
  },
12156
12199
 
12157
- /**
12158
- * @desc:显示用户信息
12159
- * @author huangbo
12160
- * @date 2024年9月7日
12200
+ /**
12201
+ * @desc:显示用户信息
12202
+ * @author huangbo
12203
+ * @date 2024年9月7日
12161
12204
  **/
12162
12205
  showUserInfo: function showUserInfo() {
12163
12206
  if (this.showUser === false) {
@@ -12165,19 +12208,19 @@ var events = [function (tabs, index, that) {
12165
12208
  }
12166
12209
  },
12167
12210
 
12168
- /**
12169
- * @desc:删除更多应用菜单点击
12170
- * @author huangbo
12171
- * @date 2024年9月7日
12211
+ /**
12212
+ * @desc:删除更多应用菜单点击
12213
+ * @author huangbo
12214
+ * @date 2024年9月7日
12172
12215
  **/
12173
12216
  handleDelete: function handleDelete(index) {
12174
12217
  this.newApps.splice(index, 1);
12175
12218
  },
12176
12219
 
12177
- /**
12178
- * @desc:储存更多应用菜单点击
12179
- * @author huangbo
12180
- * @date 2024年9月7日
12220
+ /**
12221
+ * @desc:储存更多应用菜单点击
12222
+ * @author huangbo
12223
+ * @date 2024年9月7日
12181
12224
  **/
12182
12225
  handlerClickApps: function handlerClickApps(res) {
12183
12226
  if (res.permission === false) {
@@ -12190,10 +12233,10 @@ var events = [function (tabs, index, that) {
12190
12233
  this.handlerClickApp(res);
12191
12234
  },
12192
12235
 
12193
- /**
12194
- * @desc:侧边应用菜单点击
12195
- * @author huangbo
12196
- * @date 2024年9月7日
12236
+ /**
12237
+ * @desc:侧边应用菜单点击
12238
+ * @author huangbo
12239
+ * @date 2024年9月7日
12197
12240
  **/
12198
12241
  handlerClickApp: function handlerClickApp(res) {
12199
12242
  this.showMsg = false;
@@ -12282,10 +12325,10 @@ var events = [function (tabs, index, that) {
12282
12325
  }
12283
12326
  },
12284
12327
 
12285
- /**
12286
- * @desc:显示Drawer界面
12287
- * @author huangbo
12288
- * @date 2024年9月7日
12328
+ /**
12329
+ * @desc:显示Drawer界面
12330
+ * @author huangbo
12331
+ * @date 2024年9月7日
12289
12332
  **/
12290
12333
  handlerSetDrawer: function handlerSetDrawer(res, type) {
12291
12334
  var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'ltr';
@@ -12305,19 +12348,19 @@ var events = [function (tabs, index, that) {
12305
12348
  }
12306
12349
  },
12307
12350
 
12308
- /**
12309
- * @desc:关闭Drawer界面
12310
- * @author huangbo
12311
- * @date 2024年9月7日
12351
+ /**
12352
+ * @desc:关闭Drawer界面
12353
+ * @author huangbo
12354
+ * @date 2024年9月7日
12312
12355
  **/
12313
12356
  handleCloseDrawer: function handleCloseDrawer() {
12314
12357
  this.drawer = { visible: false };
12315
12358
  },
12316
12359
 
12317
- /**
12318
- * @desc:菜单点击
12319
- * @author huangbo
12320
- * @date 2024年9月7日
12360
+ /**
12361
+ * @desc:菜单点击
12362
+ * @author huangbo
12363
+ * @date 2024年9月7日
12321
12364
  **/
12322
12365
  handlerClickMenu: function handlerClickMenu(res) {
12323
12366
  util["a" /* default */].ajax({
@@ -12366,19 +12409,19 @@ var events = [function (tabs, index, that) {
12366
12409
  },
12367
12410
 
12368
12411
 
12369
- /**
12370
- * @desc:用户详情请求成功
12371
- * @author huangbo
12372
- * @date 2024年9月7日
12412
+ /**
12413
+ * @desc:用户详情请求成功
12414
+ * @author huangbo
12415
+ * @date 2024年9月7日
12373
12416
  **/
12374
12417
  handleSuccess: function handleSuccess(res) {
12375
12418
  this.simpleUserInfo = res.simpleUserInfo;
12376
12419
  },
12377
12420
 
12378
- /**
12379
- * @desc:修改用户配置
12380
- * @author huangbo
12381
- * @date 2024年9月7日
12421
+ /**
12422
+ * @desc:修改用户配置
12423
+ * @author huangbo
12424
+ * @date 2024年9月7日
12382
12425
  **/
12383
12426
  handleChangeConfig: function handleChangeConfig(name, res) {
12384
12427
  if (name == 'userHeadUrl') {
@@ -12394,10 +12437,10 @@ var events = [function (tabs, index, that) {
12394
12437
  }
12395
12438
  },
12396
12439
 
12397
- /**
12398
- * @desc:关闭webSocket
12399
- * @author huangbo
12400
- * @date 2024年9月7日
12440
+ /**
12441
+ * @desc:关闭webSocket
12442
+ * @author huangbo
12443
+ * @date 2024年9月7日
12401
12444
  **/
12402
12445
  handlerClose: function handlerClose() {
12403
12446
  if (this.webSocket) {
@@ -12405,13 +12448,13 @@ var events = [function (tabs, index, that) {
12405
12448
  }
12406
12449
  },
12407
12450
 
12408
- /**
12409
- * @desc:刷新选中iframe页签
12410
- * @author huangbo
12411
- * @date 2024年9月7日
12451
+ /**
12452
+ * @desc:刷新选中iframe页签
12453
+ * @author huangbo
12454
+ * @date 2024年9月7日
12412
12455
  **/
12413
- handleRefresh: function handleRefresh() {
12414
- var i = util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
12456
+ handleRefresh: function handleRefresh(arg) {
12457
+ var i = arg ? util["a" /* default */].indexOfObj(this.tabs, arg, 'appCode,code,id,url') : util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
12415
12458
  var tab = this.tabs[i];
12416
12459
  if (tab.method === 'iframe') {
12417
12460
  tab.url = util["a" /* default */].handlerUrl(tab.url);
@@ -12429,10 +12472,10 @@ var events = [function (tabs, index, that) {
12429
12472
  }
12430
12473
  },
12431
12474
 
12432
- /**
12433
- * @desc:删除iframe
12434
- * @author huangbo
12435
- * @date 2024年9月7日
12475
+ /**
12476
+ * @desc:删除iframe
12477
+ * @author huangbo
12478
+ * @date 2024年9月7日
12436
12479
  **/
12437
12480
  handleRemove: function handleRemove(name) {
12438
12481
  var len = this.tabs.length - 1;
@@ -12449,10 +12492,10 @@ var events = [function (tabs, index, that) {
12449
12492
  }
12450
12493
  },
12451
12494
 
12452
- /**
12453
- * @desc:tabs鼠标右键事件
12454
- * @author huangbo
12455
- * @date 2024年9月7日
12495
+ /**
12496
+ * @desc:tabs鼠标右键事件
12497
+ * @author huangbo
12498
+ * @date 2024年9月7日
12456
12499
  **/
12457
12500
  handleContextmenu: function handleContextmenu(tabs, e) {
12458
12501
  var disabled = {};
@@ -12477,10 +12520,10 @@ var events = [function (tabs, index, that) {
12477
12520
  window.addEventListener('click', this.closeTabsEvents);
12478
12521
  },
12479
12522
 
12480
- /**
12481
- * @desc:tabs页签事件
12482
- * @author huangbo
12483
- * @date 2024年9月7日
12523
+ /**
12524
+ * @desc:tabs页签事件
12525
+ * @author huangbo
12526
+ * @date 2024年9月7日
12484
12527
  **/
12485
12528
  handleTabsEvents: function handleTabsEvents(num) {
12486
12529
  if (this.pane !== null) {
@@ -12490,7 +12533,12 @@ var events = [function (tabs, index, that) {
12490
12533
  window.removeEventListener('click', this.closeTabsEvents);
12491
12534
  },
12492
12535
 
12493
- //关闭页签事件面板
12536
+
12537
+ /**
12538
+ * @desc:关闭页签事件面板
12539
+ * @author huangbo
12540
+ * @date 2024年9月7日
12541
+ **/
12494
12542
  closeTabsEvents: function closeTabsEvents(e) {
12495
12543
  if (e.target.parentNode != this.$refs.tabsHandler.$el && e.target.parentNode.parentNode != this.$refs.tabsHandler.$el) {
12496
12544
  this.showTabsHandler = false;
@@ -12498,10 +12546,22 @@ var events = [function (tabs, index, that) {
12498
12546
  window.removeEventListener('click', this.closeTabsEvents);
12499
12547
  },
12500
12548
 
12501
- /**
12502
- * @desc:handler工具栏点击事件
12503
- * @author huangbo
12504
- * @date 2024年9月7日
12549
+
12550
+ /**
12551
+ * @desc:tabs页签点击事件
12552
+ * @author huangbo
12553
+ * @date 2024年9月7日
12554
+ **/
12555
+ handleTabClick: function handleTabClick() {
12556
+ this.active = '';
12557
+ this.subMenus = null;
12558
+ this.showMenu = false;
12559
+ },
12560
+
12561
+ /**
12562
+ * @desc:handler工具栏点击事件
12563
+ * @author huangbo
12564
+ * @date 2024年9月7日
12505
12565
  **/
12506
12566
  handleClick: function handleClick(res) {
12507
12567
  var type = res.type,
@@ -12559,6 +12619,9 @@ var events = [function (tabs, index, that) {
12559
12619
  this.activeName = this.homePage.id;
12560
12620
  this.showMsg = false;
12561
12621
  this.showSet = false;
12622
+ this.active = '';
12623
+ this.subMenus = null;
12624
+ this.showMenu = false;
12562
12625
  break;
12563
12626
  case 'search':
12564
12627
  this.showSearch = true;
@@ -12579,13 +12642,13 @@ var events = [function (tabs, index, that) {
12579
12642
  this.$emit('handler-click', res);
12580
12643
  },
12581
12644
 
12582
- /**
12583
- * @desc:退出登录
12584
- * @author huangbo
12585
- * @date 2024年9月7日
12645
+ /**
12646
+ * @desc:退出登录
12647
+ * @author huangbo
12648
+ * @date 2024年9月7日
12586
12649
  **/
12587
12650
  handleQuit: function handleQuit() {
12588
- var _this6 = this;
12651
+ var _this7 = this;
12589
12652
 
12590
12653
  this.$confirm('确定退出吗?', '退出系统', {
12591
12654
  confirmButtonText: '确定',
@@ -12601,19 +12664,19 @@ var events = [function (tabs, index, that) {
12601
12664
  }
12602
12665
  break;
12603
12666
  }
12604
- if (_this6.singleLogout) {
12605
- for (var _i2 = 0; _i2 < _this6.singleLogout.length; _i2++) {
12667
+ if (_this7.singleLogout) {
12668
+ for (var _i2 = 0; _i2 < _this7.singleLogout.length; _i2++) {
12606
12669
  var iframe = document.createElement('iframe');
12607
12670
  iframe.style.display = 'none';
12608
- iframe.src = _this6.singleLogout[_i2];
12671
+ iframe.src = _this7.singleLogout[_i2];
12609
12672
  document.body.appendChild(iframe);
12610
12673
  }
12611
12674
  }
12612
12675
  util["a" /* default */].ajax({ method: 'post', url: api["rb" /* logout */] }).then(function (res) {
12613
12676
  if (res.rCode == 0) {
12614
12677
  util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
12615
- if (_this6.onQuit && typeof _this6.onQuit === 'function') {
12616
- _this6.onQuit();
12678
+ if (_this7.onQuit && typeof _this7.onQuit === 'function') {
12679
+ _this7.onQuit();
12617
12680
  } else {
12618
12681
  try {
12619
12682
  var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
@@ -12651,16 +12714,16 @@ var events = [function (tabs, index, that) {
12651
12714
  }
12652
12715
  }).catch(function (err) {
12653
12716
  if (err.message && err.message !== 'canceled') {
12654
- _this6.$message.error(err.message);
12717
+ _this7.$message.error(err.message);
12655
12718
  }
12656
12719
  });
12657
12720
  }).catch(function (e) {});
12658
12721
  },
12659
12722
 
12660
- /**
12661
- * @desc:主题、消息回调
12662
- * @author huangbo
12663
- * @date 2024年9月7日
12723
+ /**
12724
+ * @desc:主题、消息回调
12725
+ * @author huangbo
12726
+ * @date 2024年9月7日
12664
12727
  **/
12665
12728
  handleChange: function handleChange(res) {
12666
12729
  var type = res.type,
@@ -12671,15 +12734,15 @@ var events = [function (tabs, index, that) {
12671
12734
  this.setTheme(value);
12672
12735
  break;
12673
12736
  case 'ignore':
12674
- this.notice = 0;
12737
+ this.$set(this.handleNums, 'notice', 0);
12675
12738
  break;
12676
12739
  }
12677
12740
  },
12678
12741
 
12679
- /**
12680
- * @desc:菜单布局样式切换
12681
- * @author huangbo
12682
- * @date 2024年9月7日
12742
+ /**
12743
+ * @desc:菜单布局样式切换
12744
+ * @author huangbo
12745
+ * @date 2024年9月7日
12683
12746
  **/
12684
12747
  handleLayout: function handleLayout(res, active) {
12685
12748
  if (active) {
@@ -12688,10 +12751,10 @@ var events = [function (tabs, index, that) {
12688
12751
  this.$emit('chang-layout', res, active);
12689
12752
  },
12690
12753
 
12691
- /**
12692
- * @desc:消息修改总数
12693
- * @author huangbo
12694
- * @date 2024年9月7日
12754
+ /**
12755
+ * @desc:消息修改总数
12756
+ * @author huangbo
12757
+ * @date 2024年9月7日
12695
12758
  **/
12696
12759
  handleMenuTips: function handleMenuTips(id, num) {
12697
12760
  if (num) {
@@ -12702,19 +12765,19 @@ var events = [function (tabs, index, that) {
12702
12765
  }
12703
12766
  },
12704
12767
 
12705
- /**
12706
- * @desc:处理即时消息
12707
- * @author huangbo
12708
- * @date 2024年9月7日
12768
+ /**
12769
+ * @desc:处理即时消息
12770
+ * @author huangbo
12771
+ * @date 2024年9月7日
12709
12772
  **/
12710
12773
  handleOpened: function handleOpened(res) {
12711
- var _this7 = this;
12774
+ var _this8 = this;
12712
12775
 
12713
12776
  if (res === undefined) {
12714
12777
  this.sysMsg = [];
12715
12778
  } else if (res == false && this.sysMsg.length) {
12716
12779
  this.sysMsgOut = setTimeout(function () {
12717
- _this7.sysMsg = [];
12780
+ _this8.sysMsg = [];
12718
12781
  }, 3000);
12719
12782
  } else if (this.sysMsgOut) {
12720
12783
  clearTimeout(this.sysMsgOut);
@@ -12789,13 +12852,13 @@ var events = [function (tabs, index, that) {
12789
12852
 
12790
12853
  //监听改变菜单
12791
12854
  handleListener: function handleListener() {
12792
- var _this8 = this;
12855
+ var _this9 = this;
12793
12856
 
12794
12857
  util["a" /* default */].win.addEventListener('message', function (e) {
12795
12858
  var msg = e.data;
12796
12859
  if (msg.key == 'jump_Menu') {
12797
12860
  var res = msg.data1;
12798
- _this8.jumpMenu(res);
12861
+ _this9.jumpMenu(res);
12799
12862
  }
12800
12863
  }, false);
12801
12864
  },
@@ -12832,18 +12895,18 @@ var events = [function (tabs, index, that) {
12832
12895
 
12833
12896
  var simplicity_component = Object(componentNormalizer["a" /* default */])(
12834
12897
  src_simplicityvue_type_script_lang_js_,
12835
- simplicityvue_type_template_id_3c4ceaef_scoped_true_render,
12836
- simplicityvue_type_template_id_3c4ceaef_scoped_true_staticRenderFns,
12898
+ simplicityvue_type_template_id_5b9d34eb_scoped_true_render,
12899
+ simplicityvue_type_template_id_5b9d34eb_scoped_true_staticRenderFns,
12837
12900
  false,
12838
12901
  null,
12839
- "3c4ceaef",
12902
+ "5b9d34eb",
12840
12903
  null
12841
12904
 
12842
12905
  )
12843
12906
 
12844
12907
  /* harmony default export */ var simplicity = (simplicity_component.exports);
12845
- // 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=2035b378&
12846
- var defaultvue_type_template_id_2035b378_render = function () {
12908
+ // 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=0eafbe04&
12909
+ var defaultvue_type_template_id_0eafbe04_render = function () {
12847
12910
  var _vm = this
12848
12911
  var _h = _vm.$createElement
12849
12912
  var _c = _vm._self._c || _h
@@ -13394,11 +13457,11 @@ var defaultvue_type_template_id_2035b378_render = function () {
13394
13457
  1
13395
13458
  )
13396
13459
  }
13397
- var defaultvue_type_template_id_2035b378_staticRenderFns = []
13398
- defaultvue_type_template_id_2035b378_render._withStripped = true
13460
+ var defaultvue_type_template_id_0eafbe04_staticRenderFns = []
13461
+ defaultvue_type_template_id_0eafbe04_render._withStripped = true
13399
13462
 
13400
13463
 
13401
- // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=2035b378&
13464
+ // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=0eafbe04&
13402
13465
 
13403
13466
  // 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=138be27a&
13404
13467
  var userinfovue_type_template_id_138be27a_render = function () {
@@ -13424,7 +13487,7 @@ userinfovue_type_template_id_138be27a_render._withStripped = true
13424
13487
  // CONCATENATED MODULE: ./packages/main/src/default/userinfo.vue?vue&type=template&id=138be27a&
13425
13488
 
13426
13489
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/userinfo.vue?vue&type=script&lang=js&
13427
- var default_userinfovue_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; };
13490
+ var userinfovue_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; };
13428
13491
 
13429
13492
  //
13430
13493
  //
@@ -13684,7 +13747,7 @@ var default_userinfovue_type_script_lang_js_extends = Object.assign || function
13684
13747
  _this2.checkPasswordMsg = results.checkPasswordMsg;
13685
13748
  }
13686
13749
  _this2.results = results.simpleUserInfo;
13687
- _this2.values = default_userinfovue_type_script_lang_js_extends({}, _this2.values, results.simpleUserInfo);
13750
+ _this2.values = userinfovue_type_script_lang_js_extends({}, _this2.values, results.simpleUserInfo);
13688
13751
  // this.values.orgName = results.simpleUserInfo.orgName;
13689
13752
  // this.values.depName = results.simpleUserInfo.depName;
13690
13753
  // this.values.idCard = results.simpleUserInfo.idCard;
@@ -15565,7 +15628,7 @@ var log = util["a" /* default */].getParams('console');
15565
15628
  document.title = results[i];
15566
15629
  }
15567
15630
  if (i === 'loginPage' && results[i]) {
15568
- util["a" /* default */].setStorage('loginPage', results[i]);
15631
+ util["a" /* default */].setStorage({ key: 'loginPage', value: results[i] });
15569
15632
  }
15570
15633
  if (i === 'sysLogoIco' && results[i]) {
15571
15634
  localStorage.setItem('sysLogoIco', results[i]);
@@ -15599,7 +15662,7 @@ var log = util["a" /* default */].getParams('console');
15599
15662
  } catch (error) {}
15600
15663
  }
15601
15664
  if (results[i].loginPage) {
15602
- util["a" /* default */].setStorage('loginPage', results[i].loginPage);
15665
+ util["a" /* default */].setStorage({ key: 'loginPage', value: results[i].loginPage });
15603
15666
  }
15604
15667
  if (results[i].portalPage || results[i].portalpage) {
15605
15668
  this.doorIndex = results[i].portalPage || results[i].portalpage;
@@ -16838,8 +16901,8 @@ var log = util["a" /* default */].getParams('console');
16838
16901
 
16839
16902
  var default_component = Object(componentNormalizer["a" /* default */])(
16840
16903
  src_defaultvue_type_script_lang_js_,
16841
- defaultvue_type_template_id_2035b378_render,
16842
- defaultvue_type_template_id_2035b378_staticRenderFns,
16904
+ defaultvue_type_template_id_0eafbe04_render,
16905
+ defaultvue_type_template_id_0eafbe04_staticRenderFns,
16843
16906
  false,
16844
16907
  null,
16845
16908
  null,
@@ -16852,6 +16915,9 @@ var default_component = Object(componentNormalizer["a" /* default */])(
16852
16915
  var external_wujie_vue2_ = __webpack_require__(17);
16853
16916
  var external_wujie_vue2_default = /*#__PURE__*/__webpack_require__.n(external_wujie_vue2_);
16854
16917
 
16918
+ // EXTERNAL MODULE: external "lodash"
16919
+ var external_lodash_ = __webpack_require__(12);
16920
+
16855
16921
  // 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&
16856
16922
  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; }
16857
16923
 
@@ -16904,6 +16970,16 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
16904
16970
  //
16905
16971
  //
16906
16972
  //
16973
+ //
16974
+ //
16975
+ //
16976
+ //
16977
+ //
16978
+ //
16979
+ //
16980
+ //
16981
+ //
16982
+
16907
16983
 
16908
16984
 
16909
16985
 
@@ -16958,7 +17034,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
16958
17034
  visibles: [],
16959
17035
  isLogin: false,
16960
17036
  layoutType: this.type,
16961
- layout: this.scene
17037
+ layout: this.scene,
17038
+ isIE: /MSIE|Trident/.test(navigator.userAgent)
16962
17039
  };
16963
17040
  },
16964
17041
  created: function created() {
@@ -16993,6 +17070,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
16993
17070
  if (bus) {
16994
17071
  bus.$on('reLogin', _this.handleReLogin);
16995
17072
  bus.$on('refresh', _this.$refs.main.handleRefresh);
17073
+ bus.$on('windowOpen', _this.winOpen);
17074
+ bus.$on('windowClose', _this.winClose);
16996
17075
  bus.$on('jumpMenu', _this.$refs.main.jumpMenu);
16997
17076
  bus.$on('emit', function (method, args) {
16998
17077
  // 主应用发送事件
@@ -17000,64 +17079,21 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
17000
17079
  });
17001
17080
  }
17002
17081
  util["a" /* default */].win.reLogin = _this.handleReLogin;
17003
- util["a" /* default */].win.windowOpen = _this.openPage;
17082
+ util["a" /* default */].win.windowOpen = _this.winOpen;
17083
+ util["a" /* default */].win.windowClose = _this.winClose;
17004
17084
  util["a" /* default */].win.refresh = _this.$refs.main.handleRefresh;
17005
17085
  util["a" /* default */].win.jumpMenu = _this.$refs.main.jumpMenu;
17006
17086
  external_wujie_vue2_default.a.bus.$on('reLogin', _this.handleReLogin);
17007
17087
  external_wujie_vue2_default.a.bus.$on('refresh', _this.$refs.main.handleRefresh);
17008
17088
  external_wujie_vue2_default.a.bus.$on('jumpMenu', _this.$refs.main.jumpMenu);
17089
+ external_wujie_vue2_default.a.bus.$on('windowOpen', _this.$refs.main.winOpen);
17090
+ external_wujie_vue2_default.a.bus.$on('windowClose', _this.$refs.main.winClose);
17009
17091
  external_wujie_vue2_default.a.bus.$on('emit', function (method, args) {
17010
17092
  // 主应用发送事件
17011
17093
  external_wujie_vue2_default.a.bus.$emit(method, args);
17012
17094
  });
17013
17095
 
17014
- window.addEventListener('message', function (e) {
17015
- var _$refs$main;
17016
-
17017
- var _e$data = e.data,
17018
- method = _e$data.method,
17019
- args = _e$data.args;
17020
-
17021
- switch (method) {
17022
- case 'reLogin':
17023
- _this.handleReLogin(args);
17024
- break;
17025
- case 'refresh':
17026
- _this.$refs.main.handleRefresh(args);
17027
- break;
17028
- case 'jumpMenu':
17029
- Array.isArray(args) ? (_$refs$main = _this.$refs.main).jumpMenu.apply(_$refs$main, args) : _this.$refs.main.jumpMenu(args);
17030
- break;
17031
- case 'emit':
17032
- var origin = args.origin,
17033
- data = _objectWithoutProperties(args, ['origin']);
17034
-
17035
- var iframes = document.getElementsByTagName('iframe');
17036
- iframes = iframes.filter(function (item) {
17037
- return origin ? item.src.indexOf(origin) > -1 : item.src.indexOf(e.origin) == -1;
17038
- });
17039
- for (var i = 0; i < iframes.length; i++) {
17040
- iframes[i] && iframes[i].contentWindow.postMessage(data, origin ? origin : '*');
17041
- }
17042
- break;
17043
- case 'openDialog':
17044
- _this.dialogs.push(args);
17045
- var index = _this.visibles.length;
17046
- _this.visibles.push(false);
17047
- _this.$nextTick(function () {
17048
- _this.$set(_this.visibles, index, true);
17049
- });
17050
- break;
17051
- case 'closeDialog':
17052
- for (var _i = 0; _i < _this.dialogs.length; _i++) {
17053
- var item = _this.dialogs[_i];
17054
- if (item.url == args.url) {
17055
- _this.$set(_this.visibles, _i, false);
17056
- }
17057
- }
17058
- break;
17059
- }
17060
- });
17096
+ window.addEventListener('message', _this.handleMessage);
17061
17097
  });
17062
17098
  } else {
17063
17099
  var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
@@ -17209,11 +17245,26 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
17209
17245
  },
17210
17246
 
17211
17247
  /**
17212
- * @desc:打开页面
17248
+ * @desc:打开dialog页面
17213
17249
  * @author huangbo
17214
17250
  * @date 2024年9月7日
17215
17251
  **/
17216
- openPage: function openPage(url, name, width, height) {
17252
+ winOpen: function winOpen(_ref) {
17253
+ var _this5 = this;
17254
+
17255
+ var url = _ref.url,
17256
+ name = _ref.name,
17257
+ width = _ref.width,
17258
+ height = _ref.height,
17259
+ appCode = _ref.appCode,
17260
+ id = _ref.id,
17261
+ size = _ref.size;
17262
+
17263
+ if (!appCode && !id) {
17264
+ console.error('参数错误,缺少appCode或者id');
17265
+ return;
17266
+ }
17267
+ var openModel = util["a" /* default */].getStorage('openModel');
17217
17268
  var src = url;
17218
17269
  if (!util["a" /* default */].startWith(url, ['http', '/'], true)) {
17219
17270
  var pathname = window.location.pathname;
@@ -17224,6 +17275,25 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
17224
17275
  }
17225
17276
  src = pathname + url.replace('./', '/');
17226
17277
  }
17278
+ if (openModel && openModel == 'dialog') {
17279
+ var dialog = {
17280
+ id: id,
17281
+ url: src,
17282
+ name: name,
17283
+ width: width,
17284
+ height: height,
17285
+ appCode: appCode,
17286
+ visible: false,
17287
+ size: size
17288
+ };
17289
+ var n = this.dialogs.push(dialog);
17290
+ this.$nextTick(function () {
17291
+ _this5.$set(dialog, 'index', n - 1);
17292
+ _this5.$set(dialog, 'visible', true);
17293
+ });
17294
+ return dialog;
17295
+ }
17296
+
17227
17297
  if (name) {
17228
17298
  var w = 0;
17229
17299
  var h = 0;
@@ -17240,14 +17310,132 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
17240
17310
  }
17241
17311
  },
17242
17312
 
17313
+
17314
+ /**
17315
+ * @desc:关闭dialog页面
17316
+ * @author huangbo
17317
+ * @date 2024年9月7日
17318
+ **/
17319
+ winClose: function winClose(_ref2) {
17320
+ var url = _ref2.url,
17321
+ appCode = _ref2.appCode,
17322
+ id = _ref2.id;
17323
+
17324
+ if (!appCode && !id) {
17325
+ console.error('参数错误,缺少appCode或者id');
17326
+ return;
17327
+ }
17328
+ var dialog = this.dialogs.find(function (item) {
17329
+ return item.url == url || item.appCode == appCode || item.id == id;
17330
+ });
17331
+ if (dialog) {
17332
+ this.$set(dialog, 'visible', false);
17333
+ this.dialogs.splice(dialog.index, 1);
17334
+ }
17335
+ },
17336
+
17337
+
17338
+ /**
17339
+ * @desc:postMessage消息处理
17340
+ * @author huangbo
17341
+ * @date 2024年9月7日
17342
+ **/
17343
+ handleMessage: function handleMessage(e) {
17344
+ var _$refs$main,
17345
+ _this6 = this,
17346
+ _$refs$main2,
17347
+ _$refs$main3;
17348
+
17349
+ var _e$data = e.data,
17350
+ method = _e$data.method,
17351
+ args = _e$data.args;
17352
+ var index = args.index,
17353
+ refresh = args.refresh,
17354
+ jumpMenu = args.jumpMenu;
17355
+
17356
+ switch (method) {
17357
+ case 'reLogin':
17358
+ this.handleReLogin(args);
17359
+ break;
17360
+ case 'refresh':
17361
+ this.$refs.main.handleRefresh(args);
17362
+ break;
17363
+ case 'jumpMenu':
17364
+ Array.isArray(args) ? (_$refs$main = this.$refs.main).jumpMenu.apply(_$refs$main, args) : this.$refs.main.jumpMenu(args);
17365
+ break;
17366
+ case 'emit':
17367
+ var origin = args.origin,
17368
+ appCode = args.appCode,
17369
+ id = args.id,
17370
+ data = _objectWithoutProperties(args, ['origin', 'appCode', 'id']);
17371
+
17372
+ var iframe = document.getElementById(appCode || id);
17373
+ iframe.contentWindow.postMessage(data, origin ? origin : '*');
17374
+ break;
17375
+ case 'openDialog':
17376
+ //打开弹窗
17377
+ if (!args.appCode && !args.id) {
17378
+ console.error('参数错误,缺少appCode或者id');
17379
+ return;
17380
+ }
17381
+ args.index = this.dialogs.length;
17382
+ args.visible = false;
17383
+ this.dialogs.push(args);
17384
+ this.$nextTick(function () {
17385
+ _this6.$set(args, 'visible', true);
17386
+ });
17387
+ break;
17388
+ case 'closeDialog':
17389
+ //关闭弹窗
17390
+ this.$set(this.dialogs[index], 'visible', false);
17391
+ this.dialogs.splice(index, 1);
17392
+ refresh && this.$refs.main.handleRefresh(refresh);
17393
+ jumpMenu && (Array.isArray(jumpMenu) ? (_$refs$main2 = this.$refs.main).jumpMenu.apply(_$refs$main2, jumpMenu) : this.$refs.main.jumpMenu(jumpMenu));
17394
+ break;
17395
+ case 'windowOpen':
17396
+ //打开弹窗
17397
+ if (!args.appCode && !args.id) {
17398
+ console.error('参数错误,缺少appCode或者id');
17399
+ return;
17400
+ }
17401
+ args.index = this.dialogs.length;
17402
+ args.visible = false;
17403
+ this.dialogs.push(args);
17404
+ this.$nextTick(function () {
17405
+ _this6.$set(args, 'visible', true);
17406
+ });
17407
+ break;
17408
+ case 'windowClose':
17409
+ //关闭弹窗
17410
+ this.$set(this.dialogs[index], 'visible', false);
17411
+ this.dialogs.splice(index, 1);
17412
+ refresh && this.$refs.main.handleRefresh(refresh);
17413
+ jumpMenu && (Array.isArray(jumpMenu) ? (_$refs$main3 = this.$refs.main).jumpMenu.apply(_$refs$main3, jumpMenu) : this.$refs.main.jumpMenu(jumpMenu));
17414
+ break;
17415
+ }
17416
+ },
17417
+
17418
+
17419
+ /**
17420
+ * @desc:dialog页面加载完成后通讯
17421
+ * @author huangbo
17422
+ * @date 2024年9月7日
17423
+ **/
17424
+ handleIframeLoad: function handleIframeLoad(iframe, data) {
17425
+ iframe = iframe ? iframe : document.getElementById(data.appCode || data.id);
17426
+ var origin = new URL(iframe.src).origin;
17427
+ iframe.contentWindow.postMessage(data, origin);
17428
+ },
17429
+
17430
+
17243
17431
  /**
17244
17432
  * @desc:排除属性
17245
17433
  * @author huangbo
17246
17434
  * @date 2024年9月7日
17247
17435
  **/
17248
- exclAttribute: function exclAttribute(_ref) {
17249
- var data = _ref.data,
17250
- attrs = _ref.attrs;
17436
+ exclAttribute: function exclAttribute(_ref3) {
17437
+ var data = _ref3.data,
17438
+ attrs = _ref3.attrs;
17251
17439
 
17252
17440
  return util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
17253
17441
  },
@@ -17259,7 +17447,6 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
17259
17447
  **/
17260
17448
  handleClosed: function handleClosed(res, index) {
17261
17449
  this.dialogs.splice(index, 1);
17262
- this.visibles.splice(index, 1);
17263
17450
  },
17264
17451
 
17265
17452
  /**
@@ -17283,6 +17470,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
17283
17470
  }
17284
17471
  },
17285
17472
  beforeDestroy: function beforeDestroy() {
17473
+ window.removeEventListener('message', this.handleMessage);
17286
17474
  external_wujie_vue2_default.a.bus.$off('reLogin');
17287
17475
  external_wujie_vue2_default.a.bus.$off('refresh');
17288
17476
  external_wujie_vue2_default.a.bus.$off('jumpMenu');