eoss-ui 0.8.4 → 0.8.5

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 (271) hide show
  1. package/lib/button-group.js +46 -45
  2. package/lib/button.js +46 -45
  3. package/lib/calogin.js +322 -290
  4. package/lib/checkbox-group.js +46 -45
  5. package/lib/data-table-form.js +46 -45
  6. package/lib/data-table.js +46 -45
  7. package/lib/date-picker.js +46 -45
  8. package/lib/dialog.js +46 -45
  9. package/lib/eoss-ui.common.js +997 -954
  10. package/lib/flow-group.js +46 -45
  11. package/lib/flow-list.js +46 -45
  12. package/lib/flow.js +403 -388
  13. package/lib/form.js +46 -45
  14. package/lib/handle-user.js +46 -45
  15. package/lib/handler.js +46 -45
  16. package/lib/icon.js +46 -45
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +46 -45
  19. package/lib/input.js +46 -45
  20. package/lib/login.js +46 -45
  21. package/lib/main.js +346 -344
  22. package/lib/nav.js +46 -45
  23. package/lib/page.js +46 -45
  24. package/lib/pagination.js +46 -45
  25. package/lib/player.js +46 -45
  26. package/lib/qr-code.js +59 -58
  27. package/lib/radio-group.js +46 -45
  28. package/lib/retrial-auth.js +46 -45
  29. package/lib/select-ganged.js +46 -45
  30. package/lib/select.js +46 -45
  31. package/lib/selector-panel.js +46 -45
  32. package/lib/selector.js +46 -45
  33. package/lib/sizer.js +46 -45
  34. package/lib/steps.js +46 -45
  35. package/lib/switch.js +46 -45
  36. package/lib/table-form.js +46 -45
  37. package/lib/tabs.js +46 -45
  38. package/lib/theme-chalk/index.css +1 -1
  39. package/lib/theme-chalk/login.css +1 -1
  40. package/lib/tips.js +46 -45
  41. package/lib/tree-group.js +46 -45
  42. package/lib/tree.js +46 -45
  43. package/lib/upload.js +46 -45
  44. package/lib/utils/util.js +46 -45
  45. package/lib/wujie.js +46 -45
  46. package/lib/wxlogin.js +46 -45
  47. package/package.json +1 -1
  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/calendar/index.js +5 -5
  52. package/packages/calogin/index.js +5 -5
  53. package/packages/calogin/src/plugin.js +915 -915
  54. package/packages/card/index.js +5 -5
  55. package/packages/card/src/main.vue +156 -156
  56. package/packages/cascader/index.js +5 -5
  57. package/packages/cascader/src/main.vue +168 -168
  58. package/packages/checkbox-group/index.js +5 -5
  59. package/packages/checkbox-group/src/main.vue +333 -333
  60. package/packages/clients/index.js +5 -5
  61. package/packages/data-table/index.js +5 -5
  62. package/packages/data-table/src/children.vue +46 -46
  63. package/packages/data-table/src/main.vue +1876 -1876
  64. package/packages/data-table/src/sizer.vue +195 -195
  65. package/packages/data-table-form/index.js +5 -5
  66. package/packages/data-table-form/src/checkbox.vue +101 -101
  67. package/packages/data-table-form/src/colgroup.vue +17 -17
  68. package/packages/data-table-form/src/main.vue +181 -181
  69. package/packages/data-table-form/src/radio.vue +65 -65
  70. package/packages/data-table-form/src/table.vue +233 -233
  71. package/packages/data-table-form/src/tbody.vue +336 -336
  72. package/packages/data-table-form/src/thead.vue +68 -68
  73. package/packages/date-picker/index.js +5 -5
  74. package/packages/date-picker/src/main.vue +236 -236
  75. package/packages/dialog/index.js +5 -5
  76. package/packages/enable-drag/index.js +5 -5
  77. package/packages/enterprise/index.js +5 -5
  78. package/packages/enterprise/src/main.vue +66 -66
  79. package/packages/error-page/index.js +5 -5
  80. package/packages/error-page/src/main.vue +44 -44
  81. package/packages/flow/index.js +5 -5
  82. package/packages/flow/src/component/FreeCirculation.vue +245 -245
  83. package/packages/flow/src/component/TimeLimit.vue +190 -190
  84. package/packages/flow/src/main.vue +4165 -4165
  85. package/packages/flow/src/processForm.vue +259 -228
  86. package/packages/flow-group/index.js +5 -5
  87. package/packages/flow-group/src/main.vue +750 -750
  88. package/packages/flow-list/index.js +5 -5
  89. package/packages/form/index.js +5 -5
  90. package/packages/handle-user/index.js +5 -5
  91. package/packages/handle-user/src/main.vue +137 -137
  92. package/packages/handler/index.js +5 -5
  93. package/packages/handler/src/main.vue +499 -499
  94. package/packages/icon/index.js +5 -5
  95. package/packages/icons/index.js +5 -5
  96. package/packages/icons/src/main.vue +81 -81
  97. package/packages/input/index.js +5 -5
  98. package/packages/input/src/main.vue +356 -356
  99. package/packages/input-number/index.js +5 -5
  100. package/packages/input-number/src/main.vue +106 -106
  101. package/packages/label/index.js +5 -5
  102. package/packages/label/src/main.vue +457 -457
  103. package/packages/layout/index.js +5 -5
  104. package/packages/layout/src/item.vue +152 -152
  105. package/packages/layout/src/main.vue +31 -31
  106. package/packages/login/index.js +5 -5
  107. package/packages/login/src/main.vue +2088 -2088
  108. package/packages/main/index.js +5 -5
  109. package/packages/main/src/default/message.vue +249 -249
  110. package/packages/main/src/default/notice.vue +157 -157
  111. package/packages/main/src/default/userinfo.vue +513 -513
  112. package/packages/main/src/main.vue +1 -1
  113. package/packages/main/src/simplicity/index.vue +2335 -2335
  114. package/packages/main/src/simplicity/lists.vue +84 -84
  115. package/packages/main/src/simplicity/router-page.vue +45 -45
  116. package/packages/main/src/simplicity/userinfo.vue +408 -408
  117. package/packages/main/src/simplicityTop/index.vue +2626 -2625
  118. package/packages/main/src/simplicityTop/userinfo.vue +408 -408
  119. package/packages/menu/index.js +5 -5
  120. package/packages/nav/index.js +5 -5
  121. package/packages/notify/index.js +5 -5
  122. package/packages/notify/src/main.vue +538 -538
  123. package/packages/page/index.js +5 -5
  124. package/packages/page/src/main.vue +167 -167
  125. package/packages/pagination/index.js +5 -5
  126. package/packages/pagination/src/main.vue +96 -96
  127. package/packages/player/index.js +5 -5
  128. package/packages/player/src/main.vue +194 -194
  129. package/packages/qr-code/index.js +5 -5
  130. package/packages/qr-code/src/main.vue +170 -170
  131. package/packages/radio-group/index.js +6 -6
  132. package/packages/radio-group/src/main.vue +319 -319
  133. package/packages/retrial-auth/index.js +5 -5
  134. package/packages/retrial-auth/src/main.vue +299 -299
  135. package/packages/select/index.js +5 -5
  136. package/packages/select-ganged/index.js +5 -5
  137. package/packages/select-ganged/src/main.vue +724 -724
  138. package/packages/selector/index.js +5 -5
  139. package/packages/selector-panel/index.js +5 -5
  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/table-form/index.js +5 -5
  147. package/packages/tabs/index.js +5 -5
  148. package/packages/tabs/src/main.vue +788 -788
  149. package/packages/tabs-panel/index.js +5 -5
  150. package/packages/tabs-panel/src/main.vue +29 -29
  151. package/packages/theme-chalk/gulpfile.js +25 -0
  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/date-picker.scss +7 -7
  161. package/packages/theme-chalk/src/dialog.scss +77 -77
  162. package/packages/theme-chalk/src/enable-drag.scss +181 -181
  163. package/packages/theme-chalk/src/enterprise.scss +5 -5
  164. package/packages/theme-chalk/src/error-page.scss +18 -18
  165. package/packages/theme-chalk/src/flow-group.scss +110 -110
  166. package/packages/theme-chalk/src/handle-user.scss +40 -40
  167. package/packages/theme-chalk/src/icons.scss +99 -99
  168. package/packages/theme-chalk/src/input.scss +9 -9
  169. package/packages/theme-chalk/src/label.scss +24 -24
  170. package/packages/theme-chalk/src/layout.scss +46 -46
  171. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  172. package/packages/theme-chalk/src/nav.scss +111 -111
  173. package/packages/theme-chalk/src/page.scss +3 -3
  174. package/packages/theme-chalk/src/pagination.scss +29 -29
  175. package/packages/theme-chalk/src/player.scss +9 -9
  176. package/packages/theme-chalk/src/qr-code.scss +17 -17
  177. package/packages/theme-chalk/src/radio-group.scss +9 -9
  178. package/packages/theme-chalk/src/retrial-auth.scss +38 -38
  179. package/packages/theme-chalk/src/select-ganged.scss +8 -8
  180. package/packages/theme-chalk/src/select.scss +8 -8
  181. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  182. package/packages/theme-chalk/src/sizer.scss +36 -36
  183. package/packages/theme-chalk/src/steps.scss +88 -88
  184. package/packages/theme-chalk/src/switch.scss +3 -3
  185. package/packages/theme-chalk/src/table-form.scss +1 -1
  186. package/packages/theme-chalk/src/tabs.scss +87 -87
  187. package/packages/theme-chalk/src/tips.scss +7 -7
  188. package/packages/theme-chalk/src/toolbar.scss +179 -179
  189. package/packages/theme-chalk/src/tree-group.scss +72 -72
  190. package/packages/theme-chalk/src/wxlogin.scss +3 -3
  191. package/packages/tips/index.js +5 -5
  192. package/packages/toolbar/index.js +5 -5
  193. package/packages/toolbar/src/main.vue +430 -430
  194. package/packages/tree/index.js +5 -5
  195. package/packages/tree-group/index.js +5 -5
  196. package/packages/upload/index.js +5 -5
  197. package/packages/upload/src/main.vue +1344 -1344
  198. package/packages/upload/src/picture.js +15 -15
  199. package/packages/wujie/index.js +5 -5
  200. package/packages/wxlogin/index.js +5 -5
  201. package/packages/wxlogin/src/main.vue +128 -128
  202. package/src/config/image.js +2 -2
  203. package/src/index.js +1 -1
  204. package/src/utils/bus.js +3 -3
  205. package/src/utils/date-util.js +312 -312
  206. package/src/utils/http.js +50 -50
  207. package/src/utils/store.js +21 -21
  208. package/src/utils/util.js +49 -48
  209. package/src/utils/webSocket.js +107 -107
  210. package/packages/theme-chalk/lib/base.css +0 -1
  211. package/packages/theme-chalk/lib/button-group.css +0 -1
  212. package/packages/theme-chalk/lib/button.css +0 -1
  213. package/packages/theme-chalk/lib/calendar.css +0 -1
  214. package/packages/theme-chalk/lib/calogin.css +0 -0
  215. package/packages/theme-chalk/lib/card.css +0 -1
  216. package/packages/theme-chalk/lib/cascader.css +0 -0
  217. package/packages/theme-chalk/lib/checkbox-group.css +0 -1
  218. package/packages/theme-chalk/lib/clients.css +0 -1
  219. package/packages/theme-chalk/lib/data-table-form.css +0 -1
  220. package/packages/theme-chalk/lib/data-table.css +0 -1
  221. package/packages/theme-chalk/lib/date-picker.css +0 -1
  222. package/packages/theme-chalk/lib/dialog.css +0 -1
  223. package/packages/theme-chalk/lib/enable-drag.css +0 -1
  224. package/packages/theme-chalk/lib/enterprise.css +0 -1
  225. package/packages/theme-chalk/lib/error-page.css +0 -1
  226. package/packages/theme-chalk/lib/flow-chart.css +0 -0
  227. package/packages/theme-chalk/lib/flow-group.css +0 -1
  228. package/packages/theme-chalk/lib/flow-list.css +0 -1
  229. package/packages/theme-chalk/lib/flow.css +0 -1
  230. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  231. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  232. package/packages/theme-chalk/lib/form.css +0 -1
  233. package/packages/theme-chalk/lib/handle-user.css +0 -1
  234. package/packages/theme-chalk/lib/handler.css +0 -1
  235. package/packages/theme-chalk/lib/icon.css +0 -1
  236. package/packages/theme-chalk/lib/icons.css +0 -1
  237. package/packages/theme-chalk/lib/index.css +0 -1
  238. package/packages/theme-chalk/lib/input-number.css +0 -0
  239. package/packages/theme-chalk/lib/input.css +0 -1
  240. package/packages/theme-chalk/lib/label.css +0 -1
  241. package/packages/theme-chalk/lib/layout.css +0 -1
  242. package/packages/theme-chalk/lib/login.css +0 -1
  243. package/packages/theme-chalk/lib/main.css +0 -1
  244. package/packages/theme-chalk/lib/menu.css +0 -1
  245. package/packages/theme-chalk/lib/nav.css +0 -1
  246. package/packages/theme-chalk/lib/notify.css +0 -0
  247. package/packages/theme-chalk/lib/page.css +0 -1
  248. package/packages/theme-chalk/lib/pagination.css +0 -1
  249. package/packages/theme-chalk/lib/player.css +0 -1
  250. package/packages/theme-chalk/lib/qr-code.css +0 -1
  251. package/packages/theme-chalk/lib/radio-group.css +0 -1
  252. package/packages/theme-chalk/lib/retrial-auth.css +0 -1
  253. package/packages/theme-chalk/lib/select-ganged.css +0 -1
  254. package/packages/theme-chalk/lib/select.css +0 -1
  255. package/packages/theme-chalk/lib/selector-panel.css +0 -1
  256. package/packages/theme-chalk/lib/selector.css +0 -1
  257. package/packages/theme-chalk/lib/simplicity-top.css +0 -1
  258. package/packages/theme-chalk/lib/simplicity.css +0 -1
  259. package/packages/theme-chalk/lib/sizer.css +0 -1
  260. package/packages/theme-chalk/lib/steps.css +0 -1
  261. package/packages/theme-chalk/lib/switch.css +0 -1
  262. package/packages/theme-chalk/lib/table-form.css +0 -0
  263. package/packages/theme-chalk/lib/tabs-panel.css +0 -0
  264. package/packages/theme-chalk/lib/tabs.css +0 -1
  265. package/packages/theme-chalk/lib/tips.css +0 -1
  266. package/packages/theme-chalk/lib/toolbar.css +0 -1
  267. package/packages/theme-chalk/lib/tree-group.css +0 -1
  268. package/packages/theme-chalk/lib/tree.css +0 -1
  269. package/packages/theme-chalk/lib/upload.css +0 -1
  270. package/packages/theme-chalk/lib/wujie.css +0 -0
  271. package/packages/theme-chalk/lib/wxlogin.css +0 -1
