eoss-ui 0.5.83 → 0.5.85

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 (91) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/lib/button-group.js +146 -66
  3. package/lib/button.js +118 -69
  4. package/lib/checkbox-group.js +64 -46
  5. package/lib/config/api.js +5 -1
  6. package/lib/data-table-form.js +64 -46
  7. package/lib/data-table.js +468 -295
  8. package/lib/date-picker.js +64 -46
  9. package/lib/dialog.js +71 -48
  10. package/lib/eoss-ui.common.js +9188 -15746
  11. package/lib/flow-group.js +64 -46
  12. package/lib/flow-list.js +65 -47
  13. package/lib/flow.js +113 -77
  14. package/lib/form.js +5708 -13486
  15. package/lib/handle-user.js +65 -47
  16. package/lib/handler.js +70 -48
  17. package/lib/icon.js +64 -46
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +64 -46
  20. package/lib/input.js +64 -46
  21. package/lib/login.js +86 -57
  22. package/lib/main.js +1435 -483
  23. package/lib/nav.js +64 -46
  24. package/lib/notify.js +51 -46
  25. package/lib/page.js +64 -46
  26. package/lib/pagination.js +64 -46
  27. package/lib/player.js +64 -46
  28. package/lib/qr-code.js +64 -46
  29. package/lib/radio-group.js +64 -46
  30. package/lib/retrial-auth.js +64 -46
  31. package/lib/select-ganged.js +64 -46
  32. package/lib/select.js +65 -47
  33. package/lib/selector-panel.js +64 -46
  34. package/lib/selector.js +64 -46
  35. package/lib/sizer.js +64 -46
  36. package/lib/steps.js +64 -46
  37. package/lib/switch.js +64 -46
  38. package/lib/table-form.js +64 -46
  39. package/lib/tabs.js +64 -46
  40. package/lib/theme-chalk/calendar.css +1 -1
  41. package/lib/theme-chalk/data-table.css +1 -1
  42. package/lib/theme-chalk/dialog.css +1 -1
  43. package/lib/theme-chalk/form.css +1 -1
  44. package/lib/theme-chalk/index.css +1 -1
  45. package/lib/theme-chalk/main.css +1 -1
  46. package/lib/theme-chalk/simplicity.css +1 -1
  47. package/lib/tips.js +64 -46
  48. package/lib/tree-group.js +64 -46
  49. package/lib/tree.js +64 -46
  50. package/lib/upload.js +78 -60
  51. package/lib/utils/util.js +18 -5
  52. package/lib/wujie.js +64 -46
  53. package/lib/wxlogin.js +64 -46
  54. package/package.json +2 -2
  55. package/packages/button/src/main.vue +88 -55
  56. package/packages/button-group/src/main.vue +56 -13
  57. package/packages/data-table/src/children.vue +3 -2
  58. package/packages/data-table/src/column.vue +6 -4
  59. package/packages/data-table/src/main.vue +150 -69
  60. package/packages/data-table/src/sizer.vue +51 -22
  61. package/packages/dialog/src/main.vue +5 -1
  62. package/packages/flow/src/main.vue +26 -17
  63. package/packages/form/src/main.vue +129 -2103
  64. package/packages/handler/src/main.vue +5 -0
  65. package/packages/login/src/main.vue +12 -1
  66. package/packages/login/src/resetPassword.vue +4 -2
  67. package/packages/main/src/default/index.vue +35 -54
  68. package/packages/main/src/default/userinfo.vue +2 -1
  69. package/packages/main/src/public/search.vue +444 -0
  70. package/packages/main/src/simplicity/apps.vue +20 -2
  71. package/packages/main/src/simplicity/handler.vue +0 -2
  72. package/packages/main/src/simplicity/index.vue +97 -32
  73. package/packages/main/src/simplicity/userinfo.vue +1 -0
  74. package/packages/select/src/main.vue +1 -1
  75. package/packages/theme-chalk/lib/calendar.css +1 -1
  76. package/packages/theme-chalk/lib/data-table.css +1 -1
  77. package/packages/theme-chalk/lib/dialog.css +1 -1
  78. package/packages/theme-chalk/lib/form.css +1 -1
  79. package/packages/theme-chalk/lib/index.css +1 -1
  80. package/packages/theme-chalk/lib/main.css +1 -1
  81. package/packages/theme-chalk/lib/simplicity.css +1 -1
  82. package/packages/theme-chalk/src/calendar.scss +3 -3
  83. package/packages/theme-chalk/src/data-table.scss +12 -0
  84. package/packages/theme-chalk/src/dialog.scss +15 -0
  85. package/packages/theme-chalk/src/form.scss +6 -0
  86. package/packages/theme-chalk/src/main.scss +2 -1
  87. package/packages/theme-chalk/src/simplicity.scss +172 -4
  88. package/packages/upload/src/main.vue +16 -12
  89. package/src/config/api.js +5 -1
  90. package/src/index.js +157 -157
  91. package/src/utils/util.js +18 -5
