eoss-ui 0.7.27 → 0.7.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/lib/button-group.js +35 -16
  2. package/lib/button.js +35 -16
  3. package/lib/calogin.js +268 -249
  4. package/lib/checkbox-group.js +35 -16
  5. package/lib/data-table-form.js +35 -16
  6. package/lib/data-table.js +47 -24
  7. package/lib/date-picker.js +35 -16
  8. package/lib/dialog.js +35 -16
  9. package/lib/eoss-ui.common.js +1777 -1427
  10. package/lib/flow-group.js +38 -19
  11. package/lib/flow-list.js +116 -97
  12. package/lib/flow.js +478 -411
  13. package/lib/form.js +35 -16
  14. package/lib/handle-user.js +35 -16
  15. package/lib/handler.js +35 -16
  16. package/lib/icon.js +35 -16
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +35 -16
  19. package/lib/input.js +35 -16
  20. package/lib/login.js +256 -126
  21. package/lib/main.js +742 -554
  22. package/lib/menu.js +0 -1
  23. package/lib/nav.js +35 -16
  24. package/lib/page.js +35 -16
  25. package/lib/pagination.js +35 -16
  26. package/lib/player.js +35 -16
  27. package/lib/qr-code.js +48 -29
  28. package/lib/radio-group.js +35 -16
  29. package/lib/retrial-auth.js +35 -16
  30. package/lib/select-ganged.js +35 -16
  31. package/lib/select.js +35 -16
  32. package/lib/selector-panel.js +35 -16
  33. package/lib/selector.js +35 -16
  34. package/lib/sizer.js +35 -16
  35. package/lib/steps.js +35 -16
  36. package/lib/switch.js +35 -16
  37. package/lib/table-form.js +35 -16
  38. package/lib/tabs.js +35 -16
  39. package/lib/tips.js +35 -16
  40. package/lib/tree-group.js +35 -16
  41. package/lib/tree.js +35 -16
  42. package/lib/upload.js +35 -16
  43. package/lib/utils/util.js +31 -12
  44. package/lib/wujie.js +35 -16
  45. package/lib/wxlogin.js +35 -16
  46. package/package.json +160 -160
  47. package/packages/.DS_Store +0 -0
  48. package/packages/button/index.js +5 -5
  49. package/packages/button/src/main.vue +418 -418
  50. package/packages/button-group/index.js +5 -5
  51. package/packages/button-group/src/main.vue +346 -346
  52. package/packages/calendar/index.js +5 -5
  53. package/packages/calogin/.DS_Store +0 -0
  54. package/packages/calogin/index.js +5 -5
  55. package/packages/calogin/src/main.vue +412 -412
  56. package/packages/calogin/src/plugin.js +915 -915
  57. package/packages/card/index.js +5 -5
  58. package/packages/card/src/main.vue +156 -156
  59. package/packages/cascader/index.js +5 -5
  60. package/packages/cascader/src/main.vue +168 -168
  61. package/packages/checkbox-group/index.js +5 -5
  62. package/packages/checkbox-group/src/main.vue +333 -333
  63. package/packages/clients/index.js +5 -5
  64. package/packages/clients/src/main.vue +151 -151
  65. package/packages/data-table/index.js +5 -5
  66. package/packages/data-table/src/children.vue +39 -39
  67. package/packages/data-table/src/column.vue +992 -988
  68. package/packages/data-table/src/main.vue +1831 -1831
  69. package/packages/data-table/src/sizer.vue +195 -195
  70. package/packages/data-table-form/index.js +5 -5
  71. package/packages/data-table-form/src/checkbox.vue +101 -101
  72. package/packages/data-table-form/src/colgroup.vue +17 -17
  73. package/packages/data-table-form/src/main.vue +181 -181
  74. package/packages/data-table-form/src/radio.vue +65 -65
  75. package/packages/data-table-form/src/table.vue +233 -233
  76. package/packages/data-table-form/src/tbody.vue +336 -336
  77. package/packages/data-table-form/src/thead.vue +68 -68
  78. package/packages/date-picker/.DS_Store +0 -0
  79. package/packages/date-picker/index.js +5 -5
  80. package/packages/date-picker/src/.DS_Store +0 -0
  81. package/packages/date-picker/src/main.vue +236 -236
  82. package/packages/dialog/index.js +5 -5
  83. package/packages/enable-drag/index.js +5 -5
  84. package/packages/enterprise/index.js +5 -5
  85. package/packages/enterprise/src/main.vue +66 -66
  86. package/packages/error-page/index.js +5 -5
  87. package/packages/error-page/src/main.vue +44 -44
  88. package/packages/flow/.DS_Store +0 -0
  89. package/packages/flow/index.js +5 -5
  90. package/packages/flow/src/.DS_Store +0 -0
  91. package/packages/flow/src/component/Circulate.vue +413 -413
  92. package/packages/flow/src/component/CommonOpinions.vue +373 -373
  93. package/packages/flow/src/component/CustomPreset.vue +322 -322
  94. package/packages/flow/src/component/FileList.vue +97 -97
  95. package/packages/flow/src/component/FreeCirculation.vue +240 -240
  96. package/packages/flow/src/component/Preset.vue +255 -255
  97. package/packages/flow/src/component/SendMsg.vue +242 -242
  98. package/packages/flow/src/component/TimeLimit.vue +190 -190
  99. package/packages/flow/src/component/taskUnionExamine.vue +755 -755
  100. package/packages/flow/src/form.vue +121 -121
  101. package/packages/flow/src/freeStartFlow.vue +2847 -2847
  102. package/packages/flow/src/main.vue +3855 -3854
  103. package/packages/flow/src/processForm.vue +1365 -1363
  104. package/packages/flow/src/processReject.vue +309 -309
  105. package/packages/flow/src/reset.vue +941 -941
  106. package/packages/flow/src/startTaskRead.vue +691 -691
  107. package/packages/flow/src/supervise.vue +159 -159
  108. package/packages/flow/src/table.vue +58 -58
  109. package/packages/flow-group/index.js +5 -5
  110. package/packages/flow-group/src/main.vue +717 -717
  111. package/packages/flow-list/.DS_Store +0 -0
  112. package/packages/flow-list/index.js +5 -5
  113. package/packages/flow-list/src/main.vue +1787 -1787
  114. package/packages/form/.DS_Store +0 -0
  115. package/packages/form/index.js +5 -5
  116. package/packages/form/src/main.vue +3901 -3901
  117. package/packages/form/src/table.vue +1512 -1512
  118. package/packages/handle-user/index.js +5 -5
  119. package/packages/handle-user/src/main.vue +137 -137
  120. package/packages/handler/index.js +5 -5
  121. package/packages/handler/src/main.vue +496 -496
  122. package/packages/icon/index.js +5 -5
  123. package/packages/icon/src/main.vue +104 -104
  124. package/packages/icons/index.js +5 -5
  125. package/packages/icons/src/main.vue +81 -81
  126. package/packages/input/index.js +5 -5
  127. package/packages/input/src/main.vue +356 -356
  128. package/packages/input-number/index.js +5 -5
  129. package/packages/input-number/src/main.vue +106 -106
  130. package/packages/label/index.js +5 -5
  131. package/packages/label/src/main.vue +457 -457
  132. package/packages/layout/index.js +5 -5
  133. package/packages/layout/src/item.vue +152 -152
  134. package/packages/layout/src/main.vue +31 -31
  135. package/packages/login/.DS_Store +0 -0
  136. package/packages/login/index.js +5 -5
  137. package/packages/login/src/main.vue +2068 -2020
  138. package/packages/login/src/resetPassword.vue +557 -557
  139. package/packages/main/.DS_Store +0 -0
  140. package/packages/main/index.js +5 -5
  141. package/packages/main/src/.DS_Store +0 -0
  142. package/packages/main/src/default/index.vue +2 -2
  143. package/packages/main/src/default/message.vue +249 -249
  144. package/packages/main/src/default/notice.vue +157 -157
  145. package/packages/main/src/default/userinfo.vue +502 -502
  146. package/packages/main/src/main.vue +165 -69
  147. package/packages/main/src/public/online.vue +89 -89
  148. package/packages/main/src/public/search.vue +464 -464
  149. package/packages/main/src/public/settings.vue +221 -221
  150. package/packages/main/src/simplicity/apps.vue +388 -388
  151. package/packages/main/src/simplicity/avatar.vue +82 -82
  152. package/packages/main/src/simplicity/handler.vue +144 -263
  153. package/packages/main/src/simplicity/index.vue +2253 -2135
  154. package/packages/main/src/simplicity/lists.vue +84 -84
  155. package/packages/main/src/simplicity/menu-list.vue +135 -135
  156. package/packages/main/src/simplicity/message.vue +259 -259
  157. package/packages/main/src/simplicity/notice.vue +190 -190
  158. package/packages/main/src/simplicity/router-page.vue +45 -45
  159. package/packages/main/src/simplicity/sub-menu.vue +266 -264
  160. package/packages/main/src/simplicity/user.vue +259 -259
  161. package/packages/main/src/simplicity/userinfo.vue +398 -398
  162. package/packages/menu/.DS_Store +0 -0
  163. package/packages/menu/index.js +5 -5
  164. package/packages/menu/src/main.vue +595 -596
  165. package/packages/nav/index.js +5 -5
  166. package/packages/nav/src/main.vue +351 -351
  167. package/packages/notify/index.js +5 -5
  168. package/packages/notify/src/main.vue +538 -538
  169. package/packages/page/index.js +5 -5
  170. package/packages/page/src/main.vue +167 -167
  171. package/packages/pagination/index.js +5 -5
  172. package/packages/pagination/src/main.vue +96 -96
  173. package/packages/player/index.js +5 -5
  174. package/packages/player/src/main.vue +194 -194
  175. package/packages/qr-code/index.js +5 -5
  176. package/packages/qr-code/src/main.vue +170 -170
  177. package/packages/radio-group/index.js +6 -6
  178. package/packages/radio-group/src/main.vue +319 -319
  179. package/packages/retrial-auth/index.js +5 -5
  180. package/packages/retrial-auth/src/main.vue +280 -280
  181. package/packages/select/.DS_Store +0 -0
  182. package/packages/select/index.js +5 -5
  183. package/packages/select/src/main.vue +782 -782
  184. package/packages/select-ganged/index.js +5 -5
  185. package/packages/select-ganged/src/main.vue +724 -724
  186. package/packages/selector/.DS_Store +0 -0
  187. package/packages/selector/index.js +5 -5
  188. package/packages/selector/src/main.vue +761 -761
  189. package/packages/selector-panel/.DS_Store +0 -0
  190. package/packages/selector-panel/index.js +5 -5
  191. package/packages/selector-panel/src/main.vue +1027 -1027
  192. package/packages/selector-panel/src/selection.vue +170 -170
  193. package/packages/selector-panel/src/tree.vue +129 -129
  194. package/packages/sizer/index.js +5 -5
  195. package/packages/sizer/src/main.vue +254 -254
  196. package/packages/steps/index.js +5 -5
  197. package/packages/steps/src/main.vue +181 -181
  198. package/packages/switch/index.js +5 -5
  199. package/packages/switch/src/main.vue +170 -170
  200. package/packages/table-form/index.js +5 -5
  201. package/packages/tabs/index.js +5 -5
  202. package/packages/tabs/src/main.vue +788 -788
  203. package/packages/tabs-panel/index.js +5 -5
  204. package/packages/tabs-panel/src/main.vue +29 -29
  205. package/packages/theme-chalk/src/.DS_Store +0 -0
  206. package/packages/theme-chalk/src/base.scss +261 -261
  207. package/packages/theme-chalk/src/button-group.scss +176 -176
  208. package/packages/theme-chalk/src/button.scss +24 -24
  209. package/packages/theme-chalk/src/calendar.scss +113 -113
  210. package/packages/theme-chalk/src/card.scss +99 -99
  211. package/packages/theme-chalk/src/checkbox-group.scss +8 -8
  212. package/packages/theme-chalk/src/clients.scss +87 -87
  213. package/packages/theme-chalk/src/data-table-form.scss +67 -67
  214. package/packages/theme-chalk/src/data-table.scss +293 -293
  215. package/packages/theme-chalk/src/date-picker.scss +7 -7
  216. package/packages/theme-chalk/src/dialog.scss +77 -77
  217. package/packages/theme-chalk/src/enable-drag.scss +181 -181
  218. package/packages/theme-chalk/src/enterprise.scss +5 -5
  219. package/packages/theme-chalk/src/error-page.scss +18 -18
  220. package/packages/theme-chalk/src/flow-group.scss +110 -110
  221. package/packages/theme-chalk/src/flow-list.scss +39 -39
  222. package/packages/theme-chalk/src/flow.scss +351 -351
  223. package/packages/theme-chalk/src/form.scss +501 -501
  224. package/packages/theme-chalk/src/handle-user.scss +40 -40
  225. package/packages/theme-chalk/src/handler.scss +148 -148
  226. package/packages/theme-chalk/src/icon.scss +1817 -1817
  227. package/packages/theme-chalk/src/icons.scss +99 -99
  228. package/packages/theme-chalk/src/input.scss +9 -9
  229. package/packages/theme-chalk/src/label.scss +24 -24
  230. package/packages/theme-chalk/src/layout.scss +46 -46
  231. package/packages/theme-chalk/src/login.scss +987 -987
  232. package/packages/theme-chalk/src/main.scss +663 -663
  233. package/packages/theme-chalk/src/menu.scss +224 -224
  234. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  235. package/packages/theme-chalk/src/nav.scss +111 -111
  236. package/packages/theme-chalk/src/page.scss +3 -3
  237. package/packages/theme-chalk/src/pagination.scss +29 -29
  238. package/packages/theme-chalk/src/player.scss +9 -9
  239. package/packages/theme-chalk/src/qr-code.scss +17 -17
  240. package/packages/theme-chalk/src/radio-group.scss +9 -9
  241. package/packages/theme-chalk/src/retrial-auth.scss +38 -38
  242. package/packages/theme-chalk/src/select-ganged.scss +8 -8
  243. package/packages/theme-chalk/src/select.scss +8 -8
  244. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  245. package/packages/theme-chalk/src/selector.scss +92 -92
  246. package/packages/theme-chalk/src/simplicity.scss +1370 -1370
  247. package/packages/theme-chalk/src/sizer.scss +36 -36
  248. package/packages/theme-chalk/src/steps.scss +88 -88
  249. package/packages/theme-chalk/src/switch.scss +3 -3
  250. package/packages/theme-chalk/src/table-form.scss +1 -1
  251. package/packages/theme-chalk/src/tabs.scss +87 -87
  252. package/packages/theme-chalk/src/tips.scss +7 -7
  253. package/packages/theme-chalk/src/toolbar.scss +179 -179
  254. package/packages/theme-chalk/src/tree-group.scss +72 -72
  255. package/packages/theme-chalk/src/tree.scss +165 -165
  256. package/packages/theme-chalk/src/upload.scss +172 -172
  257. package/packages/theme-chalk/src/wxlogin.scss +3 -3
  258. package/packages/tips/index.js +5 -5
  259. package/packages/tips/src/main.vue +141 -141
  260. package/packages/toolbar/index.js +5 -5
  261. package/packages/toolbar/src/main.vue +430 -430
  262. package/packages/tree/index.js +5 -5
  263. package/packages/tree-group/index.js +5 -5
  264. package/packages/upload/.DS_Store +0 -0
  265. package/packages/upload/index.js +5 -5
  266. package/packages/upload/src/main.vue +1343 -1343
  267. package/packages/upload/src/picture.js +15 -15
  268. package/packages/wujie/index.js +5 -5
  269. package/packages/wujie/src/main.vue +145 -145
  270. package/packages/wxlogin/index.js +5 -5
  271. package/packages/wxlogin/src/main.vue +128 -128
  272. package/src/.DS_Store +0 -0
  273. package/src/config/api.js +315 -315
  274. package/src/config/image.js +2 -2
  275. package/src/index.js +163 -163
  276. package/src/utils/.DS_Store +0 -0
  277. package/src/utils/bus.js +3 -3
  278. package/src/utils/date-util.js +312 -312
  279. package/src/utils/http.js +50 -50
  280. package/src/utils/rules.js +18 -18
  281. package/src/utils/store.js +21 -21
  282. package/src/utils/util.js +31 -12
  283. package/src/utils/webSocket.js +107 -107
