eoss-ui 0.7.20 → 0.7.22

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 (223) hide show
  1. package/lib/button-group.js +210 -119
  2. package/lib/button.js +210 -119
  3. package/lib/calogin.js +443 -352
  4. package/lib/checkbox-group.js +210 -119
  5. package/lib/data-table-form.js +210 -119
  6. package/lib/data-table.js +210 -119
  7. package/lib/date-picker.js +210 -119
  8. package/lib/dialog.js +210 -119
  9. package/lib/eoss-ui.common.js +907 -537
  10. package/lib/flow-group.js +210 -119
  11. package/lib/flow-list.js +210 -119
  12. package/lib/flow.js +625 -255
  13. package/lib/form.js +210 -119
  14. package/lib/handle-user.js +210 -119
  15. package/lib/handler.js +212 -122
  16. package/lib/icon.js +210 -119
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +210 -119
  19. package/lib/input.js +210 -119
  20. package/lib/login.js +214 -122
  21. package/lib/main.js +224 -133
  22. package/lib/nav.js +210 -119
  23. package/lib/page.js +210 -119
  24. package/lib/pagination.js +210 -119
  25. package/lib/player.js +210 -119
  26. package/lib/qr-code.js +223 -132
  27. package/lib/radio-group.js +210 -119
  28. package/lib/retrial-auth.js +210 -119
  29. package/lib/select-ganged.js +210 -119
  30. package/lib/select.js +210 -119
  31. package/lib/selector-panel.js +210 -119
  32. package/lib/selector.js +210 -119
  33. package/lib/sizer.js +210 -119
  34. package/lib/steps.js +210 -119
  35. package/lib/switch.js +210 -119
  36. package/lib/table-form.js +210 -119
  37. package/lib/tabs.js +210 -119
  38. package/lib/theme-chalk/flow.css +1 -1
  39. package/lib/theme-chalk/index.css +1 -1
  40. package/lib/tips.js +210 -119
  41. package/lib/tree-group.js +210 -119
  42. package/lib/tree.js +210 -119
  43. package/lib/upload.js +210 -119
  44. package/lib/utils/util.js +210 -119
  45. package/lib/wujie.js +210 -119
  46. package/lib/wxlogin.js +210 -119
  47. package/package.json +2 -2
  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/clients/src/main.vue +151 -151
  62. package/packages/data-table/index.js +5 -5
  63. package/packages/data-table/src/children.vue +39 -39
  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/CustomPreset.vue +322 -322
  83. package/packages/flow/src/component/Preset.vue +255 -255
  84. package/packages/flow/src/component/TimeLimit.vue +190 -190
  85. package/packages/flow/src/component/taskUnionExamine.vue +95 -7
  86. package/packages/flow/src/form.vue +121 -121
  87. package/packages/flow/src/main.vue +81 -40
  88. package/packages/flow/src/processForm.vue +106 -27
  89. package/packages/flow/src/table.vue +58 -58
  90. package/packages/flow-group/index.js +5 -5
  91. package/packages/flow-list/index.js +5 -5
  92. package/packages/form/index.js +5 -5
  93. package/packages/handle-user/index.js +5 -5
  94. package/packages/handler/index.js +5 -5
  95. package/packages/handler/src/main.vue +0 -1
  96. package/packages/icon/index.js +5 -5
  97. package/packages/icons/index.js +5 -5
  98. package/packages/icons/src/main.vue +81 -81
  99. package/packages/input/index.js +5 -5
  100. package/packages/input/src/main.vue +356 -356
  101. package/packages/input-number/index.js +5 -5
  102. package/packages/input-number/src/main.vue +106 -106
  103. package/packages/label/index.js +5 -5
  104. package/packages/label/src/main.vue +457 -457
  105. package/packages/layout/index.js +5 -5
  106. package/packages/layout/src/item.vue +152 -152
  107. package/packages/layout/src/main.vue +31 -31
  108. package/packages/login/index.js +5 -5
  109. package/packages/login/src/main.vue +2 -1
  110. package/packages/main/index.js +5 -5
  111. package/packages/main/src/default/message.vue +249 -249
  112. package/packages/main/src/default/notice.vue +157 -157
  113. package/packages/main/src/public/online.vue +89 -89
  114. package/packages/main/src/public/settings.vue +221 -221
  115. package/packages/main/src/simplicity/apps.vue +388 -388
  116. package/packages/main/src/simplicity/index.vue +2 -2
  117. package/packages/main/src/simplicity/lists.vue +84 -84
  118. package/packages/main/src/simplicity/menu-list.vue +135 -135
  119. package/packages/main/src/simplicity/message.vue +259 -259
  120. package/packages/main/src/simplicity/notice.vue +190 -190
  121. package/packages/main/src/simplicity/router-page.vue +45 -45
  122. package/packages/main/src/simplicity/sub-menu.vue +264 -264
  123. package/packages/menu/index.js +5 -5
  124. package/packages/menu/src/main.vue +584 -584
  125. package/packages/nav/index.js +5 -5
  126. package/packages/nav/src/main.vue +351 -351
  127. package/packages/notify/index.js +5 -5
  128. package/packages/notify/src/main.vue +538 -538
  129. package/packages/page/index.js +5 -5
  130. package/packages/page/src/main.vue +167 -167
  131. package/packages/pagination/index.js +5 -5
  132. package/packages/pagination/src/main.vue +96 -96
  133. package/packages/player/index.js +5 -5
  134. package/packages/player/src/main.vue +194 -194
  135. package/packages/qr-code/index.js +5 -5
  136. package/packages/qr-code/src/main.vue +170 -170
  137. package/packages/radio-group/index.js +6 -6
  138. package/packages/radio-group/src/main.vue +319 -319
  139. package/packages/retrial-auth/index.js +5 -5
  140. package/packages/retrial-auth/src/main.vue +280 -280
  141. package/packages/select/index.js +5 -5
  142. package/packages/select-ganged/index.js +5 -5
  143. package/packages/select-ganged/src/main.vue +724 -724
  144. package/packages/selector/index.js +5 -5
  145. package/packages/selector-panel/index.js +5 -5
  146. package/packages/selector-panel/src/tree.vue +129 -129
  147. package/packages/sizer/index.js +5 -5
  148. package/packages/sizer/src/main.vue +254 -254
  149. package/packages/steps/index.js +5 -5
  150. package/packages/steps/src/main.vue +181 -181
  151. package/packages/switch/index.js +5 -5
  152. package/packages/table-form/index.js +5 -5
  153. package/packages/tabs/index.js +5 -5
  154. package/packages/tabs/src/main.vue +788 -788
  155. package/packages/tabs-panel/index.js +5 -5
  156. package/packages/tabs-panel/src/main.vue +29 -29
  157. package/packages/theme-chalk/lib/flow.css +1 -1
  158. package/packages/theme-chalk/lib/index.css +1 -1
  159. package/packages/theme-chalk/src/base.scss +261 -261
  160. package/packages/theme-chalk/src/button-group.scss +176 -176
  161. package/packages/theme-chalk/src/button.scss +24 -24
  162. package/packages/theme-chalk/src/calendar.scss +113 -113
  163. package/packages/theme-chalk/src/card.scss +99 -99
  164. package/packages/theme-chalk/src/checkbox-group.scss +8 -8
  165. package/packages/theme-chalk/src/clients.scss +87 -87
  166. package/packages/theme-chalk/src/data-table-form.scss +67 -67
  167. package/packages/theme-chalk/src/data-table.scss +293 -293
  168. package/packages/theme-chalk/src/date-picker.scss +7 -7
  169. package/packages/theme-chalk/src/dialog.scss +77 -77
  170. package/packages/theme-chalk/src/enable-drag.scss +181 -181
  171. package/packages/theme-chalk/src/enterprise.scss +5 -5
  172. package/packages/theme-chalk/src/error-page.scss +18 -18
  173. package/packages/theme-chalk/src/flow-group.scss +110 -110
  174. package/packages/theme-chalk/src/flow-list.scss +39 -39
  175. package/packages/theme-chalk/src/flow.scss +4 -1
  176. package/packages/theme-chalk/src/handle-user.scss +40 -40
  177. package/packages/theme-chalk/src/icons.scss +99 -99
  178. package/packages/theme-chalk/src/input.scss +9 -9
  179. package/packages/theme-chalk/src/label.scss +24 -24
  180. package/packages/theme-chalk/src/layout.scss +46 -46
  181. package/packages/theme-chalk/src/main.scss +663 -663
  182. package/packages/theme-chalk/src/menu.scss +222 -222
  183. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  184. package/packages/theme-chalk/src/nav.scss +111 -111
  185. package/packages/theme-chalk/src/page.scss +3 -3
  186. package/packages/theme-chalk/src/pagination.scss +29 -29
  187. package/packages/theme-chalk/src/player.scss +9 -9
  188. package/packages/theme-chalk/src/qr-code.scss +17 -17
  189. package/packages/theme-chalk/src/radio-group.scss +9 -9
  190. package/packages/theme-chalk/src/retrial-auth.scss +38 -38
  191. package/packages/theme-chalk/src/select-ganged.scss +8 -8
  192. package/packages/theme-chalk/src/select.scss +8 -8
  193. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  194. package/packages/theme-chalk/src/sizer.scss +36 -36
  195. package/packages/theme-chalk/src/steps.scss +88 -88
  196. package/packages/theme-chalk/src/switch.scss +3 -3
  197. package/packages/theme-chalk/src/table-form.scss +1 -1
  198. package/packages/theme-chalk/src/tabs.scss +87 -87
  199. package/packages/theme-chalk/src/tips.scss +7 -7
  200. package/packages/theme-chalk/src/toolbar.scss +179 -179
  201. package/packages/theme-chalk/src/tree-group.scss +72 -72
  202. package/packages/theme-chalk/src/tree.scss +165 -165
  203. package/packages/theme-chalk/src/wxlogin.scss +3 -3
  204. package/packages/tips/index.js +5 -5
  205. package/packages/tips/src/main.vue +141 -141
  206. package/packages/toolbar/index.js +5 -5
  207. package/packages/toolbar/src/main.vue +430 -430
  208. package/packages/tree/index.js +5 -5
  209. package/packages/tree-group/index.js +5 -5
  210. package/packages/upload/index.js +5 -5
  211. package/packages/upload/src/picture.js +15 -15
  212. package/packages/wujie/index.js +5 -5
  213. package/packages/wujie/src/main.vue +145 -145
  214. package/packages/wxlogin/index.js +5 -5
  215. package/packages/wxlogin/src/main.vue +128 -128
  216. package/src/config/image.js +2 -2
  217. package/src/index.js +1 -1
  218. package/src/utils/bus.js +3 -3
  219. package/src/utils/date-util.js +312 -312
  220. package/src/utils/http.js +50 -50
  221. package/src/utils/store.js +21 -21
  222. package/src/utils/util.js +192 -145
  223. package/src/utils/webSocket.js +107 -107
