eoss-ui 0.7.56 → 0.7.58

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 (246) hide show
  1. package/lib/calogin.js +233 -233
  2. package/lib/eoss-ui.common.js +842 -820
  3. package/lib/flow-group.js +17 -4
  4. package/lib/flow-list.js +81 -81
  5. package/lib/flow.js +308 -303
  6. package/lib/index.js +1 -1
  7. package/lib/main.js +179 -175
  8. package/lib/qr-code.js +13 -13
  9. package/package.json +160 -160
  10. package/packages/button/index.js +5 -5
  11. package/packages/button/src/main.vue +418 -418
  12. package/packages/button-group/index.js +5 -5
  13. package/packages/button-group/src/main.vue +346 -346
  14. package/packages/calendar/index.js +5 -5
  15. package/packages/calogin/index.js +5 -5
  16. package/packages/calogin/src/main.vue +412 -412
  17. package/packages/calogin/src/plugin.js +915 -915
  18. package/packages/card/index.js +5 -5
  19. package/packages/card/src/main.vue +156 -156
  20. package/packages/cascader/index.js +5 -5
  21. package/packages/cascader/src/main.vue +168 -168
  22. package/packages/checkbox-group/index.js +5 -5
  23. package/packages/checkbox-group/src/main.vue +333 -333
  24. package/packages/clients/index.js +5 -5
  25. package/packages/clients/src/main.vue +151 -151
  26. package/packages/data-table/index.js +5 -5
  27. package/packages/data-table/src/children.vue +39 -39
  28. package/packages/data-table/src/column.vue +992 -992
  29. package/packages/data-table/src/main.vue +1840 -1840
  30. package/packages/data-table/src/sizer.vue +195 -195
  31. package/packages/data-table-form/index.js +5 -5
  32. package/packages/data-table-form/src/checkbox.vue +101 -101
  33. package/packages/data-table-form/src/colgroup.vue +17 -17
  34. package/packages/data-table-form/src/main.vue +181 -181
  35. package/packages/data-table-form/src/radio.vue +65 -65
  36. package/packages/data-table-form/src/table.vue +233 -233
  37. package/packages/data-table-form/src/tbody.vue +336 -336
  38. package/packages/data-table-form/src/thead.vue +68 -68
  39. package/packages/date-picker/index.js +5 -5
  40. package/packages/date-picker/src/main.vue +236 -236
  41. package/packages/dialog/index.js +5 -5
  42. package/packages/enable-drag/index.js +5 -5
  43. package/packages/enterprise/index.js +5 -5
  44. package/packages/enterprise/src/main.vue +66 -66
  45. package/packages/error-page/index.js +5 -5
  46. package/packages/error-page/src/main.vue +44 -44
  47. package/packages/flow/index.js +5 -5
  48. package/packages/flow/src/component/Circulate.vue +413 -413
  49. package/packages/flow/src/component/CommonOpinions.vue +374 -373
  50. package/packages/flow/src/component/CustomPreset.vue +322 -322
  51. package/packages/flow/src/component/FileList.vue +97 -97
  52. package/packages/flow/src/component/FreeCirculation.vue +241 -241
  53. package/packages/flow/src/component/Preset.vue +255 -255
  54. package/packages/flow/src/component/SendMsg.vue +242 -242
  55. package/packages/flow/src/component/TimeLimit.vue +190 -190
  56. package/packages/flow/src/component/taskUnionExamine.vue +756 -756
  57. package/packages/flow/src/form.vue +123 -121
  58. package/packages/flow/src/freeStartFlow.vue +2846 -2846
  59. package/packages/flow/src/main.vue +3878 -3878
  60. package/packages/flow/src/processForm.vue +1365 -1365
  61. package/packages/flow/src/processReject.vue +309 -309
  62. package/packages/flow/src/reset.vue +942 -942
  63. package/packages/flow/src/startTaskRead.vue +693 -692
  64. package/packages/flow/src/supervise.vue +159 -159
  65. package/packages/flow/src/table.vue +58 -58
  66. package/packages/flow-group/index.js +5 -5
  67. package/packages/flow-group/src/main.vue +732 -717
  68. package/packages/flow-list/index.js +5 -5
  69. package/packages/flow-list/src/main.vue +1801 -1801
  70. package/packages/form/index.js +5 -5
  71. package/packages/form/src/main.vue +3901 -3901
  72. package/packages/form/src/table.vue +1512 -1512
  73. package/packages/handle-user/index.js +5 -5
  74. package/packages/handle-user/src/main.vue +137 -137
  75. package/packages/handler/index.js +5 -5
  76. package/packages/handler/src/main.vue +496 -496
  77. package/packages/icon/index.js +5 -5
  78. package/packages/icon/src/main.vue +104 -104
  79. package/packages/icons/index.js +5 -5
  80. package/packages/icons/src/main.vue +81 -81
  81. package/packages/input/index.js +5 -5
  82. package/packages/input/src/main.vue +356 -356
  83. package/packages/input-number/index.js +5 -5
  84. package/packages/input-number/src/main.vue +106 -106
  85. package/packages/label/index.js +5 -5
  86. package/packages/label/src/main.vue +457 -457
  87. package/packages/layout/index.js +5 -5
  88. package/packages/layout/src/item.vue +152 -152
  89. package/packages/layout/src/main.vue +31 -31
  90. package/packages/login/index.js +5 -5
  91. package/packages/login/src/main.vue +2082 -2082
  92. package/packages/login/src/resetPassword.vue +557 -557
  93. package/packages/main/index.js +5 -5
  94. package/packages/main/src/default/message.vue +249 -249
  95. package/packages/main/src/default/notice.vue +157 -157
  96. package/packages/main/src/default/userinfo.vue +503 -503
  97. package/packages/main/src/main.vue +2 -2
  98. package/packages/main/src/public/online.vue +89 -89
  99. package/packages/main/src/public/search.vue +464 -464
  100. package/packages/main/src/public/settings.vue +227 -227
  101. package/packages/main/src/simplicity/apps.vue +388 -388
  102. package/packages/main/src/simplicity/avatar.vue +82 -82
  103. package/packages/main/src/simplicity/handler.vue +160 -160
  104. package/packages/main/src/simplicity/index.vue +2305 -2307
  105. package/packages/main/src/simplicity/lists.vue +84 -84
  106. package/packages/main/src/simplicity/menu-list.vue +135 -135
  107. package/packages/main/src/simplicity/message.vue +293 -293
  108. package/packages/main/src/simplicity/notice.vue +222 -222
  109. package/packages/main/src/simplicity/router-page.vue +45 -45
  110. package/packages/main/src/simplicity/sub-menu.vue +274 -274
  111. package/packages/main/src/simplicity/user.vue +259 -259
  112. package/packages/main/src/simplicity/userinfo.vue +401 -401
  113. package/packages/menu/index.js +5 -5
  114. package/packages/menu/src/main.vue +595 -595
  115. package/packages/nav/index.js +5 -5
  116. package/packages/nav/src/main.vue +351 -351
  117. package/packages/notify/index.js +5 -5
  118. package/packages/notify/src/main.vue +538 -538
  119. package/packages/page/index.js +5 -5
  120. package/packages/page/src/main.vue +167 -167
  121. package/packages/pagination/index.js +5 -5
  122. package/packages/pagination/src/main.vue +96 -96
  123. package/packages/player/index.js +5 -5
  124. package/packages/player/src/main.vue +194 -194
  125. package/packages/qr-code/index.js +5 -5
  126. package/packages/qr-code/src/main.vue +170 -170
  127. package/packages/radio-group/index.js +6 -6
  128. package/packages/radio-group/src/main.vue +319 -319
  129. package/packages/retrial-auth/index.js +5 -5
  130. package/packages/retrial-auth/src/main.vue +280 -280
  131. package/packages/select/index.js +5 -5
  132. package/packages/select/src/main.vue +782 -782
  133. package/packages/select-ganged/index.js +5 -5
  134. package/packages/select-ganged/src/main.vue +724 -724
  135. package/packages/selector/index.js +5 -5
  136. package/packages/selector/src/main.vue +761 -761
  137. package/packages/selector-panel/index.js +5 -5
  138. package/packages/selector-panel/src/main.vue +1027 -1027
  139. package/packages/selector-panel/src/selection.vue +170 -170
  140. package/packages/selector-panel/src/tree.vue +129 -129
  141. package/packages/sizer/index.js +5 -5
  142. package/packages/sizer/src/main.vue +254 -254
  143. package/packages/steps/index.js +5 -5
  144. package/packages/steps/src/main.vue +181 -181
  145. package/packages/switch/index.js +5 -5
  146. package/packages/switch/src/main.vue +170 -170
  147. package/packages/table-form/index.js +5 -5
  148. package/packages/tabs/index.js +5 -5
  149. package/packages/tabs/src/main.vue +788 -788
  150. package/packages/tabs-panel/index.js +5 -5
  151. package/packages/tabs-panel/src/main.vue +29 -29
  152. package/packages/theme-chalk/src/base.scss +261 -261
  153. package/packages/theme-chalk/src/button-group.scss +176 -176
  154. package/packages/theme-chalk/src/button.scss +24 -24
  155. package/packages/theme-chalk/src/calendar.scss +113 -113
  156. package/packages/theme-chalk/src/card.scss +99 -99
  157. package/packages/theme-chalk/src/checkbox-group.scss +8 -8
  158. package/packages/theme-chalk/src/clients.scss +87 -87
  159. package/packages/theme-chalk/src/data-table-form.scss +67 -67
  160. package/packages/theme-chalk/src/data-table.scss +297 -297
  161. package/packages/theme-chalk/src/date-picker.scss +7 -7
  162. package/packages/theme-chalk/src/dialog.scss +77 -77
  163. package/packages/theme-chalk/src/enable-drag.scss +181 -181
  164. package/packages/theme-chalk/src/enterprise.scss +5 -5
  165. package/packages/theme-chalk/src/error-page.scss +18 -18
  166. package/packages/theme-chalk/src/flow-group.scss +110 -110
  167. package/packages/theme-chalk/src/flow-list.scss +39 -39
  168. package/packages/theme-chalk/src/flow.scss +351 -351
  169. package/packages/theme-chalk/src/form.scss +501 -501
  170. package/packages/theme-chalk/src/handle-user.scss +40 -40
  171. package/packages/theme-chalk/src/handler.scss +148 -148
  172. package/packages/theme-chalk/src/icon.scss +1608 -1608
  173. package/packages/theme-chalk/src/icons.scss +99 -99
  174. package/packages/theme-chalk/src/input.scss +9 -9
  175. package/packages/theme-chalk/src/label.scss +24 -24
  176. package/packages/theme-chalk/src/layout.scss +46 -46
  177. package/packages/theme-chalk/src/login.scss +1006 -1006
  178. package/packages/theme-chalk/src/main.scss +663 -663
  179. package/packages/theme-chalk/src/menu.scss +224 -224
  180. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  181. package/packages/theme-chalk/src/nav.scss +111 -111
  182. package/packages/theme-chalk/src/page.scss +3 -3
  183. package/packages/theme-chalk/src/pagination.scss +29 -29
  184. package/packages/theme-chalk/src/player.scss +9 -9
  185. package/packages/theme-chalk/src/qr-code.scss +17 -17
  186. package/packages/theme-chalk/src/radio-group.scss +9 -9
  187. package/packages/theme-chalk/src/retrial-auth.scss +38 -38
  188. package/packages/theme-chalk/src/select-ganged.scss +8 -8
  189. package/packages/theme-chalk/src/select.scss +8 -8
  190. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  191. package/packages/theme-chalk/src/selector.scss +114 -114
  192. package/packages/theme-chalk/src/simplicity.scss +1403 -1403
  193. package/packages/theme-chalk/src/sizer.scss +36 -36
  194. package/packages/theme-chalk/src/steps.scss +88 -88
  195. package/packages/theme-chalk/src/switch.scss +3 -3
  196. package/packages/theme-chalk/src/table-form.scss +1 -1
  197. package/packages/theme-chalk/src/tabs.scss +87 -87
  198. package/packages/theme-chalk/src/tips.scss +7 -7
  199. package/packages/theme-chalk/src/toolbar.scss +179 -179
  200. package/packages/theme-chalk/src/tree-group.scss +72 -72
  201. package/packages/theme-chalk/src/tree.scss +165 -165
  202. package/packages/theme-chalk/src/upload.scss +172 -172
  203. package/packages/theme-chalk/src/wxlogin.scss +3 -3
  204. package/packages/tips/index.js +5 -5
  205. package/packages/tips/src/main.vue +141 -141
  206. package/packages/toolbar/index.js +5 -5
  207. package/packages/toolbar/src/main.vue +430 -430
  208. package/packages/tree/index.js +5 -5
  209. package/packages/tree-group/index.js +5 -5
  210. package/packages/upload/index.js +5 -5
  211. package/packages/upload/src/main.vue +1344 -1344
  212. package/packages/upload/src/picture.js +15 -15
  213. package/packages/wujie/index.js +5 -5
  214. package/packages/wujie/src/main.vue +145 -145
  215. package/packages/wxlogin/index.js +5 -5
  216. package/packages/wxlogin/src/main.vue +128 -128
  217. package/src/config/api.js +317 -317
  218. package/src/config/image.js +2 -2
  219. package/src/index.js +163 -163
  220. package/src/utils/bus.js +3 -3
  221. package/src/utils/date-util.js +312 -312
  222. package/src/utils/http.js +50 -50
  223. package/src/utils/rules.js +18 -18
  224. package/src/utils/store.js +21 -21
  225. package/src/utils/webSocket.js +107 -107
  226. package/packages/.DS_Store +0 -0
  227. package/packages/calogin/.DS_Store +0 -0
  228. package/packages/date-picker/.DS_Store +0 -0
  229. package/packages/date-picker/src/.DS_Store +0 -0
  230. package/packages/dialog/.DS_Store +0 -0
  231. package/packages/flow/.DS_Store +0 -0
  232. package/packages/flow/src/.DS_Store +0 -0
  233. package/packages/flow-list/.DS_Store +0 -0
  234. package/packages/form/.DS_Store +0 -0
  235. package/packages/icon/.DS_Store +0 -0
  236. package/packages/login/.DS_Store +0 -0
  237. package/packages/main/.DS_Store +0 -0
  238. package/packages/main/src/.DS_Store +0 -0
  239. package/packages/menu/.DS_Store +0 -0
  240. package/packages/select/.DS_Store +0 -0
  241. package/packages/selector/.DS_Store +0 -0
  242. package/packages/selector-panel/.DS_Store +0 -0
  243. package/packages/theme-chalk/src/.DS_Store +0 -0
  244. package/packages/upload/.DS_Store +0 -0
  245. package/src/.DS_Store +0 -0
  246. package/src/utils/.DS_Store +0 -0
