eoss-ui 0.4.54 → 0.4.56

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 (65) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/lib/button-group.js +137 -104
  3. package/lib/button.js +139 -106
  4. package/lib/cascader.js +2 -2
  5. package/lib/checkbox-group.js +141 -108
  6. package/lib/config/api.js +4 -0
  7. package/lib/data-table-form.js +138 -105
  8. package/lib/data-table.js +140 -107
  9. package/lib/date-picker.js +146 -113
  10. package/lib/dialog.js +141 -108
  11. package/lib/eoss-ui.common.js +790 -296
  12. package/lib/flow-group.js +137 -104
  13. package/lib/flow-list.js +144 -111
  14. package/lib/flow.js +188 -155
  15. package/lib/form.js +138 -105
  16. package/lib/handle-user.js +138 -105
  17. package/lib/handler.js +138 -105
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +139 -106
  20. package/lib/input.js +139 -106
  21. package/lib/label.js +2 -2
  22. package/lib/login.js +167 -130
  23. package/lib/main.js +153 -120
  24. package/lib/mainComp.js +153 -120
  25. package/lib/menu.js +2 -2
  26. package/lib/nav.js +137 -104
  27. package/lib/notify.js +109 -101
  28. package/lib/page.js +137 -104
  29. package/lib/player.js +137 -104
  30. package/lib/qr-code.js +137 -104
  31. package/lib/radio-group.js +138 -105
  32. package/lib/retrial-auth.js +3328 -0
  33. package/lib/select-ganged.js +139 -106
  34. package/lib/select.js +140 -107
  35. package/lib/selector-panel.js +155 -122
  36. package/lib/selector.js +140 -107
  37. package/lib/sizer.js +141 -108
  38. package/lib/steps.js +139 -106
  39. package/lib/switch.js +139 -106
  40. package/lib/table-form.js +139 -106
  41. package/lib/tabs-panel.js +2 -2
  42. package/lib/tabs.js +146 -113
  43. package/lib/theme-chalk/index.css +1 -1
  44. package/lib/theme-chalk/retrial-auth.css +1 -0
  45. package/lib/tips.js +140 -107
  46. package/lib/toolbar.js +2 -2
  47. package/lib/tree-group.js +139 -106
  48. package/lib/tree.js +140 -107
  49. package/lib/upload.js +147 -114
  50. package/lib/utils/util.js +33 -8
  51. package/lib/wujie.js +139 -106
  52. package/lib/wxlogin.js +139 -106
  53. package/package.json +2 -2
  54. package/packages/checkbox-group/src/main.vue +7 -7
  55. package/packages/dialog/src/main.vue +2 -2
  56. package/packages/login/src/main.vue +21 -15
  57. package/packages/retrial-auth/index.js +5 -0
  58. package/packages/retrial-auth/src/main.vue +271 -0
  59. package/packages/theme-chalk/lib/index.css +1 -1
  60. package/packages/theme-chalk/lib/retrial-auth.css +1 -0
  61. package/packages/theme-chalk/src/index.scss +1 -0
  62. package/packages/theme-chalk/src/retrial-auth.scss +38 -0
  63. package/src/config/api.js +4 -0
  64. package/src/index.js +4 -1
  65. package/src/utils/util.js +33 -7
package/lib/upload.js CHANGED
@@ -102,8 +102,6 @@ module.exports =
102
102
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
103
103
  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; };
104
104
 
