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/wxlogin.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 66);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 67);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -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'; // 获取用户信息
@@ -2808,7 +2844,7 @@ module.exports = require("json-bigint");
2808
2844
 
2809
2845
  /***/ }),
2810
2846
 
2811
- /***/ 66:
2847
+ /***/ 67:
2812
2848
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2813
2849
 
2814
2850
  "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.4.55",
3
+ "version": "0.4.56",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -93,7 +93,7 @@
93
93
  "cp-cli": "^1.0.2",
94
94
  "cross-env": "^3.1.3",
95
95
  "css-loader": "^2.1.0",
96
- "eoss-element": "^0.2.59",
96
+ "eoss-element": "^0.2.63",
97
97
  "es6-promise": "^4.0.5",
98
98
  "eslint": "4.18.2",
99
99
  "eslint-config-elemefe": "0.1.1",
@@ -98,7 +98,7 @@ export default {
98
98
  valueType: {
99
99
  type: String,
100
100
  default: 'string',
101
- validator: function(value) {
101
+ validator: function (value) {
102
102
  return ['string', 'object'].includes(value);
103
103
  }
104
104
  },
@@ -171,7 +171,7 @@ export default {
171
171
  labelVal() {
172
172
  if (typeof this.model === 'string') {
173
173
  if (util.isObject(this.results[0])) {
174
- return this.results.map(item => {
174
+ return this.results.map((item) => {
175
175
  if (item[this.valueKey] === this.model) {
176
176
  return item[this.label] || this.model;
177
177
  }
@@ -179,13 +179,13 @@ export default {
179
179
  }
180
180
  return this.model;
181
181
  } else {
182
- let label = this.model.map(item => {
182
+ let label = this.model.map((item) => {
183
183
  if (util.isObject(item)) {
184
184
  return item[this.label];
185
185
  }
186
186
  if (util.isObject(this.results[0])) {
187
187
  return this.results
188
- .map(ele => {
188
+ .map((ele) => {
189
189
  if (ele[this.valueKey] === item) {
190
190
  return ele[this.label];
191
191
  }
@@ -255,9 +255,9 @@ export default {
255
255
  params: params,
256
256
  data: params
257
257
  })
258
- .then(res => {
258
+ .then((res) => {
259
+ this.loading = false;
259
260
  if (res.rCode === 0) {
260
- this.loading = false;
261
261
  this.options = JSON.parse(JSON.stringify(res.results));
262
262
  if (sysCode) {
263
263
  store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
@@ -267,7 +267,7 @@ export default {
267
267
  this.$message.error(msg);
268
268
  }
269
269
  })
270
- .catch(err => {
270
+ .catch((err) => {
271
271
  this.loading = false;
272
272
  if (err.message && err.message !== 'canceled') {
273
273
  this.$message.error(err.message);
@@ -45,7 +45,7 @@
45
45
  ></i>
46
46
  </div>
47
47
  <div class="es-login-form-box">
48
- <template v-if="isShow(active) && (active == 0 || active == 2)">
48
+ <template v-if="isShow(active) && (active == 0 || active == 12)">
49
49
  <el-form ref="login" class="es-login-form" :model="formData">
50
50
  <div class="es-login-title">
51
51
  <span class="es-login-title-content">{{ title }}</span>
@@ -91,7 +91,13 @@
91
91
  <el-form-item
92
92
  size="large"
93
93
  prop="identifyingCode"
94
- :rules="[{ required: true, message: '验证码不能为空' }]"
94
+ :rules="[
95
+ {
96
+ required: true,
97
+ message: '验证码不能为空',
98
+ trigger: 'change'
99
+ }
100
+ ]"
95
101
  v-if="imgCode || showVerifyCode"
96
102
  >
97
103
  <el-input
@@ -110,7 +116,7 @@
110
116
  <el-button
111
117
  class="es-get-code"
112
118
  type="primary"
113
- v-show="active == 2 && showVerifyCode"
119
+ v-show="active == 12 && showVerifyCode"
114
120
  :disabled="disabled"
115
121
  @click.stop="getCode"
116
122
  >{{ btnText }}</el-button
@@ -582,17 +588,16 @@ export default {
582
588
  ? {
583
589
  0: { type: '0', icon: 'es-icon-shuru', name: '账号登录' },
584
590
  1: { type: '1', icon: 'es-icon-usb-key', name: '证书登录' },
585
- 2: { type: '2', icon: 'es-icon-shuru', name: '账号登录' },
586
591
  3: { type: '3', icon: 'es-icon-saoma', name: '扫码登录' },
587
592
  6: { type: '6', icon: 'es-icon-duanxin', name: '短信登录' },
588
593
  7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
589
594
  9: { type: '9', icon: 'es-icon-weixin', name: '微信扫码登录' },
590
- 11: { type: '11', icon: 'es-icon-youxiang', name: '邮箱登录' }
595
+ 11: { type: '11', icon: 'es-icon-youxiang', name: '邮箱登录' },
596
+ 12: { type: '12', icon: 'es-icon-shuru', name: '账号登录' } //双因素
591
597
  }
592
598
  : {
593
599
  0: { type: '0', icon: 'es-icon-jianpan', name: '账号登录' },
594
600
  1: { type: '1', icon: 'es-icon-ca', name: '证书登录' },
595
- 2: { type: '2', icon: 'es-icon-jianpan', name: '账号登录' },
596
601
  3: { type: '3', icon: 'es-icon-qrcode', name: '扫码登录' },
597
602
  6: { type: '6', icon: 'es-icon-duanxin', name: '短信登录' },
598
603
  7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
@@ -601,7 +606,8 @@ export default {
601
606
  type: '11',
602
607
  icon: 'es-icon-wodeyouxiang',
603
608
  name: '邮箱登录'
604
- }
609
+ },
610
+ 12: { type: '12', icon: 'es-icon-jianpan', name: '账号登录' } //双因素
605
611
  };
606
612
  },
607
613
  icons() {
@@ -621,8 +627,9 @@ export default {
621
627
  },
622
628
  showVerifyCode() {
623
629
  return (
624
- this.passModifyModel.indexOf('6') > -1 ||
625
- this.passModifyModel.indexOf('11') > -1
630
+ this.passModifyModel &&
631
+ (this.passModifyModel.indexOf('6') > -1 ||
632
+ this.passModifyModel.indexOf('11') > -1)
626
633
  );
627
634
  }
628
635
  },
@@ -913,7 +920,6 @@ export default {
913
920
  this.app = res.appName || res.subsystemName;
914
921
  this.qrimg = res.qrimg || res.qrImg;
915
922
  this.loginModel = res.loginModel;
916
- // this.loginModel = '0,3,11,6,9,2';
917
923
  this.loginBackgroundImg = res.loginBackgroundUrl
918
924
  ? res.loginBackgroundUrl.split(',')
919
925
  : null;
@@ -978,7 +984,7 @@ export default {
978
984
  }
979
985
  let data = {};
980
986
  let flag = false;
981
- if (this.active == 2) {
987
+ if (this.active == 12) {
982
988
  if (!this.formData.username) {
983
989
  this.$refs.login.validateField('username');
984
990
  return false;
@@ -1019,13 +1025,14 @@ export default {
1019
1025
  } else {
1020
1026
  this.btnText = '重新获取';
1021
1027
  this.disabled = false;
1028
+ this.submit = false;
1022
1029
  }
1023
1030
  }, 1000);
1024
1031
  util
1025
1032
  .ajax({
1026
1033
  method: 'post',
1027
1034
  url:
1028
- this.active == 2 ? this.getTwoFactorLoginCode : this.getLoginCode,
1035
+ this.active == 12 ? this.getTwoFactorLoginCode : this.getLoginCode,
1029
1036
  data: data
1030
1037
  })
1031
1038
  .then((res) => {
@@ -1069,9 +1076,9 @@ export default {
1069
1076
  identifyingCode: this.formData.identifyingCode,
1070
1077
  identifyingId: this.identifyingId
1071
1078
  }
1072
- : this.active == '2'
1079
+ : this.active == '12'
1073
1080
  ? {
1074
- username: this.formData.username,
1081
+ username: this.formData.username,
1075
1082
  password:
1076
1083
  this.secret && this.isEncrypt
1077
1084
  ? util.esmEncrypt({
@@ -1079,9 +1086,10 @@ export default {
1079
1086
  key: this.secret
1080
1087
  })
1081
1088
  : this.formData.password,
1082
- targetType: this.passModifyModel.indexOf('11') > -1 ? 'EMAIL' : 'SMS',
1083
- verificationCode:this.formData.identifyingCode
1084
- }
1089
+ targetType:
1090
+ this.passModifyModel.indexOf('11') > -1 ? 'EMAIL' : 'SMS',
1091
+ verificationCode: this.formData.identifyingCode
1092
+ }
1085
1093
  : {
1086
1094
  target: this.formData.target,
1087
1095
  verificationCode: this.formData.verificationCode,
@@ -1120,7 +1128,7 @@ export default {
1120
1128
  url:
1121
1129
  this.active == '0'
1122
1130
  ? this.actionUrl
1123
- : this.active == '2'
1131
+ : this.active == '12'
1124
1132
  ? this.doTwoFactorLogin
1125
1133
  : this.doCodeLogin,
1126
1134
  data: extUserBindHandleId
@@ -0,0 +1,5 @@
1
+ import EsRetrialAuth from './src/main';
2
+
3
+ EsRetrialAuth.install = Vue => Vue.component(EsRetrialAuth.name, EsRetrialAuth);
4
+
5
+ export default EsRetrialAuth;