package/lib/calogin.js CHANGED
@@ -286,6 +286,7 @@ var lodash = __webpack_require__(12);
286
286
 
287
287
 
288
288
  var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
289
+ var winTop = getWinTop();
289
290
  var isIE = /MSIE|Trident/.test(navigator.userAgent);
290
291
  var parser = new external_ua_parser_js_["UAParser"]();
291
292
  var $hueStep = 2;
@@ -833,19 +834,19 @@ var busEmit = function busEmit(that, _ref3) {
833
834
  return;
834
835
  }
835
836
  if (isIE) {
836
- if (win.top !== win.self) {
837
- win.top.postMessage({ method: method, query: args, args: args }, '*');
837
+ if (winTop !== win.self) {
838
+ winTop.postMessage({ method: method, query: args, args: args }, '*');
838
839
  return;
839
840
  }
840
841
  var bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
841
842
  bus && (Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args));
842
843
  } else {
843
- if (win.top !== win.self) {
844
+ if (winTop !== win.self) {
844
845
  var _bus2 = win.$wujie ? win.$wujie.bus : null;
845
846
  if (_bus2) {
846
847
  Array.isArray(args) ? _bus2.$emit.apply(_bus2, [method].concat(args)) : _bus2.$emit(method, args);
847
848
  } else {
848
- win.top.postMessage({ method: method, query: args, args: args }, '*');
849
+ winTop.postMessage({ method: method, query: args, args: args }, '*');
849
850
  }
850
851
  return;
851
852
  }
@@ -1083,7 +1084,7 @@ var delUrlParam = function delUrlParam(_ref4) {
1083
1084
 
1084
1085
  var pUrl = '';
1085
1086
  try {
1086
- pUrl = win.top.location.href;
1087
+ pUrl = winTop.location.href;
1087
1088
  } catch (error) {
1088
1089
  pUrl = win.location.href;
1089
1090
  }
@@ -2537,7 +2538,7 @@ var isLogined = function () {
2537
2538
  pathname = '';
2538
2539
 
2539
2540
  try {
2540
- pathname = win.top.location.pathname;
2541
+ pathname = winTop.location.pathname;
2541
2542
  } catch (error) {
2542
2543
  pathname = win.location.pathname;
2543
2544
  }
@@ -2603,12 +2604,12 @@ var isLogined = function () {
2603
2604
  });
2604
2605
  try {
2605
2606
  var url = delUrlParam({
2606
- url: win.top.location.href,
2607
+ url: winTop.location.href,
2607
2608
  key: ['serverId', 'authType', 'code', 'sessionId']
2608
2609
  });
2609
- win.top.location.href = url;
2610
+ winTop.location.href = url;
2610
2611
  setTimeout(function () {
2611
- win.top.location.reload();
2612
+ winTop.location.reload();
2612
2613
  }, 200);
2613
2614
  } catch (error) {
2614
2615
  var _url2 = delUrlParam({
@@ -2627,8 +2628,8 @@ var isLogined = function () {
2627
2628
  break;
2628
2629
  case 3:
2629
2630
  try {
2630
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2631
- win.top.location.href = href;
2631
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(winTop.location.href));
2632
+ winTop.location.href = href;
2632
2633
  } catch (error) {
2633
2634
  var _href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.location.href));
2634
2635
  win.location.href = _href;
@@ -2642,18 +2643,18 @@ var isLogined = function () {
2642
2643
  sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2643
2644
  try {
2644
2645
  if (loginPage) {
2645
- win.top.location.replace(loginPage);
2646
+ winTop.location.replace(loginPage);
2646
2647
  } else if (document.referrer) {
2647
2648
  var referrerUrl = new URL(document.referrer);
2648
- if (referrerUrl.host !== win.top.location.host) {
2649
- win.top.location.replace(document.referrer);
2650
- } 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) {
2651
- win.top.location.href = './login.html';
2649
+ if (referrerUrl.host !== winTop.location.host) {
2650
+ winTop.location.replace(document.referrer);
2651
+ } else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2652
+ winTop.location.href = './login.html';
2652
2653
  } else {
2653
2654
  next('/login');
2654
2655
  }
2655
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2656
- win.top.location.href = './login.html';
2656
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
2657
+ winTop.location.href = './login.html';
2657
2658
  } else {
2658
2659
  next('/login');
2659
2660
  }
@@ -2672,18 +2673,18 @@ var isLogined = function () {
2672
2673
  callback: function callback() {
2673
2674
  try {
2674
2675
  if (loginPage) {
2675
- win.top.location.replace(loginPage);
2676
+ winTop.location.replace(loginPage);
2676
2677
  } else if (document.referrer) {
2677
2678
  var referrerUrl = new URL(document.referrer);
2678
- if (referrerUrl.host !== win.top.location.host) {
2679
- win.top.location.replace(document.referrer);
2680
- } 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) {
2681
- win.top.location.href = './login.html';
2679
+ if (referrerUrl.host !== winTop.location.host) {
2680
+ winTop.location.replace(document.referrer);
2681
+ } else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2682
+ winTop.location.href = './login.html';
2682
2683
  } else {
2683
2684
  next('/login');
2684
2685
  }
2685
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2686
- win.top.location.href = './login.html';
2686
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
2687
+ winTop.location.href = './login.html';
2687
2688
  } else {
2688
2689
  next('/login');
2689
2690
  }
@@ -2712,19 +2713,19 @@ var isLogined = function () {
2712
2713
  } else {
2713
2714
  try {
2714
2715
  if (loginPage) {
2715
- win.top.location.replace(loginPage);
2716
+ winTop.location.replace(loginPage);
2716
2717
  } else if (document.referrer) {
2717
2718
  referrerUrl = new URL(document.referrer);
2718
2719
 
2719
- if (referrerUrl.host !== win.top.location.host) {
2720
- win.top.location.replace(document.referrer);
2721
- } 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) {
2722
- win.top.location.href = './login.html';
2720
+ if (referrerUrl.host !== winTop.location.host) {
2721
+ winTop.location.replace(document.referrer);
2722
+ } else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2723
+ winTop.location.href = './login.html';
2723
2724
  } else {
2724
2725
  next('/login');
2725
2726
  }
2726
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2727
- win.top.location.href = './login.html';
2727
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
2728
+ winTop.location.href = './login.html';
2728
2729
  } else {
2729
2730
  next('/login');
2730
2731
  }
@@ -2856,7 +2857,7 @@ var util_loading = function loading($loading, res) {
2856
2857
  }
2857
2858
  if (isObject(res)) {
2858
2859
  var config = extend({}, {
2859
- target: win.top.document.body,
2860
+ target: winTop.document.body,
2860
2861
  fullscreen: true,
2861
2862
  background: 'rgba(0, 0, 0, 0.65)',
2862
2863
  spinner: 'el-icon-loading',
@@ -2865,7 +2866,7 @@ var util_loading = function loading($loading, res) {
2865
2866
  return $loading(config);
2866
2867
  } else {
2867
2868
  var _loading = $loading({
2868
- target: win.top.document.body,
2869
+ target: winTop.document.body,
2869
2870
  fullscreen: true,
2870
2871
  background: 'rgba(0, 0, 0, 0.65)',
2871
2872
  spinner: 'el-icon-loading',
@@ -3011,7 +3012,7 @@ var util_responses = function responses(data) {
3011
3012
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump', 'showLaunch']);
3012
3013
  var href = '';
3013
3014
  try {
3014
- href = win.top.location.href;
3015
+ href = winTop.location.href;
3015
3016
  } catch (error) {
3016
3017
  href = win.location.href;
3017
3018
  }
@@ -3036,7 +3037,7 @@ var util_responses = function responses(data) {
3036
3037
  if (loginPage) {
3037
3038
  var src = void 0;
3038
3039
  if (!startWith(loginPage, ['http', '/'], true)) {
3039
- var pathname = win.top.location.pathname;
3040
+ var pathname = winTop.location.pathname;
3040
3041
  if (pathname !== '/') {
3041
3042
  pathname = pathname.split('/');
3042
3043
  pathname.splice(pathname.length - 1);
@@ -3048,16 +3049,16 @@ var util_responses = function responses(data) {
3048
3049
  } else {
3049
3050
  src = loginPage;
3050
3051
  }
3051
- win.top.location.href = src;
3052
- } else if (win.top.location.href.indexOf('main.html') > -1) {
3053
- win.top.location.href = './login.html';
3052
+ winTop.location.href = src;
3053
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
3054
+ winTop.location.href = './login.html';
3054
3055
  } else {
3055
- var hash = win.top.location.hash;
3056
+ var hash = winTop.location.hash;
3056
3057
  if (hash) {
3057
- var len = win.top.location.href.indexOf(hash);
3058
- win.top.location.href = win.location.href.slice(0, len) + '#/login';
3058
+ var len = winTop.location.href.indexOf(hash);
3059
+ winTop.location.href = win.location.href.slice(0, len) + '#/login';
3059
3060
  } else {
3060
- win.top.location.href = '/login.html';
3061
+ winTop.location.href = '/login.html';
3061
3062
  }
3062
3063
  }
3063
3064
  } catch (error) {
@@ -3876,9 +3877,9 @@ var removeCookie = function removeCookie(key) {
3876
3877
 
3877
3878
  var winTopOpen = function winTopOpen(config) {
3878
3879
  if (isIE) {
3879
- if (win.top !== win.self) {
3880
+ if (winTop !== win.self) {
3880
3881
  try {
3881
- win.top.windowOpen(config);
3882
+ winTop.windowOpen(config);
3882
3883
  } catch (error) {
3883
3884
  win.postMessage({ method: 'windowOpen', query: config }, '*');
3884
3885
  }
@@ -4673,15 +4674,23 @@ render._withStripped = true
4673
4674
  // EXTERNAL MODULE: ./src/utils/util.js + 1 modules
4674
4675
  var util = __webpack_require__(0);
4675
4676
 
4677
+ // EXTERNAL MODULE: external "babel-runtime/regenerator"
4678
+ var regenerator_ = __webpack_require__(4);
4679
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
4680
+
4676
4681
  // CONCATENATED MODULE: ./packages/calogin/src/plugin.js
4682
+
4683
+
4677
4684
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
4678
4685
 
4686
+ 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"); }); }; }
4687
+
4679
4688
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4680
4689
 
4681
- /**
4682
- * JIT_GW_ExtInterface 模块,提供与客户端交互的功能
4690
+ /**
4691
+ * JIT_GW_ExtInterface 模块,提供与客户端交互的功能
4683
4692
  */
4684
- var CA_ExtInterface = function () {
4693
+ var plugin_CA_ExtInterface = function () {
4685
4694
  function CA_ExtInterface() {
4686
4695
  _classCallCheck(this, CA_ExtInterface);
4687
4696
 
@@ -4692,11 +4701,11 @@ var CA_ExtInterface = function () {
4692
4701
  this.init();
4693
4702
  }
4694
4703
 
4695
- /**
4696
- * 简单的 Object.assign 兼容 IE <= 11 的 polyfill
4697
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
4698
- * @param {Object} target - 目标对象
4699
- * @param {Object} options - 新的选项对象
4704
+ /**
4705
+ * 简单的 Object.assign 兼容 IE <= 11 的 polyfill
4706
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
4707
+ * @param {Object} target - 目标对象
4708
+ * @param {Object} options - 新的选项对象
4700
4709
  */
4701
4710
 
4702
4711
 
@@ -4711,8 +4720,8 @@ var CA_ExtInterface = function () {
4711
4720
  }
4712
4721
  };
4713
4722
 
4714
- /**
4715
- * 检查当前会话的 WebSocket URL
4723
+ /**
4724
+ * 检查当前会话的 WebSocket URL
4716
4725
  */
4717
4726
 
4718
4727
 
@@ -4726,8 +4735,8 @@ var CA_ExtInterface = function () {
4726
4735
  }
4727
4736
  };
4728
4737
 
4729
- /**
4730
- * 检查是否使用 ActiveX
4738
+ /**
4739
+ * 检查是否使用 ActiveX
4731
4740
  */
4732
4741
 
4733
4742
 
@@ -4739,25 +4748,48 @@ var CA_ExtInterface = function () {
4739
4748
  }
4740
4749
  };
4741
4750
 
4742
- /**
4743
- * 扩展发送消息并等待响应
4744
- * @param {string} operatorCmd - 操作命令
4745
- * @param {string} sendMsg - 发送的消息
4746
- * @returns {string} 响应消息
4751
+ /**
4752
+ * 扩展发送消息并等待响应
4753
+ * @param {string} operatorCmd - 操作命令
4754
+ * @param {string} sendMsg - 发送的消息
4755
+ * @returns {string} 响应消息
4747
4756
  */
4748
4757
 
4749
4758
 
4750
- CA_ExtInterface.prototype.sendAndWaitMessageEx = function sendAndWaitMessageEx(operatorCmd, sendMsg) {
4751
- this.checkSessionWSURL();
4752
- var strSendMsg = operatorCmd + ':' + sendMsg;
4753
- return this.sendAndWaitMessage(this.currentSessionWSURL, strSendMsg);
4754
- };
4759
+ CA_ExtInterface.prototype.sendAndWaitMessageEx = function () {
4760
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee(operatorCmd, sendMsg) {
4761
+ var strSendMsg;
4762
+ return regenerator_default.a.wrap(function _callee$(_context) {
4763
+ while (1) {
4764
+ switch (_context.prev = _context.next) {
4765
+ case 0:
4766
+ _context.next = 2;
4767
+ return this.checkSessionWSURL();
4768
+
4769
+ case 2:
4770
+ strSendMsg = operatorCmd + ':' + sendMsg;
4771
+ return _context.abrupt('return', this.sendAndWaitMessage(this.currentSessionWSURL, strSendMsg));
4772
+
4773
+ case 4:
4774
+ case 'end':
4775
+ return _context.stop();
4776
+ }
4777
+ }
4778
+ }, _callee, this);
4779
+ }));
4780
+
4781
+ function sendAndWaitMessageEx(_x, _x2) {
4782
+ return _ref.apply(this, arguments);
4783
+ }
4784
+
4785
+ return sendAndWaitMessageEx;
4786
+ }();
4755
4787
 
4756
- /**
4757
- * 发送消息并等待响应
4758
- * @param {string} wsurl - WebSocket URL
4759
- * @param {string} sendMsg - 发送的消息
4760
- * @returns {string} 响应消息
4788
+ /**
4789
+ * 发送消息并等待响应
4790
+ * @param {string} wsurl - WebSocket URL
4791
+ * @param {string} sendMsg - 发送的消息
4792
+ * @returns {string} 响应消息
4761
4793
  */
4762
4794
 
4763
4795
 
@@ -4772,18 +4804,18 @@ var CA_ExtInterface = function () {
4772
4804
  globalXmlHttpRequest.setRequestHeader('Content-Type', 'text/plain;charset=UTF-8');
4773
4805
  globalXmlHttpRequest.send(sendMsg);
4774
4806
  ResultMsg = globalXmlHttpRequest.responseText;
4807
+ return ResultMsg;
4775
4808
  } catch (e) {
4776
4809
  this.currentSessionWSURL = '';
4777
4810
  if (this.options.onError) {
4778
4811
  this.options.onError.call(undefined, e);
4779
4812
  }
4780
4813
  }
4781
- return ResultMsg;
4782
4814
  };
4783
4815
 
4784
- /**
4785
- * 配置选项
4786
- * @param {Object} extendOption - 扩展选项
4816
+ /**
4817
+ * 配置选项
4818
+ * @param {Object} extendOption - 扩展选项
4787
4819
  */
4788
4820
 
4789
4821
 
@@ -4793,8 +4825,8 @@ var CA_ExtInterface = function () {
4793
4825
  }
4794
4826
  };
4795
4827
 
4796
- /**
4797
- * 初始化
4828
+ /**
4829
+ * 初始化
4798
4830
  */
4799
4831
 
4800
4832
 
@@ -4802,9 +4834,9 @@ var CA_ExtInterface = function () {
4802
4834
  this.isUseActioveX();
4803
4835
  };
4804
4836
 
4805
- /**
4806
- * 返回客户端的版本
4807
- * @returns {string} 客户端版本
4837
+ /**
4838
+ * 返回客户端的版本
4839
+ * @returns {string} 客户端版本
4808
4840
  */
4809
4841
 
4810
4842
 
@@ -4817,13 +4849,13 @@ var CA_ExtInterface = function () {
4817
4849
  }
4818
4850
  };
4819
4851
 
4820
- /**
4821
- * 下载客户端程序并安装
4822
- * @param {string} bstrURL - 下载地址
4823
- * @param {string} bstrHashValue - 哈希值
4824
- * @param {boolean} bSync - 是否同步安装
4825
- * @param {boolean} bOnlySSO - 是否仅安装 SSO
4826
- * @returns {number} 安装结果
4852
+ /**
4853
+ * 下载客户端程序并安装
4854
+ * @param {string} bstrURL - 下载地址
4855
+ * @param {string} bstrHashValue - 哈希值
4856
+ * @param {boolean} bSync - 是否同步安装
4857
+ * @param {boolean} bOnlySSO - 是否仅安装 SSO
4858
+ * @returns {number} 安装结果
4827
4859
  */
4828
4860
 
4829
4861
 
@@ -4837,11 +4869,11 @@ var CA_ExtInterface = function () {
4837
4869
  }
4838
4870
  };
4839
4871
 
4840
- /**
4841
- * 获取硬件指纹信息
4842
- * @param {number} dwSign - 签名
4843
- * @param {string} strGateWayIP - 网关 IP
4844
- * @returns {string} 硬件指纹信息
4872
+ /**
4873
+ * 获取硬件指纹信息
4874
+ * @param {number} dwSign - 签名
4875
+ * @param {string} strGateWayIP - 网关 IP
4876
+ * @returns {string} 硬件指纹信息
4845
4877
  */
4846
4878
 
4847
4879
 
@@ -4855,12 +4887,12 @@ var CA_ExtInterface = function () {
4855
4887
  }
4856
4888
  };
4857
4889
 
4858
- /**
4859
- * 设置转发策略和代填策略
4860
- * @param {string} strProxyPolicy - 转发策略
4861
- * @param {string} strSSOPolicy - 代填策略
4862
- * @param {string} strGatewayAddress - 网关地址
4863
- * @returns {number} 设置结果
4890
+ /**
4891
+ * 设置转发策略和代填策略
4892
+ * @param {string} strProxyPolicy - 转发策略
4893
+ * @param {string} strSSOPolicy - 代填策略
4894
+ * @param {string} strGatewayAddress - 网关地址
4895
+ * @returns {number} 设置结果
4864
4896
  */
4865
4897
 
4866
4898
 
@@ -4874,11 +4906,11 @@ var CA_ExtInterface = function () {
4874
4906
  }
4875
4907
  };
4876
4908
 
4877
- /**
4878
- * 启动认证信息模块
4879
- * @param {string} strFileName - 文件名
4880
- * @param {string} strXmlData - XML 数据
4881
- * @returns {string} 认证信息
4909
+ /**
4910
+ * 启动认证信息模块
4911
+ * @param {string} strFileName - 文件名
4912
+ * @param {string} strXmlData - XML 数据
4913
+ * @returns {string} 认证信息
4882
4914
  */
4883
4915
 
4884
4916
 
@@ -4892,10 +4924,10 @@ var CA_ExtInterface = function () {
4892
4924
  }
4893
4925
  };
4894
4926
 
4895
- /**
4896
- * 打开 BS 应用
4897
- * @param {string} strUrl - 应用 URL
4898
- * @returns {number} 打开结果
4927
+ /**
4928
+ * 打开 BS 应用
4929
+ * @param {string} strUrl - 应用 URL
4930
+ * @returns {number} 打开结果
4899
4931
  */
4900
4932
 
4901
4933
 
@@ -4909,12 +4941,12 @@ var CA_ExtInterface = function () {
4909
4941
  }
4910
4942
  };
4911
4943
 
4912
- /**
4913
- * 打开 CS 应用
4914
- * @param {string} strGatewayAddress - 网关地址
4915
- * @param {string} strAppFlag - 应用标识
4916
- * @param {string} strAppPath - 应用路径
4917
- * @returns {number} 打开结果
4944
+ /**
4945
+ * 打开 CS 应用
4946
+ * @param {string} strGatewayAddress - 网关地址
4947
+ * @param {string} strAppFlag - 应用标识
4948
+ * @param {string} strAppPath - 应用路径
4949
+ * @returns {number} 打开结果
4918
4950
  */
4919
4951
 
4920
4952
 
@@ -4928,13 +4960,13 @@ var CA_ExtInterface = function () {
4928
4960
  }
4929
4961
  };
4930
4962
 
4931
- /**
4932
- * 设置自动更新策略
4933
- * @param {string} strGatewayAddress - 网关地址
4934
- * @param {number} nGatewayPort - 网关端口
4935
- * @param {string} strUserToken - 用户令牌
4936
- * @param {number} updatedelay - 更新延迟
4937
- * @returns {number} 设置结果
4963
+ /**
4964
+ * 设置自动更新策略
4965
+ * @param {string} strGatewayAddress - 网关地址
4966
+ * @param {number} nGatewayPort - 网关端口
4967
+ * @param {string} strUserToken - 用户令牌
4968
+ * @param {number} updatedelay - 更新延迟
4969
+ * @returns {number} 设置结果
4938
4970
  */
4939
4971
 
4940
4972
 
@@ -4948,10 +4980,10 @@ var CA_ExtInterface = function () {
4948
4980
  }
4949
4981
  };
4950
4982
 
4951
- /**
4952
- * 获取客户端 IP
4953
- * @param {string} strGatewayIP - 网关 IP
4954
- * @returns {string} 客户端 IP
4983
+ /**
4984
+ * 获取客户端 IP
4985
+ * @param {string} strGatewayIP - 网关 IP
4986
+ * @returns {string} 客户端 IP
4955
4987
  */
4956
4988
 
4957
4989
 
@@ -4965,10 +4997,10 @@ var CA_ExtInterface = function () {
4965
4997
  }
4966
4998
  };
4967
4999
 
4968
- /**
4969
- * 登出网关
4970
- * @param {string} strServerIP - 服务器 IP
4971
- * @returns {number} 登出结果
5000
+ /**
5001
+ * 登出网关
5002
+ * @param {string} strServerIP - 服务器 IP
5003
+ * @returns {number} 登出结果
4972
5004
  */
4973
5005
 
4974
5006
 
@@ -4982,11 +5014,11 @@ var CA_ExtInterface = function () {
4982
5014
  }
4983
5015
  };
4984
5016
 
4985
- /**
4986
- * 运行安装包
4987
- * @param {number} lRunType - 运行类型
4988
- * @param {boolean} bIsOnlySSO - 是否仅安装 SSO
4989
- * @returns {number} 运行结果
5017
+ /**
5018
+ * 运行安装包
5019
+ * @param {number} lRunType - 运行类型
5020
+ * @param {boolean} bIsOnlySSO - 是否仅安装 SSO
5021
+ * @returns {number} 运行结果
4990
5022
  */
4991
5023
 
4992
5024
 
@@ -5000,9 +5032,9 @@ var CA_ExtInterface = function () {
5000
5032
  }
5001
5033
  };
5002
5034
 
5003
- /**
5004
- * 获取下载进度
5005
- * @returns {number} 下载进度
5035
+ /**
5036
+ * 获取下载进度
5037
+ * @returns {number} 下载进度
5006
5038
  */
5007
5039
 
5008
5040
 
@@ -5016,9 +5048,9 @@ var CA_ExtInterface = function () {
5016
5048
  }
5017
5049
  };
5018
5050
 
5019
- /**
5020
- * 是否安装完成
5021
- * @returns {boolean} 安装完成状态
5051
+ /**
5052
+ * 是否安装完成
5053
+ * @returns {boolean} 安装完成状态
5022
5054
  */
5023
5055
 
5024
5056
 
@@ -5032,11 +5064,11 @@ var CA_ExtInterface = function () {
5032
5064
  }
5033
5065
  };
5034
5066
 
5035
- /**
5036
- * 初始化签包对象
5037
- * @param {string} strAlgType - 算法类型
5038
- * @param {string} strAuxParam - 辅助参数
5039
- * @returns {number} 初始化结果
5067
+ /**
5068
+ * 初始化签包对象
5069
+ * @param {string} strAlgType - 算法类型
5070
+ * @param {string} strAuxParam - 辅助参数
5071
+ * @returns {number} 初始化结果
5040
5072
  */
5041
5073
 
5042
5074
 
@@ -5050,10 +5082,10 @@ var CA_ExtInterface = function () {
5050
5082
  }
5051
5083
  };
5052
5084
 
5053
- /**
5054
- * 设置摘要算法
5055
- * @param {string} strDigestAlg - 摘要算法
5056
- * @returns {number} 设置结果
5085
+ /**
5086
+ * 设置摘要算法
5087
+ * @param {string} strDigestAlg - 摘要算法
5088
+ * @returns {number} 设置结果
5057
5089
  */
5058
5090
 
5059
5091
 
@@ -5067,10 +5099,10 @@ var CA_ExtInterface = function () {
5067
5099
  }
5068
5100
  };
5069
5101
 
5070
- /**
5071
- * 设置单证书是否弹出对话框
5072
- * @param {number} isChoose - 是否弹出对话框
5073
- * @returns {number} 设置结果
5102
+ /**
5103
+ * 设置单证书是否弹出对话框
5104
+ * @param {number} isChoose - 是否弹出对话框
5105
+ * @returns {number} 设置结果
5074
5106
  */
5075
5107
 
5076
5108
 
@@ -5084,11 +5116,11 @@ var CA_ExtInterface = function () {
5084
5116
  }
5085
5117
  };
5086
5118
 
5087
- /**
5088
- * 添加证书过滤条件
5089
- * @param {number} ulType - 过滤类型
5090
- * @param {string} strValue - 过滤值
5091
- * @returns {number} 添加结果
5119
+ /**
5120
+ * 添加证书过滤条件
5121
+ * @param {number} ulType - 过滤类型
5122
+ * @param {string} strValue - 过滤值
5123
+ * @returns {number} 添加结果
5092
5124
  */
5093
5125
 
5094
5126
 
@@ -5102,9 +5134,9 @@ var CA_ExtInterface = function () {
5102
5134
  }
5103
5135
  };
5104
5136
 
5105
- /**
5106
- * 清除所有过滤条件
5107
- * @returns {number} 清除结果
5137
+ /**
5138
+ * 清除所有过滤条件
5139
+ * @returns {number} 清除结果
5108
5140
  */
5109
5141
 
5110
5142
 
@@ -5118,10 +5150,10 @@ var CA_ExtInterface = function () {
5118
5150
  }
5119
5151
  };
5120
5152
 
5121
- /**
5122
- * P1 签名
5123
- * @param {string} strValueBase64 - 待签名的 Base64 字符串
5124
- * @returns {string} 签名结果
5153
+ /**
5154
+ * P1 签名
5155
+ * @param {string} strValueBase64 - 待签名的 Base64 字符串
5156
+ * @returns {string} 签名结果
5125
5157
  */
5126
5158
 
5127
5159
 
@@ -5135,10 +5167,10 @@ var CA_ExtInterface = function () {
5135
5167
  }
5136
5168
  };
5137
5169
 
5138
- /**
5139
- * P1 签名字符串
5140
- * @param {string} strValue - 待签名的字符串
5141
- * @returns {string} 签名结果
5170
+ /**
5171
+ * P1 签名字符串
5172
+ * @param {string} strValue - 待签名的字符串
5173
+ * @returns {string} 签名结果
5142
5174
  */
5143
5175
 
5144
5176
 
@@ -5152,12 +5184,12 @@ var CA_ExtInterface = function () {
5152
5184
  }
5153
5185
  };