105
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
106
-
107
105
  /**
108
106
  * 新封装公告方法规范:
109
107
  * 1.方法顺序按字母顺序排列
@@ -129,6 +127,7 @@ var $lightColorCount = 5;
129
127
  var $darkColorCount = 4;
130
128
  var publicKey = 'abcdefghijklmnopqrstuvwxyz12345678';
131
129
  var loginMsg = void 0;
130
+ var initAuth = void 0;
132
131
 
133
132
  var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ storeAsString: true });
134
133
 
@@ -207,7 +206,6 @@ var ajax = function ajax(_ref) {
207
206
  });
208
207
  // 请求拦截
209
208
  http.interceptors.request.use(function (config) {
210
- config.header && (config.headers = _extends({}, config.headers, config.header));
211
209
  config.headers.common = getStorage();
212
210
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
213
211
  var requestKey = getRequestKey(config);
@@ -280,11 +278,38 @@ var ajax = function ajax(_ref) {
280
278
  }).catch(function (e) {});
281
279
  }, 1000);
282
280
  }
283
- return Promise.reject(response.data);
284
- } else {
285
- // eslint-disable-next-line no-undef
286
- return Promise.resolve(response.data);
281
+ } else if (response.data.rCode === 61) {
282
+ clearTimeout(initAuth);
283
+ initAuth = setTimeout(function () {
284
+ Object(eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"])({
285
+ title: '请进行二次鉴权',
286
+ closeOnClickModal: false,
287
+ closeOnPressEscape: false,
288
+ showConfirmButton: false,
289
+ dangerouslyUseHTMLString: true,
290
+ scroll: false,
291
+ customClass: 'es-retrial-auth-msg',
292
+ render: function render(h, msgBox) {
293
+ return h('es-retrial-auth', {
294
+ ref: 'auth',
295
+ props: {
296
+ group: response.data.results.retrialAuthGroupIds,
297
+ type: response.data.results.retrialAuthType,
298
+ msgBox: msgBox
299
+ }
300
+ });
301
+ },
302
+ callback: function callback(res, obj) {
303
+ obj.$children.forEach(function (item) {
304
+ item.clearTimeouts && item.clearTimeouts();
305
+ return;
306
+ });
307
+ }
308
+ });
309
+ }, 1000);
287
310
  }
311
+ // eslint-disable-next-line no-undef
312
+ return Promise.resolve(response.data);
288
313
  }
289
314
  }, function (error) {
290
315
  loading && loading.close();
@@ -364,7 +389,7 @@ var ajax = function ajax(_ref) {
364
389
  url: url,
365
390
  data: data,
366
391
  params: params,
367
- header: header
392
+ headers: header
368
393
  });
369
394
  };
370
395
 
@@ -2350,123 +2375,127 @@ var watermark = function watermark(option) {
2350
2375
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2351
2376
 
2352
2377
  "use strict";
2353
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return doCaLogin; });
2354
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return doUserLogin; });
2355
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return doQrLogin; });
2356
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return logout; });
2357
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return initLogin; });
2358
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return switchUserTo; });
2378
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return doCaLogin; });
2379
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return doUserLogin; });
2380
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return doQrLogin; });
2381
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return logout; });
2382
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return initLogin; });
2383
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return switchUserTo; });
2359
2384
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return changeImg; });
2360
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return getLoginCode; });
2361
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return doCodeLogin; });
2385
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return getLoginCode; });
2386
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return doCodeLogin; });
2362
2387
  /* unused harmony export updateCode */
2363
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return getModifyPassCode; });
2388
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return getModifyPassCode; });
2364
2389
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return codeModifyPass; });
2365
2390
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return authCenter; });
2366
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return initModifyPassword; });
2367
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return doWechatQrLogin; });
2368
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getTwoFactorLoginCode; });
2369
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return doTwoFactorLogin; });
2370
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return mainConfig; });
2371
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return initUserSet; });
2372
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return updateUserInfo; });
2391
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return initModifyPassword; });
2392
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return doWechatQrLogin; });
2393
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getTwoFactorLoginCode; });
2394
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return doTwoFactorLogin; });
2395
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return initRetrialAuth; });
2396
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getRetrialAuthCode; });
2397
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return scanCodeRetrialAuth; });
2398
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return codeRetrialAuth; });
2399
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return mainConfig; });
2400
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return initUserSet; });
2401
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return updateUserInfo; });
2373
2402
  /* unused harmony export getUserImgUrl */
2374
2403
  /* unused harmony export getDoorIndex */
2375
2404
  /* unused harmony export refreshOnlineUsers */
2376
2405
  /* unused harmony export getQuickMenuIds */
2377
2406
  /* unused harmony export getApplicationIdArray */
2378
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return getComplexApplications; });
2379
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return getComplexApplicationsNew; });
2407
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return getComplexApplications; });
2408
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return getComplexApplicationsNew; });
2380
2409
  /* unused harmony export getUserCustomInfo */
