eoss-ui 0.4.55 → 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 (63) hide show
  1. package/lib/button-group.js +136 -100
  2. package/lib/button.js +138 -102
  3. package/lib/cascader.js +2 -2
  4. package/lib/checkbox-group.js +140 -104
  5. package/lib/config/api.js +4 -0
  6. package/lib/data-table-form.js +137 -101
  7. package/lib/data-table.js +139 -103
  8. package/lib/date-picker.js +145 -109
  9. package/lib/dialog.js +136 -100
  10. package/lib/eoss-ui.common.js +785 -285
  11. package/lib/flow-group.js +136 -100
  12. package/lib/flow-list.js +143 -107
  13. package/lib/flow.js +187 -151
  14. package/lib/form.js +137 -101
  15. package/lib/handle-user.js +137 -101
  16. package/lib/handler.js +137 -101
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +138 -102
  19. package/lib/input.js +138 -102
  20. package/lib/label.js +2 -2
  21. package/lib/login.js +171 -128
  22. package/lib/main.js +152 -116
  23. package/lib/mainComp.js +152 -116
  24. package/lib/menu.js +2 -2
  25. package/lib/nav.js +136 -100
  26. package/lib/notify.js +109 -101
  27. package/lib/page.js +136 -100
  28. package/lib/player.js +136 -100
  29. package/lib/qr-code.js +136 -100
  30. package/lib/radio-group.js +137 -101
  31. package/lib/retrial-auth.js +3328 -0
  32. package/lib/select-ganged.js +138 -102
  33. package/lib/select.js +139 -103
  34. package/lib/selector-panel.js +154 -118
  35. package/lib/selector.js +139 -103
  36. package/lib/sizer.js +140 -104
  37. package/lib/steps.js +138 -102
  38. package/lib/switch.js +138 -102
  39. package/lib/table-form.js +138 -102
  40. package/lib/tabs-panel.js +2 -2
  41. package/lib/tabs.js +145 -109
  42. package/lib/theme-chalk/index.css +1 -1
  43. package/lib/theme-chalk/retrial-auth.css +1 -0
  44. package/lib/tips.js +139 -103
  45. package/lib/toolbar.js +2 -2
  46. package/lib/tree-group.js +138 -102
  47. package/lib/tree.js +139 -103
  48. package/lib/upload.js +146 -110
  49. package/lib/utils/util.js +32 -4
  50. package/lib/wujie.js +138 -102
  51. package/lib/wxlogin.js +138 -102
  52. package/package.json +2 -2
  53. package/packages/checkbox-group/src/main.vue +7 -7
  54. package/packages/login/src/main.vue +26 -18
  55. package/packages/retrial-auth/index.js +5 -0
  56. package/packages/retrial-auth/src/main.vue +271 -0
  57. package/packages/theme-chalk/lib/index.css +1 -1
  58. package/packages/theme-chalk/lib/retrial-auth.css +1 -0
  59. package/packages/theme-chalk/src/index.scss +1 -0
  60. package/packages/theme-chalk/src/retrial-auth.scss +38 -0
  61. package/src/config/api.js +4 -0
  62. package/src/index.js +4 -1
  63. package/src/utils/util.js +32 -4
package/lib/upload.js CHANGED
@@ -127,6 +127,7 @@ var $lightColorCount = 5;
127
127
  var $darkColorCount = 4;
128
128
  var publicKey = 'abcdefghijklmnopqrstuvwxyz12345678';
129
129
  var loginMsg = void 0;
130
+ var initAuth = void 0;
130
131
 
131
132
  var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ storeAsString: true });
132
133
 
@@ -277,11 +278,38 @@ var ajax = function ajax(_ref) {
277
278
  }).catch(function (e) {});
278
279
  }, 1000);
279
280
  }
280
- return Promise.reject(response.data);
281
- } else {
282
- // eslint-disable-next-line no-undef
283
- 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);
284
310
  }
311
+ // eslint-disable-next-line no-undef
312
+ return Promise.resolve(response.data);
285
313
  }
286
314
  }, function (error) {
287
315
  loading && loading.close();
@@ -2347,123 +2375,127 @@ var watermark = function watermark(option) {
2347
2375
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2348
2376
 
2349
2377
  "use strict";
2350
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return doCaLogin; });
2351
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return doUserLogin; });
2352
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return doQrLogin; });
2353
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return logout; });
2354
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return initLogin; });
2355
- /* 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; });
2356
2384
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return changeImg; });
2357
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return getLoginCode; });
2358
- /* 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; });
2359
2387
  /* unused harmony export updateCode */
2360
- /* 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; });
2361
2389
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return codeModifyPass; });
2362
2390
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return authCenter; });
2363
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return initModifyPassword; });
2364
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return doWechatQrLogin; });
2365
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getTwoFactorLoginCode; });
2366
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return doTwoFactorLogin; });
2367
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return mainConfig; });
2368
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return initUserSet; });
2369
- /* 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; });
2370
2402
  /* unused harmony export getUserImgUrl */
2371
2403
  /* unused harmony export getDoorIndex */
2372
2404
  /* unused harmony export refreshOnlineUsers */