5154
5186
 
5155
- /**
5156
- * P7 签名
5157
- * @param {string} strValueBase64 - 待签名的 Base64 字符串
5158
- * @param {boolean} isDetach - 是否分离签名
5159
- * @param {boolean} isIncludeCert - 是否包含证书
5160
- * @returns {string} 签名结果
5187
+ /**
5188
+ * P7 签名
5189
+ * @param {string} strValueBase64 - 待签名的 Base64 字符串
5190
+ * @param {boolean} isDetach - 是否分离签名
5191
+ * @param {boolean} isIncludeCert - 是否包含证书
5192
+ * @returns {string} 签名结果
5161
5193
  */
5162
5194
 
5163
5195
 
@@ -5171,12 +5203,12 @@ var CA_ExtInterface = function () {
5171
5203
  }
5172
5204
  };
5173
5205
 
5174
- /**
5175
- * P7 签名字符串
5176
- * @param {string} strValue - 待签名的字符串
5177
- * @param {boolean} isDetach - 是否分离签名
5178
- * @param {boolean} isIncludeCert - 是否包含证书
5179
- * @returns {string} 签名结果
5206
+ /**
5207
+ * P7 签名字符串
5208
+ * @param {string} strValue - 待签名的字符串
5209
+ * @param {boolean} isDetach - 是否分离签名
5210
+ * @param {boolean} isIncludeCert - 是否包含证书
5211
+ * @returns {string} 签名结果
5180
5212
  */