2381
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return updateUserCustomInfo; });
2382
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return sysMsgPage; });
2383
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return ignoreSysMsg; });
2384
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return ignoreAllSysMsg; });
2385
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return getAdjunctProperties; });
2386
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return uploads; });
2387
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return uploadOnlyOne; });
2388
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return getAdjunctFileInfos; });
2389
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return uploadSort; });
2390
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return downloadByAdjunctId; });
2391
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return uploadDownloads; });
2392
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return previewAdjunct; });
2393
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return previewAdjunct2; });
2394
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return previewAdjunctOffice; });
2395
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return delAdjunct; });
2410
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return updateUserCustomInfo; });
2411
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return sysMsgPage; });
2412
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return ignoreSysMsg; });
2413
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return ignoreAllSysMsg; });
2414
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return getAdjunctProperties; });
2415
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return uploads; });
2416
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return uploadOnlyOne; });
2417
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return getAdjunctFileInfos; });
2418
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return uploadSort; });
2419
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return downloadByAdjunctId; });
2420
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return uploadDownloads; });
2421
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return previewAdjunct; });
2422
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return previewAdjunct2; });
2423
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return previewAdjunctOffice; });
2424
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return delAdjunct; });
2396
2425
  /* unused harmony export upload_updateClassify */
2397
2426
  /* unused harmony export getDeleteAdjunctFileInfos */
2398
2427
  /* unused harmony export getPictureBase64 */
2399
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getSelectorOrgTree; });
2400
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getSelectorOrgDetail; });
2401
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getOrgMainTree; });
2402
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getSelectOrgsubids; });
2403
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return findSysCode; });
2428
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getSelectorOrgTree; });
2429
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getSelectorOrgDetail; });
2430
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getOrgMainTree; });
2431
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getSelectOrgsubids; });
2432
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return findSysCode; });
2404
2433
  /* unused harmony export findUserBaseInfo */
2405
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return gethelpdoc; });
2434
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return gethelpdoc; });
2406
2435
  /* unused harmony export getCurrentuser */
2407
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return mainDetail; });
2408
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return toStartFlow; });
2409
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return tempSave; });
2410
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return commonOpion; });
2436
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return mainDetail; });
2437
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return toStartFlow; });
2438
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return tempSave; });
2439
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return commonOpion; });
2411
2440
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
2412
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return editCommonOpion; });
2413
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return saveCommonOpinion; });
2414
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return updateCommonOpinion; });
2415
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return deleteCommonOpion; });
2416
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getProcessDefList; });
2417
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return getNodeInfo; });
2418
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return findCodeValues; });
2419
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return findSysParam; });
2420
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return findSysCodes; });
2421
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return getNotificationMsg; });
2422
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return getHandleInfoHtml; });
2423
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return taskHandleHtml; });
2441
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return editCommonOpion; });
2442
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return saveCommonOpinion; });
2443
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return updateCommonOpinion; });
2444
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return deleteCommonOpion; });
2445
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getProcessDefList; });
2446
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return getNodeInfo; });
2447
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return findCodeValues; });
2448
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return findSysParam; });
2449
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return findSysCodes; });
2450
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getNotificationMsg; });
2451
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return getHandleInfoHtml; });
2452
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return taskHandleHtml; });
2424
2453
  /* unused harmony export getView */
2425
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return register; });
2426
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return pendedhistoryList; });
2427
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return toTaskRejectHtml; });
2428
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return taskRejectHtml; });
2429
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return toStartTaskRead; });
2430
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return toStartTaskReadIndex; });
2431
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return taskReadHtml; });
2432
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return rejectAndEnd; });
2433
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return toSendMsg; });
2434
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return sendMsg; });
2435
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return endFlowHtml; });
2436
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return handleInfo; });
2437
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return loginUserInfo; });
2438
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return wss; });
2439
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return topic; });
2440
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getPresetCustomInfo; });
2441
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getPresetNodeInfo; });
2442
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return toTaskTransferIndex; });
2443
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return taskTransfer; });
2444
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return toPresetInfoListIndex; });
2445
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return deletePresetInfo; });
2454
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return register; });
2455
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return pendedhistoryList; });
2456
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return toTaskRejectHtml; });
2457
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return taskRejectHtml; });
2458
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return toStartTaskRead; });
2459
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return toStartTaskReadIndex; });
2460
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return taskReadHtml; });
2461
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return rejectAndEnd; });
2462
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return toSendMsg; });
2463
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return sendMsg; });
2464
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return endFlowHtml; });
2465
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return handleInfo; });
2466
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return loginUserInfo; });
2467
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return wss; });
2468
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return topic; });
2469
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getPresetCustomInfo; });
2470
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getPresetNodeInfo; });
2471
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return toTaskTransferIndex; });
2472
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return taskTransfer; });
2473
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return toPresetInfoListIndex; });
2474
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return deletePresetInfo; });
2446
2475
  /* unused harmony export historyListJson */