package/lib/calogin.js CHANGED
@@ -198,12 +198,14 @@ var ajax = function ajax(_ref) {
198
198
  mix = _ref$mix === undefined ? false : _ref$mix,
199
199
  _ref$defaults = _ref.defaults,
200
200
  defaults = _ref$defaults === undefined ? false : _ref$defaults,
201
+ _ref$withCredentials = _ref.withCredentials,
202
+ withCredentials = _ref$withCredentials === undefined ? true : _ref$withCredentials,
201
203
  loading = _ref.loading,
202
204
  publicKey = _ref.publicKey,
203
205
  secret = _ref.secret,
204
206
  encodes = _ref.encodes,
205
207
  oldmode = _ref.oldmode,
206
- configs = _objectWithoutProperties(_ref, ['headers', 'method', 'url', 'host', 'data', 'params', 'format', 'formatConfig', 'mix', 'defaults', 'loading', 'publicKey', 'secret', 'encodes', 'oldmode']);
208
+ configs = _objectWithoutProperties(_ref, ['headers', 'method', 'url', 'host', 'data', 'params', 'format', 'formatConfig', 'mix', 'defaults', 'withCredentials', 'loading', 'publicKey', 'secret', 'encodes', 'oldmode']);
207
209
 
208
210
  var header = headers || {};
209
211
  if (!method) {
@@ -241,20 +243,18 @@ var ajax = function ajax(_ref) {
241
243
  // delPendingRequest(response.config);
242
244
  loading && loading.close();
243
245
  if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
244
- if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
245
- localStorage.setItem('token', response.headers.authorization);
246
- localStorage.setItem('Authorization', response.headers.authorization);
247
- } else {
248
- sessionStorage.setItem('token', response.headers.authorization);
249
- sessionStorage.setItem('Authorization', response.headers.authorization);
250
- }
246
+ setStorage({
247
+ key: ['token', 'Authorization'],
248
+ value: response.headers.authorization
249
+ });
251
250
  }
252
- if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
253
- if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
254
- localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
255
- } else {
256
- sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
257
- }
251
+ var ssId = response.headers.ssId || response.headers.Ssid || response.headers.ssid;
252
+
253
+ if (ssId && ssId !== getStorage('ssId')) {
254
+ setStorage({
255
+ key: 'ssId',
256
+ value: ssId
257
+ });
258
258
  }