5181
5213
 
5182
5214
 
@@ -5190,9 +5222,9 @@ var CA_ExtInterface = function () {
5190
5222
  }
5191
5223
  };
5192
5224
 
5193
- /**
5194
- * 释放签名对象
5195
- * @returns {number} 释放结果
5225
+ /**
5226
+ * 释放签名对象
5227
+ * @returns {number} 释放结果
5196
5228
  */
5197
5229
 
5198
5230
 
@@ -5206,9 +5238,9 @@ var CA_ExtInterface = function () {
5206
5238
  }
5207
5239
  };
5208
5240
 
5209
- /**
5210
- * 获取签名版本
5211
- * @returns {string} 签名版本
5241
+ /**
5242
+ * 获取签名版本
5243
+ * @returns {string} 签名版本
5212
5244
  */
5213
5245
 
5214
5246
 
@@ -5222,9 +5254,9 @@ var CA_ExtInterface = function () {
5222
5254
  }
5223
5255
  };
5224
5256
 
5225
- /**
5226
- * 获取签名证书
5227
- * @returns {string} 签名证书
5257
+ /**
5258
+ * 获取签名证书
5259
+ * @returns {string} 签名证书
5228
5260
  */
5229
5261
 
5230
5262
 
@@ -5238,9 +5270,9 @@ var CA_ExtInterface = function () {
5238
5270
  }