2373
2405
  /* unused harmony export getQuickMenuIds */
2374
2406
  /* unused harmony export getApplicationIdArray */
2375
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return getComplexApplications; });
2376
- /* 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; });
2377
2409
  /* unused harmony export getUserCustomInfo */
2378
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return updateUserCustomInfo; });
2379
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return sysMsgPage; });
2380
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return ignoreSysMsg; });
2381
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return ignoreAllSysMsg; });
2382
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return getAdjunctProperties; });
2383
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return uploads; });
2384
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return uploadOnlyOne; });
2385
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return getAdjunctFileInfos; });
2386
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return uploadSort; });
2387
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return downloadByAdjunctId; });
2388
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return uploadDownloads; });
2389
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return previewAdjunct; });
2390
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return previewAdjunct2; });
2391
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return previewAdjunctOffice; });
2392
- /* 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; });
2393
2425
  /* unused harmony export upload_updateClassify */
2394
2426
  /* unused harmony export getDeleteAdjunctFileInfos */
2395
2427
  /* unused harmony export getPictureBase64 */
2396
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getSelectorOrgTree; });
2397
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getSelectorOrgDetail; });
2398
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getOrgMainTree; });
2399
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getSelectOrgsubids; });
2400
- /* 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; });
2401
2433
  /* unused harmony export findUserBaseInfo */
2402
- /* 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; });
2403
2435
  /* unused harmony export getCurrentuser */
2404
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return mainDetail; });
2405
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return toStartFlow; });
2406
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return tempSave; });
2407
- /* 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; });
2408
2440
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
2409
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return editCommonOpion; });
2410
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return saveCommonOpinion; });
2411
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return updateCommonOpinion; });
2412
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return deleteCommonOpion; });
2413
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getProcessDefList; });
2414
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return getNodeInfo; });
2415
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return findCodeValues; });
2416
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return findSysParam; });
2417
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return findSysCodes; });
2418
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return getNotificationMsg; });
2419
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return getHandleInfoHtml; });
2420
- /* 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; });
2421
2453
  /* unused harmony export getView */
2422
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return register; });
2423
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return pendedhistoryList; });
2424
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return toTaskRejectHtml; });
2425
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return taskRejectHtml; });
2426
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return toStartTaskRead; });
2427
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return toStartTaskReadIndex; });
2428
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return taskReadHtml; });
2429
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return rejectAndEnd; });
2430
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return toSendMsg; });
2431
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return sendMsg; });
2432
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return endFlowHtml; });
2433
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return handleInfo; });
2434
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return loginUserInfo; });
2435
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return wss; });
2436
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return topic; });
2437
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getPresetCustomInfo; });
2438
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getPresetNodeInfo; });
2439
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return toTaskTransferIndex; });
2440
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return taskTransfer; });
2441
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return toPresetInfoListIndex; });
2442
- /* 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; });
2443
2475
  /* unused harmony export historyListJson */
2444
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return pendedhistoryListJson; });
2445
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return pressListJson; });
2446
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return deleteFlow; });
2447
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return isCanStartSubFlow; });
2448
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return toTaskUnionExamine; });
2449
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return taskUnionExamine; });
2450
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return toTaskTakeAdvice; });
2451
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return taskTakeAdvice; });
2452
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return toTaskStartDraft; });
2453
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return taskStartDraft; });
2454
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return toTaskReview; });
2455
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return taskReview; });
2456
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return toTaskUnionSeal; });
2457
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return taskUnionSeal; });
2458
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return toTwoOfficesDispatch; });
2459
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return twoOfficesDispatch; });
2460
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return sendList; });
2461
- /* 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; });
2462
2494
  /* unused harmony export sendSave */
2463
2495
  /* unused harmony export sendUpdate */
2464
2496
  /* unused harmony export sendDelete */
2465
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return sendBatch; });
2466
- /* 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; });
2467
2499
  // 登录
2468
2500
  var doCaLogin = '/sso2/signIn/auth/doCaLogin'; // ca登录认证
2469
2501
  var doUserLogin = '/sso2/signIn/auth/doUserLogin'; // 一般的账号密码认证含验证码验证
@@ -2482,6 +2514,10 @@ var initModifyPassword = '/sso2/signIn/assembly/initModifyPassword'; // 初始
2482
2514
  var doWechatQrLogin = '/sso2/signIn/auth/doWechatQrLogin'; // 微信扫码登录
2483
2515
  var getTwoFactorLoginCode = '/sso2/signIn/auth/getTwoFactorLoginCode'; // 双因素登录,通过消息中心发送登陆验证码给用户
2484
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'; // 二级身份验证-验证码验证
2485
2521
  // 框架
2486
2522
  var mainConfig = '/main2/main/mainConfig'; // 获取主页面配置
2487
2523
  var initUserSet = '/main2/main/initUserSet'; // 获取用户信息
@@ -3532,7 +3568,7 @@ var _props;
3532
3568
  }, _props.properties = {
3533
3569
  type: String,
3534
3570
  default: function _default() {
3535
- return api["y" /* getAdjunctProperties */];
3571
+ return api["z" /* getAdjunctProperties */];
3536
3572
  }