259
259
  if (response.status === 200) {
260
260
  responses(response.data);
@@ -1791,37 +1791,6 @@ var getSecond = function getSecond(datetime) {
1791
1791
  return datetimeObj.getSeconds();
1792
1792
  };
1793
1793
 
1794
- /**
1795
- * getStorage
1796
- * @desc:获取本地储存数据
1797
- * @author huangbo
1798
- * @date 2022年5月7日
1799
- * @param {String} [key] - 获取的名称
1800
- **/
1801
- var getStorage = function getStorage(key) {
1802
- if (key) {
1803
- var res = sessionStorage.getItem(key) || localStorage.getItem(key) || win[key];
1804
- if (key === 'host' && !res) {
1805
- return win.location.origin;
1806
- }
1807
- return res;
1808
- }
1809
- var defaults = {};
1810
- var token = sessionStorage.getItem('token') || localStorage.getItem('token') || win.token;
1811
- var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || win.ssId;
1812
- var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || win.deviceUnique;
1813
- if (token) {
1814
- defaults.Authorization = token;
1815
- }
1816
- if (ssId) {
1817
- defaults.ssId = ssId;
1818
- }
1819
- if (deviceUnique) {
1820
- defaults.deviceUnique = deviceUnique;
1821
- }
1822
- return defaults;
1823
- };
1824
-
1825
1794
  /**
1826
1795
  * getStyle
1827
1796
  * @desc:获取元素样式(含非行内样式)
@@ -2348,9 +2317,7 @@ var isLogined = function () {
2348
2317
 
2349
2318
  switch (results.statusCode) {
2350
2319
  case 0:
2351
- var storage = getStorage('storage');
2352
2320
  setStorage({
2353
- type: storage,
2354
2321
  key: {
2355
2322
  ssId: results.ssId,
2356
2323
  token: results.token,
@@ -2727,28 +2694,6 @@ var receiveMessage = function receiveMessage(_ref14) {
2727
2694
  });
2728
2695
  };
2729
2696
 
2730
- /**
2731
- * removeStorage
2732
- * @desc:删除本地储存数据
2733
- * @author huangbo
2734
- * @date 2022年5月7日
2735
- * @param {String, Array} [key] - 获取的名称
2736
- **/
2737
- var removeStorage = function removeStorage(key) {
2738
- if (Array.isArray(key)) {
2739
- for (var i = 0; i < key.length; i++) {
2740
- sessionStorage.removeItem(key[i]);
2741
- localStorage.removeItem(key[i]);
2742
- }
2743
- } else if (key) {
2744
- sessionStorage.removeItem(key);
2745
- localStorage.removeItem(key);
2746
- } else {
2747
- sessionStorage.clear();
2748
- localStorage.clear();
2749
- }
2750
- };
2751
-
2752
2697
  /**
2753
2698
  * replenish
2754
2699
  * @desc:补全小数位数
@@ -3046,52 +2991,6 @@ var setFavicon = function setFavicon(url) {
3046
2991
  }
3047
2992
  };
3048
2993
 
3049
- /**
3050
- * setStorage
3051
- * @desc:设置本地储存数据
3052
- * @author huangbo
3053
- * @date 2022年5月7日
3054
- * @param {String} [type] - 储存类型
3055
- * @param {String, Array, Object} [key] - 数据的名称,array类型表示多个key保存同一个value,object类型时对象的属性名称作为key属性值作为value
3056
- * @param {String} [value] - 数据的值
3057
- **/
3058
- var setStorage = function setStorage(_ref17) {
3059
- var type = _ref17.type,
3060
- key = _ref17.key,
3061
- value = _ref17.value;
3062
-
3063
- if (value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
3064
- value = JSON.stringify(value);
3065
- }
3066
- if (type === 'localStorage') {
3067
- if (typeof key === 'string') {
3068
- localStorage.setItem(key, value);
3069
- } else if (Array.isArray(key)) {
3070
- for (var i in key) {
3071
- localStorage.setItem(key[i], value);
3072
- }
3073
- } else {
3074
- for (var _i7 in key) {
3075
- var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
3076
- localStorage.setItem(_i7, val);
3077
- }
3078
- }
3079
- } else {
3080
- if (typeof key === 'string') {
3081
- sessionStorage.setItem(key, value);
3082
- } else if (Array.isArray(key)) {
3083
- for (var _i8 in key) {
3084
- sessionStorage.setItem(key[_i8], value);
3085
- }
3086
- } else {
3087
- for (var _i9 in key) {
3088
- var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
3089
- sessionStorage.setItem(_i9, _val);
3090
- }
3091
- }
3092
- }
3093
- };
3094
-
3095
2994
  /**
3096
2995
  * socket
3097
2996
  * @desc:webSocket
@@ -3352,10 +3251,10 @@ var upperCase = function upperCase(text) {
3352
3251
  * @param {Object} [url] - url地址
3353
3252
  * @param {Object} [param] - 被转换的对象
3354
3253
  **/
3355
- var urlJoinParams = function urlJoinParams(_ref18) {
3356
- var url = _ref18.url,
3357
- param = _ref18.param,
3358
- timestamp = _ref18.timestamp;
3254
+ var urlJoinParams = function urlJoinParams(_ref17) {
3255
+ var url = _ref17.url,
3256
+ param = _ref17.param,
3257
+ timestamp = _ref17.timestamp;
3359
3258
 
3360
3259
  var arry = decodeURI(url).split('?');
3361
3260
  var times = new Date().getTime();
@@ -3471,6 +3370,195 @@ var watermark = function watermark(option) {
3471
3370
  };
3472
3371
  };
3473
3372
 
3373
+ /**
3374
+ * setStorage
3375
+ * @desc:设置本地储存数据
3376
+ * @author huangbo
3377
+ * @date 2022年5月7日
3378
+ * @param {String} [type] - 储存类型
3379
+ * @param {String, Array, Object} [key] - 数据的名称,array类型表示多个key保存同一个value,object类型时对象的属性名称作为key属性值作为value
3380
+ * @param {String} [value] - 数据的值
3381
+ **/
3382
+ var setStorage = function setStorage(_ref18) {
3383
+ var type = _ref18.type,
3384
+ key = _ref18.key,
3385
+ value = _ref18.value;
3386
+
3387
+ type = type || getStorage('storage');
3388
+
3389
+ if (value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
3390
+ value = JSON.stringify(value);
3391
+ }
3392
+ if (type === 'localStorage') {
3393
+ if (typeof key === 'string') {
3394
+ localStorage.setItem(key, value);
3395
+ if (key === 'token') {
3396
+ setCookie('token', value);
3397
+ }
3398
+ } else if (Array.isArray(key)) {
3399
+ for (var i in key) {
3400
+ localStorage.setItem(key[i], value);
3401
+ if (key[i] === 'token') {
3402
+ setCookie('token', value);
3403
+ }
3404
+ }
3405
+ } else {
3406
+ for (var _i7 in key) {
3407
+ var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
3408
+ localStorage.setItem(_i7, val);
3409
+ if (_i7 === 'token') {
3410
+ setCookie('token', val);
3411
+ }
3412
+ }
3413
+ }
3414
+ } else {
3415
+ if (typeof key === 'string') {
3416
+ sessionStorage.setItem(key, value);
3417
+ if (key === 'token') {
3418
+ setCookie('token', value);
3419
+ }
3420
+ } else if (Array.isArray(key)) {
3421
+ for (var _i8 in key) {
3422
+ sessionStorage.setItem(key[_i8], value);
3423
+ if (key[_i8] === 'token') {
3424
+ setCookie('token', value);
3425
+ }
3426
+ }
3427
+ } else {
3428
+ for (var _i9 in key) {
3429
+ var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
3430
+ sessionStorage.setItem(_i9, _val);
3431
+ if (_i9 === 'token') {
3432
+ setCookie('token', _val);
3433
+ }
3434
+ }
3435
+ }
3436
+ }
3437
+ };
3438
+
3439
+ /**
3440
+ * getStorage
3441
+ * @desc:获取本地储存数据
3442
+ * @author huangbo
3443
+ * @date 2022年5月7日
3444
+ * @param {String} [key] - 获取的名称
3445
+ **/
3446
+ var getStorage = function getStorage(key) {
3447
+ if (key) {
3448
+ var res = sessionStorage.getItem(key) || localStorage.getItem(key) || win[key];
3449
+ if (key === 'host' && !res) {
3450
+ return win.location.origin;
3451
+ }
3452
+ return res;
3453
+ }
3454
+ var defaults = {};
3455
+ var token = sessionStorage.getItem('token') || localStorage.getItem('token') || getCookie('token') || win.token;
3456
+ var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || getCookie('ssId') || win.ssId;
3457
+
3458
+ var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || getCookie('deviceUnique') || win.deviceUnique;
3459
+ if (token) {
3460
+ defaults.Authorization = token;
3461
+ }
3462
+ if (ssId) {
3463
+ defaults.ssId = ssId;
3464
+ }
3465
+ if (deviceUnique) {
3466
+ defaults.deviceUnique = deviceUnique;
3467
+ }
3468
+ return defaults;
3469
+ };
3470
+
3471
+ /**
3472
+ * removeStorage
3473
+ * @desc:删除本地储存数据
3474
+ * @author huangbo
3475
+ * @date 2022年5月7日
3476
+ * @param {String, Array} [key] - 获取的名称
3477
+ **/
3478
+ var removeStorage = function removeStorage(key) {
3479
+ if (Array.isArray(key)) {
3480
+ for (var i = 0; i < key.length; i++) {
3481
+ sessionStorage.removeItem(key[i]);
3482
+ localStorage.removeItem(key[i]);
3483
+ if (key[i] === 'token') {
3484
+ removeCookie('token');
3485
+ }
3486
+ }
3487
+ } else if (key) {
3488
+ sessionStorage.removeItem(key);
3489
+ localStorage.removeItem(key);
3490
+ if (key === 'token') {
3491
+ removeCookie('token');
3492
+ }
3493
+ } else {
3494
+ sessionStorage.clear();
3495
+ localStorage.clear();
3496
+ removeCookie('token');
3497
+ }
3498
+ };
3499
+
3500
+ /**
3501
+ * setCookie
3502
+ * @desc 设置cookie
3503
+ * @author huangbo
3504
+ * @param {string} [name] cookie名称
3505
+ * @return {string} [value] cookie值
3506
+ **/
3507
+ var setCookie = function setCookie(name, value) {
3508
+ // 不设置 expires 或 max-age,默认为会话 Cookie
3509
+ document.cookie = encodeURIComponent(name) + '=' + encodeURIComponent(value) + '; path=/';
3510
+ };
3511
+
3512
+ /**
3513
+ * getCookie
3514
+ * @desc 获取cookie中指定名称的值
3515
+ * @author huangbo
3516
+ * @param {string} [name] cookie名称
3517
+ **/
3518
+ var getCookie = function getCookie(name) {
3519
+ var cookies = document.cookie.split(';');
3520
+ for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i10 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
3521
+ var _ref19;
3522
+
3523
+ if (_isArray) {
3524
+ if (_i10 >= _iterator.length) break;
3525
+ _ref19 = _iterator[_i10++];
3526
+ } else {
3527
+ _i10 = _iterator.next();
3528
+ if (_i10.done) break;
3529
+ _ref19 = _i10.value;
3530
+ }
3531
+
3532
+ var cookie = _ref19;
3533
+
3534
+ var _cookie$trim$split = cookie.trim().split('='),
3535
+ cookieName = _cookie$trim$split[0],
3536
+ cookieValue = _cookie$trim$split[1];
3537
+
3538
+ if (decodeURIComponent(cookieName) === name) {
3539
+ return decodeURIComponent(cookieValue);
3540
+ }
3541
+ }
3542
+ return null;
3543
+ };
3544
+
3545
+ /**
3546
+ * removeCookie
3547
+ * @desc:删除cookie
3548
+ * @author huangbo
3549
+ * @date 2022年5月7日
3550
+ * @param {String, Array} [key] - 获取的名称
3551
+ **/
3552
+ var removeCookie = function removeCookie(key) {
3553
+ if (Array.isArray(key)) {
3554
+ for (var i = 0; i < key.length; i++) {
3555
+ document.cookie = encodeURIComponent(key[i]) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
3556
+ }
3557
+ } else {
3558
+ document.cookie = encodeURIComponent(key) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
3559
+ }
3560
+ };
3561
+
3474
3562
  /* harmony default export */ __webpack_exports__["a"] = ({
3475
3563
  ajax: ajax,
3476
3564
  ajaxStream: ajaxStream,
@@ -3497,6 +3585,7 @@ var watermark = function watermark(option) {
3497
3585
  formatDate: formatDate,
3498
3586
  getCurrentDate: getCurrentDate,
3499
3587
  getCurrentDateTime: getCurrentDateTime,
3588
+ getCookie: getCookie,
3500
3589
  getHour: getHour,
3501
3590
  getMyWinTop: getMyWinTop,
3502
3591
  getWeekNumber: getWeekNumber,
@@ -3534,6 +3623,7 @@ var watermark = function watermark(option) {
3534
3623
  mixColor: mixColor,
3535
3624
  overbrim: overbrim,
3536
3625
  queryParams: queryParams,
3626
+ removeCookie: removeCookie,
3537
3627
  receiveMessage: receiveMessage,
3538
3628
  removeStorage: removeStorage,
3539
3629
  replenish: replenish,
@@ -3541,6 +3631,7 @@ var watermark = function watermark(option) {
3541
3631
  rgbToHsv: rgbToHsv,
3542
3632
  rmbToCapital: rmbToCapital,
3543
3633
  sendMessage: sendMessage,
3634
+ setCookie: setCookie,
3544
3635
  setFavicon: setFavicon,
3545
3636
  setScale: setScale,
3546
3637
  setStorage: setStorage,
@@ -4345,8 +4436,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4345
4436
 
4346
4437
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4347
4438
 
4348
- /**
4349
- * JIT_GW_ExtInterface 模块,提供与客户端交互的功能
4439
+ /**
4440
+ * JIT_GW_ExtInterface 模块,提供与客户端交互的功能
4350
4441
  */
4351
4442
  var CA_ExtInterface = function () {
4352
4443
  function CA_ExtInterface() {
@@ -4359,11 +4450,11 @@ var CA_ExtInterface = function () {
4359
4450
  this.init();
4360
4451
  }
4361
4452
 
4362
- /**
4363
- * 简单的 Object.assign 兼容 IE <= 11 的 polyfill
4364
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
4365
- * @param {Object} target - 目标对象
4366
- * @param {Object} options - 新的选项对象
4453
+ /**
4454
+ * 简单的 Object.assign 兼容 IE <= 11 的 polyfill
4455
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
4456
+ * @param {Object} target - 目标对象
4457
+ * @param {Object} options - 新的选项对象
4367
4458
  */
4368
4459
 
4369
4460
 
@@ -4378,8 +4469,8 @@ var CA_ExtInterface = function () {
4378
4469
  }
4379
4470
  };
4380
4471
 
4381
- /**
4382
- * 检查当前会话的 WebSocket URL
4472
+ /**
4473
+ * 检查当前会话的 WebSocket URL
4383
4474
  */
4384
4475
 
4385
4476
 
@@ -4393,8 +4484,8 @@ var CA_ExtInterface = function () {
4393
4484
  }
4394
4485
  };
4395
4486
 
4396
- /**
4397
- * 检查是否使用 ActiveX
4487
+ /**
4488
+ * 检查是否使用 ActiveX
4398
4489
  */
4399
4490
 
4400
4491
 
@@ -4406,11 +4497,11 @@ var CA_ExtInterface = function () {
4406
4497
  }
4407
4498
  };
4408
4499
 
4409
- /**
4410
- * 扩展发送消息并等待响应
4411
- * @param {string} operatorCmd - 操作命令
4412
- * @param {string} sendMsg - 发送的消息
4413
- * @returns {string} 响应消息
4500
+ /**
4501
+ * 扩展发送消息并等待响应
4502
+ * @param {string} operatorCmd - 操作命令
4503
+ * @param {string} sendMsg - 发送的消息
4504
+ * @returns {string} 响应消息
4414
4505
  */
4415
4506
 
4416
4507
 
@@ -4420,11 +4511,11 @@ var CA_ExtInterface = function () {
4420
4511
  return this.sendAndWaitMessage(this.currentSessionWSURL, strSendMsg);
4421
4512
  };
4422
4513
 
4423
- /**
4424
- * 发送消息并等待响应
4425
- * @param {string} wsurl - WebSocket URL
4426
- * @param {string} sendMsg - 发送的消息
4427
- * @returns {string} 响应消息
4514
+ /**
4515
+ * 发送消息并等待响应
4516
+ * @param {string} wsurl - WebSocket URL
4517
+ * @param {string} sendMsg - 发送的消息
4518
+ * @returns {string} 响应消息
4428
4519
  */
4429
4520
 
4430
4521
 
@@ -4448,9 +4539,9 @@ var CA_ExtInterface = function () {
4448
4539
  return ResultMsg;
4449
4540
  };
4450
4541
 
4451
- /**
4452
- * 配置选项
4453
- * @param {Object} extendOption - 扩展选项
4542
+ /**
4543
+ * 配置选项
4544
+ * @param {Object} extendOption - 扩展选项
4454
4545
  */
4455
4546
 
4456
4547
 
@@ -4460,8 +4551,8 @@ var CA_ExtInterface = function () {
4460
4551
  }
4461
4552
  };
4462
4553
 
4463
- /**
4464
- * 初始化
4554
+ /**
4555
+ * 初始化
4465
4556
  */
4466
4557
 
4467
4558
 
@@ -4469,9 +4560,9 @@ var CA_ExtInterface = function () {
4469
4560
  this.isUseActioveX();
4470
4561
  };
4471
4562
 
4472
- /**
4473
- * 返回客户端的版本
4474
- * @returns {string} 客户端版本
4563
+ /**
4564
+ * 返回客户端的版本
4565
+ * @returns {string} 客户端版本
4475
4566
  */
4476
4567
 
4477
4568
 
@@ -4484,13 +4575,13 @@ var CA_ExtInterface = function () {
4484
4575
  }
4485
4576
  };
4486
4577
 
4487
- /**
4488
- * 下载客户端程序并安装
4489
- * @param {string} bstrURL - 下载地址
4490
- * @param {string} bstrHashValue - 哈希值
4491
- * @param {boolean} bSync - 是否同步安装
4492
- * @param {boolean} bOnlySSO - 是否仅安装 SSO
4493
- * @returns {number} 安装结果
4578
+ /**
4579
+ * 下载客户端程序并安装
4580
+ * @param {string} bstrURL - 下载地址
4581
+ * @param {string} bstrHashValue - 哈希值
4582
+ * @param {boolean} bSync - 是否同步安装
4583
+ * @param {boolean} bOnlySSO - 是否仅安装 SSO
4584
+ * @returns {number} 安装结果
4494
4585
  */
4495
4586
 
4496
4587
 
@@ -4504,11 +4595,11 @@ var CA_ExtInterface = function () {
4504
4595
  }
4505
4596
  };
4506
4597
 
4507
- /**
4508
- * 获取硬件指纹信息
4509
- * @param {number} dwSign - 签名
4510
- * @param {string} strGateWayIP - 网关 IP
4511
- * @returns {string} 硬件指纹信息
4598
+ /**
4599
+ * 获取硬件指纹信息
4600
+ * @param {number} dwSign - 签名
4601
+ * @param {string} strGateWayIP - 网关 IP
4602
+ * @returns {string} 硬件指纹信息
4512
4603
  */
4513
4604
 
4514
4605
 
@@ -4522,12 +4613,12 @@ var CA_ExtInterface = function () {
4522
4613
  }
4523
4614
  };
4524
4615
 
4525
- /**
4526
- * 设置转发策略和代填策略
4527
- * @param {string} strProxyPolicy - 转发策略
4528
- * @param {string} strSSOPolicy - 代填策略
4529
- * @param {string} strGatewayAddress - 网关地址
4530
- * @returns {number} 设置结果
4616
+ /**
4617
+ * 设置转发策略和代填策略
4618
+ * @param {string} strProxyPolicy - 转发策略
4619
+ * @param {string} strSSOPolicy - 代填策略
4620
+ * @param {string} strGatewayAddress - 网关地址
4621
+ * @returns {number} 设置结果
4531
4622
  */
4532
4623
 
4533
4624
 
@@ -4541,11 +4632,11 @@ var CA_ExtInterface = function () {
4541
4632
  }
4542
4633
  };