package/lib/login.js CHANGED
@@ -122,8 +122,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
122
122
  **/
123
123
 
124
124
  /* eslint-disable indent */
125
- var sm2 = __webpack_require__(12).sm2;
126
- var lodash = __webpack_require__(13);
125
+ var sm2 = __webpack_require__(13).sm2;
126
+ var lodash = __webpack_require__(12);
127
127
 
128
128
 
129
129
 
@@ -132,6 +132,7 @@ var lodash = __webpack_require__(13);
132
132
 
133
133
 
134
134
  var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
135
+ var isIE = /MSIE|Trident/.test(navigator.userAgent);
135
136
  var parser = new ua_parser_js__WEBPACK_IMPORTED_MODULE_6__["UAParser"]();
136
137
  var $hueStep = 2;
137
138
  var $saturationStep1 = 0.16;
@@ -544,12 +545,6 @@ var ajaxStream = function ajaxStream(_ref2) {
544
545
  console.log('解析数据出错:', parseError);
545
546
  }
546
547
  }
547
- // }
548
- // else {
549
- // console.log('未处理的数据:', line);
550
- // // 保存未处理完的部分数据
551
- // remainingData += line.replace('data:', '\ndata:');
552
- // }
553
548
  });
554
549
  info.primeval = primeval;