package/lib/wxlogin.js CHANGED
@@ -2021,11 +2021,24 @@ var identical = function identical(_ref7) {
2021
2021
  var indexOfObj = function indexOfObj(arry, target, key) {
2022
2022
  for (var i = 0; i < arry.length; i++) {
2023
2023
  if (key) {
2024
- if (typeof target === 'string' && arry[i][key] === target) {
2025
- return i;
2026
- }
2027
- if (target[key] === arry[i][key]) {
2028
- return i;
2024
+ if (key.indexOf(',') > -1) {
2025
+ var keys = key.split(',');
2026
+ for (var n = 0; n < keys.length; n++) {
2027
+ var k = keys[n];
2028
+ if (typeof target === 'string' && arry[i][k] === target) {
2029
+ return i;
2030
+ }
2031
+ if (target[k] === arry[i][k]) {
2032
+ return i;
2033
+ }
2034
+ }
2035
+ } else {
2036
+ if (typeof target === 'string' && arry[i][key] === target) {
2037
+ return i;
2038
+ }
2039
+ if (target[key] === arry[i][key]) {
2040
+ return i;
2041
+ }
2029
2042
  }
2030
2043
  } else {
2031
2044
  if (JSON.stringify(target) === JSON.stringify(arry[i])) {
@@ -3255,7 +3268,7 @@ var watermark = function watermark(option) {
3255
3268
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return doQrLogin; });
3256
3269
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return logout; });
3257
3270
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return initLogin; });
3258
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return switchUserTo; });
3271
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return switchUserTo; });
3259
3272
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return changeImg; });
3260
3273
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return getLoginCode; });
3261
3274
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return doCodeLogin; });
@@ -3273,12 +3286,12 @@ var watermark = function watermark(option) {
3273
3286
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return scanCodeRetrialAuth; });
3274
3287
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return codeRetrialAuth; });
3275
3288
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return doAssistanceQrLogin; });
3276
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return userOnline; });
3289
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return userOnline; });
3277
3290
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getUserAppWithTag; });
3278
3291
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return recordUserApp; });
3279
3292
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return mainConfig; });
3280
3293
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return initUserSet; });
3281
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return updateUserInfo; });
3294
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return updateUserInfo; });
3282
3295
  /* unused harmony export getUserImgUrl */
3283
3296
  /* unused harmony export getDoorIndex */
3284
3297
  /* unused harmony export refreshOnlineUsers */
@@ -3287,17 +3300,18 @@ var watermark = function watermark(option) {
3287
3300
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return getComplexApplications; });
3288
3301
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return getComplexApplicationsNew; });
3289
3302
  /* unused harmony export getUserCustomInfo */
3290
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return updateUserCustomInfo; });
3291
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return sysMsgPage; });
3303
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return updateUserCustomInfo; });
3304
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return sysMsgPage; });
3292
3305
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return ignoreSysMsg; });
3293
3306
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return ignoreAllSysMsg; });
3307
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return searchType; });
3294
3308
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return getAdjunctProperties; });
3295
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return uploads; });
3296
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return uploadOnlyOne; });
3309
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return uploads; });
3310
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return uploadOnlyOne; });
3297
3311
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return getAdjunctFileInfos; });
3298
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return uploadSort; });
3312
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return uploadSort; });
3299
3313
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return downloadByAdjunctId; });
3300
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return uploadDownloads; });
3314
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return uploadDownloads; });
3301
3315
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return previewAdjunct; });
3302
3316
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return previewAdjunct2; });
3303
3317
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return previewAdjunctOffice; });
@@ -3315,13 +3329,13 @@ var watermark = function watermark(option) {
3315
3329
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return gethelpdoc; });
3316
3330
  /* unused harmony export getCurrentuser */