5239
5271
  };
5240
5272
 
5241
- /**
5242
- * 获取错误码
5243
- * @returns {number} 错误码
5273
+ /**
5274
+ * 获取错误码
5275
+ * @returns {number} 错误码
5244
5276
  */
5245
5277
 
5246
5278
 
@@ -5254,9 +5286,9 @@ var CA_ExtInterface = function () {
5254
5286
  }
5255
5287
  };
5256
5288
 
5257
- /**
5258
- * 获取错误信息
5259
- * @returns {string} 错误信息
5289
+ /**
5290
+ * 获取错误信息
5291
+ * @returns {string} 错误信息
5260
5292
  */
5261
5293
 
5262
5294
 
@@ -5270,9 +5302,9 @@ var CA_ExtInterface = function () {
5270
5302
  }
5271
5303
  };
5272
5304
 
5273
- /**
5274
- * 销毁认证对象
5275
- * @returns {number} 销毁结果
5305
+ /**
5306
+ * 销毁认证对象
5307
+ * @returns {number} 销毁结果
5276
5308
  */
5277
5309
 
5278
5310
 
@@ -5286,9 +5318,9 @@ var CA_ExtInterface = function () {
5286
5318
  }
5287
5319
  };
5288
5320
 
5289
- /**
5290
- * 获取证书类型
5291
- * @returns {string} 证书类型
5321
+ /**
5322
+ * 获取证书类型
5323
+ * @returns {string} 证书类型
5292
5324
  */