555
550
  info.chunk = chunks;
@@ -672,11 +667,20 @@ var busEmit = function busEmit(that, _ref3) {
672
667
  var method = _ref3.method,
673
668
  args = _ref3.args;
674
669
 
675
- var bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
676
- if (bus) {
677
- Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
670
+ if (isIE) {
671
+ var bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
672
+ if (bus) {
673
+ Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
674
+ } else {
675
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
676
+ }
678
677
  } else {
679
- win.parent.postMessage({ method: method, query: args }, '*');
678
+ var _bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
679
+ if (_bus) {
680
+ Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args);
681
+ } else {
682
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
683
+ }
680
684
  }
681
685
  };
682
686
 
@@ -3516,7 +3520,6 @@ var setCookie = function setCookie(name, value) {
3516
3520
  var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3517
3521
  var time = arguments[3];
3518
3522
 
3519
- var isIE = /MSIE|Trident/.test(navigator.userAgent);
3520
3523
  try {
3521
3524
  var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
3522
3525
  ];
@@ -3603,6 +3606,20 @@ var removeCookie = function removeCookie(key) {
3603
3606
  }
3604
3607
  };
3605
3608
 
3609
+ var winTopOpen = function winTopOpen(config) {
3610
+ if (isIE) {
3611
+ if (win.top !== win.self) {
3612
+ try {
3613
+ win.top.windowOpen(config);
3614
+ } catch (error) {
3615
+ win.postMessage({ method: 'windowOpen', query: config }, '*');
3616
+ }
3617
+ }
3618
+ } else {
3619
+ busEmit('windowOpen', config);
3620
+ }
3621
+ };
3622
+
3606
3623
  /* harmony default export */ __webpack_exports__["a"] = ({
3607
3624
  ajax: ajax,
3608
3625
  ajaxStream: ajaxStream,
@@ -3656,6 +3673,7 @@ var removeCookie = function removeCookie(key) {
3656
3673
  isEmpty: isEmpty,
3657
3674
  isExist: isExist,
3658
3675
  isFunction: isFunction,
3676
+ isIE: isIE,
3659
3677
  isLogged: isLogged,
3660
3678
  isLogined: isLogined,
3661
3679
  isObject: isObject,
@@ -3695,7 +3713,8 @@ var removeCookie = function removeCookie(key) {
3695
3713
  urlJoinParams: urlJoinParams,
3696
3714
  uuid: uuid,
3697
3715
  watermark: watermark,
3698
- win: win
3716
+ win: win,
3717
+ winTopOpen: winTopOpen
3699
3718
  });
3700
3719
 
3701
3720
  /***/ }),