package/lib/main.js CHANGED
@@ -4538,7 +4538,7 @@ var nightImg = 'data:image/jpeg;base64,/9j/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
4538
4538
  // ESM COMPAT FLAG
4539
4539
  __webpack_require__.r(__webpack_exports__);
4540
4540
 
4541
- // 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=431974fc&
4541
+ // 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=02fe8fea&
4542
4542
  var render = function () {
4543
4543
  var _vm = this
4544
4544
  var _h = _vm.$createElement
@@ -4663,13 +4663,13 @@ var staticRenderFns = []
4663
4663
  render._withStripped = true
4664
4664
 
4665
4665
 
4666
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=431974fc&
4666
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=02fe8fea&
4667
4667
 
4668
4668
  // EXTERNAL MODULE: ./src/config/image.js
4669
4669
  var config_image = __webpack_require__(19);
4670
4670
 
4671
- // 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=129bf7fd&scoped=true&
4672
- var simplicityvue_type_template_id_129bf7fd_scoped_true_render = function () {
4671
+ // 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=c0669294&scoped=true&
4672
+ var simplicityvue_type_template_id_c0669294_scoped_true_render = function () {
4673
4673
  var _vm = this
4674
4674
  var _h = _vm.$createElement
4675
4675
  var _c = _vm._self._c || _h
@@ -5433,11 +5433,11 @@ var simplicityvue_type_template_id_129bf7fd_scoped_true_render = function () {
5433
5433
  ),
5434
5434
  ])
5435
5435
  }