4543
4634
 
4544
- /**
4545
- * 启动认证信息模块
4546
- * @param {string} strFileName - 文件名
4547
- * @param {string} strXmlData - XML 数据
4548
- * @returns {string} 认证信息
4635
+ /**
4636
+ * 启动认证信息模块
4637
+ * @param {string} strFileName - 文件名
4638
+ * @param {string} strXmlData - XML 数据
4639
+ * @returns {string} 认证信息
4549
4640
  */
4550
4641
 
4551
4642
 
@@ -4559,10 +4650,10 @@ var CA_ExtInterface = function () {
4559
4650
  }
4560
4651
  };
4561
4652
 
4562
- /**
4563
- * 打开 BS 应用
4564
- * @param {string} strUrl - 应用 URL
4565
- * @returns {number} 打开结果
4653
+ /**
4654
+ * 打开 BS 应用
4655
+ * @param {string} strUrl - 应用 URL
4656
+ * @returns {number} 打开结果
4566
4657
  */
4567
4658
 
4568
4659
 
@@ -4576,12 +4667,12 @@ var CA_ExtInterface = function () {
4576
4667
  }
4577
4668
  };
4578
4669
 
4579
- /**
4580
- * 打开 CS 应用
4581
- * @param {string} strGatewayAddress - 网关地址
4582
- * @param {string} strAppFlag - 应用标识
4583
- * @param {string} strAppPath - 应用路径
4584
- * @returns {number} 打开结果
4670
+ /**
4671
+ * 打开 CS 应用
4672
+ * @param {string} strGatewayAddress - 网关地址
4673
+ * @param {string} strAppFlag - 应用标识
4674
+ * @param {string} strAppPath - 应用路径
4675
+ * @returns {number} 打开结果
4585
4676
  */