5293
5325
 
5294
5326
 
@@ -5302,9 +5334,9 @@ var CA_ExtInterface = function () {
5302
5334
  }
5303
5335
  };
5304
5336
 
5305
- /**
5306
- * 获取签名摘要算法
5307
- * @returns {string} 签名摘要算法
5337
+ /**
5338
+ * 获取签名摘要算法
5339
+ * @returns {string} 签名摘要算法
5308
5340
  */
5309
5341
 
5310
5342
 
@@ -5318,11 +5350,11 @@ var CA_ExtInterface = function () {
5318
5350
  }
5319
5351
  };
5320
5352
 
5321
- /**
5322
- * 使能调用序列
5323
- * @param {boolean} bCallQueueEnable - 是否使能调用序列
5324
- * @param {boolean} bHeadInfoEnable - 是否使能头部信息
5325
- * @returns {number} 使能结果
5353
+ /**
5354
+ * 使能调用序列
5355
+ * @param {boolean} bCallQueueEnable - 是否使能调用序列
5356
+ * @param {boolean} bHeadInfoEnable - 是否使能头部信息
5357
+ * @returns {number} 使能结果
5326
5358
  */
5327
5359
 
5328
5360
 
@@ -5336,9 +5368,9 @@ var CA_ExtInterface = function () {
5336
5368
  }