5436
- var simplicityvue_type_template_id_129bf7fd_scoped_true_staticRenderFns = []
5437
- simplicityvue_type_template_id_129bf7fd_scoped_true_render._withStripped = true
5436
+ var simplicityvue_type_template_id_c0669294_scoped_true_staticRenderFns = []
5437
+ simplicityvue_type_template_id_c0669294_scoped_true_render._withStripped = true
5438
5438
 
5439
5439
 
5440
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=129bf7fd&scoped=true&
5440
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=c0669294&scoped=true&
5441
5441
 
5442
5442
  // 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&
5443
5443
  var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
@@ -7506,10 +7506,10 @@ var external_throttle_debounce_ = __webpack_require__(13);
7506
7506
  this.$emit('click', res);
7507
7507
  },
7508
7508
 
7509
- /**
7510
- * @desc:获取气泡提醒
7511
- * @author huangbo
7512
- * @date 2024年9月7日
7509
+ /**
7510
+ * @desc:获取气泡提醒
7511
+ * @author huangbo
7512
+ * @date 2024年9月7日
7513
7513
  **/
7514
7514
  getBadge: function getBadge(res) {
7515
7515
  var num = res.tips || 0;
@@ -11817,10 +11817,10 @@ var events = [function (tabs, index, that) {
11817
11817
  this.$refs.user.handleSelect(res);
11818
11818
  },
11819
11819
 
11820
- /**
11821
- * @desc:匹配路由
11822
- * @author huangbo
11823
- * @date 2024年9月7日
11820
+ /**
11821
+ * @desc:匹配路由
11822
+ * @author huangbo
11823
+ * @date 2024年9月7日
11824
11824
  **/
11825
11825
  hasRouter: function hasRouter(res, url, code) {
11826
11826
  if (!url) {
@@ -11864,10 +11864,10 @@ var events = [function (tabs, index, that) {
11864
11864
  return false;
11865
11865
  },
11866
11866
 
11867
- /**
11868
- * @desc:获取初始数据
11869
- * @author huangbo
11870
- * @date 2024年9月7日
11867
+ /**
11868
+ * @desc:获取初始数据
11869
+ * @author huangbo
11870
+ * @date 2024年9月7日
11871
11871
  **/
11872
11872
  init: function init(results, first) {
11873
11873
  this.setConfig(results);
@@ -11876,10 +11876,10 @@ var events = [function (tabs, index, that) {
11876
11876
  }
11877
11877
  },
11878
11878
 
11879
- /**
11880
- * @desc:设置用户配置及信息
11881
- * @author huangbo
11882
- * @date 2024年9月7日
11879
+ /**
11880
+ * @desc:设置用户配置及信息
11881
+ * @author huangbo
11882
+ * @date 2024年9月7日
11883
11883
  **/
11884
11884
  setConfig: function setConfig(results) {
11885
11885
  localStorage.setItem('mainConfig', JSON.stringify(results));
@@ -12043,10 +12043,10 @@ var events = [function (tabs, index, that) {
12043
12043
  }
12044
12044
  },
12045
12045
 
12046
- /**
12047
- * @desc:获取所有应用
12048
- * @author huangbo
12049
- * @date 2024年9月7日
12046
+ /**
12047
+ * @desc:获取所有应用
12048
+ * @author huangbo
12049
+ * @date 2024年9月7日
12050
12050
  **/
12051
12051
  getApplications: function getApplications() {
12052
12052
  var _this2 = this;
@@ -12094,10 +12094,10 @@ var events = [function (tabs, index, that) {
12094
12094
  });
12095
12095
  },
12096
12096
 
12097
- /**
12098
- * @desc:获取菜单列表
12099
- * @author huangbo
12100
- * @date 2024年9月7日
12097
+ /**
12098
+ * @desc:获取菜单列表
12099
+ * @author huangbo
12100
+ * @date 2024年9月7日
12101
12101
  **/
12102
12102
  getMenus: function getMenus(loading) {
12103
12103
  var _this3 = this;
@@ -12130,10 +12130,10 @@ var events = [function (tabs, index, that) {
12130
12130
  });
12131
12131
  },
12132
12132
 
12133
- /**
12134
- * @desc:处理菜单列表
12135
- * @author huangbo
12136
- * @date 2024年9月7日
12133
+ /**
12134
+ * @desc:处理菜单列表
12135
+ * @author huangbo
12136
+ * @date 2024年9月7日
12137
12137
  **/
12138
12138
  renderMenus: function renderMenus(res) {
12139
12139
  this.menus = res;
@@ -12229,10 +12229,10 @@ var events = [function (tabs, index, that) {
12229
12229
  }
12230
12230
  },
12231
12231
 
12232
- /**
12233
- * @desc:设置页面加载类型
12234
- * @author huangbo
12235
- * @date 2024年9月7日
12232
+ /**
12233
+ * @desc:设置页面加载类型
12234
+ * @author huangbo
12235
+ * @date 2024年9月7日
12236
12236
  **/
12237
12237
  setIframeType: function setIframeType(res) {
12238
12238
  var url = res.url;
@@ -12288,10 +12288,10 @@ var events = [function (tabs, index, that) {
12288
12288
  return res;
12289
12289
  },
12290
12290
 
12291
- /**
12292
- * @desc:获取菜单
12293
- * @author huangbo
12294
- * @date 2024年9月7日
12291
+ /**
12292
+ * @desc:获取菜单
12293
+ * @author huangbo
12294
+ * @date 2024年9月7日
12295
12295
  **/
12296
12296
  getMenu: function getMenu(menus, res, key) {
12297
12297
  if (Array.isArray(menus)) {
@@ -12320,10 +12320,10 @@ var events = [function (tabs, index, that) {
12320
12320
  return false;
12321
12321
  },
12322
12322
 
12323
- /**
12324
- * @desc:获取菜单第一条数据
12325
- * @author huangbo
12326
- * @date 2024年9月7日
12323
+ /**
12324
+ * @desc:获取菜单第一条数据
12325
+ * @author huangbo
12326
+ * @date 2024年9月7日
12327
12327
  **/
12328
12328
  getFirst: function getFirst(obj) {
12329
12329
  if (!obj) {
@@ -12342,50 +12342,51 @@ var events = [function (tabs, index, that) {
12342
12342
  }
12343
12343
  },
12344
12344
 
12345
- /**
12346
- * @desc:遍历设置菜单气泡提醒
12347
- * @author huangbo
12348
- * @date 2024年9月7日
12345
+ /**
12346
+ * @desc:遍历设置菜单气泡提醒
12347
+ * @author huangbo
12348
+ * @date 2024年9月7日
12349
12349
  **/
12350
12350
  setTips: function setTips(obj) {
12351
12351
  var _this4 = this;
12352
12352
 
12353
+ if (!this.menuTips || !Object.keys(this.menuTips).length) {
12354
+ return false;
12355
+ }
12353
12356
  if (Array.isArray(obj)) {
12354
12357
  obj.forEach(function (item) {
12355
- _this4.setTips(item);
12358
+ var n = _this4.setTips(item);
12359
+ n = n ? parseInt(n) : 0;
12360
+ _this4.$set(obj, 'tips', n);
12361
+ _this4.setDot(_this4.userApps, item.appCode, n);
12362
+ _this4.setDot(_this4.applications, item.appCode, n);
12363
+ _this4.setDot(_this4.business, item.appCode, n);
12364
+ _this4.setDot(_this4.systems, item.appCode, n);
12356
12365
  });
12357
12366
  } else {
12358
- if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
12359
- this.$set(obj, 'tips', false);
12360
- delete obj.tips;
12361
- }
12362
12367
  var flag = 0;
12363
12368
  if (obj.children && obj.children.length) {
12364
12369
  obj.children.forEach(function (item) {
12365
12370
  var n = _this4.setTips(item);
12366
12371
  flag += n ? parseInt(n) : 0;
12367
12372
  });
12368
- if (flag) {
12369
- this.$set(obj, 'tips', flag);
12370
- this.setDot(this.userApps, obj.appCode);
12371
- this.setDot(this.applications, obj.appCode);
12372
- this.setDot(this.business, obj.appCode);
12373
- this.setDot(this.systems, obj.appCode);
12374
- return flag;
12375
- }
12373
+ this.$set(obj, 'tips', flag);
12374
+ this.setDot(this.userApps, obj.appCode, flag);
12375
+ this.setDot(this.applications, obj.appCode, flag);
12376
+ this.setDot(this.business, obj.appCode, flag);
12377
+ this.setDot(this.systems, obj.appCode, flag);
12378
+ return flag;
12376
12379
  } else if (obj.fourthTabs && obj.fourthTabs.length) {
12377
12380
  obj.fourthTabs.forEach(function (item) {
12378
12381
  var n = _this4.setTips(item);
12379
12382
  flag += n ? parseInt(n) : 0;
12380
12383
  });
12381
- if (flag) {
12382
- this.$set(obj, 'tips', flag);
12383
- this.setDot(this.userApps, obj.appCode);
12384
- this.setDot(this.applications, obj.appCode);
12385
- this.setDot(this.business, obj.appCode);
12386
- this.setDot(this.systems, obj.appCode);
12387
- return flag;
12388
- }
12384
+ this.$set(obj, 'tips', flag);
12385
+ this.setDot(this.userApps, obj.appCode, flag);
12386
+ this.setDot(this.applications, obj.appCode, flag);
12387
+ this.setDot(this.business, obj.appCode, flag);
12388
+ this.setDot(this.systems, obj.appCode, flag);
12389
+ return flag;
12389
12390
  } else {
12390
12391
  var num = this.menuTips[obj.id] || this.menuTips[obj.code] || this.menuTips[obj.appCode];
12391
12392
  if (num && Number(num)) {
@@ -12399,19 +12400,22 @@ var events = [function (tabs, index, that) {
12399
12400
  setDot: function setDot(obj, code) {
12400
12401
  var _this5 = this;
12401
12402
 
12403
+ var flag = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
12404
+
12405
+ flag = flag ? true : false;
12402
12406
  if (Array.isArray(obj)) {
12403
12407
  obj.forEach(function (item) {
12404
- _this5.setDot(item, code);
12408
+ _this5.setDot(item, code, flag);
12405
12409
  });
12406
12410
  } else if (obj.code === code) {
12407
- this.$set(obj, 'tips', true);
12411
+ this.$set(obj, 'tips', flag);
12408
12412
  }
12409
12413
  },
12410
12414
 
12411
- /**
12412
- * @desc:获取气泡提醒
12413
- * @author huangbo
12414
- * @date 2024年9月7日
12415
+ /**
12416
+ * @desc:获取气泡提醒
12417
+ * @author huangbo
12418
+ * @date 2024年9月7日
12415
12419
  **/
12416
12420
  getBadge: function getBadge(res) {
12417
12421
  var num = res.tips || 0;
@@ -12425,10 +12429,10 @@ var events = [function (tabs, index, that) {
12425
12429
  };
12426
12430
  },
12427
12431
 
12428
- /**
12429
- * @desc:开启weosocket
12430
- * @author huangbo
12431
- * @date 2024年9月7日
12432
+ /**
12433
+ * @desc:开启weosocket
12434
+ * @author huangbo
12435
+ * @date 2024年9月7日
12432
12436
  **/
12433
12437
  initWebSocket: function initWebSocket() {
12434
12438
  var _this6 = this;
@@ -12477,10 +12481,10 @@ var events = [function (tabs, index, that) {
12477
12481
  });
12478
12482
  },
12479
12483
 
12480
- /**
12481
- * @desc:显示用户信息
12482
- * @author huangbo
12483
- * @date 2024年9月7日
12484
+ /**
12485
+ * @desc:显示用户信息
12486
+ * @author huangbo
12487
+ * @date 2024年9月7日
12484
12488
  **/
12485
12489
  showUserInfo: function showUserInfo() {
12486
12490
  if (this.showUser === false) {
@@ -12488,19 +12492,19 @@ var events = [function (tabs, index, that) {
12488
12492
  }
12489
12493
  },
12490
12494
 
12491
- /**
12492
- * @desc:删除更多应用菜单点击
12493
- * @author huangbo
12494
- * @date 2024年9月7日
12495
+ /**
12496
+ * @desc:删除更多应用菜单点击
12497
+ * @author huangbo
12498
+ * @date 2024年9月7日
12495
12499
  **/
12496
12500
  handleDelete: function handleDelete(index) {
12497
12501
  this.newApps.splice(index, 1);
12498
12502
  },
12499
12503
 
12500
- /**
12501
- * @desc:储存更多应用菜单点击
12502
- * @author huangbo
12503
- * @date 2024年9月7日
12504
+ /**
12505
+ * @desc:储存更多应用菜单点击
12506
+ * @author huangbo
12507
+ * @date 2024年9月7日
12504
12508
  **/
12505
12509
  handlerClickApps: function handlerClickApps(res) {
12506
12510
  if (res.permission === false) {
@@ -12513,10 +12517,10 @@ var events = [function (tabs, index, that) {
12513
12517
  this.handlerClickApp(res);
12514
12518
  },
12515
12519
 
12516
- /**
12517
- * @desc:侧边应用菜单点击
12518
- * @author huangbo
12519
- * @date 2024年9月7日
12520
+ /**
12521
+ * @desc:侧边应用菜单点击
12522
+ * @author huangbo
12523
+ * @date 2024年9月7日
12520
12524
  **/
12521
12525
  handlerClickApp: function handlerClickApp(res) {
12522
12526
  this.showMsg = false;
@@ -12605,10 +12609,10 @@ var events = [function (tabs, index, that) {
12605
12609
  }
12606
12610
  },
12607
12611
 
12608
- /**
12609
- * @desc:显示Drawer界面
12610
- * @author huangbo
12611
- * @date 2024年9月7日
12612
+ /**
12613
+ * @desc:显示Drawer界面
12614
+ * @author huangbo
12615
+ * @date 2024年9月7日
12612
12616
  **/
12613
12617
  handlerSetDrawer: function handlerSetDrawer(res, type) {
12614
12618
  var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'ltr';
@@ -12628,19 +12632,19 @@ var events = [function (tabs, index, that) {
12628
12632
  }
12629
12633
  },
12630
12634
 
12631
- /**
12632
- * @desc:关闭Drawer界面
12633
- * @author huangbo
12634
- * @date 2024年9月7日
12635
+ /**
12636
+ * @desc:关闭Drawer界面
12637
+ * @author huangbo
12638
+ * @date 2024年9月7日
12635
12639
  **/
12636
12640
  handleCloseDrawer: function handleCloseDrawer() {
12637
12641
  this.drawer = { visible: false };
12638
12642
  },
12639
12643
 
12640
- /**
12641
- * @desc:菜单点击
12642
- * @author huangbo
12643
- * @date 2024年9月7日
12644
+ /**
12645
+ * @desc:菜单点击
12646
+ * @author huangbo
12647
+ * @date 2024年9月7日
12644
12648
  **/
12645
12649
  handlerClickMenu: function handlerClickMenu(res) {
12646
12650
  util["a" /* default */].ajax({
@@ -12689,19 +12693,19 @@ var events = [function (tabs, index, that) {
12689
12693
  },
12690
12694
 
12691
12695
 
12692
- /**
12693
- * @desc:用户详情请求成功
12694
- * @author huangbo
12695
- * @date 2024年9月7日
12696
+ /**
12697
+ * @desc:用户详情请求成功
12698
+ * @author huangbo
12699
+ * @date 2024年9月7日
12696
12700
  **/
12697
12701
  handleSuccess: function handleSuccess(res) {
12698
12702
  this.simpleUserInfo = res.simpleUserInfo;
12699
12703
  },
12700
12704
 
12701
- /**
12702
- * @desc:修改用户配置
12703
- * @author huangbo
12704
- * @date 2024年9月7日
12705
+ /**
12706
+ * @desc:修改用户配置
12707
+ * @author huangbo
12708
+ * @date 2024年9月7日
12705
12709
  **/
12706
12710
  handleChangeConfig: function handleChangeConfig(name, res) {
12707
12711
  if (name == 'userHeadUrl') {
@@ -12717,10 +12721,10 @@ var events = [function (tabs, index, that) {
12717
12721
  }
12718
12722
  },
12719
12723
 
12720
- /**
12721
- * @desc:关闭webSocket
12722
- * @author huangbo
12723
- * @date 2024年9月7日
12724
+ /**
12725
+ * @desc:关闭webSocket
12726
+ * @author huangbo
12727
+ * @date 2024年9月7日
12724
12728
  **/
12725
12729
  handlerClose: function handlerClose() {
12726
12730
  if (this.webSocket) {
@@ -12728,10 +12732,10 @@ var events = [function (tabs, index, that) {
12728
12732
  }
12729
12733
  },
12730
12734
 
12731
- /**
12732
- * @desc:刷新选中iframe页签
12733
- * @author huangbo
12734
- * @date 2024年9月7日
12735
+ /**
12736
+ * @desc:刷新选中iframe页签
12737
+ * @author huangbo
12738
+ * @date 2024年9月7日
12735
12739
  **/
12736
12740
  handleRefresh: function handleRefresh(arg) {
12737
12741
  var i = arg && arg != true && arg !== 'pageData' ? util["a" /* default */].indexOfObj(this.tabs, arg, 'appCode,code,id,url') : util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
@@ -12768,10 +12772,10 @@ var events = [function (tabs, index, that) {
12768
12772
  }
12769
12773
  },
12770
12774
 
12771
- /**
12772
- * @desc:删除iframe
12773
- * @author huangbo
12774
- * @date 2024年9月7日
12775
+ /**
12776
+ * @desc:删除iframe
12777
+ * @author huangbo
12778
+ * @date 2024年9月7日
12775
12779
  **/
12776
12780
  handleRemove: function handleRemove(name) {
12777
12781
  var len = this.tabs.length - 1;
@@ -12788,10 +12792,10 @@ var events = [function (tabs, index, that) {
12788
12792
  }
12789
12793
  },
12790
12794
 
12791
- /**
12792
- * @desc:tabs鼠标右键事件
12793
- * @author huangbo
12794
- * @date 2024年9月7日
12795
+ /**
12796
+ * @desc:tabs鼠标右键事件
12797
+ * @author huangbo
12798
+ * @date 2024年9月7日
12795
12799
  **/
12796
12800
  handleContextmenu: function handleContextmenu(tabs, e) {
12797
12801
  var disabled = {};
@@ -12816,10 +12820,10 @@ var events = [function (tabs, index, that) {
12816
12820
  window.addEventListener('click', this.closeTabsEvents);
12817
12821
  },
12818
12822
 
12819
- /**
12820
- * @desc:tabs页签事件
12821
- * @author huangbo
12822
- * @date 2024年9月7日
12823
+ /**
12824
+ * @desc:tabs页签事件
12825
+ * @author huangbo
12826
+ * @date 2024年9月7日
12823
12827
  **/
12824
12828
  handleTabsEvents: function handleTabsEvents(num) {
12825
12829
  if (this.pane !== null) {
@@ -12830,10 +12834,10 @@ var events = [function (tabs, index, that) {
12830
12834
  },
12831
12835
 
12832
12836
 
12833
- /**
12834
- * @desc:关闭页签事件面板
12835
- * @author huangbo
12836
- * @date 2024年9月7日
12837
+ /**
12838
+ * @desc:关闭页签事件面板
12839
+ * @author huangbo
12840
+ * @date 2024年9月7日
12837
12841
  **/
12838
12842
  closeTabsEvents: function closeTabsEvents(e) {
12839
12843
  if (e.target.parentNode != this.$refs.tabsHandler.$el && e.target.parentNode.parentNode != this.$refs.tabsHandler.$el) {
@@ -12843,10 +12847,10 @@ var events = [function (tabs, index, that) {
12843
12847
  },
12844
12848
 
12845
12849
 
12846
- /**
12847
- * @desc:tabs页签点击事件
12848
- * @author huangbo
12849
- * @date 2024年9月7日
12850
+ /**
12851
+ * @desc:tabs页签点击事件
12852
+ * @author huangbo
12853
+ * @date 2024年9月7日
12850
12854
  **/
12851
12855
  handleTabClick: function handleTabClick() {
12852
12856
  this.active = '';
@@ -12854,10 +12858,10 @@ var events = [function (tabs, index, that) {
12854
12858
  this.showMenu = false;
12855
12859
  },
12856
12860
 
12857
- /**
12858
- * @desc:handler工具栏点击事件
12859
- * @author huangbo
12860
- * @date 2024年9月7日
12861
+ /**
12862
+ * @desc:handler工具栏点击事件
12863
+ * @author huangbo
12864
+ * @date 2024年9月7日
12861
12865
  **/
12862
12866
  handleClick: function handleClick(res) {
12863
12867
  var type = res.type,
@@ -12938,10 +12942,10 @@ var events = [function (tabs, index, that) {
12938
12942
  this.$emit('handler-click', res);
12939
12943
  },
12940
12944
 
12941
- /**
12942
- * @desc:退出登录
12943
- * @author huangbo
12944
- * @date 2024年9月7日
12945
+ /**
12946
+ * @desc:退出登录
12947
+ * @author huangbo
12948
+ * @date 2024年9月7日
12945
12949
  **/
12946
12950
  handleQuit: function handleQuit() {
12947
12951
  var _this7 = this;
@@ -13016,10 +13020,10 @@ var events = [function (tabs, index, that) {
13016
13020
  }).catch(function (e) {});
13017
13021
  },
13018
13022
 
13019
- /**
13020
- * @desc:主题、消息回调
13021
- * @author huangbo
13022
- * @date 2024年9月7日
13023
+ /**
13024
+ * @desc:主题、消息回调
13025
+ * @author huangbo
13026
+ * @date 2024年9月7日
13023
13027
  **/
13024
13028
  handleChange: function handleChange(res) {
13025
13029
  var type = res.type,
@@ -13035,10 +13039,10 @@ var events = [function (tabs, index, that) {
13035
13039
  }
13036
13040
  },
13037
13041
 
13038
- /**
13039
- * @desc:菜单布局样式切换
13040
- * @author huangbo
13041
- * @date 2024年9月7日
13042
+ /**
13043
+ * @desc:菜单布局样式切换
13044
+ * @author huangbo
13045
+ * @date 2024年9月7日
13042
13046
  **/
13043
13047
  handleLayout: function handleLayout(res, active) {
13044
13048
  if (active) {
@@ -13047,10 +13051,10 @@ var events = [function (tabs, index, that) {
13047
13051
  this.$emit('chang-layout', res, active);
13048
13052
  },
13049
13053
 
13050
- /**
13051
- * @desc:消息修改总数
13052
- * @author huangbo
13053
- * @date 2024年9月7日
13054
+ /**
13055
+ * @desc:消息修改总数
13056
+ * @author huangbo
13057
+ * @date 2024年9月7日
13054
13058
  **/
13055
13059
  handleMenuTips: function handleMenuTips(id, num) {
13056
13060
  if (num) {
@@ -13061,10 +13065,10 @@ var events = [function (tabs, index, that) {
13061
13065
  }
13062
13066
  },
13063
13067
 
13064
- /**
13065
- * @desc:处理即时消息
13066
- * @author huangbo
13067
- * @date 2024年9月7日
13068
+ /**
13069
+ * @desc:处理即时消息
13070
+ * @author huangbo
13071
+ * @date 2024年9月7日
13068
13072
  **/
13069
13073
  handleOpened: function handleOpened(res) {
13070
13074
  var _this8 = this;
@@ -13191,11 +13195,11 @@ var events = [function (tabs, index, that) {
13191
13195
 
13192
13196
  var simplicity_component = Object(componentNormalizer["a" /* default */])(
13193
13197
  src_simplicityvue_type_script_lang_js_,
13194
- simplicityvue_type_template_id_129bf7fd_scoped_true_render,
13195
- simplicityvue_type_template_id_129bf7fd_scoped_true_staticRenderFns,
13198
+ simplicityvue_type_template_id_c0669294_scoped_true_render,
13199
+ simplicityvue_type_template_id_c0669294_scoped_true_staticRenderFns,
13196
13200
  false,
13197
13201
  null,
13198
- "129bf7fd",
13202
+ "c0669294",
13199
13203
  null
13200
13204
 
13201
13205
  )
@@ -17384,8 +17388,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
17384
17388
  external_wujie_vue2_default.a.bus.$on('reLogin', _this.handleReLogin);
17385
17389
  external_wujie_vue2_default.a.bus.$on('refresh', _this.$refs.main.handleRefresh);
17386
17390
  external_wujie_vue2_default.a.bus.$on('jumpMenu', _this.$refs.main.jumpMenu);
17387
- external_wujie_vue2_default.a.bus.$on('windowOpen', _this.$refs.main.winOpen);
17388
- external_wujie_vue2_default.a.bus.$on('windowClose', _this.$refs.main.winClose);
17391
+ external_wujie_vue2_default.a.bus.$on('windowOpen', _this.winOpen);
17392
+ external_wujie_vue2_default.a.bus.$on('windowClose', _this.winClose);
17389
17393
  external_wujie_vue2_default.a.bus.$on('emit', function (method, args) {
17390
17394
  // 主应用发送事件
17391
17395
  external_wujie_vue2_default.a.bus.$emit(method, args);
package/lib/qr-code.js CHANGED
@@ -4645,19 +4645,19 @@ var QRCode = __webpack_require__(27);
4645
4645
  //设置logo大小
4646
4646
  var logoPosition = (_this3.mwidth - 46) / 2; //logo相对于canvas居中定位
4647
4647
  //设置获取的logo将其变为圆角以及添加白色背景
4648
- /* ctx.fillStyle = "#fff";
4649
- ctx.beginPath();
4650
- let h = 46; //圆角高 10为基数(logo四周白色背景为10/2)
4651
- let w = 46; //圆角宽
4652
- let x = logoPosition - 5;
4653
- let y = logoPosition - 5;
4654
- let r = 5; //圆角半径
4655
- ctx.moveTo(x + r, y);
4656
- ctx.arcTo(x + w, y, x + w, y + h, r);
4657
- ctx.arcTo(x + w, y + h, x, y + h, r);
4658
- ctx.arcTo(x, y + h, x, y, r);
4659
- ctx.arcTo(x, y, x + w, y, r);
4660
- ctx.closePath();
4648
+ /* ctx.fillStyle = "#fff";
4649
+ ctx.beginPath();
4650
+ let h = 46; //圆角高 10为基数(logo四周白色背景为10/2)
4651
+ let w = 46; //圆角宽
4652
+ let x = logoPosition - 5;
4653
+ let y = logoPosition - 5;
4654
+ let r = 5; //圆角半径
4655
+ ctx.moveTo(x + r, y);
4656
+ ctx.arcTo(x + w, y, x + w, y + h, r);
4657
+ ctx.arcTo(x + w, y + h, x, y + h, r);
4658
+ ctx.arcTo(x, y + h, x, y, r);
4659
+ ctx.arcTo(x, y, x + w, y, r);
4660
+ ctx.closePath();
4661
4661
  ctx.fill(); */
4662
4662
  logo.onload = function () {
4663
4663
  ctx.drawImage(logo, logoPosition, logoPosition, 46, 46);