4586
4677
 
4587
4678
 
@@ -4595,13 +4686,13 @@ var CA_ExtInterface = function () {
4595
4686
  }
4596
4687
  };
4597
4688
 
4598
- /**
4599
- * 设置自动更新策略
4600
- * @param {string} strGatewayAddress - 网关地址
4601
- * @param {number} nGatewayPort - 网关端口
4602
- * @param {string} strUserToken - 用户令牌
4603
- * @param {number} updatedelay - 更新延迟
4604
- * @returns {number} 设置结果
4689
+ /**
4690
+ * 设置自动更新策略
4691
+ * @param {string} strGatewayAddress - 网关地址
4692
+ * @param {number} nGatewayPort - 网关端口
4693
+ * @param {string} strUserToken - 用户令牌
4694
+ * @param {number} updatedelay - 更新延迟
4695
+ * @returns {number} 设置结果
4605
4696
  */
4606
4697
 
4607
4698
 
@@ -4615,10 +4706,10 @@ var CA_ExtInterface = function () {
4615
4706
  }
4616
4707
  };
4617
4708
 
4618
- /**
4619
- * 获取客户端 IP
4620
- * @param {string} strGatewayIP - 网关 IP
4621
- * @returns {string} 客户端 IP
4709
+ /**
4710
+ * 获取客户端 IP
4711
+ * @param {string} strGatewayIP - 网关 IP
4712
+ * @returns {string} 客户端 IP
4622
4713
  */
