@titaui/pc 1.12.7-beta.4 → 1.12.9-beta.1
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/change-okr-modal/Item.js +19 -18
- package/lib/components/change-okr-modal/styledComponents.js +9 -9
- package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
- package/lib/components/create-okr-modal/fields/index.css +14 -3
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -20
- package/lib/components/create-okr-modal/fields/okr-case.js +7 -5
- package/lib/components/create-okr-modal/fields/okr-parent.js +7 -5
- package/lib/components/create-okr-modal/index.js +215 -142
- package/lib/components/create-okr-modal/kr-items/index.css +23 -13
- package/lib/components/create-okr-modal/kr-items/krDatas.js +96 -76
- package/lib/components/create-okr-modal/kr-items/krItem.js +54 -57
- package/lib/components/create-okr-modal/style.js +5 -5
- package/lib/components/dynamic/components/title/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +17 -17
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +9 -9
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/index.js +4 -15
- package/lib/components/eReport/eReportLists/reportList.js +29 -30
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +11 -9
- package/lib/components/menus/components/menu-tree/tree-node/index.css +0 -120
- package/lib/components/menus/components/menu-tree/tree-node/index.js +2 -22
- package/lib/components/menus/i18n.js +0 -8
- package/lib/components/menus/index.js +0 -6
- package/lib/components/nav-top/components/menu/index.js +4 -4
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +3 -3
- package/lib/components/okr-detail/components/ao-nice/index.css +0 -1
- package/lib/components/okr-detail/components/header/edit-name.js +76 -39
- package/lib/components/okr-detail/components/header/index.css +122 -41
- package/lib/components/okr-detail/components/header/index.js +45 -48
- package/lib/components/{dynamic/dynamic-item/components/progress/components/okr-progress/index.js → okr-detail/components/header/o-classify.js} +84 -152
- package/lib/components/okr-detail/components/header/o-name.js +7 -5
- package/lib/components/okr-detail/components/o-progress-update/index.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +66 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +174 -64
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +15 -13
- package/lib/components/okr-detail/components/tab-panel-content/index.css +1 -0
- package/lib/components/okr-detail/detail-header/index.js +11 -5
- package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +75 -53
- package/lib/components/okr-detail/okr-list/index.css +9 -0
- package/lib/components/okr-detail/okr-list/index.js +25 -25
- package/lib/components/okr-detail/request-apis.js +73 -69
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +34 -32
- package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-flow/child-node/kr-node.js +3 -1
- package/lib/components/okr-flow/child-node/work-node.js +3 -1
- package/lib/components/okr-flow/export-modal/color.png +0 -0
- package/lib/components/okr-flow/export-modal/index.css +28 -13
- package/lib/components/okr-flow/export-modal/index.js +57 -14
- package/lib/components/okr-flow/export-modal/trans1.png +0 -0
- package/lib/components/okr-progress/components/kr-progress/index.js +5 -3
- package/lib/components/okr-progress/components/o-progress/index.js +3 -1
- package/lib/components/okr-progress/components/o-progress-update/index.js +2 -2
- package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +3 -3
- package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
- package/lib/components/okr-share/common-painter/utils.js +187 -36
- package/lib/components/okr-share/index.css +5 -4
- package/lib/components/okr-share/pink-card/card.js +3 -3
- package/lib/components/okr-share/pink-card/drawKrs.js +97 -18
- package/lib/components/okr-share/pink-card/index.js +20 -12
- package/lib/components/open-data-painter/index.js +6 -5
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/index.css +1 -0
- package/lib/components/period-selector/index.js +7 -2
- package/lib/components/picker/components/picker-trigger/index.js +2 -47
- package/lib/components/picker/picker-panels.js +4 -45
- package/lib/components/picker/picker.js +3 -7
- package/lib/components/search-input/index.js +0 -5
- package/lib/components/search-key-handle/index.js +12 -10
- package/lib/components/select-layer/index.js +22 -8
- package/lib/components/task-relation-modal/helper.js +1 -56
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +1 -4
- package/lib/components/task-relation-modal/okr-relation/request-api.js +2 -6
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +2 -2
- package/lib/components/task-relation-modal/request-api.js +5 -2
- package/lib/components/task-relation-modal/tree/work-tree/index.js +27 -31
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +22 -3
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +4 -4
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +11 -11
- package/lib/components/textarea/index.js +5 -7
- package/lib/components/tooltip/tooltip.js +9 -4
- package/lib/components/upload/components/uploadedPreview.js +17 -17
- package/lib/components/upload/index.js +23 -23
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +2 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +31 -17
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
- package/lib/components/user-selector/searched-panel/index.js +4 -4
- package/lib/components/wechat-btn/index.css +5 -1
- package/lib/components-v1/userSelector/components/SingleMode.js +7 -5
- package/lib/index.js +0 -48
- package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
- package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
- package/lib/pages/new-okr-list/header/index.js +15 -15
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/constant.js +2 -8
- package/lib/utils/helpers.js +11 -56
- package/lib/utils/hooks.js +5 -5
- package/lib/utils/open-data.js +216 -66
- package/lib/utils/tita-okr-cycle.js +3 -3
- package/package.json +2 -2
- package/lib/components/attachments-preview/index.css +0 -11
- package/lib/components/attachments-preview/index.js +0 -112
- package/lib/components/auto-save/img/failed.svg +0 -17
- package/lib/components/auto-save/img/success.svg +0 -16
- package/lib/components/auto-save/index.css +0 -39
- package/lib/components/auto-save/index.js +0 -78
- package/lib/components/auto-save/interface.js +0 -5
- package/lib/components/color-date-picker/index.css +0 -65
- package/lib/components/color-date-picker/index.js +0 -123
- package/lib/components/color-date-picker/interface.js +0 -14
- package/lib/components/dialog-upload/img/doc.svg +0 -1
- package/lib/components/dialog-upload/img/other.svg +0 -1
- package/lib/components/dialog-upload/img/pdf.svg +0 -1
- package/lib/components/dialog-upload/img/ppt.svg +0 -1
- package/lib/components/dialog-upload/img/radio.svg +0 -1
- package/lib/components/dialog-upload/img/video.svg +0 -1
- package/lib/components/dialog-upload/img/xls.svg +0 -1
- package/lib/components/dialog-upload/index.css +0 -77
- package/lib/components/dialog-upload/index.js +0 -332
- package/lib/components/dialog-upload/type.js +0 -35
- package/lib/components/dialog-upload/uploaded-preview.css +0 -77
- package/lib/components/dialog-upload/uploaded-preview.js +0 -132
- package/lib/components/dialog-upload/util.js +0 -131
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/encourage.js +0 -119
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/APP-shoucang-m.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/ascore.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curEfforts.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGood.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGreat.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/efforts.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/good.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/great.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/halfscore.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/loading.gif +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/score.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/top.svg +0 -14
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.css +0 -68
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.js +0 -118
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/rate.js +0 -143
- package/lib/components/dynamic/dynamic-item/components/header/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.css +0 -170
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +0 -120
- package/lib/components/dynamic/dynamic-item/components/okr-progress/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/okr-progress/request-api.js +0 -10
- package/lib/components/dynamic/dynamic-item/components/okr-progress/utils.js +0 -10
- package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.css +0 -8
- package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.js +0 -26
- package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.css +0 -8
- package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.js +0 -26
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.css +0 -197
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/request-api.js +0 -20
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/util.js +0 -134
- package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.css +0 -10
- package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.js +0 -60
- package/lib/components/dynamic/dynamic-item/components/progress/index.css +0 -25
- package/lib/components/dynamic/dynamic-item/components/progress/index.js +0 -71
- package/lib/components/dynamic/dynamic-item/components/progress/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/schedule/index.css +0 -31
- package/lib/components/dynamic/dynamic-item/components/schedule/index.js +0 -59
- package/lib/components/dynamic/dynamic-item/components/schedule/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +0 -136
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +0 -364
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.css +0 -24
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +0 -52
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +0 -50
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +0 -65
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.css +0 -201
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +0 -95
- package/lib/components/dynamic/dynamic-item/components/task-progress/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +0 -10
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/evaluate-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +0 -32
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +0 -43
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +0 -37
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +0 -79
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +0 -155
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +0 -155
- package/lib/components/import-modal/helper.js +0 -179
- package/lib/components/import-modal/image/loading.gif +0 -0
- package/lib/components/import-modal/import-okr-modal/index.css +0 -18
- package/lib/components/import-modal/import-okr-modal/index.js +0 -132
- package/lib/components/import-modal/import-task-modal/index.css +0 -18
- package/lib/components/import-modal/import-task-modal/index.js +0 -240
- package/lib/components/import-modal/import-task-modal/search-form.js +0 -135
- package/lib/components/import-modal/index.css +0 -30
- package/lib/components/import-modal/index.js +0 -20
- package/lib/components/import-modal/radio.js +0 -62
- package/lib/components/import-modal/request-api.js +0 -204
- package/lib/components/import-modal/search/category-select.js +0 -74
- package/lib/components/import-modal/search/okr-classify-select.js +0 -74
- package/lib/components/import-modal/search/okr-status-select.js +0 -74
- package/lib/components/import-modal/search/okr-type-select.js +0 -87
- package/lib/components/import-modal/search/principal.js +0 -135
- package/lib/components/import-modal/search/relation.js +0 -77
- package/lib/components/import-modal/search/search-dropdown/index.css +0 -50
- package/lib/components/import-modal/search/search-dropdown/index.js +0 -32
- package/lib/components/import-modal/search/task-relation.js +0 -83
- package/lib/components/import-modal/search/task-status-select.js +0 -87
- package/lib/components/import-modal/search/work-relation.js +0 -83
- package/lib/components/import-modal/search/work-status-select.js +0 -74
- package/lib/components/import-modal/tree/okr-tree/index.css +0 -61
- package/lib/components/import-modal/tree/okr-tree/index.js +0 -267
- package/lib/components/import-modal/tree/okr-tree/search-form.js +0 -161
- package/lib/components/import-modal/tree/task-work-tree/index.css +0 -123
- package/lib/components/import-modal/tree/task-work-tree/index.js +0 -187
- package/lib/components/import-modal/tree-node/index.css +0 -0
- package/lib/components/import-modal/tree-node/index.js +0 -51
- package/lib/components/import-modal/tree-node/kr-node/index.css +0 -58
- package/lib/components/import-modal/tree-node/kr-node/index.js +0 -108
- package/lib/components/import-modal/tree-node/milestone-node/index.css +0 -61
- package/lib/components/import-modal/tree-node/milestone-node/index.js +0 -118
- package/lib/components/import-modal/tree-node/o-node/index.css +0 -46
- package/lib/components/import-modal/tree-node/o-node/index.js +0 -138
- package/lib/components/import-modal/tree-node/work-node/index.css +0 -51
- package/lib/components/import-modal/tree-node/work-node/index.js +0 -108
- package/lib/components/menus/components/menu-tree/images/summary-menu/caidan-enjoy.svg +0 -14
- package/lib/components/menus/components/menu-tree/images/summary-menu/my-setup.svg +0 -18
- package/lib/components/menus/components/menu-tree/images/summary-menu/my-zongjie.svg +0 -15
- package/lib/components/menus/components/menu-tree/images/summary-menu/zongjie-s.svg +0 -15
- package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +0 -74
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +0 -74
- package/lib/components/menus/export-modules/summary-menus/depart-menus/helper.js +0 -56
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.css +0 -32
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +0 -201
- package/lib/components/menus/export-modules/summary-menus/index.css +0 -9
- package/lib/components/menus/export-modules/summary-menus/index.js +0 -134
- package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +0 -76
- package/lib/components/menus/export-modules/summary-menus/menus.js +0 -199
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +0 -199
- package/lib/components/new-confidence/constant.js +0 -53
- package/lib/components/new-confidence/img/1.svg +0 -40
- package/lib/components/new-confidence/img/10.svg +0 -33
- package/lib/components/new-confidence/img/2.svg +0 -40
- package/lib/components/new-confidence/img/3.svg +0 -40
- package/lib/components/new-confidence/img/4.svg +0 -40
- package/lib/components/new-confidence/img/5.svg +0 -40
- package/lib/components/new-confidence/img/6.svg +0 -40
- package/lib/components/new-confidence/img/7.svg +0 -40
- package/lib/components/new-confidence/img/8.svg +0 -40
- package/lib/components/new-confidence/img/9.svg +0 -40
- package/lib/components/new-confidence/index.css +0 -62
- package/lib/components/new-confidence/index.js +0 -115
- package/lib/components/new-confidence/interface.js +0 -5
- package/lib/components/picker/components/panels/week-panel/index.css +0 -42
- package/lib/components/picker/components/panels/week-panel/index.js +0 -49
- package/lib/components/picker/components/panels/week-panel/utils.js +0 -45
- package/lib/components/picker/components/panels/week-panel/week-body.js +0 -79
- package/lib/components/picker/components/panels/week-panel/week-head.js +0 -80
- package/lib/components/rate/index.js +0 -50
- package/lib/components/regulation-setting-item/index.css +0 -33
- package/lib/components/regulation-setting-item/index.js +0 -37
- package/lib/components/rich-editor-at/components/index.css +0 -66
- package/lib/components/rich-editor-at/components/index.js +0 -188
- package/lib/components/rich-editor-at/index.css +0 -40
- package/lib/components/rich-editor-at/index.js +0 -108
- package/lib/components/rich-editor-upload/index.css +0 -11
- package/lib/components/rich-editor-upload/index.js +0 -84
- package/lib/utils/planDataJson.js +0 -11115
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
|
-
var _avatar = _interopRequireDefault(require("../../../../avatar"));
|
|
15
|
-
|
|
16
|
-
var _dropSelector = _interopRequireWildcard(require("../../../../drop-selector"));
|
|
17
|
-
|
|
18
|
-
var _requestApi = require("../../../request-api");
|
|
19
|
-
|
|
20
|
-
var _dialogConfirm = _interopRequireWildcard(require("../../../../dialog-confirm"));
|
|
21
|
-
|
|
22
|
-
var _toast = _interopRequireDefault(require("../../../../toast"));
|
|
23
|
-
|
|
24
|
-
var _openData = require("../../../../../utils/open-data");
|
|
25
|
-
|
|
26
|
-
var _conditionRender = _interopRequireDefault(require("../../../../condition-render"));
|
|
27
|
-
|
|
28
|
-
var _tooltip = _interopRequireDefault(require("../../../../tooltip"));
|
|
29
|
-
|
|
30
|
-
var _commentsDialog = _interopRequireDefault(require("../comments-dialog"));
|
|
31
|
-
|
|
32
|
-
var _constant = require("../../../constant");
|
|
33
|
-
|
|
34
|
-
var _getLocale = require("../../../../../utils/getLocale");
|
|
35
|
-
|
|
36
|
-
var _evalute = _interopRequireDefault(require("./img/evalute.png"));
|
|
37
|
-
|
|
38
|
-
var _happy = _interopRequireDefault(require("./img/happy.png"));
|
|
39
|
-
|
|
40
|
-
require("./index.css");
|
|
41
|
-
|
|
42
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
43
|
-
|
|
44
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
45
|
-
|
|
46
|
-
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; }
|
|
47
|
-
|
|
48
|
-
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; }
|
|
49
|
-
|
|
50
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
51
|
-
|
|
52
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
53
|
-
|
|
54
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
55
|
-
|
|
56
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
57
|
-
|
|
58
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
59
|
-
|
|
60
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
61
|
-
|
|
62
|
-
var prefix = "titaui-dynamic-item-header";
|
|
63
|
-
|
|
64
|
-
var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
65
|
-
var _ref$onDeleteFeed = _ref.onDeleteFeed,
|
|
66
|
-
onDeleteFeed = _ref$onDeleteFeed === void 0 ? function () {} : _ref$onDeleteFeed,
|
|
67
|
-
_ref$showDelete = _ref.showDelete,
|
|
68
|
-
showDelete = _ref$showDelete === void 0 ? false : _ref$showDelete,
|
|
69
|
-
_ref$showTopping = _ref.showTopping,
|
|
70
|
-
showTopping = _ref$showTopping === void 0 ? false : _ref$showTopping,
|
|
71
|
-
_ref$showEdit = _ref.showEdit,
|
|
72
|
-
showEdit = _ref$showEdit === void 0 ? true : _ref$showEdit,
|
|
73
|
-
_ref$showOperateRecor = _ref.showOperateRecord,
|
|
74
|
-
showOperateRecord = _ref$showOperateRecor === void 0 ? true : _ref$showOperateRecor,
|
|
75
|
-
data = _ref.data,
|
|
76
|
-
_ref$desc = _ref.desc,
|
|
77
|
-
desc = _ref$desc === void 0 ? "" : _ref$desc,
|
|
78
|
-
user = _ref.user,
|
|
79
|
-
_ref$suffixContent = _ref.suffixContent,
|
|
80
|
-
suffixContent = _ref$suffixContent === void 0 ? "" : _ref$suffixContent;
|
|
81
|
-
var createDate = data.createDate,
|
|
82
|
-
feedId = data.feedId,
|
|
83
|
-
_data$isTop = data.isTop,
|
|
84
|
-
isTop = _data$isTop === void 0 ? false : _data$isTop,
|
|
85
|
-
_data$isCollect = data.isCollect,
|
|
86
|
-
isCollect = _data$isCollect === void 0 ? false : _data$isCollect,
|
|
87
|
-
feedType = data.feedType,
|
|
88
|
-
canevaluate = data.canevaluate;
|
|
89
|
-
|
|
90
|
-
var _useState = (0, _react.useState)(isTop),
|
|
91
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
92
|
-
nowIsTop = _useState2[0],
|
|
93
|
-
setNowIsTop = _useState2[1];
|
|
94
|
-
|
|
95
|
-
var _useState3 = (0, _react.useState)(isCollect),
|
|
96
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
97
|
-
nowIsCollect = _useState4[0],
|
|
98
|
-
setNowIsCollect = _useState4[1];
|
|
99
|
-
|
|
100
|
-
var _useState5 = (0, _react.useState)(false),
|
|
101
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
102
|
-
showDialogConfirm = _useState6[0],
|
|
103
|
-
setShowDialogConfirm = _useState6[1];
|
|
104
|
-
|
|
105
|
-
var _useState7 = (0, _react.useState)(false),
|
|
106
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
107
|
-
selectVisible = _useState8[0],
|
|
108
|
-
setSelectVisible = _useState8[1];
|
|
109
|
-
|
|
110
|
-
var _useState9 = (0, _react.useState)(false),
|
|
111
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
112
|
-
evaluateVisible = _useState10[0],
|
|
113
|
-
setEvaluateVisible = _useState10[1];
|
|
114
|
-
|
|
115
|
-
var url = "";
|
|
116
|
-
|
|
117
|
-
var onChangeHandler = function onChangeHandler(name) {
|
|
118
|
-
if (name === "collect") {
|
|
119
|
-
if (nowIsCollect) {
|
|
120
|
-
(0, _requestApi.cancelCollectDynamic)({
|
|
121
|
-
feedId: feedId
|
|
122
|
-
}).then(function (resp) {
|
|
123
|
-
if (resp.Code === 1) {
|
|
124
|
-
setNowIsCollect(!nowIsCollect);
|
|
125
|
-
setSelectVisible(false);
|
|
126
|
-
|
|
127
|
-
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
|
|
128
|
-
canClose: false
|
|
129
|
-
});
|
|
130
|
-
} else {
|
|
131
|
-
_toast["default"].Error(resp.Message, {
|
|
132
|
-
canClose: false
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
} else {
|
|
137
|
-
(0, _requestApi.collectDynamic)({
|
|
138
|
-
feedId: feedId
|
|
139
|
-
}).then(function (resp) {
|
|
140
|
-
if (resp.Code === 1) {
|
|
141
|
-
setNowIsCollect(!nowIsCollect);
|
|
142
|
-
setSelectVisible(false);
|
|
143
|
-
|
|
144
|
-
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
|
|
145
|
-
canClose: false
|
|
146
|
-
});
|
|
147
|
-
} else {
|
|
148
|
-
_toast["default"].Error(resp.Message, {
|
|
149
|
-
canClose: false
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
var handleTopOperateClick = function handleTopOperateClick() {
|
|
158
|
-
if (nowIsTop) {
|
|
159
|
-
(0, _requestApi.cancelTopDynamic)({
|
|
160
|
-
feedId: feedId
|
|
161
|
-
}).then(function (resp) {
|
|
162
|
-
if (resp.Code === 1) {
|
|
163
|
-
setNowIsTop(!nowIsTop);
|
|
164
|
-
setSelectVisible(false);
|
|
165
|
-
|
|
166
|
-
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
|
|
167
|
-
canClose: false
|
|
168
|
-
});
|
|
169
|
-
} else {
|
|
170
|
-
_toast["default"].Error(resp.Message, {
|
|
171
|
-
canClose: false
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
} else {
|
|
176
|
-
(0, _requestApi.topDynamic)({
|
|
177
|
-
feedId: feedId
|
|
178
|
-
}).then(function (resp) {
|
|
179
|
-
if (resp.Code === 1) {
|
|
180
|
-
setNowIsTop(!nowIsTop);
|
|
181
|
-
setSelectVisible(false);
|
|
182
|
-
|
|
183
|
-
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
|
|
184
|
-
canClose: false
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
setTimeout(function () {
|
|
188
|
-
// @ts-ignore
|
|
189
|
-
window.reFreshDynamicTopping();
|
|
190
|
-
}, 1000);
|
|
191
|
-
} else {
|
|
192
|
-
_toast["default"].Error(resp.Message, {
|
|
193
|
-
canClose: false
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
var handleDeleteClick = function handleDeleteClick() {
|
|
201
|
-
setShowDialogConfirm(true);
|
|
202
|
-
setSelectVisible(false);
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
var enSureDeleteDynamic = function enSureDeleteDynamic() {
|
|
206
|
-
(0, _requestApi.deleteDynamic)({
|
|
207
|
-
feedId: feedId
|
|
208
|
-
}).then(function (resp) {
|
|
209
|
-
if (resp.Code === 1) {
|
|
210
|
-
_toast["default"].Success((0, _getLocale.getLocale)("Pro_detail_Deletsuccess"), {
|
|
211
|
-
canClose: false
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
setShowDialogConfirm(false);
|
|
215
|
-
|
|
216
|
-
if (onDeleteFeed) {
|
|
217
|
-
onDeleteFeed(feedId);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
var cancelDeleteDynamic = function cancelDeleteDynamic() {
|
|
224
|
-
setShowDialogConfirm(false);
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
var handleShowDropSelector = function handleShowDropSelector() {
|
|
228
|
-
setSelectVisible(true);
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
var handleOpenUserPage = function handleOpenUserPage() {
|
|
232
|
-
if (!url) return;
|
|
233
|
-
window.open(url, "_blank");
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
var handleClickEvaluate = function handleClickEvaluate() {
|
|
237
|
-
setEvaluateVisible(true);
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
var handleCloseEvaluateDialog = function handleCloseEvaluateDialog() {
|
|
241
|
-
setEvaluateVisible(false);
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
var renderDialogConfirm = (0, _react.useMemo)(function () {
|
|
245
|
-
return /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"], {
|
|
246
|
-
visible: showDialogConfirm,
|
|
247
|
-
type: "warning"
|
|
248
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
249
|
-
type: "title"
|
|
250
|
-
}, feedType === _constant.EFeedType.Share ? (0, _getLocale.getLocale)("OKR_MyO_Err_Delesh") : (0, _getLocale.getLocale)("OKR_MyO_Err_Delepost")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
251
|
-
type: "content"
|
|
252
|
-
}, feedType === _constant.EFeedType.Share ? (0, _getLocale.getLocale)("OKR_MyO_Err_Deleshre") : (0, _getLocale.getLocale)("OKR_MyO_Err_Delepostsu")), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
|
|
253
|
-
type: "button",
|
|
254
|
-
onClick: cancelDeleteDynamic
|
|
255
|
-
}, (0, _getLocale.getLocale)("Mod_Cancel")), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.WarningButton, {
|
|
256
|
-
type: "button",
|
|
257
|
-
onClick: enSureDeleteDynamic
|
|
258
|
-
}, (0, _getLocale.getLocale)("Mod_Delete")));
|
|
259
|
-
}, [showDialogConfirm]);
|
|
260
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
261
|
-
className: "".concat(prefix)
|
|
262
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
263
|
-
className: "".concat(prefix, "-left")
|
|
264
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
265
|
-
className: (0, _classnames["default"])("".concat(prefix, "-desc-avatar"), _defineProperty({}, "".concat(prefix, "-desc-avatar--not-link"), !url)),
|
|
266
|
-
onClick: handleOpenUserPage
|
|
267
|
-
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
268
|
-
name: user.name,
|
|
269
|
-
userId: user.id || user.userId,
|
|
270
|
-
src: user.avatar.original || user.avatar.medium,
|
|
271
|
-
color: user.avatar.color,
|
|
272
|
-
size: {
|
|
273
|
-
width: 48,
|
|
274
|
-
textNum: 1,
|
|
275
|
-
fontSize: 18
|
|
276
|
-
}
|
|
277
|
-
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
278
|
-
src: _happy["default"],
|
|
279
|
-
className: "".concat(prefix, "-desc-mind")
|
|
280
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
281
|
-
className: "".concat(prefix, "-desc")
|
|
282
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
283
|
-
className: "".concat(prefix, "-desc-title")
|
|
284
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
285
|
-
className: "".concat(prefix, "-desc-title-left")
|
|
286
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
287
|
-
className: (0, _classnames["default"])("".concat(prefix, "-desc-user"), _defineProperty({}, "".concat(prefix, "-desc-user--not-link"), !url)),
|
|
288
|
-
onClick: handleOpenUserPage
|
|
289
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
290
|
-
maxWidth: 98,
|
|
291
|
-
text: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
292
|
-
name: user.name,
|
|
293
|
-
id: user.userId
|
|
294
|
-
})
|
|
295
|
-
})), desc, suffixContent), canevaluate && /*#__PURE__*/_react["default"].createElement("div", {
|
|
296
|
-
className: "".concat(prefix, "__evalute"),
|
|
297
|
-
onClick: handleClickEvaluate
|
|
298
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
299
|
-
src: _evalute["default"],
|
|
300
|
-
className: "".concat(prefix, "__evalute-img")
|
|
301
|
-
}), (0, _getLocale.getLocale)('Per_MyRe_button_Toevaluate')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
302
|
-
className: "".concat(prefix, "__more-operate")
|
|
303
|
-
}, /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
|
|
304
|
-
popupPlacement: "bottomRight",
|
|
305
|
-
checked: ["collect"],
|
|
306
|
-
onChange: onChangeHandler,
|
|
307
|
-
multi: false,
|
|
308
|
-
visible: selectVisible,
|
|
309
|
-
trigger: /*#__PURE__*/_react["default"].createElement("span", {
|
|
310
|
-
className: (0, _classnames["default"])("".concat(prefix, "-right"), "tu-icon-more1"),
|
|
311
|
-
onClick: handleShowDropSelector
|
|
312
|
-
})
|
|
313
|
-
}, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
|
|
314
|
-
name: "collect"
|
|
315
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
316
|
-
className: "".concat(prefix, "__more-operate-selection")
|
|
317
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
318
|
-
className: (0, _classnames["default"])("tu-icon-APP-shoucang", "".concat(prefix, "__more-operate-selection-icon"))
|
|
319
|
-
}), nowIsCollect ? (0, _getLocale.getLocale)("Mod_CancCollection") : (0, _getLocale.getLocale)("Mod_Collection"))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
320
|
-
condition: showTopping
|
|
321
|
-
}, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
|
|
322
|
-
name: "top",
|
|
323
|
-
onClick: handleTopOperateClick
|
|
324
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
325
|
-
className: "".concat(prefix, "__more-operate-selection")
|
|
326
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
327
|
-
className: (0, _classnames["default"])("tu-icon-zhiding", "".concat(prefix, "__more-operate-selection-icon"))
|
|
328
|
-
}), nowIsTop ? (0, _getLocale.getLocale)("OKR_MyO_Unpinned") : (0, _getLocale.getLocale)("Feed_Top")))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
329
|
-
condition: showEdit
|
|
330
|
-
}, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
|
|
331
|
-
name: "edit",
|
|
332
|
-
onClick: handleDeleteClick
|
|
333
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
334
|
-
className: "".concat(prefix, "__more-operate-selection")
|
|
335
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
336
|
-
className: (0, _classnames["default"])("tu-icon-bianji3", "".concat(prefix, "__more-operate-selection-icon"))
|
|
337
|
-
}), (0, _getLocale.getLocale)("Mod_Editor")))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
338
|
-
condition: showOperateRecord
|
|
339
|
-
}, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
|
|
340
|
-
name: "record",
|
|
341
|
-
onClick: handleDeleteClick
|
|
342
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
343
|
-
className: "".concat(prefix, "__more-operate-selection")
|
|
344
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
345
|
-
className: (0, _classnames["default"])("tu-icon-jinzhan-s", "".concat(prefix, "__more-operate-selection-icon"))
|
|
346
|
-
}), (0, _getLocale.getLocale)("Per_details_OperationRecord")))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
347
|
-
condition: showDelete
|
|
348
|
-
}, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
|
|
349
|
-
name: "delete",
|
|
350
|
-
onClick: handleDeleteClick
|
|
351
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
352
|
-
className: "".concat(prefix, "__more-operate-selection")
|
|
353
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
354
|
-
className: (0, _classnames["default"])("tu-icon-del", "".concat(prefix, "__more-operate-selection-icon"))
|
|
355
|
-
}), (0, _getLocale.getLocale)("Mod_Delete"))))))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
356
|
-
className: "".concat(prefix, "-desc-time")
|
|
357
|
-
}, createDate))), renderDialogConfirm, /*#__PURE__*/_react["default"].createElement(_commentsDialog["default"], {
|
|
358
|
-
visible: evaluateVisible,
|
|
359
|
-
closeDialog: handleCloseEvaluateDialog
|
|
360
|
-
}));
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
var _default = DynamicItemHeader;
|
|
364
|
-
exports["default"] = _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.titaui-dynamic-summary-table-row-o-project {
|
|
2
|
-
line-height: 18px;
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
word-break: keep-all;
|
|
6
|
-
white-space: nowrap;
|
|
7
|
-
color: #89919F;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.titaui-dynamic-summary-table-row-o-project:hover {
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
color: #2879ff;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.titaui-dynamic-summary-table-row-o-project__icon {
|
|
16
|
-
font-size: 14px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.titaui-dynamic-summary-table-row-o-project__text {
|
|
20
|
-
flex: 1;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
font-size: 12px;
|
|
23
|
-
margin-left: 4px;
|
|
24
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
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 _tooltip = _interopRequireDefault(require("../../../../tooltip"));
|
|
11
|
-
|
|
12
|
-
var _drawerManager = _interopRequireDefault(require("../../../../drawer-manager"));
|
|
13
|
-
|
|
14
|
-
require("./index.css");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
var prefix = "titaui-dynamic-summary-table-row-o-project";
|
|
19
|
-
|
|
20
|
-
var TableRowOProject = function TableRowOProject(_ref) {
|
|
21
|
-
var id = _ref.id,
|
|
22
|
-
_ref$isO = _ref.isO,
|
|
23
|
-
isO = _ref$isO === void 0 ? true : _ref$isO,
|
|
24
|
-
text = _ref.text,
|
|
25
|
-
_ref$extraClass = _ref.extraClass,
|
|
26
|
-
extraClass = _ref$extraClass === void 0 ? '' : _ref$extraClass;
|
|
27
|
-
|
|
28
|
-
var handleTitleClick = function handleTitleClick() {
|
|
29
|
-
if (isO) {
|
|
30
|
-
_drawerManager["default"].open("okrDetail", {
|
|
31
|
-
okrId: id
|
|
32
|
-
});
|
|
33
|
-
} else {
|
|
34
|
-
window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(id)));
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
39
|
-
className: "".concat(prefix, " ").concat(extraClass),
|
|
40
|
-
onClick: handleTitleClick
|
|
41
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
42
|
-
className: "".concat(prefix, "__icon tu-icon-").concat(isO ? "H5-O-s" : "project-s")
|
|
43
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
44
|
-
className: "".concat(prefix, "__text")
|
|
45
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
46
|
-
isPercent: true,
|
|
47
|
-
text: text
|
|
48
|
-
})));
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
var _default = TableRowOProject;
|
|
52
|
-
exports["default"] = _default;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
.titaui-dynamic-summary-table-row-okr__common {
|
|
2
|
-
font-size: 14px;
|
|
3
|
-
font-weight: 600;
|
|
4
|
-
color: #141c28;
|
|
5
|
-
line-height: 22px;
|
|
6
|
-
padding: 8px 0;
|
|
7
|
-
display: flex;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.titaui-dynamic-summary-table-row-okr__common:hover {
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
color: #2879ff;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.titaui-dynamic-summary-table-row-okr__common-icon {
|
|
16
|
-
font-size: 16px;
|
|
17
|
-
font-weight: 400;
|
|
18
|
-
color: #2879ff;
|
|
19
|
-
margin-right: 8px;
|
|
20
|
-
margin-top: 4px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-dynamic-summary-table-row-okr__kr {
|
|
24
|
-
margin-left: 24px;
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
display: flex;
|
|
27
|
-
word-break: keep-all;
|
|
28
|
-
white-space: nowrap;
|
|
29
|
-
align-items: center;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.titaui-dynamic-summary-table-row-okr__kr-order {
|
|
33
|
-
font-size: 12px;
|
|
34
|
-
color: #2879ff;
|
|
35
|
-
line-height: 16px;
|
|
36
|
-
margin-top: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.titaui-dynamic-summary-table-row-okr__kr-text {
|
|
40
|
-
font-size: 14px;
|
|
41
|
-
color: #3f4755;
|
|
42
|
-
margin-left: 4px;
|
|
43
|
-
flex: 1;
|
|
44
|
-
overflow: hidden;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.titaui-dynamic-summary-table-row-okr__kr-text:hover {
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
color: #2879ff;
|
|
50
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
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 _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
|
-
var _tooltip = _interopRequireDefault(require("../../../../tooltip"));
|
|
13
|
-
|
|
14
|
-
var _drawerManager = _interopRequireDefault(require("../../../../drawer-manager"));
|
|
15
|
-
|
|
16
|
-
require("./index.css");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
var prefix = "titaui-dynamic-summary-table-row-okr";
|
|
21
|
-
|
|
22
|
-
var TableRowOKR = function TableRowOKR(_ref) {
|
|
23
|
-
var text = _ref.text,
|
|
24
|
-
id = _ref.id,
|
|
25
|
-
_ref$isO = _ref.isO,
|
|
26
|
-
isO = _ref$isO === void 0 ? true : _ref$isO,
|
|
27
|
-
_ref$isFirstLevel = _ref.isFirstLevel,
|
|
28
|
-
isFirstLevel = _ref$isFirstLevel === void 0 ? true : _ref$isFirstLevel,
|
|
29
|
-
_ref$order = _ref.order,
|
|
30
|
-
order = _ref$order === void 0 ? 1 : _ref$order;
|
|
31
|
-
|
|
32
|
-
var handleClickTitle = function handleClickTitle() {
|
|
33
|
-
if (isO) {
|
|
34
|
-
_drawerManager["default"].open("okrDetail", {
|
|
35
|
-
okrId: id
|
|
36
|
-
});
|
|
37
|
-
} else {
|
|
38
|
-
_drawerManager["default"].open("krDetail", {
|
|
39
|
-
krId: id
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
45
|
-
className: prefix
|
|
46
|
-
}, isFirstLevel && /*#__PURE__*/_react["default"].createElement("div", {
|
|
47
|
-
className: "".concat(prefix, "__common"),
|
|
48
|
-
onClick: handleClickTitle
|
|
49
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
50
|
-
className: "tu-icon-H5-".concat(isO ? "O" : "KR", "-s ").concat(prefix, "__common-icon")
|
|
51
|
-
}), /*#__PURE__*/_react["default"].createElement("span", null, text)), !isFirstLevel && /*#__PURE__*/_react["default"].createElement("div", {
|
|
52
|
-
className: (0, _classnames["default"])("".concat(prefix, "__kr")),
|
|
53
|
-
onClick: handleClickTitle
|
|
54
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
55
|
-
className: (0, _classnames["default"])("".concat(prefix, "__kr-order"))
|
|
56
|
-
}, "KR", order), /*#__PURE__*/_react["default"].createElement("span", {
|
|
57
|
-
className: (0, _classnames["default"])("".concat(prefix, "__kr-text"))
|
|
58
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
59
|
-
isPercent: true,
|
|
60
|
-
text: text
|
|
61
|
-
}))));
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var _default = TableRowOKR;
|
|
65
|
-
exports["default"] = _default;
|