@@ -4419,13 +4438,13 @@ module.exports = require("ua-parser-js");
4419
4438
  /* 12 */
4420
4439
  /***/ (function(module, exports) {
4421
4440
 
4422
- module.exports = require("sm-crypto");
4441
+ module.exports = require("lodash");
4423
4442
 
4424
4443
  /***/ }),
4425
4444
  /* 13 */
4426
4445
  /***/ (function(module, exports) {
4427
4446
 
4428
- module.exports = require("lodash");
4447
+ module.exports = require("sm-crypto");
4429
4448
 
4430
4449
  /***/ }),
4431
4450
  /* 14 */
@@ -4519,7 +4538,7 @@ var nightImg = 'data:image/jpeg;base64,/9j/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
4519
4538
  // ESM COMPAT FLAG
4520
4539
  __webpack_require__.r(__webpack_exports__);
4521
4540
 
4522
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=710e2bf9&
4541
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=89269c7e&
4523
4542
  var render = function () {
4524
4543
  var _vm = this
4525
4544
  var _h = _vm.$createElement
@@ -5813,7 +5832,7 @@ var staticRenderFns = [
5813
5832
  render._withStripped = true
5814
5833
 
5815
5834
 
5816
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=710e2bf9&
5835
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=89269c7e&
5817
5836
 
5818
5837
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
5819
5838
  var regenerator_ = __webpack_require__(4);
@@ -6405,6 +6424,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6405
6424
 
6406
6425
  var mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
6407
6426
 
6427
+ function mainvue_type_script_lang_js_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; }
6428
+
6408
6429
  function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
6409
6430
 
6410
6431
  //
@@ -7676,7 +7697,7 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
7676
7697
  value: JSON.stringify(res.results)
7677
7698
  });
7678
7699
  _this6.$emit('initLogin', res.results);
7679
- _this6.setConfig(res.results);
7700
+ _this6.setConfig(res.results, true);
7680
7701
  } else {
7681
7702
  _this6.$message({
7682
7703
  message: res.msg || '系统错误,请联系管理员!',
@@ -7697,7 +7718,7 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
7697
7718
  }, _callee, _this6);
7698
7719
  }))();
7699
7720
  },
7700
- setConfig: function setConfig(res) {
7721
+ setConfig: function setConfig(res, ajax) {
7701
7722
  var isLogined = localStorage.getItem('isLogined');
7702
7723
  this.identifyingId = res.identifyingId || '';
7703
7724
  this.getImgCode();
@@ -7828,6 +7849,9 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
7828
7849
  if (res.subsystemExtend.storageType) {
7829
7850
  this.storageType = res.subsystemExtend.storageType;
7830
7851
  }
7852
+ if (res.subsystemExtend.alertContent) {
7853
+ ajax && this.alertContent(res.subsystemExtend.alertContent);
7854
+ }
7831
7855
  }
7832
7856
  this.passModifyModel = res.passModifyModel;
7833
7857
  this.wechatAppid = res.wechatAppid;
@@ -7838,6 +7862,112 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
7838
7862
  util["a" /* default */].setFavicon(res.sysLogoIco);
7839
7863
  }
7840
7864
  },