4623
4714
 
4624
4715
 
@@ -4632,10 +4723,10 @@ var CA_ExtInterface = function () {
4632
4723
  }
4633
4724
  };
4634
4725
 
4635
- /**
4636
- * 登出网关
4637
- * @param {string} strServerIP - 服务器 IP
4638
- * @returns {number} 登出结果
4726
+ /**
4727
+ * 登出网关
4728
+ * @param {string} strServerIP - 服务器 IP
4729
+ * @returns {number} 登出结果
4639
4730
  */
4640
4731
 
4641
4732
 
@@ -4649,11 +4740,11 @@ var CA_ExtInterface = function () {
4649
4740
  }
4650
4741
  };
4651
4742
 
4652
- /**
4653
- * 运行安装包
4654
- * @param {number} lRunType - 运行类型
4655
- * @param {boolean} bIsOnlySSO - 是否仅安装 SSO
4656
- * @returns {number} 运行结果
4743
+ /**
4744
+ * 运行安装包
4745
+ * @param {number} lRunType - 运行类型
4746
+ * @param {boolean} bIsOnlySSO - 是否仅安装 SSO
4747
+ * @returns {number} 运行结果
4657
4748
  */
4658
4749
 
4659
4750
 
@@ -4667,9 +4758,9 @@ var CA_ExtInterface = function () {
4667
4758
  }
4668
4759
  };
4669
4760
 
4670
- /**
4671
- * 获取下载进度
4672
- * @returns {number} 下载进度
4761
+ /**
4762
+ * 获取下载进度
4763
+ * @returns {number} 下载进度
4673
4764
  */
4674
4765
 
4675
4766
 
@@ -4683,9 +4774,9 @@ var CA_ExtInterface = function () {
4683
4774
  }
4684
4775
  };
4685
4776
 
4686
- /**
4687
- * 是否安装完成
4688
- * @returns {boolean} 安装完成状态
4777
+ /**
4778
+ * 是否安装完成
4779
+ * @returns {boolean} 安装完成状态
4689
4780
  */
4690
4781
 
4691
4782
 
@@ -4699,11 +4790,11 @@ var CA_ExtInterface = function () {
4699
4790
  }
4700
4791
  };
4701
4792
 
4702
- /**
4703
- * 初始化签包对象
4704
- * @param {string} strAlgType - 算法类型
4705
- * @param {string} strAuxParam - 辅助参数
4706
- * @returns {number} 初始化结果
4793
+ /**
4794
+ * 初始化签包对象
4795
+ * @param {string} strAlgType - 算法类型
4796
+ * @param {string} strAuxParam - 辅助参数
4797
+ * @returns {number} 初始化结果
4707
4798
  */
4708
4799
 
4709
4800
 
@@ -4717,10 +4808,10 @@ var CA_ExtInterface = function () {
4717
4808
  }
4718
4809
  };
4719
4810
 
4720
- /**
4721
- * 设置摘要算法
4722
- * @param {string} strDigestAlg - 摘要算法
4723
- * @returns {number} 设置结果
4811
+ /**
4812
+ * 设置摘要算法
4813
+ * @param {string} strDigestAlg - 摘要算法
4814
+ * @returns {number} 设置结果
4724
4815
  */
4725
4816
 
4726
4817
 
@@ -4734,10 +4825,10 @@ var CA_ExtInterface = function () {
4734
4825
  }
4735
4826
  };
4736
4827
 
4737
- /**
4738
- * 设置单证书是否弹出对话框
4739
- * @param {number} isChoose - 是否弹出对话框
4740
- * @returns {number} 设置结果
4828
+ /**
4829
+ * 设置单证书是否弹出对话框
4830
+ * @param {number} isChoose - 是否弹出对话框
4831
+ * @returns {number} 设置结果
4741
4832
  */
4742
4833
 
4743
4834
 
@@ -4751,11 +4842,11 @@ var CA_ExtInterface = function () {
4751
4842
  }
4752
4843
  };
4753
4844
 
4754
- /**
4755
- * 添加证书过滤条件
4756
- * @param {number} ulType - 过滤类型
4757
- * @param {string} strValue - 过滤值
4758
- * @returns {number} 添加结果
4845
+ /**
4846
+ * 添加证书过滤条件
4847
+ * @param {number} ulType - 过滤类型
4848
+ * @param {string} strValue - 过滤值
4849
+ * @returns {number} 添加结果
4759
4850
  */
4760
4851
 
4761
4852
 
@@ -4769,9 +4860,9 @@ var CA_ExtInterface = function () {
4769
4860
  }
4770
4861
  };
4771
4862
 
4772
- /**
4773
- * 清除所有过滤条件
4774
- * @returns {number} 清除结果
4863
+ /**
4864
+ * 清除所有过滤条件
4865
+ * @returns {number} 清除结果
4775
4866
  */
4776
4867
 
4777
4868
 
@@ -4785,10 +4876,10 @@ var CA_ExtInterface = function () {
4785
4876
  }
4786
4877
  };
4787
4878
 
4788
- /**
4789
- * P1 签名
4790
- * @param {string} strValueBase64 - 待签名的 Base64 字符串
4791
- * @returns {string} 签名结果
4879
+ /**
4880
+ * P1 签名
4881
+ * @param {string} strValueBase64 - 待签名的 Base64 字符串
4882
+ * @returns {string} 签名结果
4792
4883
  */
4793
4884
 
4794
4885
 
@@ -4802,10 +4893,10 @@ var CA_ExtInterface = function () {
4802
4893
  }
4803
4894
  };
4804
4895
 
4805
- /**
4806
- * P1 签名字符串
4807
- * @param {string} strValue - 待签名的字符串
4808
- * @returns {string} 签名结果
4896
+ /**
4897
+ * P1 签名字符串
4898
+ * @param {string} strValue - 待签名的字符串
4899
+ * @returns {string} 签名结果
4809
4900
  */
4810
4901
 
4811
4902
 
@@ -4819,12 +4910,12 @@ var CA_ExtInterface = function () {
4819
4910
  }
4820
4911
  };
4821
4912
 
4822
- /**
4823
- * P7 签名
4824
- * @param {string} strValueBase64 - 待签名的 Base64 字符串
4825
- * @param {boolean} isDetach - 是否分离签名
4826
- * @param {boolean} isIncludeCert - 是否包含证书
4827
- * @returns {string} 签名结果
4913
+ /**
4914
+ * P7 签名
4915
+ * @param {string} strValueBase64 - 待签名的 Base64 字符串
4916
+ * @param {boolean} isDetach - 是否分离签名
4917
+ * @param {boolean} isIncludeCert - 是否包含证书
4918
+ * @returns {string} 签名结果
4828
4919
  */