3317
3331
  /* unused harmony export mainDetail */
3318
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return toStartFlow; });
3319
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return tempSave; });
3332
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return toStartFlow; });
3333
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return tempSave; });
3320
3334
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return commonOpion; });
3321
3335
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
3322
3336
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return editCommonOpion; });
3323
3337
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return saveCommonOpinion; });
3324
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return updateCommonOpinion; });
3338
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return updateCommonOpinion; });
3325
3339
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return deleteCommonOpion; });
3326
3340
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getProcessDefList; });
3327
3341
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getNodeInfo; });
@@ -3330,52 +3344,52 @@ var watermark = function watermark(option) {
3330
3344
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return findSysCodes; });
3331
3345
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getNotificationMsg; });
3332
3346
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return getHandleInfoHtml; });
3333
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return taskHandleHtml; });
3347
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return taskHandleHtml; });
3334
3348
  /* unused harmony export getView */
3335
3349
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return register; });
3336
3350
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return pendedhistoryList; });
3337
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return toTaskRejectHtml; });
3338
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return taskRejectHtml; });
3339
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return toStartTaskRead; });
3340
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return toStartTaskReadIndex; });
3341
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return taskReadHtml; });
3351
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return toTaskRejectHtml; });
3352
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return taskRejectHtml; });
3353
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return toStartTaskRead; });
3354
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return toStartTaskReadIndex; });
3355
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return taskReadHtml; });
3342
3356
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return rejectAndEnd; });
3343
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return toSendMsg; });
3344
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return sendMsg; });
3357
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return toSendMsg; });
3358
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return sendMsg; });
3345
3359
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return endFlowHtml; });
3346
3360
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return handleInfo; });
3347
3361
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return loginUserInfo; });
3348
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return wss; });
3349
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return topic; });
3362
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return wss; });
3363
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return topic; });
3350
3364
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getPresetCustomInfo; });
3351
3365
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getPresetNodeInfo; });
3352
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return toTaskTransferIndex; });
3353
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return taskTransfer; });
3354
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return toPresetInfoListIndex; });
3366
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return toTaskTransferIndex; });
3367
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return taskTransfer; });
3368
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return toPresetInfoListIndex; });
3355
3369
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return deletePresetInfo; });
3356
3370
  /* unused harmony export historyListJson */
3357
3371
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return pendedhistoryListJson; });
3358
3372
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return pressListJson; });
3359
3373
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return deleteFlow; });
3360
3374
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return isCanStartSubFlow; });
3361
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return toTaskUnionExamine; });
3362
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return taskUnionExamine; });
3363
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return toTaskTakeAdvice; });
3364
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return taskTakeAdvice; });
3365
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return toTaskStartDraft; });
3366
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return taskStartDraft; });
3367
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return toTaskReview; });
3368
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return taskReview; });
3369
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return toTaskUnionSeal; });
3370
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return taskUnionSeal; });
3371
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return toTwoOfficesDispatch; });
3372
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return twoOfficesDispatch; });
3373
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return sendList; });
3374
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return sendInfo; });
3375
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return toTaskUnionExamine; });
3376
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return taskUnionExamine; });
3377
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return toTaskTakeAdvice; });
3378
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return taskTakeAdvice; });
3379
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return toTaskStartDraft; });
3380
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return taskStartDraft; });
3381
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return toTaskReview; });
3382
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return taskReview; });
3383
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return toTaskUnionSeal; });
3384
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return taskUnionSeal; });
3385
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return toTwoOfficesDispatch; });
3386
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return twoOfficesDispatch; });
3387
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return sendList; });
3388
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return sendInfo; });
3375
3389
  /* unused harmony export sendSave */
3376
3390
  /* unused harmony export sendUpdate */
3377
3391
  /* unused harmony export sendDelete */
3378
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return sendBatch; });
3392
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return sendBatch; });
3379
3393
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return formContents; });
3380
3394
  // 登录
3381
3395
  var doCaLogin = '/sso2/signIn/auth/doCaLogin'; // ca登录认证
@@ -3422,6 +3436,9 @@ var updateUserCustomInfo = '/main2/main/updateUserCustomInfo'; // 更新主题
3422
3436
  var sysMsgPage = '/main2/notify/sysMsgPage'; // 获取系统消息
3423
3437
  var ignoreSysMsg = '/main2/notify/ignoreSysMsg'; // 忽略系统消息
