@titaui/pc 1.11.4-1 → 1.11.4-4
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.
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/dynamic/constant.js +31 -30
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +21 -6
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +6 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +19 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
- package/{es/pages/group-management/page-view/loading → lib/components/dynamic/dynamic-item/dynamic-interview-share}/index.js +40 -11
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
- package/lib/components/dynamic/dynamic-item/index.js +42 -32
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/menus/export-modules/interview-menus/constant.js +12 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/select/Option.js +3 -3
- package/lib/components/task-tree/helper.js +61 -0
- package/lib/components/task-tree/images/P1.svg +15 -0
- package/lib/components/task-tree/images/P2.svg +15 -0
- package/lib/components/task-tree/images/P3.svg +15 -0
- package/lib/components/task-tree/images/P4.svg +15 -0
- package/lib/components/task-tree/images/P5.svg +15 -0
- package/lib/components/task-tree/images/arrow.svg +9 -0
- package/lib/components/task-tree/images/empty-131.png +0 -0
- package/lib/components/task-tree/images/followed.svg +33 -0
- package/lib/components/task-tree/images/nice.svg +108 -0
- package/lib/components/task-tree/images/struc12.png +0 -0
- package/lib/components/task-tree/images/struc2.png +0 -0
- package/lib/components/task-tree/images/xialat-s.svg +13 -0
- package/lib/components/task-tree/index.js +27 -0
- package/lib/components/task-tree/mock.js +944 -0
- package/{es/components/okr-detail/e-list → lib/components/task-tree}/precls.js +1 -1
- package/lib/components/task-tree/request-apis.js +88 -0
- package/lib/components/task-tree/task-item-node/constant.js +45 -0
- package/{es/components/okr-detail/components/okr-tree/tree-node/default-node.js → lib/components/task-tree/task-item-node/e-empty.js} +13 -6
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node → lib/components/task-tree/task-item-node}/e-project.js +29 -34
- package/{es/components/e-status-dropdown/index.js → lib/components/task-tree/task-item-node/e-status-dropdown.js} +3 -3
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js → lib/components/task-tree/task-item-node/e-task.js} +140 -121
- package/{es/components/okr-detail/components/okr-tree/tree-node → lib/components/task-tree/task-item-node}/get-process-color.js +3 -3
- package/lib/components/task-tree/task-item-node/index.css +290 -0
- package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
- package/lib/components/task-tree/task-tree.css +8 -0
- package/{es/components/okr-detail/components/okr-tree/index.js → lib/components/task-tree/task-tree.js} +17 -16
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/index.js +8 -0
- package/package.json +5 -2
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -223
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -31
- package/.prettierrc.js +0 -90
- package/.vscode/settings.json +0 -5
- package/es/components/cascader/time.js +0 -31
- package/es/components/common-share/request-apis.js +0 -56
- package/es/components/confidence/heart.js +0 -66
- package/es/components/create-okr-modal/fields/index.js +0 -17
- package/es/components/create-okr-modal/utils/getCreateOkrSurpassPercent.js +0 -154
- package/es/components/date-picker/BodyItem.js +0 -121
- package/es/components/date-picker/CalendarBody.js +0 -157
- package/es/components/date-picker/CalendarHeader.js +0 -187
- package/es/components/date-picker/index.js +0 -157
- package/es/components/date-range-picker/index.js +0 -210
- package/es/components/dialog/index.js +0 -119
- package/es/components/dialog-confirm/index.js +0 -154
- package/es/components/drop-selector/icon-item.js +0 -40
- package/es/components/drop-selector/index.js +0 -179
- package/es/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/es/components/dynamic/dynamic-liking/mock.js +0 -83
- package/es/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/es/components/e-priority/index.js +0 -88
- package/es/components/grid-layout/commen-components/index.js +0 -73
- package/es/components/grid-layout/image/could.js +0 -8
- package/es/components/grid-layout/image/lv.js +0 -8
- package/es/components/grid-layout/image/tita-mask.js +0 -8
- package/es/components/help-card/request-api.js +0 -35
- package/es/components/icon-button-list/index.js +0 -65
- package/es/components/menus/context.js +0 -18
- package/es/components/menus/precls.js +0 -8
- package/es/components/okr-detail/auth.js +0 -197
- package/es/components/okr-detail/components/ao-nice/index.js +0 -245
- package/es/components/okr-detail/components/block-line/index.js +0 -20
- package/es/components/okr-detail/components/header/index.js +0 -211
- package/es/components/okr-detail/components/icon-text/index.js +0 -116
- package/es/components/okr-detail/components/okr-tree/precls.js +0 -8
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +0 -88
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +0 -98
- package/es/components/okr-detail/components/okr-tree/tree-node/index.js +0 -90
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/get-process-color.js +0 -46
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +0 -421
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/index.js +0 -54
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +0 -62
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +0 -94
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +0 -273
- package/es/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +0 -207
- package/es/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +0 -236
- package/es/components/okr-detail/components/padding-layout.js +0 -22
- package/es/components/okr-detail/components/tab-panel-content/index.js +0 -27
- package/es/components/okr-detail/context.js +0 -30
- package/es/components/okr-detail/e-list/index.js +0 -243
- package/es/components/okr-detail/e-list/search-form/fields/e-order.js +0 -172
- package/es/components/okr-detail/e-list/search-form/fields/e-status.js +0 -99
- package/es/components/okr-detail/e-list/search-form/fields/e-user.js +0 -49
- package/es/components/okr-detail/e-list/search-form/index.js +0 -143
- package/es/components/okr-detail/error-page/index.js +0 -33
- package/es/components/okr-detail/index.js +0 -428
- package/es/components/okr-detail/loading/index.js +0 -28
- package/es/components/okr-detail/okr-list/add-parent-okr.js +0 -37
- package/es/components/okr-detail/okr-list/create-kr-item/heart.js +0 -38
- package/es/components/okr-detail/okr-list/drag-order-kr.js +0 -62
- package/es/components/okr-detail/okr-list/empty/index.js +0 -48
- package/es/components/okr-detail/okr-list/index.js +0 -524
- package/es/components/okr-detail/okr-list/warp-parent-okr.js +0 -21
- package/es/components/okr-detail/store.js +0 -1
- package/es/components/okr-flow/child-node/fields/creator.js +0 -175
- package/es/components/okr-flow/child-node/fields/okrClassify.js +0 -31
- package/es/components/okr-flow/child-node/fields/okrType.js +0 -21
- package/es/components/okr-flow/child-node/helper.js +0 -35
- package/es/components/okr-flow/child-node/index.js +0 -110
- package/es/components/okr-flow/child-node/kr-node.js +0 -75
- package/es/components/okr-flow/child-node/work-node.js +0 -242
- package/es/components/okr-flow/context.js +0 -14
- package/es/components/okr-flow/empty/index.js +0 -29
- package/es/components/okr-flow/export-modules/okr-search-panel/index.js +0 -394
- package/es/components/okr-flow/index.js +0 -24
- package/es/components/okr-flow/mini-map/index.js +0 -112
- package/es/components/okr-flow/mini-map/map.js +0 -145
- package/es/components/okr-flow/mini-map/mini-node.js +0 -57
- package/es/components/okr-flow/mini-map/utils.js +0 -79
- package/es/components/okr-flow/okr-map/index.js +0 -192
- package/es/components/okr-flow/open-data/index.js +0 -115
- package/es/components/okr-flow/precls.js +0 -8
- package/es/components/okr-flow/request-apis.js +0 -118
- package/es/components/okr-flow/root-node/index.js +0 -229
- package/es/components/okr-flow/utils/config.js +0 -18
- package/es/components/okr-flow/utils/helper.js +0 -36
- package/es/components/okr-flow/utils/index.js +0 -66
- package/es/components/okr-flow/utils/tree-handler.js +0 -323
- package/es/components/okr-progress-modal/helper.js +0 -156
- package/es/components/okr-progress-modal/request-apis.js +0 -34
- package/es/components/okr-share/request-apis.js +0 -56
- package/es/components/okrcase-library/server/network.js +0 -407
- package/es/components/pagination/locale/en_US.js +0 -22
- package/es/components/pagination/locale/zh_CN.js +0 -22
- package/es/components/point-demo/drop-down-box/index.js +0 -159
- package/es/components/point-demo/index.js +0 -533
- package/es/components/point-demo/input/index.js +0 -176
- package/es/components/point-demo/point-demo.js +0 -75
- package/es/components/point-demo/popup/index.js +0 -113
- package/es/components/point-demo/popup/placement.js +0 -44
- package/es/components/range-picker-pop/index.js +0 -273
- package/es/components/scrollbar/simplebar/helpers.js +0 -59
- package/es/components/scrollbar/simplebar/index.js +0 -91
- package/es/components/scrollbar/simplebar/scrollbar-width.js +0 -47
- package/es/components/scrollbar/simplebar/simplebar.js +0 -852
- package/es/components/scrollbar/simplebar-react.js +0 -163
- package/es/components/search-dropdown/index.js +0 -40
- package/es/components/search-input/index.js +0 -126
- package/es/components/select/Option.js +0 -94
- package/es/components/select/index.js +0 -330
- package/es/components/selector-input/debounce.js +0 -36
- package/es/components/selector-input/index.js +0 -109
- package/es/components/slider-input/index.js +0 -119
- package/es/components/switch/index.js +0 -39
- package/es/components/table/index.js +0 -275
- package/es/components/tabs/index.js +0 -63
- package/es/components/task-relation-modal/tree-node/index.js +0 -58
- package/es/components/tita-chart/charts/img/could.js +0 -8
- package/es/components/tooltip/error-tip.js +0 -24
- package/es/components/tooltip/index.js +0 -21
- package/es/components/tree/index.js +0 -79
- package/es/components/tree/precls.js +0 -8
- package/es/components/upvote/request-apis.js +0 -45
- package/es/components/user-selector/action-btns/btn-cancel.js +0 -21
- package/es/components/user-selector/action-btns/btn-ok.js +0 -21
- package/es/components/user-selector/action-btns/index.js +0 -27
- package/es/components/user-selector/context.js +0 -18
- package/es/components/user-selector/empty/group.js +0 -55
- package/es/components/user-selector/empty/index.js +0 -28
- package/es/components/user-selector/export-modules/depart-search-selector/result-part.js +0 -41
- package/es/components/user-selector/export-modules/group-selector/index.js +0 -170
- package/es/components/user-selector/export-modules/group-selector/searched-panel.js +0 -68
- package/es/components/user-selector/export-modules/multiple-user-selector--bak/index.js +0 -246
- package/es/components/user-selector/index.js +0 -25
- package/es/components/user-selector/layout/index.js +0 -25
- package/es/components/user-selector/loading/index.js +0 -18
- package/es/components/user-selector/request-apis.js +0 -180
- package/es/components/user-selector/searched-panel/index.js +0 -139
- package/es/components/user-selector/searched-panel/result-part.js +0 -43
- package/es/components/user-selector/select-tree/selected-tree/index.js +0 -91
- package/es/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +0 -48
- package/es/components/user-selector/select-tree/tree-nodes/tree-duties-node/index.js +0 -27
- package/es/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +0 -57
- package/es/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +0 -93
- package/es/components/user-selector/utils.js +0 -139
- package/es/components/viewer/ImageListRender.js +0 -143
- package/es/components/viewer/index.js +0 -168
- package/es/components/word-cloud/index.js +0 -109
- package/es/components/word-cloud/request-apis.js +0 -26
- package/es/components-v1/animate/AnimateChild.js +0 -76
- package/es/components-v1/animate/animate.js +0 -148
- package/es/components-v1/animate/index.js +0 -13
- package/es/components-v1/dom/index.js +0 -30
- package/es/components-v1/placement/index.js +0 -13
- package/es/components-v1/placement/placement.js +0 -111
- package/es/components-v1/placement/placementInner.js +0 -139
- package/es/components-v1/pop/Pop.js +0 -246
- package/es/components-v1/pop/PopInner.js +0 -163
- package/es/components-v1/pop/index.js +0 -13
- package/es/components-v1/progress/CircleProgress.js +0 -152
- package/es/components-v1/progress/LineProgress.js +0 -83
- package/es/components-v1/progress/index.js +0 -80
- package/es/components-v1/select/Option.js +0 -94
- package/es/components-v1/select/index.js +0 -330
- package/es/components-v1/utils/animate/animate.js +0 -103
- package/es/components-v1/utils/animate/event.js +0 -79
- package/es/components-v1/utils/dom/index.js +0 -30
- package/es/components-v1/utils/placement/autoAdjustPlacement.js +0 -93
- package/es/components-v1/utils/placement/getContainerVisibleArea.js +0 -22
- package/es/components-v1/utils/placement/getExpectPlacement.js +0 -49
- package/es/components-v1/utils/placement/getPlacementInContainer.js +0 -26
- package/es/components-v1/utils/placement/placement.js +0 -76
- package/es/index.js +0 -777
- package/es/pages/appointment-demo/drop-down-box/index.js +0 -159
- package/es/pages/appointment-demo/index.js +0 -649
- package/es/pages/appointment-demo/input/index.js +0 -176
- package/es/pages/appointment-demo/popup/index.js +0 -113
- package/es/pages/appointment-demo/popup/placement.js +0 -44
- package/es/pages/group-management/components/checkbox/index.js +0 -28
- package/es/pages/group-management/components/input-form/index.js +0 -174
- package/es/pages/group-management/components/radio/index.js +0 -21
- package/es/pages/group-management/components/table/index.js +0 -174
- package/es/pages/group-management/groupInterface.js +0 -293
- package/es/pages/group-management/index.js +0 -13
- package/es/pages/group-management/page-view/empty.js +0 -111
- package/es/pages/group-management/page-view/group-empty.js +0 -66
- package/es/pages/group-management/page-view/importGroupStaff/index.js +0 -208
- package/es/pages/group-management/page-view/index.js +0 -412
- package/es/pages/group-management/table/index.js +0 -104
- package/es/pages/group-management/tree/add-group-dialog/index.js +0 -153
- package/es/pages/group-management/tree/delete-group-dialog/index.js +0 -82
- package/es/pages/group-management/tree/edit-group-dialog/index.js +0 -155
- package/es/pages/group-management/tree/group-form/index.js +0 -207
- package/es/pages/group-management/tree/index.js +0 -168
- package/es/pages/group-management/tree/operation-panel.js +0 -41
- package/es/pages/group-management/tree/trigger-render.js +0 -99
- package/es/pages/like-ranking/mock.js +0 -366
- package/es/pages/okr-map/export-modules/index.js +0 -1
- package/es/pages/okr-map/export-modules/okr-map/header/index.js +0 -182
- package/es/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +0 -47
- package/es/pages/okr-map/export-modules/okr-map/okr-map.js +0 -497
- package/es/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -69
- package/es/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +0 -168
- package/es/pages/okr-map/hooks/useStorage.js +0 -96
- package/es/pages/okr-map/index.js +0 -18
- package/es/pages/okr-map/level2-search/depart.js +0 -53
- package/es/pages/okr-map/level2-search/group.js +0 -69
- package/es/pages/okr-map/level2-search/index.js +0 -51
- package/es/pages/okr-map/level2-search/level2-input.js +0 -46
- package/es/pages/okr-map/level2-search/user.js +0 -54
- package/es/pages/okr-map/no-okr/index.js +0 -24
- package/es/pages/okr-map/number-select/index.js +0 -81
- package/es/pages/okr-map/open-data/index.js +0 -115
- package/es/pages/okr-map/precls.js +0 -8
- package/es/pages/okr-map/request-apis.js +0 -76
- package/es/pages/okr-map/share-dialog/index.js +0 -122
- package/es/pages/okr-map/unsupport-ie/index.js +0 -83
- package/es/pages/okr-map/utils.js +0 -51
- package/es/utils/auth.js +0 -294
- package/es/utils/bs-global.js +0 -114
- package/es/utils/local-storage.js +0 -42
- package/es/utils/mblog.js +0 -33
- package/es/utils/mock-bsglobal.js +0 -1837
- package/es/utils/open-data.js +0 -341
- package/es/utils/request-v1.js +0 -115
- package/es/utils/request.js +0 -183
- package/es/utils/tools.js +0 -286
- package/yarn-error.log +0 -21252
|
@@ -47,7 +47,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(BodyItem);
|
|
48
48
|
|
|
49
49
|
function BodyItem() {
|
|
50
|
-
var
|
|
50
|
+
var _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, BodyItem);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.getClass = function () {
|
|
59
59
|
var _this$props = _this.props,
|
|
60
60
|
isAllowSelect = _this$props.isAllowSelect,
|
|
61
61
|
date = _this$props.date,
|
|
@@ -86,7 +86,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
86
86
|
if (_this.disabled) return;
|
|
87
87
|
|
|
88
88
|
_this.props.onSelectDate((0, _moment["default"])(date.format("YYYY/MM/DD")));
|
|
89
|
-
},
|
|
89
|
+
}, _assertThisInitialized(_this)));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
_createClass(BodyItem, [{
|
|
@@ -87,7 +87,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
87
87
|
var _super = _createSuper(CalendarHeader);
|
|
88
88
|
|
|
89
89
|
function CalendarHeader() {
|
|
90
|
-
var
|
|
90
|
+
var _this;
|
|
91
91
|
|
|
92
92
|
_classCallCheck(this, CalendarHeader);
|
|
93
93
|
|
|
@@ -95,7 +95,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
args[_key] = arguments[_key];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
return _possibleConstructorReturn(_this, (
|
|
98
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.setDate = function (func) {
|
|
99
99
|
var date = (0, _moment["default"])(_this.props.date);
|
|
100
100
|
|
|
101
101
|
for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -113,7 +113,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
return years;
|
|
116
|
-
},
|
|
116
|
+
}, _assertThisInitialized(_this)));
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
_createClass(CalendarHeader, [{
|
|
@@ -49,7 +49,7 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
49
49
|
var _super = _createSuper(ConfirmPop);
|
|
50
50
|
|
|
51
51
|
function ConfirmPop() {
|
|
52
|
-
var
|
|
52
|
+
var _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, ConfirmPop);
|
|
55
55
|
|
|
@@ -57,13 +57,13 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (
|
|
60
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
61
61
|
// @ts-ignore
|
|
62
62
|
_this.refs.pop.show(_this.refs.trigger);
|
|
63
63
|
}, _this.handleHide = function () {
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
_this.refs.pop.hide();
|
|
66
|
-
},
|
|
66
|
+
}, _assertThisInitialized(_this)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(ConfirmPop, [{
|
|
@@ -12,19 +12,19 @@ var _ObjTypeMapText;
|
|
|
12
12
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
13
|
|
|
14
14
|
var OkrRiskMapping = {
|
|
15
|
-
0:
|
|
15
|
+
0: "normal",
|
|
16
16
|
// 正常推进
|
|
17
|
-
1:
|
|
17
|
+
1: "normal",
|
|
18
18
|
// 正常推进
|
|
19
|
-
2:
|
|
19
|
+
2: "risk",
|
|
20
20
|
// 注意风险
|
|
21
|
-
3:
|
|
21
|
+
3: "delay",
|
|
22
22
|
// 已有风险
|
|
23
|
-
4:
|
|
23
|
+
4: "end",
|
|
24
24
|
// kr及o全都完成
|
|
25
|
-
5:
|
|
25
|
+
5: "delay",
|
|
26
26
|
// 延期完成
|
|
27
|
-
6:
|
|
27
|
+
6: "normal" // 正常推进
|
|
28
28
|
|
|
29
29
|
};
|
|
30
30
|
exports.OkrRiskMapping = OkrRiskMapping;
|
|
@@ -64,6 +64,7 @@ exports.EShareType = EShareType;
|
|
|
64
64
|
EShareType[EShareType["CommonShare"] = 0] = "CommonShare";
|
|
65
65
|
EShareType[EShareType["ShareToDynamic"] = 1] = "ShareToDynamic";
|
|
66
66
|
EShareType[EShareType["BiShare"] = 3] = "BiShare";
|
|
67
|
+
EShareType[EShareType["InterviewShare"] = 5] = "InterviewShare";
|
|
67
68
|
})(EShareType || (exports.EShareType = EShareType = {}));
|
|
68
69
|
|
|
69
70
|
var EObjType;
|
|
@@ -80,37 +81,37 @@ exports.EObjType = EObjType;
|
|
|
80
81
|
EObjType[EObjType["Report"] = 8] = "Report";
|
|
81
82
|
})(EObjType || (exports.EObjType = EObjType = {}));
|
|
82
83
|
|
|
83
|
-
var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project, (0, _getLocale.getLocale)(
|
|
84
|
+
var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project, (0, _getLocale.getLocale)("Menu_Title_Projects")), _defineProperty(_ObjTypeMapText, EObjType.Task, (0, _getLocale.getLocale)("Mod_Tasks")), _defineProperty(_ObjTypeMapText, EObjType.O, (0, _getLocale.getLocale)("Mod_Objective")), _defineProperty(_ObjTypeMapText, EObjType.Kr, (0, _getLocale.getLocale)("Mod_KeyResults")), _defineProperty(_ObjTypeMapText, EObjType.MileStone, (0, _getLocale.getLocale)("Pro_page_Plan_Milestone")), _defineProperty(_ObjTypeMapText, EObjType.KanBan, (0, _getLocale.getLocale)("Pro_page_V_Tab_Kanban")), _defineProperty(_ObjTypeMapText, EObjType.Report, "总结"), _ObjTypeMapText);
|
|
84
85
|
exports.ObjTypeMapText = ObjTypeMapText;
|
|
85
86
|
|
|
86
87
|
var ObjectType = function ObjectType() {
|
|
87
88
|
return {
|
|
88
|
-
1: (0, _getLocale.getLocale)(
|
|
89
|
-
4: (0, _getLocale.getLocale)(
|
|
90
|
-
5: (0, _getLocale.getLocale)(
|
|
91
|
-
6: (0, _getLocale.getLocale)(
|
|
92
|
-
7: (0, _getLocale.getLocale)(
|
|
93
|
-
8: (0, _getLocale.getLocale)(
|
|
94
|
-
10: (0, _getLocale.getLocale)(
|
|
95
|
-
11: (0, _getLocale.getLocale)(
|
|
96
|
-
12: (0, _getLocale.getLocale)(
|
|
97
|
-
62: (0, _getLocale.getLocale)(
|
|
98
|
-
65: (0, _getLocale.getLocale)(
|
|
99
|
-
70: (0, _getLocale.getLocale)(
|
|
100
|
-
79: (0, _getLocale.getLocale)(
|
|
101
|
-
80: (0, _getLocale.getLocale)(
|
|
102
|
-
42: (0, _getLocale.getLocale)(
|
|
89
|
+
1: (0, _getLocale.getLocale)("Mod_sannouncement"),
|
|
90
|
+
4: (0, _getLocale.getLocale)("Menu_Title_Projects"),
|
|
91
|
+
5: (0, _getLocale.getLocale)("Mod_sPerformanceForm"),
|
|
92
|
+
6: (0, _getLocale.getLocale)("Mod_sPerformanceGoals"),
|
|
93
|
+
7: (0, _getLocale.getLocale)("Mod_stasks"),
|
|
94
|
+
8: (0, _getLocale.getLocale)("Mod_sDailySummary"),
|
|
95
|
+
10: (0, _getLocale.getLocale)("Feed_sFeed"),
|
|
96
|
+
11: (0, _getLocale.getLocale)("Pro_page_Plan"),
|
|
97
|
+
12: (0, _getLocale.getLocale)("Feed_OperationTasks"),
|
|
98
|
+
62: (0, _getLocale.getLocale)("Mod_sobjective"),
|
|
99
|
+
65: (0, _getLocale.getLocale)("Feed_Keyresults"),
|
|
100
|
+
70: (0, _getLocale.getLocale)("OKR_MyO_KRP_Review"),
|
|
101
|
+
79: (0, _getLocale.getLocale)("Mod_skeyprogress"),
|
|
102
|
+
80: (0, _getLocale.getLocale)("Feed_sAnnouncement"),
|
|
103
|
+
42: (0, _getLocale.getLocale)("OKR_MyO_E_Reward")
|
|
103
104
|
};
|
|
104
105
|
};
|
|
105
106
|
|
|
106
107
|
exports.ObjectType = ObjectType;
|
|
107
108
|
var EStatusStatus2ClassType = {
|
|
108
|
-
2:
|
|
109
|
-
1:
|
|
110
|
-
4:
|
|
111
|
-
3:
|
|
112
|
-
6:
|
|
113
|
-
0:
|
|
114
|
-
5:
|
|
109
|
+
2: "tu-icon-finished",
|
|
110
|
+
1: "tu-icon-running",
|
|
111
|
+
4: "tu-icon-canceled",
|
|
112
|
+
3: "tu-icon-deferred",
|
|
113
|
+
6: "tu-icon-paused",
|
|
114
|
+
0: "tu-icon-notstart",
|
|
115
|
+
5: "tu-icon-jiantou-right"
|
|
115
116
|
};
|
|
116
117
|
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.titaui-dynamic-
|
|
1
|
+
.titaui-dynamic-interview__operate-desc {
|
|
2
2
|
font-size: 14px;
|
|
3
3
|
font-weight: 400;
|
|
4
4
|
color: #89919f;
|
|
@@ -7,30 +7,45 @@
|
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.titaui-dynamic-
|
|
10
|
+
.titaui-dynamic-interview__content {
|
|
11
11
|
height: 56px;
|
|
12
12
|
background: rgba(40, 121, 255, 0.06);
|
|
13
13
|
border-radius: 18px;
|
|
14
14
|
display: flex;
|
|
15
15
|
padding: 0 12px;
|
|
16
16
|
align-items: center;
|
|
17
|
+
margin-left: 88px;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
.titaui-dynamic-
|
|
20
|
+
.titaui-dynamic-interview__wifi {
|
|
20
21
|
margin: 0 8px;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
|
-
.titaui-dynamic-
|
|
24
|
+
.titaui-dynamic-interview__name {
|
|
24
25
|
margin-left: 12px;
|
|
25
26
|
flex: 1;
|
|
26
27
|
width: 0;
|
|
27
28
|
font-size: 16px;
|
|
28
29
|
font-weight: normal;
|
|
29
|
-
color: #141c28;
|
|
30
30
|
line-height: 24px;
|
|
31
31
|
font-weight: 600;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
text-overflow: ellipsis;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.titaui-dynamic-interview__name div {
|
|
38
|
+
max-width: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.titaui-dynamic-interview__name a {
|
|
42
|
+
color: #141c28;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.titaui-dynamic-interview__name a:hover {
|
|
46
|
+
color: #2879ff;
|
|
32
47
|
}
|
|
33
48
|
|
|
34
|
-
.titaui-dynamic-
|
|
49
|
+
.titaui-dynamic-interview .titaui-pc-avator-container {
|
|
35
50
|
height: 32px;
|
|
36
51
|
}
|
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
|
|
10
|
-
var _getLocale = require("../../../../utils/getLocale");
|
|
11
|
-
|
|
12
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
11
|
|
|
12
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
13
|
+
|
|
14
14
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
15
15
|
|
|
16
16
|
var _interviewContent = _interopRequireDefault(require("./interview-content"));
|
|
@@ -23,17 +23,16 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
25
|
|
|
26
|
-
var preCls =
|
|
26
|
+
var preCls = "titaui-dynamic-interview";
|
|
27
27
|
|
|
28
28
|
function DynamicInterview(_ref) {
|
|
29
29
|
var data = _ref.data,
|
|
30
30
|
onDeleteFeed = _ref.onDeleteFeed;
|
|
31
|
-
var
|
|
32
|
-
publishUser = data.publishUser;
|
|
31
|
+
var publishUser = data.publishUser;
|
|
33
32
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
34
33
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
35
34
|
className: "".concat(preCls, "__operate-desc")
|
|
36
|
-
}, (0, _getLocale.getLocale)(
|
|
35
|
+
}, (0, _getLocale.getLocale)("Ooo_Feed_Initiated11"));
|
|
37
36
|
}, []);
|
|
38
37
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
39
38
|
className: preCls
|
|
@@ -41,7 +40,7 @@ function DynamicInterview(_ref) {
|
|
|
41
40
|
data: data,
|
|
42
41
|
onDeleteFeed: onDeleteFeed,
|
|
43
42
|
desc: renderDesc,
|
|
44
|
-
user:
|
|
43
|
+
user: publishUser
|
|
45
44
|
}), /*#__PURE__*/_react["default"].createElement(_interviewContent["default"], {
|
|
46
45
|
data: data
|
|
47
46
|
}));
|
|
@@ -9,18 +9,25 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _avatar = _interopRequireDefault(require("../../../../components/avatar"));
|
|
11
11
|
|
|
12
|
+
var _wifi = _interopRequireDefault(require("./img/wifi.svg"));
|
|
13
|
+
|
|
12
14
|
require("./index.css");
|
|
13
15
|
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
17
|
|
|
16
|
-
var preCls =
|
|
18
|
+
var preCls = "titaui-dynamic-interview";
|
|
17
19
|
|
|
18
20
|
function InterviewContent(_ref) {
|
|
19
21
|
var data = _ref.data;
|
|
20
22
|
var principalUser = data.principalUser,
|
|
21
|
-
publishUser = data.publishUser
|
|
23
|
+
publishUser = data.publishUser,
|
|
24
|
+
interviewName = data.interviewName,
|
|
25
|
+
interviewId = data.interviewId;
|
|
26
|
+
var _window$location = window.location,
|
|
27
|
+
host = _window$location.host,
|
|
28
|
+
pathname = _window$location.pathname;
|
|
22
29
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
23
|
-
className: preCls
|
|
30
|
+
className: "".concat(preCls, "__content")
|
|
24
31
|
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
25
32
|
name: publishUser.name,
|
|
26
33
|
userId: publishUser.userId,
|
|
@@ -32,8 +39,9 @@ function InterviewContent(_ref) {
|
|
|
32
39
|
fontSize: 12
|
|
33
40
|
}
|
|
34
41
|
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
35
|
-
className: preCls
|
|
36
|
-
src:
|
|
42
|
+
className: "".concat(preCls, "__wifi"),
|
|
43
|
+
src: _wifi["default"],
|
|
44
|
+
alt: "wifi"
|
|
37
45
|
}), principalUser && /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
38
46
|
name: principalUser.name,
|
|
39
47
|
userId: principalUser.userId,
|
|
@@ -45,8 +53,12 @@ function InterviewContent(_ref) {
|
|
|
45
53
|
fontSize: 12
|
|
46
54
|
}
|
|
47
55
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
48
|
-
className: preCls
|
|
49
|
-
}
|
|
56
|
+
className: "".concat(preCls, "__name")
|
|
57
|
+
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
58
|
+
href: "//".concat(host).concat(pathname, "#/interview?hideNavTop=true&reactRouterName=detail&recordId=").concat(interviewId, "&toUserId=").concat(principalUser.userId),
|
|
59
|
+
target: "_blank",
|
|
60
|
+
rel: "noreferrer"
|
|
61
|
+
}, interviewName || "")));
|
|
50
62
|
}
|
|
51
63
|
|
|
52
64
|
var _default = InterviewContent;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="26px" height="21px" viewBox="0 0 26 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>wife</title>
|
|
4
|
+
<g id="面谈" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="5-面谈详情页" transform="translate(-106.000000, -17.000000)" fill="#2879FF" fill-rule="nonzero">
|
|
6
|
+
<g id="面谈人员" transform="translate(58.000000, 8.000000)">
|
|
7
|
+
<g id="wife" transform="translate(48.000000, 9.000000)">
|
|
8
|
+
<g id="编组-7">
|
|
9
|
+
<path d="M12.9658057,9.52816561 C12.2775701,9.52816561 11.7154472,10.0876457 11.7154472,10.7794706 C11.7154472,11.4687707 12.2775701,12.0281656 12.9658057,12.0281656 C13.6566846,12.0281656 14.2150114,11.4687707 14.2150114,10.7794706 C14.2150114,10.0876456 13.6567127,9.52816561 12.9658057,9.52816561 Z" id="路径" transform="translate(12.965229, 10.778166) scale(-1, 1) rotate(-270.000000) translate(-12.965229, -10.778166) "></path>
|
|
10
|
+
<path d="M9.13463077,9.00453638 C7.22941357,9.00453638 5.46172542,9.94655067 4.4067363,11.531305 C4.21117005,11.8188062 4.28841241,12.2143692 4.56884115,12.4134588 C4.67951673,12.488903 4.8030426,12.5227718 4.92136651,12.5227718 C5.12207849,12.5227718 5.31891006,12.4238384 5.44114247,12.2443421 C6.26193014,11.0108739 7.64371594,10.2770207 9.13463077,10.2770207 C10.6051595,10.2770207 11.975276,10.9978496 12.7974415,12.1987571 C12.9930077,12.488903 13.3866146,12.5578919 13.6696865,12.3562145 C13.9527303,12.1584046 14.019625,11.7576376 13.8202346,11.4714161 C12.766567,9.92573457 11.0116729,9.00453638 9.13463077,9.00453638 Z" id="路径" opacity="0.75" transform="translate(9.116567, 10.763654) scale(-1, 1) rotate(-270.000000) translate(-9.116567, -10.763654) "></path>
|
|
11
|
+
<path d="M6.05410015,8.5147913 C3.20198248,8.5147913 0.543996987,9.78992023 -1.2301585,12.0095944 C-1.45015998,12.2828485 -1.40899404,12.6836155 -1.13880053,12.9047724 C-0.873780866,13.1272944 -0.480089595,13.0869418 -0.261409722,12.8137162 C1.27472015,10.8919513 3.58023651,9.78733243 6.05410012,9.78733243 C8.52942591,9.78733243 10.8310057,10.8919513 12.3723094,12.8137162 C12.4932483,12.9711167 12.675908,13.0479259 12.8560371,13.0479259 C12.994972,13.0479259 13.1326135,13.0010612 13.2484349,12.9073887 C13.5198937,12.6861749 13.555942,12.2854647 13.3371778,12.0122106 C11.5643439,9.78992023 8.91150413,8.5147913 6.05410015,8.5147913 Z" id="路径" fill-opacity="0.5" transform="translate(6.053981, 10.781599) scale(-1, 1) rotate(-270.000000) translate(-6.053981, -10.781599) "></path>
|
|
12
|
+
<path d="M12.8458611,12.5083657 C10.3885313,9.64071899 6.80164139,8 2.99995194,8 C-0.796479272,8 -4.38722148,9.64069054 -6.84325778,12.5070575 C-7.07222913,12.7724914 -7.0477939,13.1745381 -6.78662652,13.4048234 C-6.52804606,13.6351656 -6.13050251,13.609117 -5.9053553,13.346271 C-3.68352045,10.757054 -0.438836284,9.26858839 2.99992386,9.26858839 C6.43882458,9.26858839 9.6860957,10.757054 11.9040782,13.346271 C12.0301629,13.4894244 12.202503,13.5635889 12.3749556,13.5635889 C12.5190645,13.5635889 12.6708497,13.5128283 12.7866429,13.4048234 C13.0465168,13.1745665 13.0722737,12.7737995 12.8458611,12.5083657 Z" id="路径" fill-opacity="0.25" transform="translate(3.000000, 10.781794) scale(-1, 1) rotate(-270.000000) translate(-3.000000, -10.781794) "></path>
|
|
13
|
+
</g>
|
|
14
|
+
<g id="编组-7" transform="translate(18.500000, 10.500000) scale(-1, 1) translate(-18.500000, -10.500000) translate(11.000000, 0.000000)">
|
|
15
|
+
<path d="M12.9658057,9.52816561 C12.2775701,9.52816561 11.7154472,10.0876457 11.7154472,10.7794706 C11.7154472,11.4687707 12.2775701,12.0281656 12.9658057,12.0281656 C13.6566846,12.0281656 14.2150114,11.4687707 14.2150114,10.7794706 C14.2150114,10.0876456 13.6567127,9.52816561 12.9658057,9.52816561 Z" id="路径" transform="translate(12.965229, 10.778166) scale(-1, 1) rotate(-270.000000) translate(-12.965229, -10.778166) "></path>
|
|
16
|
+
<path d="M9.13463077,9.00453638 C7.22941357,9.00453638 5.46172542,9.94655067 4.4067363,11.531305 C4.21117005,11.8188062 4.28841241,12.2143692 4.56884115,12.4134588 C4.67951673,12.488903 4.8030426,12.5227718 4.92136651,12.5227718 C5.12207849,12.5227718 5.31891006,12.4238384 5.44114247,12.2443421 C6.26193014,11.0108739 7.64371594,10.2770207 9.13463077,10.2770207 C10.6051595,10.2770207 11.975276,10.9978496 12.7974415,12.1987571 C12.9930077,12.488903 13.3866146,12.5578919 13.6696865,12.3562145 C13.9527303,12.1584046 14.019625,11.7576376 13.8202346,11.4714161 C12.766567,9.92573457 11.0116729,9.00453638 9.13463077,9.00453638 Z" id="路径" opacity="0.75" transform="translate(9.116567, 10.763654) scale(-1, 1) rotate(-270.000000) translate(-9.116567, -10.763654) "></path>
|
|
17
|
+
<path d="M6.05410015,8.5147913 C3.20198248,8.5147913 0.543996987,9.78992023 -1.2301585,12.0095944 C-1.45015998,12.2828485 -1.40899404,12.6836155 -1.13880053,12.9047724 C-0.873780866,13.1272944 -0.480089595,13.0869418 -0.261409722,12.8137162 C1.27472015,10.8919513 3.58023651,9.78733243 6.05410012,9.78733243 C8.52942591,9.78733243 10.8310057,10.8919513 12.3723094,12.8137162 C12.4932483,12.9711167 12.675908,13.0479259 12.8560371,13.0479259 C12.994972,13.0479259 13.1326135,13.0010612 13.2484349,12.9073887 C13.5198937,12.6861749 13.555942,12.2854647 13.3371778,12.0122106 C11.5643439,9.78992023 8.91150413,8.5147913 6.05410015,8.5147913 Z" id="路径" fill-opacity="0.5" transform="translate(6.053981, 10.781599) scale(-1, 1) rotate(-270.000000) translate(-6.053981, -10.781599) "></path>
|
|
18
|
+
<path d="M12.8458611,12.5083657 C10.3885313,9.64071899 6.80164139,8 2.99995194,8 C-0.796479272,8 -4.38722148,9.64069054 -6.84325778,12.5070575 C-7.07222913,12.7724914 -7.0477939,13.1745381 -6.78662652,13.4048234 C-6.52804606,13.6351656 -6.13050251,13.609117 -5.9053553,13.346271 C-3.68352045,10.757054 -0.438836284,9.26858839 2.99992386,9.26858839 C6.43882458,9.26858839 9.6860957,10.757054 11.9040782,13.346271 C12.0301629,13.4894244 12.202503,13.5635889 12.3749556,13.5635889 C12.5190645,13.5635889 12.6708497,13.5128283 12.7866429,13.4048234 C13.0465168,13.1745665 13.0722737,12.7737995 12.8458611,12.5083657 Z" id="路径" fill-opacity="0.25" transform="translate(3.000000, 10.781794) scale(-1, 1) rotate(-270.000000) translate(-3.000000, -10.781794) "></path>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</g>
|
|
23
|
+
</g>
|
|
24
|
+
</svg>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.titaui-dynamic-interview-share__text {
|
|
2
|
+
font-size: 14px;
|
|
3
|
+
font-weight: 400;
|
|
4
|
+
color: #3f4755;
|
|
5
|
+
line-height: 24px;
|
|
6
|
+
margin-left: 88px;
|
|
7
|
+
margin-bottom: 12px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.titaui-dynamic-interview-share__operate-desc {
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
color: #89919f;
|
|
14
|
+
line-height: 24px;
|
|
15
|
+
margin-left: 4px;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.titaui-dynamic-interview-share__content {
|
|
20
|
+
height: 56px;
|
|
21
|
+
background: rgba(40, 121, 255, 0.06);
|
|
22
|
+
border-radius: 18px;
|
|
23
|
+
display: flex;
|
|
24
|
+
padding: 0 12px;
|
|
25
|
+
align-items: center;
|
|
26
|
+
margin-left: 88px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.titaui-dynamic-interview-share__wifi {
|
|
30
|
+
margin: 0 8px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-dynamic-interview-share__name {
|
|
34
|
+
margin-left: 12px;
|
|
35
|
+
flex: 1;
|
|
36
|
+
width: 0;
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
font-weight: normal;
|
|
39
|
+
color: #141c28;
|
|
40
|
+
line-height: 24px;
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
text-overflow: ellipsis;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.titaui-dynamic-interview-share__name div {
|
|
48
|
+
max-width: 100%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.titaui-dynamic-interview-share__name a {
|
|
52
|
+
color: #141c28;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.titaui-dynamic-interview-share__name a:hover {
|
|
56
|
+
color: #2879ff;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.titaui-dynamic-interview-share .titaui-pc-avator-container {
|
|
60
|
+
height: 32px;
|
|
61
|
+
}
|
|
@@ -5,15 +5,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] =
|
|
8
|
+
exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
15
15
|
|
|
16
|
-
require("./
|
|
16
|
+
var _interviewContent = _interopRequireDefault(require("./interview-content"));
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
var _openData = require("../../../../utils/open-data");
|
|
17
21
|
|
|
18
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
23
|
|
|
@@ -21,12 +25,37 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
21
25
|
|
|
22
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
27
|
|
|
24
|
-
var preCls = "
|
|
25
|
-
|
|
26
|
-
function
|
|
28
|
+
var preCls = "titaui-dynamic-interview-share";
|
|
29
|
+
|
|
30
|
+
function DynamicInterviewShare(_ref) {
|
|
31
|
+
var data = _ref.data,
|
|
32
|
+
onDeleteFeed = _ref.onDeleteFeed,
|
|
33
|
+
_ref$hasDynamicOperea = _ref.hasDynamicOpereateAuth,
|
|
34
|
+
hasDynamicOpereateAuth = _ref$hasDynamicOperea === void 0 ? false : _ref$hasDynamicOperea;
|
|
35
|
+
var publishUser = data.publishUser,
|
|
36
|
+
content = data.content,
|
|
37
|
+
shareFeedSource = data.shareFeedSource;
|
|
38
|
+
var isPublisher = data.publishUser.userId === window.BSGlobal.loginUserInfo.Id;
|
|
39
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
40
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
41
|
+
className: "".concat(preCls, "__operate-desc")
|
|
42
|
+
}, (0, _getLocale.getLocale)("Ooo_Mo_Sharedconver"));
|
|
43
|
+
}, []);
|
|
27
44
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
-
className:
|
|
29
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
30
|
-
|
|
45
|
+
className: preCls
|
|
46
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], {
|
|
47
|
+
data: data,
|
|
48
|
+
onDeleteFeed: onDeleteFeed,
|
|
49
|
+
desc: renderDesc,
|
|
50
|
+
user: publishUser,
|
|
51
|
+
showDelete: hasDynamicOpereateAuth || isPublisher,
|
|
52
|
+
showTopping: hasDynamicOpereateAuth
|
|
53
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
54
|
+
className: "".concat(preCls, "__text")
|
|
55
|
+
}, (0, _openData.parseTag)(content)), /*#__PURE__*/_react["default"].createElement(_interviewContent["default"], {
|
|
56
|
+
data: shareFeedSource
|
|
31
57
|
}));
|
|
32
|
-
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
var _default = DynamicInterviewShare;
|
|
61
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _avatar = _interopRequireDefault(require("../../../../components/avatar"));
|
|
11
|
+
|
|
12
|
+
var _wifi = _interopRequireDefault(require("./img/wifi.svg"));
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var preCls = "titaui-dynamic-interview-share";
|
|
19
|
+
|
|
20
|
+
function InterviewContent(_ref) {
|
|
21
|
+
var data = _ref.data;
|
|
22
|
+
if (!data) return null;
|
|
23
|
+
|
|
24
|
+
var _ref2 = data || {},
|
|
25
|
+
toUser = _ref2.toUser,
|
|
26
|
+
fromUser = _ref2.fromUser,
|
|
27
|
+
content = _ref2.content,
|
|
28
|
+
objId = _ref2.objId;
|
|
29
|
+
|
|
30
|
+
var _window$location = window.location,
|
|
31
|
+
host = _window$location.host,
|
|
32
|
+
pathname = _window$location.pathname;
|
|
33
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
34
|
+
className: "".concat(preCls, "__content")
|
|
35
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
36
|
+
name: fromUser.name,
|
|
37
|
+
userId: fromUser.userId,
|
|
38
|
+
color: fromUser.avatar.color,
|
|
39
|
+
src: fromUser.avatar.medium,
|
|
40
|
+
size: {
|
|
41
|
+
width: 32,
|
|
42
|
+
textNum: 1,
|
|
43
|
+
fontSize: 12
|
|
44
|
+
}
|
|
45
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
46
|
+
className: "".concat(preCls, "__wifi"),
|
|
47
|
+
src: _wifi["default"],
|
|
48
|
+
alt: "wifi"
|
|
49
|
+
}), toUser && /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
50
|
+
name: toUser.name,
|
|
51
|
+
userId: toUser.userId,
|
|
52
|
+
color: toUser.avatar.color,
|
|
53
|
+
src: toUser.avatar.medium,
|
|
54
|
+
size: {
|
|
55
|
+
width: 32,
|
|
56
|
+
textNum: 1,
|
|
57
|
+
fontSize: 12
|
|
58
|
+
}
|
|
59
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
60
|
+
className: "".concat(preCls, "__name")
|
|
61
|
+
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
62
|
+
href: "//".concat(host).concat(pathname, "#/interview?hideNavTop=true&reactRouterName=detail&recordId=").concat(objId, "&toUserId=").concat(toUser.userId),
|
|
63
|
+
target: "_blank",
|
|
64
|
+
rel: "noreferrer"
|
|
65
|
+
}, content || "")));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
var _default = InterviewContent;
|
|
69
|
+
exports["default"] = _default;
|