4829
4920
 
4830
4921
 
@@ -4838,12 +4929,12 @@ var CA_ExtInterface = function () {
4838
4929
  }
4839
4930
  };
4840
4931
 
4841
- /**
4842
- * P7 签名字符串
4843
- * @param {string} strValue - 待签名的字符串
4844
- * @param {boolean} isDetach - 是否分离签名
4845
- * @param {boolean} isIncludeCert - 是否包含证书
4846
- * @returns {string} 签名结果
4932
+ /**
4933
+ * P7 签名字符串
4934
+ * @param {string} strValue - 待签名的字符串
4935
+ * @param {boolean} isDetach - 是否分离签名
4936
+ * @param {boolean} isIncludeCert - 是否包含证书
4937
+ * @returns {string} 签名结果
4847
4938
  */
4848
4939
 
4849
4940
 
@@ -4857,9 +4948,9 @@ var CA_ExtInterface = function () {
4857
4948
  }
4858
4949
  };
4859
4950
 
4860
- /**
4861
- * 释放签名对象
4862
- * @returns {number} 释放结果
4951
+ /**
4952
+ * 释放签名对象
4953
+ * @returns {number} 释放结果
4863
4954
  */
4864
4955
 
4865
4956
 
@@ -4873,9 +4964,9 @@ var CA_ExtInterface = function () {
4873
4964
  }
4874
4965
  };
4875
4966
 
4876
- /**
4877
- * 获取签名版本
4878
- * @returns {string} 签名版本
4967
+ /**
4968
+ * 获取签名版本
4969
+ * @returns {string} 签名版本
4879
4970
  */
4880
4971
 
4881
4972
 
@@ -4889,9 +4980,9 @@ var CA_ExtInterface = function () {
4889
4980
  }
4890
4981
  };
4891
4982
 
4892
- /**
4893
- * 获取签名证书
4894
- * @returns {string} 签名证书
4983
+ /**
4984
+ * 获取签名证书
4985
+ * @returns {string} 签名证书
4895
4986
  */
4896
4987
 
4897
4988
 
@@ -4905,9 +4996,9 @@ var CA_ExtInterface = function () {
4905
4996
  }
4906
4997
  };
4907
4998
 
4908
- /**
4909
- * 获取错误码
4910
- * @returns {number} 错误码
4999
+ /**
5000
+ * 获取错误码
5001
+ * @returns {number} 错误码
4911
5002
  */
4912
5003
 
4913
5004
 
@@ -4921,9 +5012,9 @@ var CA_ExtInterface = function () {
4921
5012
  }
4922
5013
  };
4923
5014
 
4924
- /**
4925
- * 获取错误信息
4926
- * @returns {string} 错误信息
5015
+ /**
5016
+ * 获取错误信息
5017
+ * @returns {string} 错误信息
4927
5018
  */
4928
5019
 
4929
5020
 
@@ -4937,9 +5028,9 @@ var CA_ExtInterface = function () {
4937
5028
  }
4938
5029
  };
4939
5030
 
4940
- /**
4941
- * 销毁认证对象
4942
- * @returns {number} 销毁结果
5031
+ /**
5032
+ * 销毁认证对象
5033
+ * @returns {number} 销毁结果
4943
5034
  */
4944
5035
 
4945
5036
 
@@ -4953,9 +5044,9 @@ var CA_ExtInterface = function () {
4953
5044
  }
4954
5045
  };
4955
5046
 
4956
- /**
4957
- * 获取证书类型
4958
- * @returns {string} 证书类型
5047
+ /**
5048
+ * 获取证书类型
5049
+ * @returns {string} 证书类型
4959
5050
  */
4960
5051
 
4961
5052
 
@@ -4969,9 +5060,9 @@ var CA_ExtInterface = function () {
4969
5060
  }
4970
5061
  };
4971
5062
 
4972
- /**
4973
- * 获取签名摘要算法
4974
- * @returns {string} 签名摘要算法
5063
+ /**
5064
+ * 获取签名摘要算法
5065
+ * @returns {string} 签名摘要算法
4975
5066
  */
4976
5067
 
4977
5068
 
@@ -4985,11 +5076,11 @@ var CA_ExtInterface = function () {
4985
5076
  }
4986
5077
  };
4987
5078
 
4988
- /**
4989
- * 使能调用序列
4990
- * @param {boolean} bCallQueueEnable - 是否使能调用序列
4991
- * @param {boolean} bHeadInfoEnable - 是否使能头部信息
4992
- * @returns {number} 使能结果
5079
+ /**
5080
+ * 使能调用序列
5081
+ * @param {boolean} bCallQueueEnable - 是否使能调用序列
5082
+ * @param {boolean} bHeadInfoEnable - 是否使能头部信息
5083
+ * @returns {number} 使能结果
4993
5084
  */
4994
5085
 
4995
5086
 
@@ -5003,9 +5094,9 @@ var CA_ExtInterface = function () {
5003
5094
  }
5004
5095
  };
5005
5096
 
5006
- /**
5007
- * 清空调用序列结果
5008
- * @returns {number} 清空调用序列结果
5097
+ /**
5098
+ * 清空调用序列结果
5099
+ * @returns {number} 清空调用序列结果
5009
5100
  */
5010
5101
 
5011
5102
 
@@ -5019,9 +5110,9 @@ var CA_ExtInterface = function () {
5019
5110
  }
5020
5111
  };
5021
5112
 
5022
- /**
5023
- * 获取调用序列结果
5024
- * @returns {string} 调用序列结果
5113
+ /**
5114
+ * 获取调用序列结果
5115
+ * @returns {string} 调用序列结果
5025
5116
  */
5026
5117
 
5027
5118
 
@@ -5035,12 +5126,12 @@ var CA_ExtInterface = function () {
5035
5126
  }
5036
5127
  };
5037
5128
 
5038
- /**
5039
- * 客户端安全策略检查
5040
- * @param {string} strGatewayAddress - 网关地址
5041
- * @param {number} usGatewayPort - 网关端口
5042
- * @param {string} strSecurityPolicys - 安全策略
5043
- * @returns {boolean} 检查结果
5129
+ /**
5130
+ * 客户端安全策略检查
5131
+ * @param {string} strGatewayAddress - 网关地址
5132
+ * @param {number} usGatewayPort - 网关端口
5133
+ * @param {string} strSecurityPolicys - 安全策略
5134
+ * @returns {boolean} 检查结果
5044
5135
  */
5045
5136
 
5046
5137
 
@@ -5054,9 +5145,9 @@ var CA_ExtInterface = function () {
5054
5145
  }
5055
5146
  };
5056
5147
 
5057
- /**
5058
- * 获取通讯协议版本
5059
- * @returns {string} 通讯协议版本
5148
+ /**
5149
+ * 获取通讯协议版本
5150
+ * @returns {string} 通讯协议版本
5060
5151
  */
5061
5152
 
5062
5153
 
@@ -5070,13 +5161,13 @@ var CA_ExtInterface = function () {
5070
5161
  }