3424
3438
  var ignoreAllSysMsg = '/main2/notify/ignoreAllSysMsg'; // 忽略全部系统消息
3439
+ // 框架 - 搜索
3440
+ var searchType = '/oceansearch/v2/search/catalog'; // 搜索分类类型
3441
+
3425
3442
  // 附件相关
3426
3443
  var getAdjunctProperties = '/main2/mecpfileManagement/getAdjunctProperties'; // 获取附件扩展类型大小
3427
3444
  var uploads = '/main2/mecpfileManagement/upload'; // 上传接口
@@ -3596,7 +3613,8 @@ var sendDelete = '/notify2/notifySendRecord/deleteById';
3596
3613
  var sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
3597
3614
 
3598
3615
  // 表单结构
3599
- var formContents = '/config/admin/online/onlineForm/render';
3616
+
3617
+ var formContents = '/lowcode/admin/online/onlineForm/getOnlineFormFromCache';
3600
3618
 
3601
3619
  /***/ }),
3602
3620
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.83",
3
+ "version": "0.5.85",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -97,7 +97,7 @@
97
97
  "cp-cli": "^1.0.2",
98
98
  "cross-env": "^3.1.3",
99
99
  "css-loader": "^2.1.0",
100
- "eoss-element": "^0.3.23",
100
+ "eoss-element": "^0.3.25",
101
101
  "es6-promise": "^4.0.5",
102
102
  "eslint": "4.18.2",
103
103
  "eslint-config-elemefe": "0.1.1",
@@ -17,6 +17,7 @@ export default {
17
17
  }
18
18
  },