2447
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return pendedhistoryListJson; });
2448
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return pressListJson; });
2449
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return deleteFlow; });
2450
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return isCanStartSubFlow; });
2451
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return toTaskUnionExamine; });
2452
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return taskUnionExamine; });
2453
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return toTaskTakeAdvice; });
2454
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return taskTakeAdvice; });
2455
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return toTaskStartDraft; });
2456
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return taskStartDraft; });
2457
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return toTaskReview; });
2458
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return taskReview; });
2459
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return toTaskUnionSeal; });
2460
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return taskUnionSeal; });
2461
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return toTwoOfficesDispatch; });
2462
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return twoOfficesDispatch; });
2463
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return sendList; });
2464
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return sendInfo; });
2476
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return pendedhistoryListJson; });
2477
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return pressListJson; });
2478
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return deleteFlow; });
2479
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return isCanStartSubFlow; });
2480
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return toTaskUnionExamine; });
2481
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return taskUnionExamine; });
2482
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return toTaskTakeAdvice; });
2483
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return taskTakeAdvice; });
2484
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return toTaskStartDraft; });
2485
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return taskStartDraft; });
2486
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return toTaskReview; });
2487
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return taskReview; });
2488
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return toTaskUnionSeal; });
2489
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return taskUnionSeal; });
2490
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return toTwoOfficesDispatch; });
2491
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return twoOfficesDispatch; });
2492
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return sendList; });
2493
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return sendInfo; });
2465
2494
  /* unused harmony export sendSave */
2466
2495
  /* unused harmony export sendUpdate */
2467
2496
  /* unused harmony export sendDelete */
2468
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return sendBatch; });
2469
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return formContents; });
2497
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return sendBatch; });
2498
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return formContents; });
2470
2499
  // 登录
2471
2500
  var doCaLogin = '/sso2/signIn/auth/doCaLogin'; // ca登录认证
2472
2501
  var doUserLogin = '/sso2/signIn/auth/doUserLogin'; // 一般的账号密码认证含验证码验证
@@ -2485,6 +2514,10 @@ var initModifyPassword = '/sso2/signIn/assembly/initModifyPassword'; // 初始
2485
2514
  var doWechatQrLogin = '/sso2/signIn/auth/doWechatQrLogin'; // 微信扫码登录
2486
2515
  var getTwoFactorLoginCode = '/sso2/signIn/auth/getTwoFactorLoginCode'; // 双因素登录,通过消息中心发送登陆验证码给用户
2487
2516
  var doTwoFactorLogin = '/sso2/signIn/auth/doTwoFactorLogin'; // 双因素登录
2517
+ var initRetrialAuth = '/sso2/retrialAuth/initRetrialAuth'; // 初始化二级身份权限验证页面
2518
+ var getRetrialAuthCode = '/sso2/retrialAuth/getRetrialAuthCode'; // 获取二级身份验证验证码
2519
+ var scanCodeRetrialAuth = '/sso2/retrialAuth/scanCodeRetrialAuth'; // 二维码扫码验证(二级权限验证)
2520
+ var codeRetrialAuth = '/sso2/retrialAuth/codeRetrialAuth'; // 二级身份验证-验证码验证
2488
2521
  // 框架
2489
2522
  var mainConfig = '/main2/main/mainConfig'; // 获取主页面配置
2490
2523
  var initUserSet = '/main2/main/initUserSet'; // 获取用户信息
