eoss-ui 0.6.76 → 0.6.78

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 (289) hide show
  1. package/lib/button-group.js +30 -8
  2. package/lib/button.js +30 -8
  3. package/lib/calogin.js +263 -241
  4. package/lib/checkbox-group.js +30 -8
  5. package/lib/data-table-form.js +30 -8
  6. package/lib/data-table.js +30 -8
  7. package/lib/date-picker.js +30 -8
  8. package/lib/dialog.js +30 -8
  9. package/lib/eoss-ui.common.js +1699 -1212
  10. package/lib/flow-group.js +30 -8
  11. package/lib/flow-list.js +111 -89
  12. package/lib/flow.js +965 -515
  13. package/lib/form.js +50 -10
  14. package/lib/handle-user.js +30 -8
  15. package/lib/handler.js +30 -8
  16. package/lib/icon.js +30 -8
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +30 -8
  19. package/lib/input.js +30 -8
  20. package/lib/login.js +30 -8
  21. package/lib/main.js +373 -332
  22. package/lib/nav.js +30 -8
  23. package/lib/page.js +30 -8
  24. package/lib/pagination.js +30 -8
  25. package/lib/player.js +30 -8
  26. package/lib/qr-code.js +43 -21
  27. package/lib/radio-group.js +30 -8
  28. package/lib/retrial-auth.js +30 -8
  29. package/lib/select-ganged.js +30 -8
  30. package/lib/select.js +30 -8
  31. package/lib/selector-panel.js +30 -8
  32. package/lib/selector.js +30 -8
  33. package/lib/sizer.js +30 -8
  34. package/lib/steps.js +30 -8
  35. package/lib/switch.js +30 -8
  36. package/lib/table-form.js +30 -8
  37. package/lib/tabs.js +30 -8
  38. package/lib/theme-chalk/flow.css +1 -1
  39. package/lib/theme-chalk/form.css +1 -1
  40. package/lib/theme-chalk/index.css +1 -1
  41. package/lib/tips.js +30 -8
  42. package/lib/tree-group.js +30 -8
  43. package/lib/tree.js +30 -8
  44. package/lib/upload.js +30 -8
  45. package/lib/utils/util.js +26 -4
  46. package/lib/wujie.js +30 -8
  47. package/lib/wxlogin.js +30 -8
  48. package/package.json +160 -160
  49. package/packages/button/index.js +5 -5
  50. package/packages/button/src/main.vue +418 -418
  51. package/packages/button-group/index.js +5 -5
  52. package/packages/button-group/src/main.vue +298 -298
  53. package/packages/calendar/index.js +5 -5
  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 +989 -989
  68. package/packages/data-table/src/main.vue +1822 -1822
  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/index.js +5 -5
  79. package/packages/date-picker/src/main.vue +236 -236
  80. package/packages/dialog/index.js +5 -5
  81. package/packages/enable-drag/index.js +5 -5
  82. package/packages/enterprise/index.js +5 -5
  83. package/packages/enterprise/src/main.vue +66 -66
  84. package/packages/error-page/index.js +5 -5
  85. package/packages/error-page/src/main.vue +44 -44
  86. package/packages/flow/index.js +5 -5
  87. package/packages/flow/src/component/Circulate.vue +370 -363
  88. package/packages/flow/src/component/CommonOpinions.vue +364 -346
  89. package/packages/flow/src/component/CustomPreset.vue +322 -322
  90. package/packages/flow/src/component/FileList.vue +99 -99
  91. package/packages/flow/src/component/Preset.vue +255 -255
  92. package/packages/flow/src/component/SendMsg.vue +241 -241
  93. package/packages/flow/src/component/TimeLimit.vue +190 -190
  94. package/packages/flow/src/component/taskUnionExamine.vue +627 -627
  95. package/packages/flow/src/form.vue +121 -121
  96. package/packages/flow/src/freeStartFlow.vue +2843 -2843
  97. package/packages/flow/src/main.vue +3564 -3445
  98. package/packages/flow/src/processForm.vue +1177 -1096
  99. package/packages/flow/src/processReject.vue +294 -294
  100. package/packages/flow/src/reset.vue +906 -905
  101. package/packages/flow/src/startTaskRead.vue +677 -659
  102. package/packages/flow/src/supervise.vue +149 -149
  103. package/packages/flow/src/table.vue +58 -58
  104. package/packages/flow-group/index.js +5 -5
  105. package/packages/flow-group/src/main.vue +688 -688
  106. package/packages/flow-list/index.js +5 -5
  107. package/packages/flow-list/src/main.vue +1770 -1770
  108. package/packages/form/index.js +5 -5
  109. package/packages/form/src/main.vue +3797 -3796
  110. package/packages/form/src/table.vue +1502 -1502
  111. package/packages/handle-user/index.js +5 -5
  112. package/packages/handle-user/src/main.vue +138 -138
  113. package/packages/handler/index.js +5 -5
  114. package/packages/handler/src/main.vue +493 -493
  115. package/packages/icon/index.js +5 -5
  116. package/packages/icon/src/main.vue +101 -101
  117. package/packages/icons/index.js +5 -5
  118. package/packages/icons/src/main.vue +81 -81
  119. package/packages/input/index.js +5 -5
  120. package/packages/input/src/main.vue +356 -356
  121. package/packages/input-number/index.js +5 -5
  122. package/packages/input-number/src/main.vue +106 -106
  123. package/packages/label/index.js +5 -5
  124. package/packages/label/src/main.vue +457 -457
  125. package/packages/layout/index.js +5 -5
  126. package/packages/layout/src/item.vue +152 -152
  127. package/packages/layout/src/main.vue +31 -31
  128. package/packages/login/index.js +5 -5
  129. package/packages/login/src/main.vue +2001 -2001
  130. package/packages/login/src/resetPassword.vue +562 -562
  131. package/packages/main/index.js +5 -5
  132. package/packages/main/src/default/index.vue +6 -5
  133. package/packages/main/src/default/message.vue +249 -249
  134. package/packages/main/src/default/notice.vue +157 -157
  135. package/packages/main/src/default/userinfo.vue +503 -503
  136. package/packages/main/src/main.vue +107 -84
  137. package/packages/main/src/public/online.vue +89 -89
  138. package/packages/main/src/public/search.vue +458 -458
  139. package/packages/main/src/public/settings.vue +221 -221
  140. package/packages/main/src/simplicity/apps.vue +388 -388
  141. package/packages/main/src/simplicity/avatar.vue +82 -82
  142. package/packages/main/src/simplicity/handler.vue +259 -259
  143. package/packages/main/src/simplicity/index.vue +2102 -2099
  144. package/packages/main/src/simplicity/lists.vue +84 -84
  145. package/packages/main/src/simplicity/menu-list.vue +135 -135
  146. package/packages/main/src/simplicity/message.vue +259 -259
  147. package/packages/main/src/simplicity/notice.vue +190 -190
  148. package/packages/main/src/simplicity/router-page.vue +45 -45
  149. package/packages/main/src/simplicity/sub-menu.vue +264 -264
  150. package/packages/main/src/simplicity/user.vue +260 -260
  151. package/packages/main/src/simplicity/userinfo.vue +312 -312
  152. package/packages/menu/index.js +5 -5
  153. package/packages/menu/src/main.vue +584 -584
  154. package/packages/nav/index.js +5 -5
  155. package/packages/nav/src/main.vue +351 -351
  156. package/packages/notify/index.js +5 -5
  157. package/packages/notify/src/main.vue +538 -538
  158. package/packages/page/index.js +5 -5
  159. package/packages/page/src/main.vue +167 -167
  160. package/packages/pagination/index.js +5 -5
  161. package/packages/pagination/src/main.vue +96 -96
  162. package/packages/player/index.js +5 -5
  163. package/packages/player/src/main.vue +194 -194
  164. package/packages/qr-code/index.js +5 -5
  165. package/packages/qr-code/src/main.vue +170 -170
  166. package/packages/radio-group/index.js +6 -6
  167. package/packages/radio-group/src/main.vue +319 -319
  168. package/packages/retrial-auth/index.js +5 -5
  169. package/packages/retrial-auth/src/main.vue +280 -280
  170. package/packages/select/index.js +5 -5
  171. package/packages/select/src/main.vue +778 -778
  172. package/packages/select-ganged/index.js +5 -5
  173. package/packages/select-ganged/src/main.vue +724 -724
  174. package/packages/selector/index.js +5 -5
  175. package/packages/selector/src/main.vue +729 -729
  176. package/packages/selector-panel/index.js +5 -5
  177. package/packages/selector-panel/src/main.vue +1027 -1027
  178. package/packages/selector-panel/src/selection.vue +170 -170
  179. package/packages/selector-panel/src/tree.vue +129 -129
  180. package/packages/sizer/index.js +5 -5
  181. package/packages/sizer/src/main.vue +254 -254
  182. package/packages/steps/index.js +5 -5
  183. package/packages/steps/src/main.vue +181 -181
  184. package/packages/switch/index.js +5 -5
  185. package/packages/switch/src/main.vue +154 -154
  186. package/packages/table-form/index.js +5 -5
  187. package/packages/tabs/index.js +5 -5
  188. package/packages/tabs/src/main.vue +788 -788
  189. package/packages/tabs-panel/index.js +5 -5
  190. package/packages/tabs-panel/src/main.vue +29 -29
  191. package/packages/theme-chalk/lib/flow.css +1 -1
  192. package/packages/theme-chalk/lib/form.css +1 -1
  193. package/packages/theme-chalk/lib/index.css +1 -1
  194. package/packages/theme-chalk/src/base.scss +261 -261
  195. package/packages/theme-chalk/src/button-group.scss +176 -176
  196. package/packages/theme-chalk/src/button.scss +24 -24
  197. package/packages/theme-chalk/src/calendar.scss +113 -113
  198. package/packages/theme-chalk/src/card.scss +99 -99
  199. package/packages/theme-chalk/src/checkbox-group.scss +8 -8
  200. package/packages/theme-chalk/src/clients.scss +87 -87
  201. package/packages/theme-chalk/src/data-table-form.scss +67 -67
  202. package/packages/theme-chalk/src/data-table.scss +293 -293
  203. package/packages/theme-chalk/src/date-picker.scss +7 -7
  204. package/packages/theme-chalk/src/dialog.scss +77 -77
  205. package/packages/theme-chalk/src/enable-drag.scss +181 -181
  206. package/packages/theme-chalk/src/enterprise.scss +5 -5
  207. package/packages/theme-chalk/src/error-page.scss +18 -18
  208. package/packages/theme-chalk/src/flow-group.scss +110 -110
  209. package/packages/theme-chalk/src/flow-list.scss +39 -39
  210. package/packages/theme-chalk/src/flow.scss +348 -343
  211. package/packages/theme-chalk/src/form.scss +499 -496
  212. package/packages/theme-chalk/src/handle-user.scss +40 -40
  213. package/packages/theme-chalk/src/handler.scss +143 -143
  214. package/packages/theme-chalk/src/icon.scss +1792 -1792
  215. package/packages/theme-chalk/src/icons.scss +99 -99
  216. package/packages/theme-chalk/src/input.scss +9 -9
  217. package/packages/theme-chalk/src/label.scss +24 -24
  218. package/packages/theme-chalk/src/layout.scss +46 -46
  219. package/packages/theme-chalk/src/login.scss +984 -984
  220. package/packages/theme-chalk/src/main.scss +663 -663
  221. package/packages/theme-chalk/src/menu.scss +222 -222
  222. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  223. package/packages/theme-chalk/src/nav.scss +111 -111
  224. package/packages/theme-chalk/src/page.scss +3 -3
  225. package/packages/theme-chalk/src/pagination.scss +29 -29
  226. package/packages/theme-chalk/src/player.scss +9 -9
  227. package/packages/theme-chalk/src/qr-code.scss +17 -17
  228. package/packages/theme-chalk/src/radio-group.scss +9 -9
  229. package/packages/theme-chalk/src/retrial-auth.scss +38 -38
  230. package/packages/theme-chalk/src/select-ganged.scss +8 -8
  231. package/packages/theme-chalk/src/select.scss +8 -8
  232. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  233. package/packages/theme-chalk/src/selector.scss +91 -91
  234. package/packages/theme-chalk/src/simplicity.scss +1355 -1355
  235. package/packages/theme-chalk/src/sizer.scss +36 -36
  236. package/packages/theme-chalk/src/steps.scss +88 -88
  237. package/packages/theme-chalk/src/switch.scss +3 -3
  238. package/packages/theme-chalk/src/table-form.scss +1 -1
  239. package/packages/theme-chalk/src/tabs.scss +87 -87
  240. package/packages/theme-chalk/src/tips.scss +7 -7
  241. package/packages/theme-chalk/src/toolbar.scss +179 -179
  242. package/packages/theme-chalk/src/tree-group.scss +72 -72
  243. package/packages/theme-chalk/src/tree.scss +165 -165
  244. package/packages/theme-chalk/src/upload.scss +172 -172
  245. package/packages/theme-chalk/src/wxlogin.scss +3 -3
  246. package/packages/tips/index.js +5 -5
  247. package/packages/tips/src/main.vue +141 -141
  248. package/packages/toolbar/index.js +5 -5
  249. package/packages/toolbar/src/main.vue +430 -430
  250. package/packages/tree/index.js +5 -5
  251. package/packages/tree-group/index.js +5 -5
  252. package/packages/upload/index.js +5 -5
  253. package/packages/upload/src/main.vue +1348 -1348
  254. package/packages/upload/src/picture.js +15 -15
  255. package/packages/wujie/index.js +5 -5
  256. package/packages/wujie/src/main.vue +145 -145
  257. package/packages/wxlogin/index.js +5 -5
  258. package/packages/wxlogin/src/main.vue +128 -128
  259. package/src/config/api.js +294 -294
  260. package/src/config/image.js +2 -2
  261. package/src/index.js +163 -163
  262. package/src/utils/bus.js +3 -3
  263. package/src/utils/date-util.js +312 -312
  264. package/src/utils/http.js +50 -50
  265. package/src/utils/rules.js +18 -18
  266. package/src/utils/store.js +21 -21
  267. package/src/utils/util.js +39 -3
  268. package/src/utils/webSocket.js +107 -107
  269. package/packages/.DS_Store +0 -0
  270. package/packages/autocomplete/.DS_Store +0 -0
  271. package/packages/calogin/.DS_Store +0 -0
  272. package/packages/date-picker/.DS_Store +0 -0
  273. package/packages/date-picker/src/.DS_Store +0 -0
  274. package/packages/flow/.DS_Store +0 -0
  275. package/packages/flow-list/.DS_Store +0 -0
  276. package/packages/form/.DS_Store +0 -0
  277. package/packages/login/.DS_Store +0 -0
  278. package/packages/login/src/IcpItem.vue +0 -66
  279. package/packages/main/.DS_Store +0 -0
  280. package/packages/main/src/.DS_Store +0 -0
  281. package/packages/menu/.DS_Store +0 -0
  282. package/packages/scrollbar/.DS_Store +0 -0
  283. package/packages/select/.DS_Store +0 -0
  284. package/packages/selector/.DS_Store +0 -0
  285. package/packages/selector-panel/.DS_Store +0 -0
  286. package/packages/theme-chalk/src/.DS_Store +0 -0
  287. package/packages/upload/.DS_Store +0 -0
  288. package/src/.DS_Store +0 -0
  289. package/src/utils/.DS_Store +0 -0
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__(13).sm2;
126
- var lodash = __webpack_require__(12);
125
+ var sm2 = __webpack_require__(12).sm2;
126
+ var lodash = __webpack_require__(13);
127
127
 