19
19
  props: {
20
+ data: {},
20
21
  icon: String,
21
22
  iconPlacement: {
22
23
  type: String,
@@ -46,10 +47,14 @@ export default {
46
47
  syncKeys: Object,
47
48
  text: String,
48
49
  onClick: Function,
49
- badge: [Object, Number],
50
+ badge: [Object, Number, Function],
50
51
  float: String,
51
52
  selector: Boolean,
52
- upload: Boolean
53
+ upload: Boolean,
54
+ outside: {
55
+ type: Boolean,
56
+ default: true
57
+ }
53
58
  },
54
59
  computed: {
55
60
  _type() {
@@ -266,6 +271,7 @@ export default {
266
271
  let attrs = {};
267
272
  let listeners = {};
268
273
  let config = {};
274
+ let badgeConfig;
269
275
  if (this.selector) {
270
276
  tag = 'es-selector';
271
277
  props = {
@@ -300,44 +306,66 @@ export default {
300
306
  ]);
301
307
  }
302
308
  if (this.badge) {
303
- let config = {};
304
309
  if (typeof this.badge === 'number') {
305
- config = { class: 'es-button-badge', props: { value: this.badge } };
310
+ badgeConfig = {
311
+ class: 'es-button-badge',
312
+ props: { value: this.badge }
313
+ };
314
+ } else if (typeof this.badge === 'function') {
315
+ let badge = this.badge(this.data);
316
+ if (badge) {
317
+ if (typeof badge === 'number') {
318
+ badgeConfig = {
319
+ class: 'es-button-badge',
320
+ props: { value: badge }
321
+ };
322
+ } else {
323
+ let { value, max, isDot, hidden, type } = badge;
324
+ badgeConfig = {
325
+ class: this.badge.class
326
+ ? this.badge.class + ' es-button-badge'
327
+ : 'es-button-badge',
328
+ props: { value, max, isDot, hidden, type }
329
+ };
330
+ }
331
+ }
306
332
  } else {
307
333
  let { value, max, isDot, hidden, type } = this.badge;
308
- config = {
334
+ badgeConfig = {
309
335
  class: this.badge.class
310
336
  ? this.badge.class + ' es-button-badge'
311
337
  : 'es-button-badge',
312
338
  props: { value, max, isDot, hidden, type }
313
339
  };
314
340
  }
315
- return h('el-badge', config, [
316
- h(
317
- tag,
318
- {
319
- class: clas,
320
- props: { ...this.$attrs, ...props },
321
- attrs: attrs,
322
- on: { ...this.$listeners, click: this.handleClick },
323
- directives: [
324
- {
325
- name: 'show',
326
- value: !this.hide
327
- }
328
- ]
329
- },
330
- this.iconPlacement === 'start'
331
- ? [
332
- this.icon ? h('i', { class: this.icon }) : '',
333
- this.$slots.default || this.text
334
- ]
335
- : [
336
- this.$slots.default || this.text,
337
- this.icon ? h('i', { class: this.icon }) : ''
341
+ if (badgeConfig && Object.keys(badgeConfig).length && this.outside) {
342
+ return h('el-badge', badgeConfig, [
343
+ h(
344
+ tag,
345
+ {
346
+ class: clas,
347
+ props: { ...this.$attrs, ...props },
348
+ attrs: attrs,
349
+ on: { ...this.$listeners, click: this.handleClick },
350
+ directives: [
351
+ {
352
+ name: 'show',
353
+ value: !this.hide
354
+ }
338
355
  ]
339
- )
340
- ]);
356
+ },
357
+ this.iconPlacement === 'start'
358
+ ? [
359
+ this.icon ? h('i', { class: this.icon }) : '',
360
+ this.$slots.default || this.text
361
+ ]
362
+ : [
363
+ this.$slots.default || this.text,
364
+ this.icon ? h('i', { class: this.icon }) : ''
365
+ ]
366
+ )
367
+ ]);
368
+ }
341
369
  }
342
370
  }
343
371
  return h(
@@ -354,31 +382,36 @@ export default {
354
382
  }
355
383
  ]
356
384
  },
357
- this.iconPlacement === 'start'
358
- ? [
359
- this.icon ? h('i', { class: this.icon }) : '',
360
- this.upload
361
- ? h(
362
- 'el-button',
363
- {
364
- props: config
365
- },
366
- [this.$slots.default || this.text]
367
- )
368
- : this.$slots.default || this.text
369
- ]
370
- : [
371
- this.upload
372
- ? h(
373
- 'el-button',
374
- {
375
- props: config
376
- },
377
- [this.$slots.default || this.text]
378
- )
379
- : this.$slots.default || this.text,
380
- this.icon ? h('i', { class: this.icon }) : ''
381
- ]
385
+ [
386
+ ...(this.iconPlacement === 'start'
387
+ ? [
388
+ this.icon ? h('i', { class: this.icon }) : '',
389
+ this.upload
390
+ ? h(
391
+ 'el-button',
392
+ {
393
+ props: config
394
+ },
395
+ [this.$slots.default || this.text]
396
+ )
397
+ : this.$slots.default || this.text
398
+ ]
399
+ : [
400
+ this.upload
401
+ ? h(
402
+ 'el-button',
403
+ {
404
+ props: config
405
+ },
406
+ [this.$slots.default || this.text]
407
+ )
408
+ : this.$slots.default || this.text,
409
+ this.icon ? h('i', { class: this.icon }) : ''
410
+ ]),
411
+ !this.outside && badgeConfig && Object.keys(badgeConfig).length
412
+ ? h('el-badge', badgeConfig)
413
+ : ''
414
+ ]
382
415
  );
383
416
  }
384
417
  };
@@ -21,6 +21,8 @@
21
21
  <es-button
22
22
  v-else
23
23
  :stop="stop"
24
+ :data="data"
25
+ :outside="outside"
24
26
  v-bind="
25
27
  exclAttribute({
26
28
  data: item,
@@ -50,17 +52,19 @@
50
52
  :trigger="trigger"
51
53
  >
52
54
  <el-button :size="size" :type="mode == 'plus' ? 'text' : ''">
53
- <template v-if="mode == 'plus'">更多</template>
54
- <template v-else-if="moreText">
55
- {{ moreText }}
56
- <i
57
- :class="{
58
- 'el-icon-arrow-down': !show,
59
- 'el-icon-arrow-up': show
60
- }"
61
- ></i>
62
- </template>
63
- <i v-else class="es-icon-omit"></i>
55
+ <el-badge v-bind="badges">
56
+ <template v-if="mode == 'plus'">更多</template>
57
+ <template v-else-if="moreText">
58
+ {{ moreText }}
59
+ <i
60
+ :class="{
61
+ 'el-icon-arrow-down': !show,
62
+ 'el-icon-arrow-up': show
63
+ }"
64
+ ></i>
65
+ </template>
66
+ <i v-else class="es-icon-omit"></i>
67
+ </el-badge>
64
68
  </el-button>
65
69
  <el-dropdown-menu slot="dropdown">
66
70
  <el-dropdown-item
@@ -114,6 +118,14 @@
114
118
  : item.text
115
119
  }}