@@ -3535,7 +3568,7 @@ var _props;
3535
3568
  }, _props.properties = {
3536
3569
  type: String,
3537
3570
  default: function _default() {
3538
- return api["y" /* getAdjunctProperties */];
3571
+ return api["z" /* getAdjunctProperties */];
3539
3572
  }
3540
3573
  }, _props.icons = {
3541
3574
  type: Object,
@@ -3565,7 +3598,7 @@ var _props;
3565
3598
  videoChange: false,
3566
3599
  source: '',
3567
3600
  excludeNames: '',
3568
- previewAdjunct: api["db" /* previewAdjunct */],
3601
+ previewAdjunct: api["gb" /* previewAdjunct */],
3569
3602
  boxHeight: this.listHeight
3570
3603
  };
3571
3604
  },
@@ -3603,7 +3636,7 @@ var _props;
3603
3636
  return this.showFileList;
3604
3637
  },
3605
3638
  url: function url() {
3606
- var url = this.action ? this.action : this.portrait || !this.multiple ? api["Sb" /* uploadOnlyOne */] : api["Ub" /* uploads */];
3639
+ var url = this.action ? this.action : this.portrait || !this.multiple ? api["Wb" /* uploadOnlyOne */] : api["Yb" /* uploads */];
3607
3640
  return url.indexOf(this.host) > -1 ? url : this.host + url;
3608
3641
  },
3609
3642
  excludes: function excludes() {
@@ -3619,7 +3652,7 @@ var _props;
3619
3652
  return this.totalSize ? this.totalSize : this.fileTotalSize ? this.fileTotalSize : 0;
3620
3653
  },
3621
3654
  getAdjunctFileInfos: function getAdjunctFileInfos() {
3622
- return typeof this.fileList === 'string' ? this.fileList : api["x" /* getAdjunctFileInfos */];
3655
+ return typeof this.fileList === 'string' ? this.fileList : api["y" /* getAdjunctFileInfos */];
3623
3656
  },