5337
5369
  };
5338
5370
 
5339
- /**
5340
- * 清空调用序列结果
5341
- * @returns {number} 清空调用序列结果
5371
+ /**
5372
+ * 清空调用序列结果
5373
+ * @returns {number} 清空调用序列结果
5342
5374
  */
5343
5375
 
5344
5376
 
@@ -5352,9 +5384,9 @@ var CA_ExtInterface = function () {
5352
5384
  }
5353
5385
  };
5354
5386
 
5355
- /**
5356
- * 获取调用序列结果
5357
- * @returns {string} 调用序列结果
5387
+ /**
5388
+ * 获取调用序列结果
5389
+ * @returns {string} 调用序列结果
5358
5390
  */
5359
5391
 
5360
5392
 
@@ -5368,12 +5400,12 @@ var CA_ExtInterface = function () {
5368
5400
  }
5369
5401
  };
5370
5402
 
5371
- /**
5372
- * 客户端安全策略检查
5373
- * @param {string} strGatewayAddress - 网关地址
5374
- * @param {number} usGatewayPort - 网关端口
5375
- * @param {string} strSecurityPolicys - 安全策略
5376
- * @returns {boolean} 检查结果
5403
+ /**
5404
+ * 客户端安全策略检查
5405
+ * @param {string} strGatewayAddress - 网关地址
5406
+ * @param {number} usGatewayPort - 网关端口
5407
+ * @param {string} strSecurityPolicys - 安全策略
5408
+ * @returns {boolean} 检查结果
5377
5409
  */
5378
5410
 
5379
5411
 
@@ -5387,9 +5419,9 @@ var CA_ExtInterface = function () {
5387
5419
  }
5388
5420
  };
5389
5421
 
5390
- /**
5391
- * 获取通讯协议版本
5392
- * @returns {string} 通讯协议版本
5422
+ /**
5423
+ * 获取通讯协议版本
5424
+ * @returns {string} 通讯协议版本
5393
5425
  */
5394
5426
 
5395
5427
 
@@ -5403,13 +5435,13 @@ var CA_ExtInterface = function () {
5403
5435
  }
5404
5436
  };
5405
5437
 
5406
- /**
5407
- * 修改 Key 的 Pin 码
5408
- * @param {string} strCertSn - 证书序列号
5409
- * @param {number} lPinCodeType - Pin 码类型
5410
- * @param {string} strCurPinCode - 当前 Pin 码
5411
- * @param {string} strNewPinCode - 新 Pin 码
5412
- * @returns {number} 修改结果
5438
+ /**
5439
+ * 修改 Key 的 Pin 码
5440
+ * @param {string} strCertSn - 证书序列号
5441
+ * @param {number} lPinCodeType - Pin 码类型
5442
+ * @param {string} strCurPinCode - 当前 Pin 码
5443
+ * @param {string} strNewPinCode - 新 Pin 码
5444
+ * @returns {number} 修改结果
5413
5445
  */
5414
5446
 
5415
5447
 
@@ -5423,10 +5455,10 @@ var CA_ExtInterface = function () {
5423
5455
  }
5424
5456
  };