5071
5162
  };
5072
5163
 
5073
- /**
5074
- * 修改 Key 的 Pin 码
5075
- * @param {string} strCertSn - 证书序列号
5076
- * @param {number} lPinCodeType - Pin 码类型
5077
- * @param {string} strCurPinCode - 当前 Pin 码
5078
- * @param {string} strNewPinCode - 新 Pin 码
5079
- * @returns {number} 修改结果
5164
+ /**
5165
+ * 修改 Key 的 Pin 码
5166
+ * @param {string} strCertSn - 证书序列号
5167
+ * @param {number} lPinCodeType - Pin 码类型
5168
+ * @param {string} strCurPinCode - 当前 Pin 码
5169
+ * @param {string} strNewPinCode - 新 Pin 码
5170
+ * @returns {number} 修改结果
5080
5171
  */
5081
5172
 
5082
5173
 
@@ -5090,10 +5181,10 @@ var CA_ExtInterface = function () {
5090
5181
  }
5091
5182
  };
5092
5183
 
5093
- /**
5094
- * 等待策略设置完毕
5095
- * @param {string} strGatewayAddress - 网关地址
5096
- * @returns {number} 等待结果
5184
+ /**
5185
+ * 等待策略设置完毕
5186
+ * @param {string} strGatewayAddress - 网关地址
5187
+ * @returns {number} 等待结果
5097
5188
  */
5098
5189
 
5099
5190
 
@@ -5107,10 +5198,10 @@ var CA_ExtInterface = function () {
5107
5198
  }
5108
5199
  };
5109
5200
 
5110
- /**
5111
- * 获取会话 Token
5112
- * @param {string} strGatewayAddress - 网关地址
5113
- * @returns {string} 会话 Token
5201
+ /**
5202
+ * 获取会话 Token
5203
+ * @param {string} strGatewayAddress - 网关地址
5204
+ * @returns {string} 会话 Token
5114
5205
  */
5115
5206
 
5116
5207
 
@@ -5124,9 +5215,9 @@ var CA_ExtInterface = function () {
5124
5215
  }
5125
5216
  };
5126
5217
 
5127
- /**
5128
- * 获取控件版本
5129
- * @returns {string} 控件版本
5218
+ /**
5219
+ * 获取控件版本
5220
+ * @returns {string} 控件版本
5130
5221
  */
5131
5222
 
5132
5223
 
@@ -5140,10 +5231,10 @@ var CA_ExtInterface = function () {
5140
5231
  }
5141
5232
  };
5142
5233
 
5143
- /**
5144
- * 设置语言资源
5145
- * @param {string} strLanguage - 语言资源
5146
- * @returns {number} 设置结果
5234
+ /**
5235
+ * 设置语言资源
5236
+ * @param {string} strLanguage - 语言资源
5237
+ * @returns {number} 设置结果
5147
5238
  */
5148
5239
 
5149
5240
 
@@ -5157,12 +5248,12 @@ var CA_ExtInterface = function () {
5157
5248
  }
5158
5249
  };
5159
5250
 
5160
- /**
5161
- * 获取用户属性
5162
- * @param {string} strGatewayAddress - 网关地址
5163
- * @param {string} strAppFlag - 应用标识
5164
- * @param {string} strAttributeName - 属性名称
5165
- * @returns {string} 用户属性值
5251
+ /**
5252
+ * 获取用户属性
5253
+ * @param {string} strGatewayAddress - 网关地址
5254
+ * @param {string} strAppFlag - 应用标识
5255
+ * @param {string} strAttributeName - 属性名称
5256
+ * @returns {string} 用户属性值
5166
5257
  */
5167
5258
 
5168
5259
 
@@ -5176,9 +5267,9 @@ var CA_ExtInterface = function () {
5176
5267
  }
5177
5268
  };
5178
5269
 
5179
- /**
5180
- * 获取签名加密 PIN 码
5181
- * @returns {string} 签名加密 PIN 码
5270
+ /**
5271
+ * 获取签名加密 PIN 码
5272
+ * @returns {string} 签名加密 PIN 码
5182
5273
  */
5183
5274
 
5184
5275
 
@@ -5191,20 +5282,20 @@ var CA_ExtInterface = function () {
5191
5282
  return result.value;
5192
5283
  }
5193
5284
  };
5194
- /*
5195
- *曙光四川CA
5196
- *'SOF_GetUserList' 证书列表
5197
- *'SOF_ExportUserCert' 导出证书
5198
- *'SOF_GetCertInfo': 获取证书信息
5199
- *'SOF_GenRandom': 生成随机数
5200
- *'SOF_SignData': 获取证书签名
5201
- *'SOF_Login': 登录证书
5202
- *'SOF_GetPinRetryCount': 剩余次数
5285
+ /*
5286
+ *曙光四川CA
5287
+ *'SOF_GetUserList' 证书列表
5288
+ *'SOF_ExportUserCert' 导出证书
5289
+ *'SOF_GetCertInfo': 获取证书信息
5290
+ *'SOF_GenRandom': 生成随机数
5291
+ *'SOF_SignData': 获取证书签名
5292
+ *'SOF_Login': 登录证书
5293
+ *'SOF_GetPinRetryCount': 剩余次数
5203
5294
  */
5204
- /**
5205
- *
5206
- * 获取webSocket消息
5207
- * @returns {string}
5295
+ /**
5296
+ *
5297
+ * 获取webSocket消息
5298
+ * @returns {string}
5208
5299
  */
5209
5300
 
5210
5301
 
@@ -5240,10 +5331,10 @@ var CA_ExtInterface = function () {
5240
5331
  };
5241
5332
  });
5242
5333
  };
5243
- /**
5244
- *
5245
- * base64解码
5246
- * @returns {string} base64解码后的字符串
5334
+ /**
5335
+ *
5336
+ * base64解码
5337
+ * @returns {string} base64解码后的字符串
5247
5338
  */
5248
5339
 
5249
5340
 
@@ -5278,10 +5369,10 @@ var CA_ExtInterface = function () {
5278
5369
  val = this.utf8_decode(val);
5279
5370
  return val;
5280
5371
  };
5281
- /**
5282
- *
5283
- * base64编码
5284
- * @returns {string} base64编码后的字符串
5372
+ /**
5373
+ *
5374
+ * base64编码
5375
+ * @returns {string} base64编码后的字符串
5285
5376
  */
5286
5377
 
5287
5378
 
@@ -5314,10 +5405,10 @@ var CA_ExtInterface = function () {
5314
5405
  }
5315
5406
  return val;
5316
5407
  };
5317
- /**
5318
- *
5319
- * utf8解码
5320
- * @returns {string} utf8解码后的字符串
5408
+ /**
5409
+ *
5410
+ * utf8解码
5411
+ * @returns {string} utf8解码后的字符串
5321
5412
  */
5322
5413
 
5323
5414
 
@@ -5346,10 +5437,10 @@ var CA_ExtInterface = function () {
5346
5437
  }
5347
5438
  return string;
5348
5439
  };
5349
- /**
5350
- *
5351
- * utf8编码
5352
- * @returns {string} utf8编码后的字符串
5440
+ /**
5441
+ *
5442
+ * utf8编码
5443
+ * @returns {string} utf8编码后的字符串
5353
5444
  */
5354
5445
 
5355
5446