3624
3657
  showList: function showList() {
3625
3658
  return this.portrait ? false : this.showFileList;
@@ -3873,9 +3906,9 @@ var _props;
3873
3906
  var suffix = file.suffix;
3874
3907
  suffix = suffix.toLowerCase();
3875
3908
  if (suffix.includes('doc') || suffix.includes('docx') || suffix.includes('xls') || suffix.includes('xlsx') || suffix.includes('ppt')) {
3876
- util["a" /* default */].win.open(this.host + (url ? url : api["fb" /* previewAdjunctOffice */]) + '?cmd=view&bucketName=' + file.absolutePath + '&fileId=' + file.adjunctId + '&fileName=' + file.newName);
3909
+ util["a" /* default */].win.open(this.host + (url ? url : api["ib" /* previewAdjunctOffice */]) + '?cmd=view&bucketName=' + file.absolutePath + '&fileId=' + file.adjunctId + '&fileName=' + file.newName);
3877
3910
  } else if (suffix.includes('pdf')) {
3878
- util["a" /* default */].win.open(this.host + (url ? url : api["eb" /* previewAdjunct2 */]) + '/' + file.originalName + '?adjunctId=' + file.adjunctId);
3911
+ util["a" /* default */].win.open(this.host + (url ? url : api["hb" /* previewAdjunct2 */]) + '/' + file.originalName + '?adjunctId=' + file.adjunctId);
3879
3912
  } else if (suffix.includes('jpge') || suffix.includes('jpg') || suffix.includes('gif') || suffix.includes('png')) {
3880
3913
  this.imgUrl = this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId;
3881
3914
  this.title = file.originalName;
@@ -3992,7 +4025,7 @@ var _props;
3992
4025
  var userName = file.userName || file.response && file.response.userName || util["a" /* default */].getStorage('userName');
3993
4026
  // eslint-disable-next-line no-undef
3994
4027
  return new Promise(function (resolve, reject) {
3995
- var url = typeof _this6.deleted === 'string' ? _this6.deleted : _this6.remove === 'string' ? _this6.remove : api["f" /* delAdjunct */];
4028
+ var url = typeof _this6.deleted === 'string' ? _this6.deleted : _this6.remove === 'string' ? _this6.remove : api["g" /* delAdjunct */];
3996
4029
  util["a" /* default */].ajax({
3997
4030
  method: _this6.method,
3998
4031
  url: url,
@@ -4029,12 +4062,12 @@ var _props;
4029
4062
  }
4030
4063
  },
4031
4064
  handleDownloads: function handleDownloads() {
4032
- var url = typeof this.downloads === 'string' ? this.downloads : api["Rb" /* uploadDownloads */];
4065
+ var url = typeof this.downloads === 'string' ? this.downloads : api["Vb" /* uploadDownloads */];
4033
4066
  util["a" /* default */].win.open(this.host + url + '?ownId=' + this.ownId + '&code=' + this.code + (this.extendCode ? '&extendCode=' + this.extendCode : ''));
4034
4067
  },
4035
4068
  handleDownload: function handleDownload(file) {
4036
4069
  if (file.status === 'success') {
4037
- var url = typeof this.download === 'string' ? this.download : api["p" /* downloadByAdjunctId */];
4070
+ var url = typeof this.download === 'string' ? this.download : api["q" /* downloadByAdjunctId */];
4038
4071
  util["a" /* default */].win.open(this.host + url + '?adjunctId=' + (file.adjunctId || file.response.adjunctId));
4039
4072
  } else {
4040
4073
  this.aLinkDownload(file);
@@ -4069,7 +4102,7 @@ var _props;
4069
4102
  ids = ids.join(',');
4070
4103
  util["a" /* default */].ajax({
4071
4104
  method: this.method,
4072
- url: api["Tb" /* uploadSort */],
4105
+ url: api["Xb" /* uploadSort */],
4073
4106
  data: {
4074
4107
  ids: ids
4075
4108
  },
package/lib/utils/util.js CHANGED
@@ -2,8 +2,6 @@ exports.__esModule = true;
2
2
 
3
3
  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; };
4
4
 
5
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
6
-
7
5
  var _api = require('../config/api');
8
6
 
9
7
  var _axios = require('axios');
@@ -44,6 +42,7 @@ var $lightColorCount = 5;
44
42
  var $darkColorCount = 4;
45
43
  var publicKey = 'abcdefghijklmnopqrstuvwxyz12345678';
46
44
  var loginMsg = void 0;
45
+ var initAuth = void 0;
47
46
 
48
47
  var JSONbigToString = (0, _jsonBigint2.default)({ storeAsString: true });
49
48
 
@@ -122,7 +121,6 @@ var ajax = function ajax(_ref) {
122
121
  });
123
122
  // 请求拦截
124
123
  http.interceptors.request.use(function (config) {
125
- config.header && (config.headers = _extends({}, config.headers, config.header));
126
124
  config.headers.common = getStorage();
127
125
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
128
126
  var requestKey = getRequestKey(config);
@@ -195,11 +193,38 @@ var ajax = function ajax(_ref) {
195
193
  }).catch(function (e) {});
196
194
  }, 1000);
197
195
  }
198
- return Promise.reject(response.data);
199
- } else {
200
- // eslint-disable-next-line no-undef
201
- return Promise.resolve(response.data);
196
+ } else if (response.data.rCode === 61) {
197
+ clearTimeout(initAuth);
198
+ initAuth = setTimeout(function () {
199
+ (0, _eossElement.MessageBox)({
200
+ title: '请进行二次鉴权',
201
+ closeOnClickModal: false,
202
+ closeOnPressEscape: false,
203
+ showConfirmButton: false,
204
+ dangerouslyUseHTMLString: true,
205
+ scroll: false,
206
+ customClass: 'es-retrial-auth-msg',
207
+ render: function render(h, msgBox) {
208
+ return h('es-retrial-auth', {
209
+ ref: 'auth',
210
+ props: {
211
+ group: response.data.results.retrialAuthGroupIds,
212
+ type: response.data.results.retrialAuthType,
213
+ msgBox: msgBox
214
+ }
215
+ });
216
+ },
217
+ callback: function callback(res, obj) {
218
+ obj.$children.forEach(function (item) {
219
+ item.clearTimeouts && item.clearTimeouts();
220
+ return;
221
+ });
222
+ }
223
+ });
224
+ }, 1000);
202
225
  }
226
+ // eslint-disable-next-line no-undef
227
+ return Promise.resolve(response.data);
203
228
  }
204
229
  }, function (error) {
205
230
  loading && loading.close();
@@ -279,7 +304,7 @@ var ajax = function ajax(_ref) {
279
304
  url: url,
280
305
  data: data,
281
306
  params: params,
282
- header: header
307
+ headers: header
283
308
  });
284
309
  };
285
310