7865
+ alertContent: function alertContent(contents) {
7866
+ var _this7 = this;
7867
+
7868
+ return _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
7869
+ var _JSON$parse, content, title, config, regex, isMarkdown;
7870
+
7871
+ return regenerator_default.a.wrap(function _callee2$(_context2) {
7872
+ while (1) {
7873
+ switch (_context2.prev = _context2.next) {
7874
+ case 0:
7875
+ _JSON$parse = JSON.parse(contents), content = _JSON$parse.content, title = _JSON$parse.title, config = mainvue_type_script_lang_js_objectWithoutProperties(_JSON$parse, ['content', 'title']);
7876
+ regex = /\.md$/;
7877
+ isMarkdown = regex.test(content);
7878
+
7879
+ if (!isMarkdown) {
7880
+ _context2.next = 8;
7881
+ break;
7882
+ }
7883
+
7884
+ _context2.next = 6;
7885
+ return util["a" /* default */].ajax({ url: content });
7886
+
7887
+ case 6:
7888
+ content = _context2.sent;
7889
+
7890
+ content = _this7.renderMarkdown(content);
7891
+
7892
+ case 8:
7893
+ _this7.$alert(content, title, mainvue_type_script_lang_js_extends({
7894
+ dangerouslyUseHTMLString: isMarkdown,
7895
+ setHeight: isMarkdown,
7896
+ showConfirmButton: false
7897
+ }, config)).catch(function () {});
7898
+
7899
+ case 9:
7900
+ case 'end':
7901
+ return _context2.stop();
7902
+ }
7903
+ }
7904
+ }, _callee2, _this7);
7905
+ }))();
7906
+ },
7907
+ downloadMdFile: function downloadMdFile(url) {
7908
+ var _this8 = this;
7909
+
7910
+ return _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee3() {
7911
+ var response;
7912
+ return regenerator_default.a.wrap(function _callee3$(_context3) {
7913
+ while (1) {
7914
+ switch (_context3.prev = _context3.next) {
7915
+ case 0:
7916
+ _context3.prev = 0;
7917
+ _context3.next = 3;
7918
+ return fetch(url);
7919
+
7920
+ case 3:
7921
+ response = _context3.sent;
7922
+
7923
+ if (response.ok) {
7924
+ _context3.next = 6;
7925
+ break;
7926
+ }
7927
+
7928
+ throw new Error('\u4E0B\u8F7D\u5931\u8D25: ' + response.statusText);
7929
+
7930
+ case 6:
7931
+ _context3.next = 8;
7932
+ return response.text();
7933
+
7934
+ case 8:
7935
+ return _context3.abrupt('return', _context3.sent);
7936
+
7937
+ case 11:
7938
+ _context3.prev = 11;
7939
+ _context3.t0 = _context3['catch'](0);
7940
+
7941
+ console.error('MD文件下载出错:', _context3.t0);
7942
+ throw _context3.t0;
7943
+
7944
+ case 15:
7945
+ case 'end':
7946
+ return _context3.stop();
7947
+ }
7948
+ }
7949
+ }, _callee3, _this8, [[0, 11]]);
7950
+ }))();
7951
+ },
7952
+ renderMarkdown: function renderMarkdown(content) {
7953
+ // 这里使用简单的正则替换示例,实际项目建议使用成熟库如marked、markdown-it等
7954
+ // 生产环境推荐: npm install marked 后引入使用
7955
+ var html = content
7956
+ // 处理标题
7957
+ .replace(/^#{1,6}\s+(.*?)$/gm, function (match, text, level) {
7958
+ var hLevel = match.indexOf('#');
7959
+ return '<h' + hLevel + '>' + text + '</h' + hLevel + '>';
7960
+ })
7961
+ // 处理粗体
7962
+ .replace(/\*\*(.*?)\*\*/g, '<strong>$1</strong>')
7963
+ // 处理斜体
7964
+ .replace(/\*(.*?)\*/g, '<em>$1</em>')
7965
+ // 处理链接
7966
+ .replace(/\[(.*?)\]\((.*?)\)/g, '<a href="$2" target="_blank">$1</a>')
7967
+ // 处理换行
7968
+ .replace(/\n/g, '<br>');
7969
+ return html;
7970
+ },
7841
7971
  getImgCode: function getImgCode() {
7842
7972
  if (this.identifyingId === '') {
7843
7973
  return;
@@ -7848,7 +7978,7 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
7848
7978
  return this.imageCode;
7849
7979
  },
7850
7980
  getCode: function getCode() {
7851
- var _this7 = this;
7981
+ var _this9 = this;
7852
7982
 
7853
7983
  if (this.countdown) {
7854
7984
  return false;
@@ -7890,14 +8020,14 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
7890
8020
  }
7891
8021
  this.countdown = 60;
7892
8022
  this.timer = setInterval(function () {
7893
- if (_this7.countdown > 0) {
7894
- _this7.countdown--;
7895
- _this7.disabled = true;
7896
- _this7.btnText = '重新获取' + _this7.countdown + 's';
8023
+ if (_this9.countdown > 0) {
8024
+ _this9.countdown--;
8025
+ _this9.disabled = true;
8026
+ _this9.btnText = '重新获取' + _this9.countdown + 's';
7897
8027
  } else {
7898
- _this7.btnText = '重新获取';
7899
- _this7.disabled = false;
7900
- _this7.submit = false;
8028
+ _this9.btnText = '重新获取';
8029
+ _this9.disabled = false;
8030
+ _this9.submit = false;
7901
8031
  }
7902
8032
  }, 1000);
7903
8033
  util["a" /* default */].ajax({
@@ -7905,26 +8035,26 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
7905
8035
  url: this.active == 12 ? this.getTwoFactorLoginCode : this.getLoginCode,
7906
8036
  data: data
7907
8037
  }).then(function (res) {
7908
- _this7.$message({
8038
+ _this9.$message({
7909
8039
  message: res.msg,
7910
8040
  duration: res.rCode == 0 ? 2000 : 3000,
7911
8041
  type: res.rCode == 0 ? 'success' : 'error'
7912
8042
  });
7913
8043
 
7914
8044
  if (res.rCode === 2) {
7915
- _this7.btnText = '获取验证码';
7916
- _this7.disabled = false;
7917
- _this7.countdown = 0;
7918
- clearInterval(_this7.timer);
8045
+ _this9.btnText = '获取验证码';
8046
+ _this9.disabled = false;
8047
+ _this9.countdown = 0;
8048
+ clearInterval(_this9.timer);
7919
8049
  }
7920
8050
  }).catch(function (err) {
7921
8051
  if (err.message && err.message !== 'canceled') {
7922
- _this7.$message.error(err.message);
8052
+ _this9.$message.error(err.message);
7923
8053
  }
7924
8054
  });
7925
8055
  },
7926
8056
  handleLogin: function handleLogin() {
7927
- var _this8 = this;
8057
+ var _this10 = this;
7928
8058
 
7929
8059
  if (this.submit) {
7930
8060
  return false;
@@ -7932,40 +8062,40 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
7932
8062
  var ref = 'login' + this.active;
7933
8063
  this.$refs[ref].validate(function (valid) {
7934
8064
  if (valid) {
7935
- _this8.submit = true;
8065
+ _this10.submit = true;
7936
8066
  var param = util["a" /* default */].getParams() || {};
7937
- var data = _this8.active == '0' ? {
7938
- username: _this8.formData.username,
7939
- password: _this8.secret && _this8.isEncrypt ? util["a" /* default */].esmEncrypt({
7940
- data: _this8.formData.password,
7941
- key: _this8.secret
7942
- }) : _this8.formData.password,
7943
- identifyingCode: _this8.formData.identifyingCode,
7944
- identifyingId: _this8.identifyingId
7945
- } : _this8.active == '12' ? {
7946
- username: _this8.formData.username,
7947
- password: _this8.secret && _this8.isEncrypt ? util["a" /* default */].esmEncrypt({
7948
- data: _this8.formData.password,
7949
- key: _this8.secret
7950
- }) : _this8.formData.password,
7951
- targetType: _this8.passModifyModel.indexOf('11') > -1 ? 'EMAIL' : 'SMS',
7952
- verificationCode: _this8.formData.identifyingCode
8067
+ var data = _this10.active == '0' ? {
8068
+ username: _this10.formData.username,
8069
+ password: _this10.secret && _this10.isEncrypt ? util["a" /* default */].esmEncrypt({
8070
+ data: _this10.formData.password,
8071
+ key: _this10.secret
8072
+ }) : _this10.formData.password,
8073
+ identifyingCode: _this10.formData.identifyingCode,
8074
+ identifyingId: _this10.identifyingId
8075
+ } : _this10.active == '12' ? {
8076
+ username: _this10.formData.username,
8077
+ password: _this10.secret && _this10.isEncrypt ? util["a" /* default */].esmEncrypt({
8078
+ data: _this10.formData.password,
8079
+ key: _this10.secret
8080
+ }) : _this10.formData.password,
8081
+ targetType: _this10.passModifyModel.indexOf('11') > -1 ? 'EMAIL' : 'SMS',
8082
+ verificationCode: _this10.formData.identifyingCode
7953
8083
  } : {
7954
- target: _this8.formData.target,
7955
- verificationCode: _this8.formData.verificationCode,
7956
- targetType: _this8.active == '6' ? 'SMS' : 'EMAIL'
8084
+ target: _this10.formData.target,
8085
+ verificationCode: _this10.formData.verificationCode,
8086
+ targetType: _this10.active == '6' ? 'SMS' : 'EMAIL'
7957
8087
  };
7958
- if (_this8.onLogin) {
7959
- if (_this8.active == '0') {
7960
- _this8.onLogin(mainvue_type_script_lang_js_extends({}, param, data), _this8.getImgCode, _this8.handleRemember);
8088
+ if (_this10.onLogin) {
8089
+ if (_this10.active == '0') {
8090
+ _this10.onLogin(mainvue_type_script_lang_js_extends({}, param, data), _this10.getImgCode, _this10.handleRemember);
7961
8091
  } else {
7962
- _this8.onLogin(mainvue_type_script_lang_js_extends({}, param, data));
8092
+ _this10.onLogin(mainvue_type_script_lang_js_extends({}, param, data));
7963
8093
  }
7964
8094
  } else {
7965
- _this8.handleUserLogin(mainvue_type_script_lang_js_extends({}, param, _this8.param, data));
8095
+ _this10.handleUserLogin(mainvue_type_script_lang_js_extends({}, param, _this10.param, data));
7966
8096
  }
7967
8097
  } else {
7968
- _this8.submit = false;
8098
+ _this10.submit = false;
7969
8099
  return false;
7970
8100
  }
7971
8101
  });
@@ -7981,7 +8111,7 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
7981
8111
  }
7982
8112
  },
7983
8113
  handleUserLogin: function handleUserLogin(data) {
7984
- var _this9 = this;
8114
+ var _this11 = this;
7985
8115
 
7986
8116
  var extUserBindHandleId = sessionStorage.getItem('extUserBindHandleId');
7987
8117
  util["a" /* default */].ajax({
@@ -7989,39 +8119,39 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
7989
8119
  url: this.active == '0' ? this.actionUrl : this.active == '12' ? this.doTwoFactorLogin : this.doCodeLogin,
7990
8120
  data: extUserBindHandleId ? mainvue_type_script_lang_js_extends({}, data, { extUserBindHandleId: extUserBindHandleId }) : data
7991
8121
  }).then(function (res) {
7992
- _this9.submit = false;
8122
+ _this11.submit = false;
7993
8123
  if (res.rCode == 0) {
7994
8124
  util["a" /* default */].removeStorage('extUserBindHandleId');
7995
- _this9.handleRemember();
8125
+ _this11.handleRemember();
7996
8126
  var results = res.results;
7997
- _this9.handleResults(results);
7998
- if (_this9.onSuccess) {
7999
- _this9.onSuccess(res);
8127
+ _this11.handleResults(results);
8128
+ if (_this11.onSuccess) {
8129
+ _this11.onSuccess(res);
8000
8130
  }
8001
8131
  } else {
8002
8132
  var msg = res.results && res.results.msg ? res.results.msg : res.msg;
8003
- _this9.$message({
8133
+ _this11.$message({
8004
8134
  message: msg || '系统错误,请联系管理员!',
8005
8135
  type: 'error',
8006
8136
  onClose: function onClose() {
8007
- _this9.btnText = '获取验证码';
8008
- _this9.disabled = false;
8009
- _this9.countdown = 0;
8010
- clearInterval(_this9.timer);
8011
- _this9.getImgCode();
8137
+ _this11.btnText = '获取验证码';
8138
+ _this11.disabled = false;
8139
+ _this11.countdown = 0;
8140
+ clearInterval(_this11.timer);
8141
+ _this11.getImgCode();
8012
8142
  }
8013
8143
  });
8014
- _this9.onError(res);
8144
+ _this11.onError(res);
8015
8145
  }
8016
8146
  }).catch(function (err) {
8017
- _this9.submit = false;
8147
+ _this11.submit = false;
8018
8148
  if (err.message && err.message !== 'canceled') {
8019
- _this9.$message.error(err.message);
8149
+ _this11.$message.error(err.message);
8020
8150
  }
8021
8151
  });
8022
8152
  },
8023
8153
  caLogin: function caLogin(signedData) {
8024
- var _this10 = this;
8154
+ var _this12 = this;
8025
8155
 
8026
8156
  this.loginInfo(false);
8027
8157
  util["a" /* default */].ajax({
@@ -8029,29 +8159,29 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
8029
8159
  url: this.caAction,
8030
8160
  data: typeof signedData === 'string' ? { identifyingId: this.identifyingId, signedData: signedData } : signedData
8031
8161
  }).then(function (res) {
8032
- _this10.submit = false;
8162
+ _this12.submit = false;
8033
8163
  if (res.rCode == 0) {
8034
8164
  var results = res.results;
8035
- _this10.handleResults(results);
8036
- if (_this10.onSuccess) {
8037
- _this10.onSuccess(res);
8165
+ _this12.handleResults(results);
8166
+ if (_this12.onSuccess) {
8167
+ _this12.onSuccess(res);
8038
8168
  }
8039
8169
  } else {
8040
8170
  var msg = res.results && res.results.msg ? res.results.msg : res.msg;
8041
- _this10.$message({
8171
+ _this12.$message({
8042
8172
  message: msg || '系统错误,请联系管理员!',
8043
8173
  type: 'error',
8044
8174
  onClose: function onClose() {
8045
- _this10.getImgCode();
8046
- _this10.loginInfo(_this10.active == 3);
8175
+ _this12.getImgCode();
8176
+ _this12.loginInfo(_this12.active == 3);
8047
8177
  }
8048
8178
  });
8049
- _this10.onError(res);
8179
+ _this12.onError(res);
8050
8180
  }
8051
8181
  }).catch(function (err) {
8052
- _this10.submit = false;
8182
+ _this12.submit = false;
8053
8183
  if (err.message && err.message !== 'canceled') {
8054
- _this10.$message.error(err.message);
8184
+ _this12.$message.error(err.message);
8055
8185
  }
8056
8186
  });
8057
8187
  },
@@ -8068,17 +8198,17 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
8068
8198
 
8069
8199
  //获取app登录信息
8070
8200
  loginInfo: function loginInfo(res) {
8071
- var _this11 = this;
8201
+ var _this13 = this;
8072
8202
 
8073
8203
  clearTimeout(this.interval);
8074
8204
  if (res) {
8075
8205
  this.interval = setTimeout(function () {
8076
- _this11.initRequestLoginInfo();
8206
+ _this13.initRequestLoginInfo();
8077
8207
  }, this.scanIntervalTime);
8078
8208
  }
8079
8209
  },
8080
8210
  initRequestLoginInfo: function initRequestLoginInfo() {
8081
- var _this12 = this;
8211
+ var _this14 = this;
8082
8212
 
8083
8213
  if (this.identifyingId == '') {
8084
8214
  return false;
@@ -8094,30 +8224,30 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
8094
8224
  var results = res.results;
8095
8225
  if (results.statusCode === 0 || results.statusCode === 2) {
8096
8226
  // statusCode为2时 代表密码过期,也应执行handleResults
8097
- clearTimeout(_this12.interval);
8227
+ clearTimeout(_this14.interval);
8098
8228
  if (results.statusCode === 2) {
8099
- _this12.$alert(results.msg ? results.msg : '您的初始密码已过期,请及时修改!', '提示', {
8229
+ _this14.$alert(results.msg ? results.msg : '您的初始密码已过期,请及时修改!', '提示', {
8100
8230
  confirmButtonText: '确定',
8101
8231
  type: 'warning'
8102
8232
  }).then(function () {
8103
- _this12.handleResults(results, 3);
8233
+ _this14.handleResults(results, 3);
8104
8234
  }).catch(function (e) {});
8105
8235
  } else {
8106
- _this12.handleResults(results, 3);
8236
+ _this14.handleResults(results, 3);
8107
8237
  }
8108
8238
  } else {
8109
- _this12.loginInfo(true);
8239
+ _this14.loginInfo(true);
8110
8240
  }
8111
8241
  }
8112
8242
  }).catch(function (err) {
8113
- clearTimeout(_this12.interval);
8243
+ clearTimeout(_this14.interval);
8114
8244
  if (err.message && err.message !== 'canceled') {
8115
- _this12.$message.error(err.message);
8245
+ _this14.$message.error(err.message);
8116
8246
  }
8117
8247
  });
8118
8248
  },
8119
8249
  handleResults: function handleResults(results, type) {
8120
- var _this13 = this;
8250
+ var _this15 = this;
8121
8251
 
8122
8252
  switch (results.statusCode) {
8123
8253
  case 0:
@@ -8142,9 +8272,9 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
8142
8272
  });
8143
8273
  this.showLaunch = true;
8144
8274
  setTimeout(function () {
8145
- if (_this13.toUrl) {
8146
- window.location.href = _this13.toUrl;
8147
- } else if (results.doorIndex && _this13.doorIndex) {
8275
+ if (_this15.toUrl) {
8276
+ window.location.href = _this15.toUrl;
8277
+ } else if (results.doorIndex && _this15.doorIndex) {
8148
8278
  sessionStorage.setItem('doorIndex', results.doorIndex);
8149
8279
  localStorage.setItem('isLogined', true);
8150
8280
  window.location.href = results.doorIndex;
@@ -8152,9 +8282,9 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
8152
8282
  if (window.location.href.indexOf('login.html') > -1) {
8153
8283
  window.location.href = './main.html';
8154
8284
  } else {
8155
- _this13.$router.push({ name: 'main' });
8156
- _this13.$nextTick(function () {
8157
- _this13.showLaunch = false;
8285
+ _this15.$router.push({ name: 'main' });
8286
+ _this15.$nextTick(function () {
8287
+ _this15.showLaunch = false;
8158
8288
  });
8159
8289
  }
8160
8290
  }
@@ -8165,9 +8295,9 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
8165
8295
  type: 'success',
8166
8296
  duration: 1500,
8167
8297
  onClose: function onClose() {
8168
- if (_this13.toUrl) {
8169
- window.location.href = _this13.toUrl;
8170
- } else if (results.doorIndex && _this13.doorIndex) {
8298
+ if (_this15.toUrl) {
8299
+ window.location.href = _this15.toUrl;
8300
+ } else if (results.doorIndex && _this15.doorIndex) {
8171
8301
  sessionStorage.setItem('doorIndex', results.doorIndex);
8172
8302
  localStorage.setItem('isLogined', true);
8173
8303
  window.location.href = results.doorIndex;
@@ -8175,7 +8305,7 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
8175
8305
  if (window.location.href.indexOf('login.html') > -1) {
8176
8306
  window.location.href = './main.html';
8177
8307
  } else {
8178
- _this13.$router.push({ name: 'main' });
8308
+ _this15.$router.push({ name: 'main' });
8179
8309
  }
8180
8310
  }
8181
8311
  }
@@ -8188,11 +8318,11 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
8188
8318
  //cancelButtonText: '取消',
8189
8319
  type: 'warning'
8190
8320
  }).then(function () {
8191
- _this13.operationCheckCode = results.checkCode;
8192
- if (typeof _this13.forgetUrl === 'string') {
8193
- util["a" /* default */].win.open(_this13.forgetUrl);
8321
+ _this15.operationCheckCode = results.checkCode;
8322
+ if (typeof _this15.forgetUrl === 'string') {
8323
+ util["a" /* default */].win.open(_this15.forgetUrl);
8194
8324
  } else {
8195
- _this13.showResetPassword = true;
8325
+ _this15.showResetPassword = true;
8196
8326
  }
8197
8327
  }).catch(function (e) {});
8198
8328
  break;
@@ -8221,8 +8351,8 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
8221
8351
  this.checkCode = results.checkCode;
8222
8352
  this.showAssistance = true;
8223
8353
 
8224
- var _JSON$parse = JSON.parse(results.checkCode),
8225
- operationCheckCode = _JSON$parse.operationCheckCode;
8354
+ var _JSON$parse2 = JSON.parse(results.checkCode),
8355
+ operationCheckCode = _JSON$parse2.operationCheckCode;
8226
8356
 
8227
8357
  this.handleAssistance({ operationCheckCode: operationCheckCode });
8228
8358
  break;
@@ -8232,13 +8362,13 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
8232
8362
  message: results.msg,
8233
8363
  type: 'error',
8234
8364
  onClose: function onClose() {
8235
- if (_this13.code) {
8365
+ if (_this15.code) {
8236
8366
  window.location.href = util["a" /* default */].delUrlParam({ key: 'code' });
8237
8367
  if (window.location.hash) {
8238
8368
  location.reload();
8239
8369
  }
8240
8370
  } else {
8241
- _this13.getImgCode();
8371
+ _this15.getImgCode();
8242
8372
  }
8243
8373
  }
8244
8374
  });
@@ -8248,15 +8378,15 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
8248
8378
  }
8249
8379
  },
8250
8380
  handleAssistance: function handleAssistance(data) {
8251
- var _this14 = this;
8381
+ var _this16 = this;
8252
8382
 
8253
8383
  clearTimeout(this.doAssistance);
8254
8384
  this.doAssistance = setTimeout(function () {
8255
- _this14.doAssistanceLogin(data);
8385
+ _this16.doAssistanceLogin(data);
8256
8386
  }, this.scanIntervalTime);
8257
8387
  },
8258
8388
  doAssistanceLogin: function doAssistanceLogin(data) {
8259
- var _this15 = this;
8389
+ var _this17 = this;
8260
8390
 
8261
8391
  util["a" /* default */].ajax({
8262
8392
  method: 'post',
@@ -8266,19 +8396,19 @@ var mainvue_type_script_lang_js_params = util["a" /* default */].getParams();
8266
8396
  if (res.rCode === 0) {
8267
8397
  var results = res.results;
8268
8398
  if (results.statusCode === 0) {
8269
- clearTimeout(_this15.doAssistance);
8270
- _this15.handleResults(results, 3);
8399
+ clearTimeout(_this17.doAssistance);
8400
+ _this17.handleResults(results, 3);
8271
8401
  } else {
8272
- _this15.handleAssistance(data);
8402
+ _this17.handleAssistance(data);
8273
8403
  }
8274
8404
  } else {
8275
- clearTimeout(_this15.doAssistance);
8276
- _this15.$message.error(res.msg);
8405
+ clearTimeout(_this17.doAssistance);
8406
+ _this17.$message.error(res.msg);
8277
8407
  }
8278
8408
  }).catch(function (err) {
8279
- clearTimeout(_this15.doAssistance);
8409
+ clearTimeout(_this17.doAssistance);
8280
8410
  if (err.message && err.message !== 'canceled') {
8281
- _this15.$message.error(err.message);
8411
+ _this17.$message.error(err.message);
8282
8412
  }
8283
8413
  });
8284
8414
  },