3537
3573
  }, _props.icons = {
3538
3574
  type: Object,
@@ -3562,7 +3598,7 @@ var _props;
3562
3598
  videoChange: false,
3563
3599
  source: '',
3564
3600
  excludeNames: '',
3565
- previewAdjunct: api["db" /* previewAdjunct */],
3601
+ previewAdjunct: api["gb" /* previewAdjunct */],
3566
3602
  boxHeight: this.listHeight
3567
3603
  };
3568
3604
  },
@@ -3600,7 +3636,7 @@ var _props;
3600
3636
  return this.showFileList;
3601
3637
  },
3602
3638
  url: function url() {
3603
- 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 */];
3604
3640
  return url.indexOf(this.host) > -1 ? url : this.host + url;
3605
3641
  },
3606
3642
  excludes: function excludes() {
@@ -3616,7 +3652,7 @@ var _props;
3616
3652
  return this.totalSize ? this.totalSize : this.fileTotalSize ? this.fileTotalSize : 0;
3617
3653
  },
3618
3654
  getAdjunctFileInfos: function getAdjunctFileInfos() {
3619
- return typeof this.fileList === 'string' ? this.fileList : api["x" /* getAdjunctFileInfos */];
3655
+ return typeof this.fileList === 'string' ? this.fileList : api["y" /* getAdjunctFileInfos */];
3620
3656
  },
3621
3657
  showList: function showList() {
3622
3658
  return this.portrait ? false : this.showFileList;
@@ -3870,9 +3906,9 @@ var _props;
3870
3906
  var suffix = file.suffix;
3871
3907
  suffix = suffix.toLowerCase();
3872
3908
  if (suffix.includes('doc') || suffix.includes('docx') || suffix.includes('xls') || suffix.includes('xlsx') || suffix.includes('ppt')) {
3873
- 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);
3874
3910
  } else if (suffix.includes('pdf')) {
3875
- 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);
3876
3912
  } else if (suffix.includes('jpge') || suffix.includes('jpg') || suffix.includes('gif') || suffix.includes('png')) {
3877
3913
  this.imgUrl = this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId;
3878
3914
  this.title = file.originalName;
@@ -3989,7 +4025,7 @@ var _props;
3989
4025
  var userName = file.userName || file.response && file.response.userName || util["a" /* default */].getStorage('userName');
3990
4026
  // eslint-disable-next-line no-undef
3991
4027
  return new Promise(function (resolve, reject) {
3992
- 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 */];
3993
4029
  util["a" /* default */].ajax({
3994
4030
  method: _this6.method,
3995
4031
  url: url,
@@ -4026,12 +4062,12 @@ var _props;
4026
4062
  }
4027
4063
  },
4028
4064
  handleDownloads: function handleDownloads() {
4029
- var url = typeof this.downloads === 'string' ? this.downloads : api["Rb" /* uploadDownloads */];
4065
+ var url = typeof this.downloads === 'string' ? this.downloads : api["Vb" /* uploadDownloads */];
4030
4066
  util["a" /* default */].win.open(this.host + url + '?ownId=' + this.ownId + '&code=' + this.code + (this.extendCode ? '&extendCode=' + this.extendCode : ''));
4031
4067
  },
4032
4068
  handleDownload: function handleDownload(file) {
4033
4069
  if (file.status === 'success') {
4034
- var url = typeof this.download === 'string' ? this.download : api["p" /* downloadByAdjunctId */];
4070
+ var url = typeof this.download === 'string' ? this.download : api["q" /* downloadByAdjunctId */];
4035
4071
  util["a" /* default */].win.open(this.host + url + '?adjunctId=' + (file.adjunctId || file.response.adjunctId));
4036
4072
  } else {
4037
4073
  this.aLinkDownload(file);
@@ -4066,7 +4102,7 @@ var _props;
4066
4102
  ids = ids.join(',');
4067
4103
  util["a" /* default */].ajax({
4068
4104
  method: this.method,
4069
- url: api["Tb" /* uploadSort */],
4105
+ url: api["Xb" /* uploadSort */],
4070
4106
  data: {
4071
4107
  ids: ids
4072
4108
  },
package/lib/utils/util.js CHANGED
@@ -42,6 +42,7 @@ var $lightColorCount = 5;
42
42
  var $darkColorCount = 4;
43
43
  var publicKey = 'abcdefghijklmnopqrstuvwxyz12345678';
44
44
  var loginMsg = void 0;
45
+ var initAuth = void 0;
45
46
 
46
47
  var JSONbigToString = (0, _jsonBigint2.default)({ storeAsString: true });
47
48
 
@@ -192,11 +193,38 @@ var ajax = function ajax(_ref) {
192
193
  }).catch(function (e) {});
193
194
  }, 1000);
194
195
  }
195
- return Promise.reject(response.data);
196
- } else {
197
- // eslint-disable-next-line no-undef
198
- 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);
199
225
  }
226
+ // eslint-disable-next-line no-undef
227
+ return Promise.resolve(response.data);
200
228
  }
201
229
  }, function (error) {
202
230
  loading && loading.close();