128
128
 
129
129
 
@@ -2365,7 +2365,7 @@ var isLogined = function () {
2365
2365
  cookie = _ref11.cookie,
2366
2366
  loginPage = _ref11.loginPage,
2367
2367
  redirect = _ref11.redirect;
2368
- var quit, pathname, path, token, loadingInstance;
2368
+ var quit, pathname, path, token, loadingInstance, referrerUrl;
2369
2369
  return babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
2370
2370
  while (1) {
2371
2371
  switch (_context.prev = _context.next) {
@@ -2493,7 +2493,14 @@ var isLogined = function () {
2493
2493
  if (loginPage) {
2494
2494
  win.top.location.replace(loginPage);
2495
2495
  } else if (document.referrer) {
2496
- win.top.location.replace(document.referrer);
2496
+ var referrerUrl = new URL(document.referrer);
2497
+ if (referrerUrl.host !== win.top.location.host) {
2498
+ win.top.location.replace(document.referrer);
2499
+ } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2500
+ win.top.location.href = './login.html';
2501
+ } else {
2502
+ next('/login');
2503
+ }
2497
2504
  } else if (win.top.location.href.indexOf('main.html') > -1) {
2498
2505
  win.top.location.href = './login.html';
2499
2506
  } else {
@@ -2516,7 +2523,14 @@ var isLogined = function () {
2516
2523
  if (loginPage) {
2517
2524
  win.top.location.replace(loginPage);
2518
2525
  } else if (document.referrer) {
2519
- win.top.location.replace(document.referrer);
2526
+ var referrerUrl = new URL(document.referrer);
2527
+ if (referrerUrl.host !== win.top.location.host) {
2528
+ win.top.location.replace(document.referrer);
2529
+ } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2530
+ win.top.location.href = './login.html';
2531
+ } else {
2532
+ next('/login');
2533
+ }
2520
2534
  } else if (win.top.location.href.indexOf('main.html') > -1) {
2521
2535
  win.top.location.href = './login.html';
2522
2536
  } else {
@@ -2549,7 +2563,15 @@ var isLogined = function () {
2549
2563
  if (loginPage) {
2550
2564
  win.top.location.replace(loginPage);
2551
2565
  } else if (document.referrer) {
2552
- win.top.location.replace(document.referrer);
2566
+ referrerUrl = new URL(document.referrer);
2567
+
2568
+ if (referrerUrl.host !== win.top.location.host) {
2569
+ win.top.location.replace(document.referrer);
2570
+ } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2571
+ win.top.location.href = './login.html';
2572
+ } else {
2573
+ next('/login');
2574
+ }
2553
2575
  } else if (win.top.location.href.indexOf('main.html') > -1) {
2554
2576
  win.top.location.href = './login.html';
2555
2577
  } else {
@@ -4240,13 +4262,13 @@ module.exports = require("ua-parser-js");
4240
4262
  /* 12 */
4241
4263
  /***/ (function(module, exports) {
4242
4264
 
4243
- module.exports = require("lodash");
4265
+ module.exports = require("sm-crypto");
4244
4266
 
4245
4267
  /***/ }),
4246
4268
  /* 13 */
4247
4269
  /***/ (function(module, exports) {
4248
4270
 
4249
- module.exports = require("sm-crypto");
4271
+ module.exports = require("lodash");
4250
4272
 
4251
4273
  /***/ }),
4252
4274
  /* 14 */
@@ -4316,7 +4338,7 @@ var nightImg = 'data:image/jpeg;base64,/9j/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
4316
4338
  // ESM COMPAT FLAG
4317
4339
  __webpack_require__.r(__webpack_exports__);
4318
4340
 
4319
- // 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=7d366933&
4341
+ // 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=88d82eac&
4320
4342
  var render = function () {
4321
4343
  var _vm = this
4322
4344
  var _h = _vm.$createElement
@@ -4414,13 +4436,13 @@ var staticRenderFns = []
4414
4436
  render._withStripped = true
4415
4437
 
4416
4438
 
4417
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=7d366933&
4439
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=88d82eac&
4418
4440
 
4419
4441
  // EXTERNAL MODULE: ./src/config/image.js
4420
4442
  var config_image = __webpack_require__(20);
4421
4443
 
4422
- // 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=532a2b35&scoped=true&
4423
- var simplicityvue_type_template_id_532a2b35_scoped_true_render = function () {
4444
+ // 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=634782ec&scoped=true&
4445
+ var simplicityvue_type_template_id_634782ec_scoped_true_render = function () {
4424
4446
  var _vm = this
4425
4447
  var _h = _vm.$createElement
4426
4448
  var _c = _vm._self._c || _h
@@ -5086,11 +5108,11 @@ var simplicityvue_type_template_id_532a2b35_scoped_true_render = function () {
5086
5108
  ),
5087
5109
  ])
5088
5110
  }
5089
- var simplicityvue_type_template_id_532a2b35_scoped_true_staticRenderFns = []
5090
- simplicityvue_type_template_id_532a2b35_scoped_true_render._withStripped = true
5111
+ var simplicityvue_type_template_id_634782ec_scoped_true_staticRenderFns = []
5112
+ simplicityvue_type_template_id_634782ec_scoped_true_render._withStripped = true
5091
5113
 
5092
5114
 
5093
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=532a2b35&scoped=true&
5115
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=634782ec&scoped=true&
5094
5116
 
5095
5117
  // 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&
5096
5118
  var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
@@ -7174,10 +7196,10 @@ var external_throttle_debounce_ = __webpack_require__(14);
7174
7196
  this.$emit('click', res);
7175
7197
  },
7176
7198
 
7177
- /**
7178
- * @desc:获取气泡提醒
7179
- * @author huangbo
7180
- * @date 2024年9月7日
7199
+ /**
7200
+ * @desc:获取气泡提醒
7201
+ * @author huangbo
7202
+ * @date 2024年9月7日
7181
7203
  **/
7182
7204
  getBadge: function getBadge(res) {
7183
7205
  var num = res.tips || 0;
@@ -11206,10 +11228,10 @@ var events = [function (tabs, index, that) {
11206
11228
  },
11207
11229
 
11208
11230
  methods: {
11209
- /**
11210
- * @desc:匹配路由
11211
- * @author huangbo
11212
- * @date 2024年9月7日
11231
+ /**
11232
+ * @desc:匹配路由
11233
+ * @author huangbo
11234
+ * @date 2024年9月7日
11213
11235
  **/
11214
11236
  hasRouter: function hasRouter(res, url, code) {
11215
11237
  if (!url) {
@@ -11253,10 +11275,10 @@ var events = [function (tabs, index, that) {
11253
11275
  return false;
11254
11276
  },
11255
11277
 
11256
- /**
11257
- * @desc:获取初始数据
11258
- * @author huangbo
11259
- * @date 2024年9月7日
11278
+ /**
11279
+ * @desc:获取初始数据
11280
+ * @author huangbo
11281
+ * @date 2024年9月7日
11260
11282
  **/
11261
11283
  init: function init(results, first) {
11262
11284
  this.setConfig(results);
@@ -11265,10 +11287,10 @@ var events = [function (tabs, index, that) {
11265
11287
  }
11266
11288
  },
11267
11289
 
11268
- /**
11269
- * @desc:设置用户配置及信息
11270
- * @author huangbo
11271
- * @date 2024年9月7日
11290
+ /**
11291
+ * @desc:设置用户配置及信息
11292
+ * @author huangbo
11293
+ * @date 2024年9月7日
11272
11294
  **/
11273
11295
  setConfig: function setConfig(results) {
11274
11296
  localStorage.setItem('mainConfig', JSON.stringify(results));
@@ -11402,10 +11424,10 @@ var events = [function (tabs, index, that) {
11402
11424
  }
11403
11425
  },
11404
11426
 
11405
- /**
11406
- * @desc:获取所有应用
11407
- * @author huangbo
11408
- * @date 2024年9月7日
11427
+ /**
11428
+ * @desc:获取所有应用
11429
+ * @author huangbo
11430
+ * @date 2024年9月7日
11409
11431
  **/
11410
11432
  getApplications: function getApplications() {
11411
11433
  var _this = this;
@@ -11453,10 +11475,10 @@ var events = [function (tabs, index, that) {
11453
11475
  });
11454
11476
  },
11455
11477
 
11456
- /**
11457
- * @desc:获取菜单列表
11458
- * @author huangbo
11459
- * @date 2024年9月7日
11478
+ /**
11479
+ * @desc:获取菜单列表
11480
+ * @author huangbo
11481
+ * @date 2024年9月7日
11460
11482
  **/
11461
11483
  getMenus: function getMenus(loading) {
11462
11484
  var _this2 = this;
@@ -11489,10 +11511,10 @@ var events = [function (tabs, index, that) {
11489
11511
  });
11490
11512
  },
11491
11513
 
11492
- /**
11493
- * @desc:处理菜单列表
11494
- * @author huangbo
11495
- * @date 2024年9月7日
11514
+ /**
11515
+ * @desc:处理菜单列表
11516
+ * @author huangbo
11517
+ * @date 2024年9月7日
11496
11518
  **/
11497
11519
  renderMenus: function renderMenus(res) {
11498
11520
  this.menus = res;
@@ -11553,6 +11575,7 @@ var events = [function (tabs, index, that) {
11553
11575
  } else {
11554
11576
  this.subMenus = null;
11555
11577
  this.showMenu = false;
11578
+ this.$message.error('未分配菜单权限,请联系管理员!');
11556
11579
  }
11557
11580
  } else {
11558
11581
  var _subMenus = this.getMenu(this.menus, this.appCode, 'appCode');
@@ -11574,6 +11597,7 @@ var events = [function (tabs, index, that) {
11574
11597
  } else {
11575
11598
  this.subMenus = null;
11576
11599
  this.showMenu = false;
11600
+ this.$message.error('未分配菜单权限,请联系管理员!');
11577
11601
  }
11578
11602
  }
11579
11603
  } else if (this.initApps && this.initApps.length && !this.indexUrl) {
@@ -11586,10 +11610,10 @@ var events = [function (tabs, index, that) {
11586
11610
  }
11587
11611
  },
11588
11612
 
11589
- /**
11590
- * @desc:设置页面加载类型
11591
- * @author huangbo
11592
- * @date 2024年9月7日
11613
+ /**
11614
+ * @desc:设置页面加载类型
11615
+ * @author huangbo
11616
+ * @date 2024年9月7日
11593
11617
  **/
11594
11618
  setIframeType: function setIframeType(res) {
11595
11619
  var url = res.url;
@@ -11645,10 +11669,10 @@ var events = [function (tabs, index, that) {
11645
11669
  return res;
11646
11670
  },
11647
11671
 
11648
- /**
11649
- * @desc:获取菜单
11650
- * @author huangbo
11651
- * @date 2024年9月7日
11672
+ /**
11673
+ * @desc:获取菜单
11674
+ * @author huangbo
11675
+ * @date 2024年9月7日
11652
11676
  **/
11653
11677
  getMenu: function getMenu(menus, res, key) {
11654
11678
  if (Array.isArray(menus)) {
@@ -11677,10 +11701,10 @@ var events = [function (tabs, index, that) {
11677
11701
  return false;
11678
11702
  },
11679
11703
 
11680
- /**
11681
- * @desc:获取菜单第一条数据
11682
- * @author huangbo
11683
- * @date 2024年9月7日
11704
+ /**
11705
+ * @desc:获取菜单第一条数据
11706
+ * @author huangbo
11707
+ * @date 2024年9月7日
11684
11708
  **/
11685
11709
  getFirst: function getFirst(obj) {
11686
11710
  if (!obj) {
@@ -11699,10 +11723,10 @@ var events = [function (tabs, index, that) {
11699
11723
  }
11700
11724
  },
11701
11725
 
11702
- /**
11703
- * @desc:遍历设置菜单气泡提醒
11704
- * @author huangbo
11705
- * @date 2024年9月7日
11726
+ /**
11727
+ * @desc:遍历设置菜单气泡提醒
11728
+ * @author huangbo
11729
+ * @date 2024年9月7日
11706
11730
  **/
11707
11731
  setTips: function setTips(obj) {
11708
11732
  var _this3 = this;
@@ -11765,10 +11789,10 @@ var events = [function (tabs, index, that) {
11765
11789
  }
11766
11790
  },
11767
11791
 
11768
- /**
11769
- * @desc:获取气泡提醒
11770
- * @author huangbo
11771
- * @date 2024年9月7日
11792
+ /**
11793
+ * @desc:获取气泡提醒
11794
+ * @author huangbo
11795
+ * @date 2024年9月7日
11772
11796
  **/
11773
11797
  getBadge: function getBadge(res) {
11774
11798
  var num = res.tips || 0;
@@ -11782,10 +11806,10 @@ var events = [function (tabs, index, that) {
11782
11806
  };
11783
11807
  },
11784
11808
 
11785
- /**
11786
- * @desc:开启weosocket
11787
- * @author huangbo
11788
- * @date 2024年9月7日
11809
+ /**
11810
+ * @desc:开启weosocket
11811
+ * @author huangbo
11812
+ * @date 2024年9月7日
11789
11813
  **/
11790
11814
  initWebSocket: function initWebSocket() {
11791
11815
  var _this5 = this;
@@ -11823,8 +11847,9 @@ var events = [function (tabs, index, that) {
11823
11847
  _this5.$store.commit('websocket', data);
11824
11848
  } catch (error) {}
11825
11849
  }
11826
- if (_this5.$eventBus) {
11827
- _this5.$eventBus.$emit('websocket', data);
11850
+ var bus = _this5.bus || _this5.$eventBus || _this5.$root.Bus;
11851
+ if (bus) {
11852
+ bus.$emit('websocket', data);
11828
11853
  }
11829
11854
  if (util["a" /* default */].win.eventBus) {
11830
11855
  util["a" /* default */].win.eventBus.$emit('websocket', data);
@@ -11833,10 +11858,10 @@ var events = [function (tabs, index, that) {
11833
11858
  });
11834
11859
  },
11835
11860
 
11836
- /**
11837
- * @desc:显示用户信息
11838
- * @author huangbo
11839
- * @date 2024年9月7日
11861
+ /**
11862
+ * @desc:显示用户信息
11863
+ * @author huangbo
11864
+ * @date 2024年9月7日
11840
11865
  **/
11841
11866
  showUserInfo: function showUserInfo() {
11842
11867
  if (this.showUser === false) {
@@ -11844,19 +11869,19 @@ var events = [function (tabs, index, that) {
11844
11869
  }
11845
11870
  },
11846
11871
 
11847
- /**
11848
- * @desc:删除更多应用菜单点击
11849
- * @author huangbo
11850
- * @date 2024年9月7日
11872
+ /**
11873
+ * @desc:删除更多应用菜单点击
11874
+ * @author huangbo
11875
+ * @date 2024年9月7日
11851
11876
  **/
11852
11877
  handleDelete: function handleDelete(index) {
11853
11878
  this.newApps.splice(index, 1);
11854
11879
  },
11855
11880
 
11856
- /**
11857
- * @desc:储存更多应用菜单点击
11858
- * @author huangbo
11859
- * @date 2024年9月7日
11881
+ /**
11882
+ * @desc:储存更多应用菜单点击
11883
+ * @author huangbo
11884
+ * @date 2024年9月7日
11860
11885
  **/
11861
11886
  handlerClickApps: function handlerClickApps(res) {
11862
11887
  if (res.permission === false) {
@@ -11869,10 +11894,10 @@ var events = [function (tabs, index, that) {
11869
11894
  this.handlerClickApp(res);
11870
11895
  },
11871
11896
 
11872
- /**
11873
- * @desc:侧边应用菜单点击
11874
- * @author huangbo
11875
- * @date 2024年9月7日
11897
+ /**
11898
+ * @desc:侧边应用菜单点击
11899
+ * @author huangbo
11900
+ * @date 2024年9月7日
11876
11901
  **/
11877
11902
  handlerClickApp: function handlerClickApp(res) {
11878
11903
  this.showMsg = false;
@@ -11961,10 +11986,10 @@ var events = [function (tabs, index, that) {
11961
11986
  }
11962
11987
  },
11963
11988
 
11964
- /**
11965
- * @desc:显示Drawer界面
11966
- * @author huangbo
11967
- * @date 2024年9月7日
11989
+ /**
11990
+ * @desc:显示Drawer界面
11991
+ * @author huangbo
11992
+ * @date 2024年9月7日
11968
11993
  **/
11969
11994
  handlerSetDrawer: function handlerSetDrawer(res, type) {
11970
11995
  var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'ltr';
@@ -11984,19 +12009,19 @@ var events = [function (tabs, index, that) {
11984
12009
  }
11985
12010
  },
11986
12011
 
11987
- /**
11988
- * @desc:关闭Drawer界面
11989
- * @author huangbo
11990
- * @date 2024年9月7日
12012
+ /**
12013
+ * @desc:关闭Drawer界面
12014
+ * @author huangbo
12015
+ * @date 2024年9月7日
11991
12016
  **/
11992
12017
  handleCloseDrawer: function handleCloseDrawer() {
11993
12018
  this.drawer = { visible: false };
11994
12019
  },
11995
12020
 
11996
- /**
11997
- * @desc:菜单点击
11998
- * @author huangbo
11999
- * @date 2024年9月7日
12021
+ /**
12022
+ * @desc:菜单点击
12023
+ * @author huangbo
12024
+ * @date 2024年9月7日
12000
12025
  **/
12001
12026
  handlerClickMenu: function handlerClickMenu(res) {
12002
12027
  util["a" /* default */].ajax({
@@ -12045,19 +12070,19 @@ var events = [function (tabs, index, that) {
12045
12070
  },
12046
12071
 
12047
12072
 
12048
- /**
12049
- * @desc:用户详情请求成功
12050
- * @author huangbo
12051
- * @date 2024年9月7日
12073
+ /**
12074
+ * @desc:用户详情请求成功
12075
+ * @author huangbo
12076
+ * @date 2024年9月7日
12052
12077
  **/
12053
12078
  handleSuccess: function handleSuccess(res) {
12054
12079
  this.simpleUserInfo = res.simpleUserInfo;
12055
12080
  },
12056
12081
 
12057
- /**
12058
- * @desc:修改用户配置
12059
- * @author huangbo
12060
- * @date 2024年9月7日
12082
+ /**
12083
+ * @desc:修改用户配置
12084
+ * @author huangbo
12085
+ * @date 2024年9月7日
12061
12086
  **/
12062
12087
  handleChangeConfig: function handleChangeConfig(name, res) {
12063
12088
  if (name == 'userHeadUrl') {
@@ -12073,10 +12098,10 @@ var events = [function (tabs, index, that) {
12073
12098
  }
12074
12099
  },
12075
12100
 
12076
- /**
12077
- * @desc:关闭webSocket
12078
- * @author huangbo
12079
- * @date 2024年9月7日
12101
+ /**
12102
+ * @desc:关闭webSocket
12103
+ * @author huangbo
12104
+ * @date 2024年9月7日
12080
12105
  **/
12081
12106
  handlerClose: function handlerClose() {
12082
12107
  if (this.webSocket) {
@@ -12084,10 +12109,10 @@ var events = [function (tabs, index, that) {
12084
12109
  }
12085
12110
  },
12086
12111
 
12087
- /**
12088
- * @desc:刷新选中iframe页签
12089
- * @author huangbo
12090
- * @date 2024年9月7日
12112
+ /**
12113
+ * @desc:刷新选中iframe页签
12114
+ * @author huangbo
12115
+ * @date 2024年9月7日
12091
12116
  **/
12092
12117
  handleRefresh: function handleRefresh() {
12093
12118
  var i = util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
@@ -12108,10 +12133,10 @@ var events = [function (tabs, index, that) {
12108
12133
  }
12109
12134
  },
12110
12135
 
12111
- /**
12112
- * @desc:删除iframe
12113
- * @author huangbo
12114
- * @date 2024年9月7日
12136
+ /**
12137
+ * @desc:删除iframe
12138
+ * @author huangbo
12139
+ * @date 2024年9月7日
12115
12140
  **/
12116
12141
  handleRemove: function handleRemove(name) {
12117
12142
  var len = this.tabs.length - 1;
@@ -12128,10 +12153,10 @@ var events = [function (tabs, index, that) {
12128
12153
  }
12129
12154
  },
12130
12155
 
12131
- /**
12132
- * @desc:tabs鼠标右键事件
12133
- * @author huangbo
12134
- * @date 2024年9月7日
12156
+ /**
12157
+ * @desc:tabs鼠标右键事件
12158
+ * @author huangbo
12159
+ * @date 2024年9月7日
12135
12160
  **/
12136
12161
  handleContextmenu: function handleContextmenu(tabs, e) {
12137
12162
  var disabled = {};
@@ -12156,10 +12181,10 @@ var events = [function (tabs, index, that) {
12156
12181
  window.addEventListener('click', this.closeTabsEvents);
12157
12182
  },
12158
12183
 
12159
- /**
12160
- * @desc:tabs页签事件
12161
- * @author huangbo
12162
- * @date 2024年9月7日
12184
+ /**
12185
+ * @desc:tabs页签事件
12186
+ * @author huangbo
12187
+ * @date 2024年9月7日
12163
12188
  **/
12164
12189
  handleTabsEvents: function handleTabsEvents(num) {
12165
12190
  if (this.pane !== null) {
@@ -12177,10 +12202,10 @@ var events = [function (tabs, index, that) {
12177
12202
  window.removeEventListener('click', this.closeTabsEvents);
12178
12203
  },
12179
12204
 
12180
- /**
12181
- * @desc:handler工具栏点击事件
12182
- * @author huangbo
12183
- * @date 2024年9月7日
12205
+ /**
12206
+ * @desc:handler工具栏点击事件
12207
+ * @author huangbo
12208
+ * @date 2024年9月7日
12184
12209
  **/
12185
12210
  handleClick: function handleClick(res) {
12186
12211
  var type = res.type,
@@ -12258,10 +12283,10 @@ var events = [function (tabs, index, that) {
12258
12283
  this.$emit('handler-click', res);
12259
12284
  },
12260
12285
 
12261
- /**
12262
- * @desc:退出登录
12263
- * @author huangbo
12264
- * @date 2024年9月7日
12286
+ /**
12287
+ * @desc:退出登录
12288
+ * @author huangbo
12289
+ * @date 2024年9月7日
12265
12290
  **/
12266
12291
  handleQuit: function handleQuit() {
12267
12292
  var _this6 = this;
@@ -12336,10 +12361,10 @@ var events = [function (tabs, index, that) {
12336
12361
  }).catch(function (e) {});
12337
12362
  },
12338
12363
 
12339
- /**
12340
- * @desc:主题、消息回调
12341
- * @author huangbo
12342
- * @date 2024年9月7日
12364
+ /**
12365
+ * @desc:主题、消息回调
12366
+ * @author huangbo
12367
+ * @date 2024年9月7日
12343
12368
  **/
12344
12369
  handleChange: function handleChange(res) {
12345
12370
  var type = res.type,
@@ -12355,10 +12380,10 @@ var events = [function (tabs, index, that) {
12355
12380
  }
12356
12381
  },
12357
12382
 
12358
- /**
12359
- * @desc:菜单布局样式切换
12360
- * @author huangbo
12361
- * @date 2024年9月7日
12383
+ /**
12384
+ * @desc:菜单布局样式切换
12385
+ * @author huangbo
12386
+ * @date 2024年9月7日
12362
12387
  **/
12363
12388
  handleLayout: function handleLayout(res, active) {
12364
12389
  if (active) {
@@ -12367,10 +12392,10 @@ var events = [function (tabs, index, that) {
12367
12392
  this.$emit('chang-layout', res, active);
12368
12393
  },
12369
12394
 
12370
- /**
12371
- * @desc:消息修改总数
12372
- * @author huangbo
12373
- * @date 2024年9月7日
12395
+ /**
12396
+ * @desc:消息修改总数
12397
+ * @author huangbo
12398
+ * @date 2024年9月7日
12374
12399
  **/
12375
12400
  handleMenuTips: function handleMenuTips(id, num) {
12376
12401
  if (num) {
@@ -12381,10 +12406,10 @@ var events = [function (tabs, index, that) {
12381
12406
  }
12382
12407
  },
12383
12408
 
12384
- /**
12385
- * @desc:处理即时消息
12386
- * @author huangbo
12387
- * @date 2024年9月7日
12409
+ /**
12410
+ * @desc:处理即时消息
12411
+ * @author huangbo
12412
+ * @date 2024年9月7日
12388
12413
  **/
12389
12414
  handleOpened: function handleOpened(res) {
12390
12415
  var _this7 = this;
@@ -12508,18 +12533,18 @@ var events = [function (tabs, index, that) {
12508
12533
 
12509
12534
  var simplicity_component = Object(componentNormalizer["a" /* default */])(
12510
12535
  src_simplicityvue_type_script_lang_js_,
12511
- simplicityvue_type_template_id_532a2b35_scoped_true_render,
12512
- simplicityvue_type_template_id_532a2b35_scoped_true_staticRenderFns,
12536
+ simplicityvue_type_template_id_634782ec_scoped_true_render,
12537
+ simplicityvue_type_template_id_634782ec_scoped_true_staticRenderFns,
12513
12538
  false,
12514
12539
  null,
12515
- "532a2b35",
12540
+ "634782ec",
12516
12541
  null
12517
12542
 
12518
12543
  )
12519
12544
 
12520
12545
  /* harmony default export */ var simplicity = (simplicity_component.exports);
12521
- // 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=0d60331a&
12522
- var defaultvue_type_template_id_0d60331a_render = function () {
12546
+ // 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=377c361a&
12547
+ var defaultvue_type_template_id_377c361a_render = function () {
12523
12548
  var _vm = this
12524
12549
  var _h = _vm.$createElement
12525
12550
  var _c = _vm._self._c || _h
@@ -13070,11 +13095,11 @@ var defaultvue_type_template_id_0d60331a_render = function () {
13070
13095
  1
13071
13096
  )
13072
13097
  }
13073
- var defaultvue_type_template_id_0d60331a_staticRenderFns = []
13074
- defaultvue_type_template_id_0d60331a_render._withStripped = true
13098
+ var defaultvue_type_template_id_377c361a_staticRenderFns = []
13099
+ defaultvue_type_template_id_377c361a_render._withStripped = true
13075
13100
 
13076
13101
 
13077
- // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=0d60331a&
13102
+ // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=377c361a&
13078
13103
 
13079
13104
  // 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=516cb128&
13080
13105
  var userinfovue_type_template_id_516cb128_render = function () {
@@ -15112,8 +15137,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15112
15137
  },
15113
15138
  setTitle: function setTitle(id) {
15114
15139
  var node = void 0;
15115
- for (var _i = 0; _i < this.menus.length; _i++) {
15116
- var item = this.menus[_i];
15140
+ for (var i = 0; i < this.menus.length; i++) {
15141
+ var item = this.menus[i];
15117
15142
  if (item.id == id) {
15118
15143
  this.title = item.text;
15119
15144
  node = item;
@@ -15223,88 +15248,88 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15223
15248
  useCaseCodes: results.resourceCodes || results.userModel.resourceCodes
15224
15249
  }
15225
15250
  });
15226
- for (var _i2 in results) {
15227
- if (_i2 === 'mainLogoUrl' && results[_i2]) {
15228
- this.mainLogo = results[_i2];
15251
+ for (var i in results) {
15252
+ if (i === 'mainLogoUrl' && results[i]) {
15253
+ this.mainLogo = results[i];
15229
15254
  }
15230
- if (_i2 === 'mainBannerUrl' && results[_i2] && this.headerImage === undefined) {
15231
- this.headerImg = results[_i2];
15255
+ if (i === 'mainBannerUrl' && results[i] && this.headerImage === undefined) {
15256
+ this.headerImg = results[i];
15232
15257
  }
15233
- if (_i2 === 'initApplication' && results[_i2]) {
15234
- this.results[_i2] = results[_i2].split(',');
15258
+ if (i === 'initApplication' && results[i]) {
15259
+ this.results[i] = results[i].split(',');
15235
15260
  }
15236
- if (_i2 === 'indexUrl' && results[_i2]) {
15237
- this.homePage = results[_i2];
15261
+ if (i === 'indexUrl' && results[i]) {
15262
+ this.homePage = results[i];
15238
15263
  }
15239
- if (_i2 === 'doorIndex' && results[_i2]) {
15240
- window.open(results[_i2]);
15241
- this.doorIndex = results[_i2];
15264
+ if (i === 'doorIndex' && results[i]) {
15265
+ window.open(results[i]);
15266
+ this.doorIndex = results[i];
15242
15267
  }
15243
- if (_i2 === 'subsystemName' && results[_i2]) {
15244
- document.title = results[_i2];
15268
+ if (i === 'subsystemName' && results[i]) {
15269
+ document.title = results[i];
15245
15270
  }
15246
- if (_i2 === 'loginPage' && results[_i2]) {
15247
- util["a" /* default */].setStorage('loginPage', results[_i2]);
15271
+ if (i === 'loginPage' && results[i]) {
15272
+ util["a" /* default */].setStorage('loginPage', results[i]);
15248
15273
  }
15249
- if (_i2 === 'sysLogoIco' && results[_i2]) {
15250
- localStorage.setItem('sysLogoIco', results[_i2]);
15251
- util["a" /* default */].setFavicon(results[_i2]);
15274
+ if (i === 'sysLogoIco' && results[i]) {
15275
+ localStorage.setItem('sysLogoIco', results[i]);
15276
+ util["a" /* default */].setFavicon(results[i]);
15252
15277
  }
15253
- if (_i2 === 'userStyle' && results[_i2]) {
15254
- if (results[_i2].color) {
15255
- var color = unescape(results[_i2].color).toLowerCase();
15278
+ if (i === 'userStyle' && results[i]) {
15279
+ if (results[i].color) {
15280
+ var color = unescape(results[i].color).toLowerCase();
15256
15281
  if (util["a" /* default */].startWith(color, '#')) {
15257
15282
  this.color = color;
15258
15283
  }
15259
15284
  }
15260
- if (results[_i2].indexUrl) {
15261
- this.homePage = results[_i2].indexUrl;
15285
+ if (results[i].indexUrl) {
15286
+ this.homePage = results[i].indexUrl;
15262
15287
  }
15263
15288
  }
15264
- if (_i2 === 'subsystemExtend' && results[_i2]) {
15265
- if (results[_i2].singleLogout) {
15266
- this.singleLogout = results[_i2].singleLogout.split(',');
15289
+ if (i === 'subsystemExtend' && results[i]) {
15290
+ if (results[i].singleLogout) {
15291
+ this.singleLogout = results[i].singleLogout.split(',');
15267
15292
  }
15268
- if (results[_i2].themeColor) {
15269
- this.color = unescape(results[_i2].themeColor).toLowerCase();
15293
+ if (results[i].themeColor) {
15294
+ this.color = unescape(results[i].themeColor).toLowerCase();
15270
15295
  }
15271
- if (results[_i2].userInfoContents) {
15272
- this.userInfoContents = results[_i2].userInfoContents;
15296
+ if (results[i].userInfoContents) {
15297
+ this.userInfoContents = results[i].userInfoContents;
15273
15298
  }
15274
- if (results[_i2].webPageWatermark) {
15299
+ if (results[i].webPageWatermark) {
15275
15300
  try {
15276
- util["a" /* default */].win.webPageWatermark = results[_i2].webPageWatermark;
15277
- util["a" /* default */].watermark(results[_i2].webPageWatermark);
15301
+ util["a" /* default */].win.webPageWatermark = results[i].webPageWatermark;
15302
+ util["a" /* default */].watermark(results[i].webPageWatermark);
15278
15303
  } catch (error) {}
15279
15304
  }
15280
- if (results[_i2].loginPage) {
15281
- util["a" /* default */].setStorage('loginPage', results[_i2].loginPage);
15305
+ if (results[i].loginPage) {
15306
+ util["a" /* default */].setStorage('loginPage', results[i].loginPage);
15282
15307
  }
15283
- if (results[_i2].portalPage || results[_i2].portalpage) {
15284
- this.doorIndex = results[_i2].portalPage || results[_i2].portalpage;
15308
+ if (results[i].portalPage || results[i].portalpage) {
15309
+ this.doorIndex = results[i].portalPage || results[i].portalpage;
15285
15310
  }
15286
- if (results[_i2].multipleVersion) {
15311
+ if (results[i].multipleVersion) {
15287
15312
  this.showSet = true;
15288
15313
  }
15289
- if (results[_i2].topRightToolHide) {
15290
- this.topRightToolHide = results[_i2].topRightToolHide;
15314
+ if (results[i].topRightToolHide) {
15315
+ this.topRightToolHide = results[i].topRightToolHide;
15291
15316
  }
15292
- if (results[_i2].contact) {
15293
- var contact = JSON.parse(results[_i2].contact);
15317
+ if (results[i].contact) {
15318
+ var contact = JSON.parse(results[i].contact);
15294
15319
  var content = contact.content.split(',');
15295
15320
  this.contact = defaultvue_type_script_lang_js_extends({}, contact, {
15296
15321
  content: content
15297
15322
  });
15298
15323
  }
15299
- if (results[_i2].aiConfig) {
15300
- if (typeof results[_i2].aiConfig == 'string') {
15324
+ if (results[i].aiConfig) {
15325
+ if (typeof results[i].aiConfig == 'string') {
15301
15326
  try {
15302
- this.aiConfig = JSON.parse(results[_i2].aiConfig);
15327
+ this.aiConfig = JSON.parse(results[i].aiConfig);
15303
15328
  } catch (error) {
15304
- this.aiConfig = { url: results[_i2].aiConfig };
15329
+ this.aiConfig = { url: results[i].aiConfig };
15305
15330
  }
15306
15331
  } else {
15307
- this.aiConfig = results[_i2].aiConfig;
15332
+ this.aiConfig = results[i].aiConfig;
15308
15333
  }
15309
15334
  this.$nextTick(function () {
15310
15335
  // util.draggableMove({
@@ -15314,19 +15339,19 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15314
15339
  // });
15315
15340
  });
15316
15341
  }
15317
- if (results[_i2].imConfig) {
15318
- if (typeof results[_i2].imConfig == 'string') {
15342
+ if (results[i].imConfig) {
15343
+ if (typeof results[i].imConfig == 'string') {
15319
15344
  try {
15320
- this.imConfig = JSON.parse(results[_i2].imConfig);
15345
+ this.imConfig = JSON.parse(results[i].imConfig);
15321
15346
  } catch (error) {
15322
- this.imConfig = { url: results[_i2].imConfig };
15347
+ this.imConfig = { url: results[i].imConfig };
15323
15348
  }
15324
15349
  } else {
15325
- this.imConfig = results[_i2].imConfig;
15350
+ this.imConfig = results[i].imConfig;
15326
15351
  }
15327
15352
  }
15328
15353
  }
15329
- store["a" /* default */].set(_i2, results[_i2]);
15354
+ store["a" /* default */].set(i, results[i]);
15330
15355
  }
15331
15356
  if (this.isLoadHomePage && this.homePage) {
15332
15357
  var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
@@ -15335,7 +15360,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15335
15360
  hash = hash.split('?')[0];
15336
15361
  }
15337
15362
  var jump = sessionStorage.getItem('jump');
15338
- if (!applicationid && !this.menuCode && (!jump || !this.isHistory) && (hash === '#/' || hash === '#/main') || jump == results[i]) {
15363
+ if (!applicationid && !this.menuCode && (!jump || !this.isHistory) && (hash === '#/' || hash === '#/main') || jump == this.homePage) {
15339
15364
  if (this.isHomePage) {
15340
15365
  if (this.menus && this.menus.length) {
15341
15366
  var ids = ids = this.getId(this.menus, this.homePage);
@@ -15355,9 +15380,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15355
15380
  },
15356
15381
 
15357
15382
  //初始用户配置及信息
15358
- init: function init(results) {
15383
+ init: function init(results, first) {
15359
15384
  this.setConfig(results);
15360
- if (this.remote) {
15385
+ if (this.remote && first) {
15361
15386
  this.getMenu();
15362
15387
  } else {
15363
15388
  this.renderMenu();
@@ -15469,8 +15494,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15469
15494
  if (!url) {
15470
15495
  return false;
15471
15496
  }
15472
- for (var _i3 = 0; _i3 < menus.length; _i3++) {
15473
- var item = menus[_i3];
15497
+ for (var i = 0; i < menus.length; i++) {
15498
+ var item = menus[i];
15474
15499
  if (item.id === url || item.appCode && item.appCode === url) {
15475
15500
  if (item.url) {
15476
15501
  if (Object.prototype.hasOwnProperty.call(item, 'children') && item.children.length) {
@@ -15657,10 +15682,10 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15657
15682
  }
15658
15683
  }
15659
15684
  if (this.application) {
15660
- for (var _i4 = 0; _i4 < res.length; _i4++) {
15661
- if (res[_i4].hasPermission) {
15662
- this.menu = res[_i4].children;
15663
- this.title = res[_i4].text;
15685
+ for (var i = 0; i < res.length; i++) {
15686
+ if (res[i].hasPermission) {
15687
+ this.menu = res[i].children;
15688
+ this.title = res[i].text;
15664
15689
  break;
15665
15690
  }
15666
15691
  }
@@ -15823,10 +15848,10 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15823
15848
  } else {
15824
15849
  this.active = active.slice(1);
15825
15850
  }
15826
- for (var _i5 = 0; _i5 < res.length; _i5++) {
15827
- if (res[_i5].id === active[0]) {
15828
- this.menu = res[_i5].children;
15829
- this.title = res[_i5].text;
15851
+ for (var i = 0; i < res.length; i++) {
15852
+ if (res[i].id === active[0]) {
15853
+ this.menu = res[i].children;
15854
+ this.title = res[i].text;
15830
15855
  break;
15831
15856
  }
15832
15857
  }
@@ -15846,8 +15871,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15846
15871
 
15847
15872
  //获取页面类型及地址
15848
15873
  getUrl: function getUrl(res, active, param) {
15849
- for (var _i6 = 0; _i6 < res.length; _i6++) {
15850
- var item = res[_i6];
15874
+ for (var i = 0; i < res.length; i++) {
15875
+ var item = res[i];
15851
15876
  if (item.id === active) {
15852
15877
  if (item.url) {
15853
15878
  this.handleJump(item.url, item.urlopenmode, item, param);
@@ -15875,9 +15900,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15875
15900
  setUrl: function setUrl(url, param) {
15876
15901
  var obj = param ? param : {};
15877
15902
  var params = util["a" /* default */].getParams({ url: url }, true);
15878
- for (var _i7 in params) {
15879
- if (_i7 != 'model' && _i7 != 'view' && _i7 != '_baseUrl') {
15880
- obj[_i7] = params[_i7];
15903
+ for (var i in params) {
15904
+ if (i != 'model' && i != 'view' && i != '_baseUrl') {
15905
+ obj[i] = params[i];
15881
15906
  }
15882
15907
  }
15883
15908
  var _url = params._baseUrl ? params._baseUrl : './primary.html';
@@ -16053,8 +16078,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
16053
16078
  return false;
16054
16079
  }
16055
16080
  if (Array.isArray(res)) {
16056
- for (var _i8 in res) {
16057
- var path = this.hasRouter(res[_i8], url);
16081
+ for (var i in res) {
16082
+ var path = this.hasRouter(res[i], url);
16058
16083
  if (path) {
16059
16084
  return path;
16060
16085
  }
@@ -16273,8 +16298,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
16273
16298
  },
16274
16299
  getFourthTabs: function getFourthTabs(menus, id) {
16275
16300
  if (Array.isArray(menus)) {
16276
- for (var _i9 = 0; _i9 < menus.length; _i9++) {
16277
- var fourth = this.getFourthTabs(menus[_i9], id);
16301
+ for (var i = 0; i < menus.length; i++) {
16302
+ var fourth = this.getFourthTabs(menus[i], id);
16278
16303
  if (fourth) {
16279
16304
  return fourth;
16280
16305
  }
@@ -16284,8 +16309,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
16284
16309
  return menus;
16285
16310
  }
16286
16311
  if (menus.children && menus.children.length) {
16287
- for (var _i10 = 0; _i10 < menus.children.length; _i10++) {
16288
- var _fourth = this.getFourthTabs(menus.children[_i10], id);
16312
+ for (var _i = 0; _i < menus.children.length; _i++) {
16313
+ var _fourth = this.getFourthTabs(menus.children[_i], id);
16289
16314
  if (_fourth) {
16290
16315
  return _fourth;
16291
16316
  }
@@ -16390,26 +16415,26 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
16390
16415
  take: api["oc" /* topic */],
16391
16416
  success: function success(res) {
16392
16417
  var data = res.data || {};
16393
- for (var _i11 in data) {
16394
- if (data[_i11] !== null && data[_i11] !== undefined) {
16395
- if (_i11 === 'onlineUserNums' && data[_i11] > 0) {
16396
- _this11.online = data[_i11];
16418
+ for (var i in data) {
16419
+ if (data[i] !== null && data[i] !== undefined) {
16420
+ if (i === 'onlineUserNums' && data[i] > 0) {
16421
+ _this11.online = data[i];
16397
16422
  }
16398
- if (_i11 === 'sysMsgNums' && data[_i11] !== null) {
16399
- _this11.notice = data[_i11];
16423
+ if (i === 'sysMsgNums' && data[i] !== null) {
16424
+ _this11.notice = data[i];
16400
16425
  if (_this11.showMsg) {
16401
16426
  _this11.$refs.message.getMsg(true);
16402
16427
  }
16403
16428
  }
16404
- if (_i11 === 'menuTipsMap' && data[_i11] !== null) {
16405
- _this11.menuTips = data[_i11];
16429
+ if (i === 'menuTipsMap' && data[i] !== null) {
16430
+ _this11.menuTips = data[i];
16406
16431
  }
16407
- if (_i11 === 'sysMsgList' && data[_i11] !== null) {
16408
- _this11.sysMsg = data[_i11];
16409
- data[_i11] && data[_i11].length && _this11.$emit('bus-emit', 'waitdone');
16432
+ if (i === 'sysMsgList' && data[i] !== null) {
16433
+ _this11.sysMsg = data[i];
16434
+ data[i] && data[i].length && _this11.$emit('bus-emit', 'waitdone');
16410
16435
  }
16411
- if (_i11 === 'extraData' && data[_i11] !== null) {
16412
- _this11.extraData = data[_i11];
16436
+ if (i === 'extraData' && data[i] !== null) {
16437
+ _this11.extraData = data[i];
16413
16438
  }
16414
16439
  }
16415
16440
  }
@@ -16418,8 +16443,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
16418
16443
  _this11.$store.commit('websocket', data);
16419
16444
  } catch (error) {}
16420
16445
  }
16421
- if (_this11.$eventBus) {
16422
- _this11.$eventBus.$emit('websocket', data);
16446
+ var bus = _this11.bus || _this11.$eventBus || _this11.$root.Bus;
16447
+ if (bus) {
16448
+ bus.$emit('websocket', data);
16423
16449
  }
16424
16450
  if (util["a" /* default */].win.eventBus) {
16425
16451
  util["a" /* default */].win.eventBus.$emit('websocket', data);
@@ -16516,8 +16542,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
16516
16542
 
16517
16543
  var default_component = Object(componentNormalizer["a" /* default */])(
16518
16544
  src_defaultvue_type_script_lang_js_,
16519
- defaultvue_type_template_id_0d60331a_render,
16520
- defaultvue_type_template_id_0d60331a_staticRenderFns,
16545
+ defaultvue_type_template_id_377c361a_render,
16546
+ defaultvue_type_template_id_377c361a_staticRenderFns,
16521
16547
  false,
16522
16548
  null,
16523
16549
  null,
@@ -16530,9 +16556,6 @@ var default_component = Object(componentNormalizer["a" /* default */])(
16530
16556
  var external_wujie_vue2_ = __webpack_require__(17);
16531
16557
  var external_wujie_vue2_default = /*#__PURE__*/__webpack_require__.n(external_wujie_vue2_);
16532
16558
 
16533
- // EXTERNAL MODULE: external "lodash"
16534
- var external_lodash_ = __webpack_require__(12);
16535
-
16536
16559
  // 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&
16537
16560
  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; }
16538
16561
 
@@ -16590,7 +16613,6 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
16590
16613
 
16591
16614
 
16592
16615
 
16593
-
16594
16616
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
16595
16617
  name: 'EsMain',
16596
16618
  inheritAttrs: false,
@@ -16657,83 +16679,109 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
16657
16679
  mounted: function mounted() {
16658
16680
  var _this = this;
16659
16681
 
16660
- this.getConfig(this.params);
16682
+ console.log('params', this.$refs, this.$refs.main);
16683
+
16684
+ var token = util["a" /* default */].getStorage('token') || util["a" /* default */].getStorage('Authorization');
16685
+ this.isLogin = token ? true : this.isLogin;
16686
+ if (!token && Object.prototype.hasOwnProperty.call(this.params, 'serverId') && Object.prototype.hasOwnProperty.call(this.params, 'authType')) {
16687
+ return false;
16688
+ }
16661
16689
  if (this.isLogin) {
16662
16690
  if (util["a" /* default */].win.$wujie) {
16663
16691
  util["a" /* default */].win.$wujie.bus.$on('changeTheme', function (res) {
16664
16692
  util["a" /* default */].updateTheme(res);
16665
16693
  });
16666
16694
  }
16667
-
16668
- var bus = this.bus || this.$root.Bus;
16669
- if (bus) {
16670
- bus.$on('reLogin', this.handleReLogin);
16671
- bus.$on('refresh', this.$refs.main.handleRefresh);
16672
- bus.$on('jumpMenu', this.$refs.main.jumpMenu);
16673
- bus.$on('emit', function (method, args) {
16695
+ this.$nextTick(function () {
16696
+ _this.getConfig();
16697
+ var bus = _this.bus || _this.$root.Bus;
16698
+ if (bus) {
16699
+ bus.$on('reLogin', _this.handleReLogin);
16700
+ bus.$on('refresh', _this.$refs.main.handleRefresh);
16701
+ bus.$on('jumpMenu', _this.$refs.main.jumpMenu);
16702
+ bus.$on('emit', function (method, args) {
16703
+ // 主应用发送事件
16704
+ bus.$emit(method, args);
16705
+ });
16706
+ }
16707
+ util["a" /* default */].win.reLogin = _this.handleReLogin;
16708
+ util["a" /* default */].win.windowOpen = _this.openPage;
16709
+ util["a" /* default */].win.refresh = _this.$refs.main.handleRefresh;
16710
+ util["a" /* default */].win.jumpMenu = _this.$refs.main.jumpMenu;
16711
+ external_wujie_vue2_default.a.bus.$on('reLogin', _this.handleReLogin);
16712
+ external_wujie_vue2_default.a.bus.$on('refresh', _this.$refs.main.handleRefresh);
16713
+ external_wujie_vue2_default.a.bus.$on('jumpMenu', _this.$refs.main.jumpMenu);
16714
+ external_wujie_vue2_default.a.bus.$on('emit', function (method, args) {
16674
16715
  // 主应用发送事件
16675
- bus.$emit(method, args);
16716
+ external_wujie_vue2_default.a.bus.$emit(method, args);
16676
16717
  });
16677
- }
16678
- util["a" /* default */].win.reLogin = this.handleReLogin;
16679
- util["a" /* default */].win.windowOpen = this.openPage;
16680
- util["a" /* default */].win.refresh = this.$refs.main.handleRefresh;
16681
- util["a" /* default */].win.jumpMenu = this.$refs.main.jumpMenu;
16682
- external_wujie_vue2_default.a.bus.$on('reLogin', this.handleReLogin);
16683
- external_wujie_vue2_default.a.bus.$on('refresh', this.$refs.main.handleRefresh);
16684
- external_wujie_vue2_default.a.bus.$on('jumpMenu', this.$refs.main.jumpMenu);
16685
- external_wujie_vue2_default.a.bus.$on('emit', function (method, args) {
16686
- // 主应用发送事件
16687
- external_wujie_vue2_default.a.bus.$emit(method, args);
16688
- });
16689
16718
 
16690
- window.addEventListener('message', function (e) {
16691
- var _$refs$main;
16719
+ window.addEventListener('message', function (e) {
16720
+ var _$refs$main;
16692
16721
 
16693
- var _e$data = e.data,
16694
- method = _e$data.method,
16695
- args = _e$data.args;
16722
+ var _e$data = e.data,
16723
+ method = _e$data.method,
16724
+ args = _e$data.args;
16696
16725
 
16697
- switch (method) {
16698
- case 'reLogin':
16699
- _this.handleReLogin(args);
16700
- break;
16701
- case 'refresh':
16702
- _this.$refs.main.handleRefresh(args);
16703
- break;
16704
- case 'jumpMenu':
16705
- Array.isArray(args) ? (_$refs$main = _this.$refs.main).jumpMenu.apply(_$refs$main, args) : _this.$refs.main.jumpMenu(args);
16706
- break;
16707
- case 'emit':
16708
- var origin = args.origin,
16709
- data = _objectWithoutProperties(args, ['origin']);
16726
+ switch (method) {
16727
+ case 'reLogin':
16728
+ _this.handleReLogin(args);
16729
+ break;
16730
+ case 'refresh':
16731
+ _this.$refs.main.handleRefresh(args);
16732
+ break;
16733
+ case 'jumpMenu':
16734
+ Array.isArray(args) ? (_$refs$main = _this.$refs.main).jumpMenu.apply(_$refs$main, args) : _this.$refs.main.jumpMenu(args);
16735
+ break;
16736
+ case 'emit':
16737
+ var origin = args.origin,
16738
+ data = _objectWithoutProperties(args, ['origin']);
16710
16739
 
16711
- var iframes = document.getElementsByTagName('iframe');
16712
- iframes = iframes.filter(function (item) {
16713
- return origin ? item.src.indexOf(origin) > -1 : item.src.indexOf(e.origin) == -1;
16714
- });
16715
- for (var i = 0; i < iframes.length; i++) {
16716
- iframes[i] && iframes[i].contentWindow.postMessage(data, origin ? origin : '*');
16717
- }
16718
- break;
16719
- case 'openDialog':
16720
- _this.dialogs.push(args);
16721
- var index = _this.visibles.length;
16722
- _this.visibles.push(false);
16723
- _this.$nextTick(function () {
16724
- _this.$set(_this.visibles, index, true);
16725
- });
16726
- break;
16727
- case 'closeDialog':
16728
- for (var _i = 0; _i < _this.dialogs.length; _i++) {
16729
- var item = _this.dialogs[_i];
16730
- if (item.url == args.url) {
16731
- _this.$set(_this.visibles, _i, false);
16740
+ var iframes = document.getElementsByTagName('iframe');
16741
+ iframes = iframes.filter(function (item) {
16742
+ return origin ? item.src.indexOf(origin) > -1 : item.src.indexOf(e.origin) == -1;
16743
+ });
16744
+ for (var i = 0; i < iframes.length; i++) {
16745
+ iframes[i] && iframes[i].contentWindow.postMessage(data, origin ? origin : '*');
16732
16746
  }
16733
- }
16734
- break;
16735
- }
16747
+ break;
16748
+ case 'openDialog':
16749
+ _this.dialogs.push(args);
16750
+ var index = _this.visibles.length;
16751
+ _this.visibles.push(false);
16752
+ _this.$nextTick(function () {
16753
+ _this.$set(_this.visibles, index, true);
16754
+ });
16755
+ break;
16756
+ case 'closeDialog':
16757
+ for (var _i = 0; _i < _this.dialogs.length; _i++) {
16758
+ var item = _this.dialogs[_i];
16759
+ if (item.url == args.url) {
16760
+ _this.$set(_this.visibles, _i, false);
16761
+ }
16762
+ }
16763
+ break;
16764
+ }
16765
+ });
16736
16766
  });
16767
+ } else {
16768
+ var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
16769
+ if (loginPage) {
16770
+ window.location.replace(loginPage);
16771
+ } else if (document.referrer) {
16772
+ var referrerUrl = new URL(document.referrer);
16773
+ if (referrerUrl.host !== window.location.host) {
16774
+ window.location.replace(document.referrer);
16775
+ } else if (window.location.href.indexOf('main.html') > -1 || window.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
16776
+ window.location.href = './login.html';
16777
+ } else {
16778
+ next('/login');
16779
+ }
16780
+ } else if (window.location.href.indexOf('main.html') > -1) {
16781
+ window.location.href = './login.html';
16782
+ } else {
16783
+ next('/login');
16784
+ }
16737
16785
  }
16738
16786
  },
16739
16787
 
@@ -16848,22 +16896,15 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
16848
16896
  * @author huangbo
16849
16897
  * @date 2024年9月7日
16850
16898
  **/
16851
- getConfig: function getConfig(query) {
16899
+ getConfig: function getConfig() {
16852
16900
  var _this4 = this;
16853
16901
 
16854
- var token = util["a" /* default */].getStorage('token') || util["a" /* default */].getStorage('Authorization');
16855
- this.isLogin = token ? true : this.isLogin;
16856
- if (!token && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType')) {
16857
- return false;
16858
- }
16859
16902
  var mainConfig = util["a" /* default */].getStorage('mainConfig');
16860
16903
  if (mainConfig) {
16861
16904
  mainConfig = JSON.parse(mainConfig);
16862
- this.$nextTick(function () {
16863
- _this4.$refs.main.init(mainConfig, true);
16864
- util["a" /* default */].getMainConfig(function (res) {
16865
- _this4.$refs.main.init(res, false);
16866
- });
16905
+ this.$refs.main.init(mainConfig, true);
16906
+ util["a" /* default */].getMainConfig(function (res) {
16907
+ _this4.$refs.main.init(res, false);
16867
16908
  });
16868
16909
  } else {
16869
16910
  util["a" /* default */].getMainConfig(function (res) {