116
120
  </template>
121
+ <el-badge
122
+ v-if="item.badge"
123
+ v-bind="
124
+ typeof item.badge === 'number'
125
+ ? { value: item.badge }
126
+ : item.badge
127
+ "
128
+ ></el-badge>
117
129
  </el-dropdown-item>
118
130
  </el-dropdown-menu>
119
131
  </el-dropdown>
@@ -153,7 +165,13 @@ export default {
153
165
  type: String,
154
166
  default: 'bottom'
155
167
  },
156
- parseData: Function
168
+ parseData: Function,
169
+ badge: Object,
170
+ sort: Boolean,
171
+ outside: {
172
+ type: Boolean,
173
+ default: true
174
+ }
157
175
  },
158
176
  computed: {
159
177
  btns() {
@@ -170,6 +188,19 @@ export default {
170
188
  ? this.btns.slice(this.length - 1, this.btns.length)
171
189
  : [];
172
190
  return btns;
191
+ },
192
+ badges() {
193
+ if (
194
+ this.other.length &&
195
+ this.other.filter((item) => {
196
+ return item.badge;
197
+ }).length
198
+ ) {
199
+ return this.badge ? { isDot: true, ...this.badge } : { isDot: true };
200
+ }
201
+ return this.badge
202
+ ? { isDot: true, hidden: true, ...this.badge }
203
+ : { isDot: true, hidden: true };
173
204
  }
174
205
  },
175
206
  watch: {},
@@ -215,7 +246,19 @@ export default {
215
246
  }
216
247
  return true;
217
248
  });
218
- return arry;
249
+ let newBtns = arry.map((item) => {
250
+ let badge;
251
+ if (item.badge && typeof item.badge === 'function') {
252
+ badge = item.badge(this.data.row);
253
+ }
254
+ return badge ? { ...item, badge: badge } : { ...item };
255
+ });
256
+ if (this.sort) {
257
+ newBtns = newBtns.sort((a, b) => {
258
+ return (b.badge ? 1 : 0) - (a.badge ? 1 : 0);
259
+ });
260
+ }
261
+ return newBtns;
219
262
  },
220
263
  handleChange(res) {
221
264
  this.show = res;
@@ -4,7 +4,7 @@
4
4
  <template v-for="(item, index) in childrens">
5
5
  <children
6
6
  v-if="item.hide !== true"
7
- :key="index"
7
+ :key="item.key || item.id || item.label || item.title || index"
8
8
  v-bind="{
9
9
  ...$attrs,
10
10
  ...item,
@@ -22,13 +22,14 @@ import column from './column.vue';
22
22
  export default {
23
23
  name: 'Children',
24
24
  components: {
25
- [column.name]: column
25
+ column
26
26
  },
27
27
  props: {
28
28
  dragSort: Boolean,
29
29
  children: Array,
30
30
  childHead: Array
31
31
  },
32
+ created() {},
32
33
  computed: {
33
34
  childrens() {
34
35
  return this.children || this.childHead || [];
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <el-table-column v-bind="config">
2
+ <el-table-column v-bind="config" :key="field">
3
3
  <slot> </slot>
4
4
  <template slot-scope="scope">
5
5
  <template v-if="isForm && !isReadOnly(scope)">
@@ -585,7 +585,6 @@ export default {
585
585
  label: this.label || this.title,
586
586
  width: this.btnWidth || this.width
587
587
  };
588
-
589
588
  if (this.type === 'expand') {
590
589
  config = { type: this.type, ...config, ...this.$attrs };
591
590
  return config;
@@ -602,13 +601,17 @@ export default {
602
601
  required = this.rules.required;
603
602
  }
604
603
  }
604
+ if (this.type === 'handle') {
605
+ config.sort = true;
606
+ config.outside = false;
607
+ }
605
608
  let minWidth =
606
609
  this.label || this.title
607
610
  ? (this.label || this.title).length * 14 + 20
608
611
  : this.width
609
612
  ? ''
610
613
  : '180px';
611
- config = {
614
+ return {
612
615
  ...config,
613
616
  filterIcon: this.icon,
614
617
  sortable: this.sortable || this.sort,
@@ -627,7 +630,6 @@ export default {
627
630
  field: this.field,
628
631
  ...this.$attrs
629
632
  };
630
- return config;
631
633
  },
632
634
  formOption() {
633
635
  let config = {