5425
5457
 
5426
- /**
5427
- * 等待策略设置完毕
5428
- * @param {string} strGatewayAddress - 网关地址
5429
- * @returns {number} 等待结果
5458
+ /**
5459
+ * 等待策略设置完毕
5460
+ * @param {string} strGatewayAddress - 网关地址
5461
+ * @returns {number} 等待结果
5430
5462
  */
5431
5463
 
5432
5464
 
@@ -5440,10 +5472,10 @@ var CA_ExtInterface = function () {
5440
5472
  }
5441
5473
  };
5442
5474
 
5443
- /**
5444
- * 获取会话 Token
5445
- * @param {string} strGatewayAddress - 网关地址
5446
- * @returns {string} 会话 Token
5475
+ /**
5476
+ * 获取会话 Token
5477
+ * @param {string} strGatewayAddress - 网关地址
5478
+ * @returns {string} 会话 Token
5447
5479
  */
5448
5480
 
5449
5481
 
@@ -5457,9 +5489,9 @@ var CA_ExtInterface = function () {
5457
5489
  }
5458
5490
  };
5459
5491
 
5460
- /**
5461
- * 获取控件版本
5462
- * @returns {string} 控件版本
5492
+ /**
5493
+ * 获取控件版本
5494
+ * @returns {string} 控件版本
5463
5495
  */
5464
5496
 
5465
5497
 
@@ -5473,10 +5505,10 @@ var CA_ExtInterface = function () {
5473
5505
  }
5474
5506
  };
5475
5507
 
5476
- /**
5477
- * 设置语言资源
5478
- * @param {string} strLanguage - 语言资源
5479
- * @returns {number} 设置结果
5508
+ /**
5509
+ * 设置语言资源
5510
+ * @param {string} strLanguage - 语言资源
5511
+ * @returns {number} 设置结果
5480
5512
  */
5481
5513
 
5482
5514
 
@@ -5490,12 +5522,12 @@ var CA_ExtInterface = function () {
5490
5522
  }
5491
5523
  };
5492
5524
 
5493
- /**
5494
- * 获取用户属性
5495
- * @param {string} strGatewayAddress - 网关地址
5496
- * @param {string} strAppFlag - 应用标识
5497
- * @param {string} strAttributeName - 属性名称
5498
- * @returns {string} 用户属性值
5525
+ /**
5526
+ * 获取用户属性
5527
+ * @param {string} strGatewayAddress - 网关地址
5528
+ * @param {string} strAppFlag - 应用标识
5529
+ * @param {string} strAttributeName - 属性名称
5530
+ * @returns {string} 用户属性值
5499
5531
  */
5500
5532
 
5501
5533
 
@@ -5509,9 +5541,9 @@ var CA_ExtInterface = function () {
5509
5541
  }
5510
5542
  };
5511
5543
 
5512
- /**
5513
- * 获取签名加密 PIN 码
5514
- * @returns {string} 签名加密 PIN 码
5544
+ /**
5545
+ * 获取签名加密 PIN 码
5546
+ * @returns {string} 签名加密 PIN 码
5515
5547
  */
5516
5548
 
5517
5549
 
@@ -5524,29 +5556,29 @@ var CA_ExtInterface = function () {
5524
5556
  return result.value;
5525
5557
  }
5526
5558
  };
5527
- /*
5528
- *曙光四川CA
5529
- *'SOF_GetUserList' 证书列表
5530
- *'SOF_ExportUserCert' 导出证书
5531
- *'SOF_GetCertInfo': 获取证书信息
5532
- *'SOF_GenRandom': 生成随机数
5533
- *'SOF_SignData': 获取证书签名
5534
- *'SOF_Login': 登录证书
5535
- *'SOF_GetPinRetryCount': 剩余次数
5559
+ /*
5560
+ *曙光四川CA
5561
+ *'SOF_GetUserList' 证书列表
5562
+ *'SOF_ExportUserCert' 导出证书
5563
+ *'SOF_GetCertInfo': 获取证书信息
5564
+ *'SOF_GenRandom': 生成随机数
5565
+ *'SOF_SignData': 获取证书签名
5566
+ *'SOF_Login': 登录证书
5567
+ *'SOF_GetPinRetryCount': 剩余次数
5536
5568
  */
5537
- /**
5538
- *
5539
- * 获取webSocket消息
5540
- * @returns {string}
5569
+ /**
5570
+ *
5571
+ * 获取webSocket消息
5572
+ * @returns {string}
5541
5573
  */
5542
5574
 
5543
5575
 
5544
- CA_ExtInterface.prototype.getMessage = function getMessage(_ref) {
5576
+ CA_ExtInterface.prototype.getMessage = function getMessage(_ref2) {
5545
5577
  var _this = this;
5546
5578
 
5547
- var action = _ref.action,
5548
- _ref$params = _ref.params,
5549
- params = _ref$params === undefined ? [] : _ref$params;
5579
+ var action = _ref2.action,
5580
+ _ref2$params = _ref2.params,
5581
+ params = _ref2$params === undefined ? [] : _ref2$params;
5550
5582
 
5551
5583
  return new Promise(function (resolve, reject) {
5552
5584
  var obj = JSON.stringify({
@@ -5573,10 +5605,10 @@ var CA_ExtInterface = function () {
5573
5605
  };
5574
5606
  });
5575
5607
  };
5576
- /**
5577
- *
5578
- * base64解码
5579
- * @returns {string} base64解码后的字符串
5608
+ /**
5609
+ *
5610
+ * base64解码
5611
+ * @returns {string} base64解码后的字符串
5580
5612
  */
5581
5613
 
5582
5614
 
@@ -5611,10 +5643,10 @@ var CA_ExtInterface = function () {
5611
5643
  val = this.utf8_decode(val);
5612
5644
  return val;
5613
5645
  };
5614
- /**
5615
- *
5616
- * base64编码
5617
- * @returns {string} base64编码后的字符串
5646
+ /**
5647
+ *
5648
+ * base64编码
5649
+ * @returns {string} base64编码后的字符串
5618
5650
  */
5619
5651
 
5620
5652
 
@@ -5647,10 +5679,10 @@ var CA_ExtInterface = function () {
5647
5679
  }
5648
5680
  return val;
5649
5681
  };
5650
- /**
5651
- *
5652
- * utf8解码
5653
- * @returns {string} utf8解码后的字符串
5682
+ /**
5683
+ *
5684
+ * utf8解码
5685
+ * @returns {string} utf8解码后的字符串
5654
5686
  */
5655
5687
 
5656
5688
 
@@ -5679,10 +5711,10 @@ var CA_ExtInterface = function () {
5679
5711
  }
5680
5712
  return string;
5681
5713
  };
5682
- /**
5683
- *
5684
- * utf8编码
5685
- * @returns {string} utf8编码后的字符串
5714
+ /**
5715
+ *
5716
+ * utf8编码
5717
+ * @returns {string} utf8编码后的字符串
5686
5718
  */
5687
5719
 
5688
5720
 
@@ -5708,7 +5740,7 @@ var CA_ExtInterface = function () {
5708
5740
  return CA_ExtInterface;
5709
5741
  }();
5710
5742
 
5711
- var caPlugin = new CA_ExtInterface();
5743
+ var caPlugin = new plugin_CA_ExtInterface();
5712
5744
  /* harmony default export */ var src_plugin = (caPlugin);
5713
5745
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/calogin/src/main.vue?vue&type=script&lang=js&
5714
5746
  //