@titaui/pc 1.11.27-beta.8 → 1.11.29
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/avatar/name-avatar/index.css +0 -1
- package/lib/components/avatar/name-avatar/index.js +13 -22
- package/lib/components/avatar/text-avatar/index.css +7 -0
- package/lib/components/avatar/text-avatar/index.js +32 -7
- package/lib/components/button/icon-btn/index.js +17 -8
- package/lib/components/button/rect-btn/index.css +11 -45
- package/lib/components/button/rect-btn/index.js +13 -19
- package/lib/components/change-okr-modal/Item.js +14 -14
- package/lib/components/change-okr-modal/index.js +1 -2
- package/lib/components/create-okr-modal/index.js +1 -3
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/dialog-confirm/index.css +2 -2
- package/lib/components/drawer/headerAction.js +1 -5
- package/lib/components/drawer/headerDrop.js +4 -42
- package/lib/components/drawer/index.css +0 -33
- package/lib/components/drawer/index.js +3 -26
- package/lib/components/drop-selector/index.js +25 -10
- package/lib/components/dynamic/advertise/components/next-btn/index.css +27 -0
- package/lib/components/dynamic/advertise/components/next-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +26 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/index.css +21 -0
- package/lib/components/dynamic/advertise/index.js +126 -0
- package/lib/components/dynamic/advertise/interface.js +5 -0
- package/lib/components/dynamic/advertise/util.js +28 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +81 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +203 -0
- package/lib/components/dynamic/components/first-level-tabs/index.css +101 -0
- package/lib/components/dynamic/components/first-level-tabs/index.js +131 -0
- package/lib/components/dynamic/constant.js +33 -32
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +9 -9
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-interview/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +51 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +50 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +65 -0
- 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/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +6 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +10 -10
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +13 -13
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +9 -9
- package/lib/components/dynamic/dynamic-item/index.js +50 -32
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +146 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +180 -0
- package/lib/components/dynamic/dynamic-like-ranking/item.js +105 -0
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
- package/lib/components/dynamic/dynamic-liking/index.css +81 -0
- package/lib/{pages/new-okr-list/header/operate-record.js → components/dynamic/dynamic-liking/index.js} +39 -91
- package/lib/components/dynamic/dynamic-liking/item.js +75 -0
- package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
- package/lib/components/dynamic/dynamic-list/index.js +7 -15
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +16 -0
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +30 -0
- package/lib/components/dynamic/dynamic-topping/index.css +141 -0
- package/lib/components/dynamic/dynamic-topping/index.js +82 -0
- package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
- package/lib/components/dynamic/dynamic-topping/item.js +153 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
- package/lib/components/dynamic/dynamic.css +173 -0
- package/lib/components/dynamic/dynamic.js +428 -0
- package/lib/components/dynamic/export-module/index.js +37 -0
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/index.js +12 -9
- package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
- package/lib/components/dynamic/my-team/img/line.png +0 -0
- package/lib/components/dynamic/my-team/img/team.png +0 -0
- package/lib/components/dynamic/my-team/index.css +184 -0
- package/lib/components/dynamic/my-team/index.js +263 -0
- package/lib/components/dynamic/my-team/request-api.js +52 -0
- package/lib/components/dynamic/my-team/util.js +20 -0
- package/lib/components/dynamic/new-ui.css +192 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +58 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +68 -0
- package/lib/components/dynamic/online-broadcast/data.js +77 -0
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +14 -0
- package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
- package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
- package/lib/components/dynamic/online-broadcast/index.css +46 -0
- package/lib/components/dynamic/online-broadcast/index.js +61 -0
- package/lib/components/dynamic/online-broadcast/interfact.js +5 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +44 -0
- package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +51 -0
- package/lib/components/dynamic/quick-operation/index.js +120 -0
- package/lib/components/dynamic/request-api.js +68 -7
- package/lib/components/e-priority/index.js +8 -8
- package/lib/components/eReport/eReportShare/index.js +11 -11
- package/lib/components/form/form-fields/date/index.css +24 -0
- package/lib/components/form/form-fields/date/index.js +102 -0
- package/lib/components/form/form-fields/input/index.js +10 -10
- package/lib/components/form/form-fields/user/index.css +23 -3
- package/lib/components/form/form-fields/user/index.js +18 -8
- package/lib/components/form/form-fields/user/user-input.js +15 -6
- package/lib/components/form/index.js +10 -3
- package/lib/components/grid-layout/sub-employee-okr/person-okr.js +5 -5
- package/lib/components/icon-button-list/index.js +3 -3
- package/lib/components/img-viewer/index.css +3 -3
- package/lib/components/img-viewer/index.js +11 -11
- package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
- package/lib/components/menus/components/menu-tree/index.css +4 -2
- package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
- package/lib/components/menus/export-modules/interview-menus/constant.js +30 -0
- package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +63 -0
- package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
- package/lib/components/menus/export-modules/interview-menus/index.js +128 -0
- package/lib/components/menus/index.js +11 -5
- package/lib/components/nav-top/components/menu/index.js +14 -14
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
- package/lib/components/nav-top/components/user-message/constant.js +1 -0
- package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
- package/lib/components/nav-top/components/user-message/index.js +23 -20
- package/lib/components/nav-top/index.js +4 -8
- package/lib/components/nav-top/request.apis.js +3 -1
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +4 -20
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -9
- package/lib/components/okr-detail/components/header/index.js +3 -10
- package/lib/components/okr-detail/components/header/o-name.js +3 -10
- package/lib/components/okr-detail/components/o-classify.js +1 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +10 -14
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +10 -0
- package/lib/components/okr-detail/detail-header/actions.js +23 -23
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +43 -98
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +38 -0
- package/lib/components/okr-detail/detail-header/index.css +0 -11
- package/lib/components/okr-detail/detail-header/index.js +234 -228
- package/lib/components/okr-detail/index.js +21 -40
- package/lib/components/okr-detail/okr-list/index.js +8 -11
- package/lib/components/okr-detail/request-apis.js +4 -10
- package/lib/components/okr-flow/child-node/index.css +6 -6
- package/lib/components/okr-flow/child-node/work-node.js +21 -21
- package/lib/components/okr-flow/export-modal/index.js +33 -19
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +14 -14
- package/lib/components/okr-flow/okr-map/index.js +5 -5
- package/lib/components/okr-flow/request-apis.js +4 -4
- package/lib/components/okr-flow/root-node/index.js +25 -24
- package/lib/components/okr-flow/utils/index.js +5 -5
- package/lib/components/okr-flow/utils/tree-handler.js +17 -17
- package/lib/components/okr-period-selector/index.js +5 -9
- package/lib/components/okr-period-selector/select-cycle.js +19 -23
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +30 -30
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/pagination/index.css +3 -3
- package/lib/components/pagination/select.css +58 -23
- package/lib/components/period-selector/index.css +3 -3
- package/lib/components/period-selector/index.js +11 -11
- package/lib/components/picker/components/panels/date-panel/date-body.js +118 -0
- package/lib/components/picker/components/panels/date-panel/date-head.js +87 -0
- package/lib/components/picker/components/panels/date-panel/index.css +14 -0
- package/lib/components/picker/components/panels/date-panel/index.js +49 -0
- package/lib/components/picker/components/panels/month-panel/index.css +27 -0
- package/lib/components/picker/components/panels/month-panel/index.js +63 -0
- package/lib/components/picker/components/panels/month-panel/month-body.js +89 -0
- package/lib/components/picker/components/panels/month-panel/month-head.js +47 -0
- package/lib/components/picker/components/panels/panel-body/index.js +53 -0
- package/lib/components/picker/components/panels/panel-head/index.js +48 -0
- package/lib/components/picker/components/panels/year-panel/index.css +23 -0
- package/lib/components/picker/components/panels/year-panel/index.js +65 -0
- package/lib/components/picker/components/panels/year-panel/year-body.js +92 -0
- package/lib/components/picker/components/panels/year-panel/year-head.js +35 -0
- package/lib/components/picker/components/picker-trigger/index.css +57 -0
- package/lib/components/picker/components/picker-trigger/index.js +94 -0
- package/lib/components/picker/context.js +15 -0
- package/lib/components/picker/index.css +121 -0
- package/lib/components/picker/index.js +13 -0
- package/lib/components/picker/picker-panels.js +182 -0
- package/lib/components/picker/picker.js +132 -0
- package/lib/components/picker/type.js +5 -0
- package/lib/components/picker/utils.js +28 -0
- package/lib/components/popup/index.js +4 -4
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
- package/lib/components/radio/index.css +9 -9
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/superset-charts/utils/axios.js +5 -5
- package/lib/components/survey-model/index.css +18 -18
- package/lib/components/survey-model/instance.js +1 -1
- package/lib/components/task-relation-modal/request-api.js +1 -2
- 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 +22 -0
- package/lib/components/task-tree/mock.js +944 -0
- package/lib/components/task-tree/precls.js +8 -0
- package/lib/components/task-tree/request-apis.js +88 -0
- package/lib/components/task-tree/task-item-node/constant.js +45 -0
- package/lib/components/task-tree/task-item-node/e-empty.js +29 -0
- package/lib/components/task-tree/task-item-node/e-project.js +212 -0
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +94 -0
- package/lib/components/task-tree/task-item-node/e-task.js +426 -0
- package/lib/components/task-tree/task-item-node/get-process-color.js +62 -0
- package/lib/components/task-tree/task-item-node/index.css +289 -0
- package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
- package/lib/components/task-tree/task-tree.css +16 -0
- package/lib/components/task-tree/task-tree.js +49 -0
- package/lib/components/time-picker/index.css +123 -0
- package/lib/components/time-picker/index.js +13 -0
- package/lib/components/time-picker/time-picker-selector.js +138 -0
- package/lib/components/time-picker/time-picker.js +336 -0
- package/lib/components/time-picker/timer-picker-input.js +96 -0
- package/lib/components/time-picker/utils.js +52 -0
- package/lib/components/toast/index.js +3 -5
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/style/index.css +8 -8
- package/lib/index.js +0 -40
- package/lib/pages/aha2021/index.js +5 -1
- package/lib/pages/new-okr-list/header/index.css +0 -45
- package/lib/pages/new-okr-list/header/index.js +16 -38
- package/lib/pages/new-okr-list/index.js +1 -3
- package/lib/pages/new-okr-list/list/index.js +2 -19
- package/lib/pages/new-okr-list/request-api.js +2 -8
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +24 -24
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +31 -31
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +2 -2
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +11 -11
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +8 -8
- package/lib/pages/okr-map/number-select/index.js +2 -2
- package/lib/pages/okr-map/unsupport-ie/index.js +5 -3
- package/lib/utils/auth.js +6 -6
- package/lib/utils/bs-global.js +12 -12
- package/lib/utils/format-time.js +1 -8
- package/lib/utils/hooks.js +72 -0
- package/lib/utils/open-data.js +27 -31
- package/package.json +6 -3
- 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/lib/components/okr-detail/detail-header/constant.js +0 -53
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +0 -55
- package/lib/components/okr-detail/helper.js +0 -108
- package/lib/components/textarea/index.css +0 -142
- package/lib/components/textarea/index.js +0 -259
- package/lib/pages/new-okr-list/header/common.js +0 -52
package/lib/index.js
CHANGED
|
@@ -51,12 +51,6 @@ Object.defineProperty(exports, "Communication", {
|
|
|
51
51
|
return _communication["default"];
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
Object.defineProperty(exports, "ConditionRender", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _conditionRender["default"];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
54
|
Object.defineProperty(exports, "Confidence", {
|
|
61
55
|
enumerable: true,
|
|
62
56
|
get: function get() {
|
|
@@ -69,12 +63,6 @@ Object.defineProperty(exports, "CreateOkrModal", {
|
|
|
69
63
|
return _createOkrModal["default"];
|
|
70
64
|
}
|
|
71
65
|
});
|
|
72
|
-
Object.defineProperty(exports, "DangerousHtml", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function get() {
|
|
75
|
-
return _dangerousHtml["default"];
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
66
|
Object.defineProperty(exports, "DatePicker", {
|
|
79
67
|
enumerable: true,
|
|
80
68
|
get: function get() {
|
|
@@ -171,12 +159,6 @@ Object.defineProperty(exports, "Form", {
|
|
|
171
159
|
return _form["default"];
|
|
172
160
|
}
|
|
173
161
|
});
|
|
174
|
-
Object.defineProperty(exports, "FormatTime", {
|
|
175
|
-
enumerable: true,
|
|
176
|
-
get: function get() {
|
|
177
|
-
return _formatTime["default"];
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
162
|
Object.defineProperty(exports, "GridLayout", {
|
|
181
163
|
enumerable: true,
|
|
182
164
|
get: function get() {
|
|
@@ -393,12 +375,6 @@ Object.defineProperty(exports, "Progress", {
|
|
|
393
375
|
return _progress["default"];
|
|
394
376
|
}
|
|
395
377
|
});
|
|
396
|
-
Object.defineProperty(exports, "PublishDynamicModal", {
|
|
397
|
-
enumerable: true,
|
|
398
|
-
get: function get() {
|
|
399
|
-
return _publishDynamicModal["default"];
|
|
400
|
-
}
|
|
401
|
-
});
|
|
402
378
|
Object.defineProperty(exports, "Radio", {
|
|
403
379
|
enumerable: true,
|
|
404
380
|
get: function get() {
|
|
@@ -501,12 +477,6 @@ Object.defineProperty(exports, "TaskRelationModal", {
|
|
|
501
477
|
return _taskRelationModal["default"];
|
|
502
478
|
}
|
|
503
479
|
});
|
|
504
|
-
Object.defineProperty(exports, "Textarea", {
|
|
505
|
-
enumerable: true,
|
|
506
|
-
get: function get() {
|
|
507
|
-
return _textarea["default"];
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
480
|
Object.defineProperty(exports, "TitaChart", {
|
|
511
481
|
enumerable: true,
|
|
512
482
|
get: function get() {
|
|
@@ -632,8 +602,6 @@ var _button = _interopRequireDefault(require("./components/button"));
|
|
|
632
602
|
|
|
633
603
|
var _bookDemo = _interopRequireDefault(require("./components/book-demo"));
|
|
634
604
|
|
|
635
|
-
var _conditionRender = _interopRequireDefault(require("./components/condition-render"));
|
|
636
|
-
|
|
637
605
|
var _confidence = _interopRequireDefault(require("./components/confidence"));
|
|
638
606
|
|
|
639
607
|
var _communication = _interopRequireDefault(require("./components/communication"));
|
|
@@ -648,8 +616,6 @@ var _createOkrModal = _interopRequireDefault(require("./components/create-okr-mo
|
|
|
648
616
|
|
|
649
617
|
var _dialog = _interopRequireDefault(require("./components/dialog"));
|
|
650
618
|
|
|
651
|
-
var _dangerousHtml = _interopRequireDefault(require("./components/dangerous-html"));
|
|
652
|
-
|
|
653
619
|
var _datePicker = _interopRequireDefault(require("./components/date-picker"));
|
|
654
620
|
|
|
655
621
|
var _demoFree = _interopRequireDefault(require("./pages/demo-free"));
|
|
@@ -676,8 +642,6 @@ var _errorBoundary = _interopRequireDefault(require("./components/error-boundary
|
|
|
676
642
|
|
|
677
643
|
var _errorLevel = _interopRequireDefault(require("./utils/error-level"));
|
|
678
644
|
|
|
679
|
-
var _formatTime = _interopRequireDefault(require("./utils/format-time"));
|
|
680
|
-
|
|
681
645
|
var _fileList = _interopRequireDefault(require("./components/file-list"));
|
|
682
646
|
|
|
683
647
|
var _firework = _interopRequireDefault(require("./components/firework"));
|
|
@@ -750,8 +714,6 @@ var _periodSelector = _interopRequireDefault(require("./components/period-select
|
|
|
750
714
|
|
|
751
715
|
var _pagination = _interopRequireDefault(require("./components/pagination"));
|
|
752
716
|
|
|
753
|
-
var _publishDynamicModal = _interopRequireDefault(require("./components/publish-dynamic-modal"));
|
|
754
|
-
|
|
755
717
|
var _passwordInput = _interopRequireDefault(require("./components/password-input"));
|
|
756
718
|
|
|
757
719
|
var _photoCard = _interopRequireDefault(require("./components/photo-card"));
|
|
@@ -806,8 +768,6 @@ var _titaChart = _interopRequireDefault(require("./components/tita-chart"));
|
|
|
806
768
|
|
|
807
769
|
var _tooltip = _interopRequireDefault(require("./components/tooltip"));
|
|
808
770
|
|
|
809
|
-
var _textarea = _interopRequireDefault(require("./components/textarea"));
|
|
810
|
-
|
|
811
771
|
var _tooltipText = _interopRequireDefault(require("./components/tooltip/tooltip-text"));
|
|
812
772
|
|
|
813
773
|
var _userSelector = _interopRequireDefault(require("./components/user-selector"));
|
|
@@ -45,6 +45,8 @@ var _try = _interopRequireDefault(require("./img/try.png"));
|
|
|
45
45
|
|
|
46
46
|
require("./index.css");
|
|
47
47
|
|
|
48
|
+
var _hooks = _interopRequireDefault(require("../../utils/hooks"));
|
|
49
|
+
|
|
48
50
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
49
51
|
|
|
50
52
|
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); }
|
|
@@ -96,6 +98,8 @@ function PageLayout(props) {
|
|
|
96
98
|
visible = _useState2[0],
|
|
97
99
|
setVisible = _useState2[1];
|
|
98
100
|
|
|
101
|
+
var hideNavTop = (0, _hooks["default"])("hideNavTop");
|
|
102
|
+
|
|
99
103
|
var handleShowCode = function handleShowCode() {
|
|
100
104
|
setVisible(true);
|
|
101
105
|
};
|
|
@@ -141,7 +145,7 @@ function PageLayout(props) {
|
|
|
141
145
|
|
|
142
146
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
147
|
className: (0, _classnames["default"])(preCls)
|
|
144
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
|
+
}, hideNavTop !== "true" && /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
149
|
className: (0, _classnames["default"])("".concat(preCls, "__header"))
|
|
146
150
|
}, (0, _helpers.getTenantInfo)().Source === 964 ? /*#__PURE__*/_react["default"].createElement(_hrHeader["default"], null) : /*#__PURE__*/_react["default"].createElement(_navTop["default"], null)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
151
|
className: (0, _classnames["default"])("".concat(preCls, "__message"))
|
|
@@ -36,51 +36,6 @@
|
|
|
36
36
|
color: #2879ff;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.tita-okr-list-v2__header-record {
|
|
40
|
-
display: flex;
|
|
41
|
-
box-sizing: border-box;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
align-items: center;
|
|
44
|
-
transform: rotate(90deg);
|
|
45
|
-
background: #fff;
|
|
46
|
-
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
47
|
-
width: 36px;
|
|
48
|
-
height: 36px;
|
|
49
|
-
margin-left: 12px;
|
|
50
|
-
border-radius: 18px;
|
|
51
|
-
font-size: 20px;
|
|
52
|
-
cursor: pointer;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.tita-okr-list-v2__header-record-popup {
|
|
56
|
-
padding: 16px 12px;
|
|
57
|
-
box-sizing: border-box;
|
|
58
|
-
background: #ffffff;
|
|
59
|
-
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
60
|
-
border-radius: 12px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.tita-okr-list-v2__header-record-item {
|
|
64
|
-
display: flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
padding: 5px 8px;
|
|
67
|
-
box-sizing: border-box;
|
|
68
|
-
font-size: 14px;
|
|
69
|
-
color: #3f4755;
|
|
70
|
-
line-height: 22px;
|
|
71
|
-
cursor: pointer;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.tita-okr-list-v2__header-record-item:hover {
|
|
75
|
-
color: #2879ff;
|
|
76
|
-
background: #f7f8fa;
|
|
77
|
-
border-radius: 8px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.tita-okr-list-v2__header-record-item-content {
|
|
81
|
-
margin-left: 8px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
39
|
.tita-okr-list-v2__header-filter {
|
|
85
40
|
box-sizing: border-box;
|
|
86
41
|
height: 36px;
|
|
@@ -29,8 +29,6 @@ var _filter = _interopRequireDefault(require("./filter"));
|
|
|
29
29
|
|
|
30
30
|
var _comments = _interopRequireDefault(require("./comments"));
|
|
31
31
|
|
|
32
|
-
var _operateRecord = _interopRequireDefault(require("./operate-record"));
|
|
33
|
-
|
|
34
32
|
var _context = require("../context");
|
|
35
33
|
|
|
36
34
|
var _requestApi = require("../request-api");
|
|
@@ -67,7 +65,6 @@ function Header(props, ref) {
|
|
|
67
65
|
cycleType = _useContext.cycleType,
|
|
68
66
|
yqmNum = _useContext.yqmNum;
|
|
69
67
|
|
|
70
|
-
var relationShip = parseInt(relation, 10);
|
|
71
68
|
var onSearch = props.onSearch,
|
|
72
69
|
onFrontAddOKR = props.onFrontAddOKR;
|
|
73
70
|
|
|
@@ -87,26 +84,21 @@ function Header(props, ref) {
|
|
|
87
84
|
setUserInfo = _useState6[1];
|
|
88
85
|
|
|
89
86
|
(0, _react.useEffect)(function () {
|
|
90
|
-
if (toUserId !== undefined ||
|
|
87
|
+
if (toUserId !== undefined || relation == 1) {
|
|
91
88
|
var userId = toUserId;
|
|
92
|
-
if (
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
setUserInfo(res.Data);
|
|
97
|
-
});
|
|
98
|
-
}
|
|
89
|
+
if (relation == 1) userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
90
|
+
userId && (0, _requestApi.getUserInfoById)(userId).then(function (res) {
|
|
91
|
+
setUserInfo(res.Data);
|
|
92
|
+
});
|
|
99
93
|
}
|
|
100
94
|
}, [toUserId, relation]);
|
|
101
95
|
(0, _react.useEffect)(function () {
|
|
102
96
|
setInit(true);
|
|
103
97
|
}, []);
|
|
104
98
|
(0, _react.useEffect)(function () {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
});
|
|
109
|
-
}
|
|
99
|
+
init && onSearch({
|
|
100
|
+
onlyThisDept: onlyThisDept
|
|
101
|
+
});
|
|
110
102
|
}, [onlyThisDept]);
|
|
111
103
|
var createOkrRef = (0, _react.useRef)();
|
|
112
104
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
@@ -133,7 +125,7 @@ function Header(props, ref) {
|
|
|
133
125
|
};
|
|
134
126
|
var searchType = "company";
|
|
135
127
|
|
|
136
|
-
if (departmentId && departmentId
|
|
128
|
+
if (departmentId && departmentId != -1) {
|
|
137
129
|
rootNode.rootId = departmentId;
|
|
138
130
|
rootNode.rootName = departmentName || "";
|
|
139
131
|
searchType = "depart";
|
|
@@ -149,7 +141,7 @@ function Header(props, ref) {
|
|
|
149
141
|
level2Selected.name = userInfo.name || "";
|
|
150
142
|
}
|
|
151
143
|
|
|
152
|
-
if (
|
|
144
|
+
if (relation == 1) {
|
|
153
145
|
rootNode.rootId = (0, _bsGlobal.getUserInfo)().Id;
|
|
154
146
|
rootNode.rootName = (0, _bsGlobal.getUserInfo)().Name || "";
|
|
155
147
|
searchType = "user";
|
|
@@ -162,18 +154,18 @@ function Header(props, ref) {
|
|
|
162
154
|
annualNum: annualNum,
|
|
163
155
|
yqmNum: yqmNum
|
|
164
156
|
})), "rootNode=".concat(JSON.stringify(rootNode)), "level2Selected=".concat(JSON.stringify(level2Selected))].join("&");
|
|
165
|
-
var origin = window.location.href.split(
|
|
157
|
+
var origin = window.location.href.split('#')[0];
|
|
166
158
|
window.location.href = "".concat(origin, "/#okr/map?").concat(urlQuery);
|
|
167
159
|
};
|
|
168
160
|
|
|
169
161
|
var getTitle = function getTitle() {
|
|
170
|
-
if (
|
|
162
|
+
if (relation == 1) {
|
|
171
163
|
return /*#__PURE__*/_react["default"].createElement(_userTitle["default"], {
|
|
172
164
|
toUserId: (0, _bsGlobal.getUserInfo)().Id
|
|
173
165
|
});
|
|
174
166
|
}
|
|
175
167
|
|
|
176
|
-
if (
|
|
168
|
+
if (relation == 2 || relation == 3) {
|
|
177
169
|
return /*#__PURE__*/_react["default"].createElement(_relationTitle["default"], {
|
|
178
170
|
relation: relation
|
|
179
171
|
});
|
|
@@ -205,11 +197,11 @@ function Header(props, ref) {
|
|
|
205
197
|
className: "".concat(_precls.precls, "__header-item")
|
|
206
198
|
}, getTitle())), /*#__PURE__*/_react["default"].createElement("div", {
|
|
207
199
|
className: "".concat(_precls.precls, "__header-right")
|
|
208
|
-
},
|
|
200
|
+
}, departmentId == 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
209
201
|
className: "".concat(_precls.precls, "__header-item")
|
|
210
202
|
}, /*#__PURE__*/_react["default"].createElement(_keywordSearch["default"], {
|
|
211
203
|
onSearch: onSearch
|
|
212
|
-
})),
|
|
204
|
+
})), relation != 2 && relation != 3 &&
|
|
213
205
|
/*#__PURE__*/
|
|
214
206
|
// 我关注的 我参与的 没有创建按钮
|
|
215
207
|
_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -229,24 +221,10 @@ function Header(props, ref) {
|
|
|
229
221
|
className: "tu-icon-yangshi-ditu"
|
|
230
222
|
}))))), /*#__PURE__*/_react["default"].createElement(_comments["default"], {
|
|
231
223
|
toUserId: toUserId,
|
|
232
|
-
relation:
|
|
224
|
+
relation: relation,
|
|
233
225
|
userInfo: userInfo
|
|
234
226
|
}), /*#__PURE__*/_react["default"].createElement(_filter["default"], {
|
|
235
227
|
onSearch: onSearch
|
|
236
|
-
}), /*#__PURE__*/_react["default"].createElement(_operateRecord["default"], {
|
|
237
|
-
toUserId: toUserId,
|
|
238
|
-
userInfo: userInfo,
|
|
239
|
-
relation: relationShip,
|
|
240
|
-
okrFeedParams: {
|
|
241
|
-
objId: departmentId === undefined ? Number(toUserId || (0, _bsGlobal.getUserInfo)().Id) : Number(departmentId),
|
|
242
|
-
// 人员或部门Id
|
|
243
|
-
objType: departmentId === undefined ? 1 : 2,
|
|
244
|
-
// 1:负责人,2:部门
|
|
245
|
-
cycleType: Number(cycleType),
|
|
246
|
-
// 目标周期:0-自定义,1-年度,2-季度,3-月度
|
|
247
|
-
yqmNum: Number(yqmNum),
|
|
248
|
-
annualNum: Number(annualNum)
|
|
249
|
-
}
|
|
250
228
|
})));
|
|
251
229
|
}
|
|
252
230
|
|
|
@@ -85,8 +85,7 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
85
85
|
var OkrListCmp = props.OkrListCmp,
|
|
86
86
|
OkrCommunicationPush = props.OkrCommunicationPush,
|
|
87
87
|
Empty = props.Empty,
|
|
88
|
-
SetCycleModal = props.SetCycleModal
|
|
89
|
-
OkrOperateRecordDrawer = props.OkrOperateRecordDrawer;
|
|
88
|
+
SetCycleModal = props.SetCycleModal;
|
|
90
89
|
var useLocalStorage = new _localStorage.LocalStorage();
|
|
91
90
|
var formFieldValues = useLocalStorage.getItem("okr-filter-values") || {
|
|
92
91
|
targetType: "",
|
|
@@ -317,7 +316,6 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
317
316
|
return /*#__PURE__*/_react["default"].createElement(_context.Context.Provider, {
|
|
318
317
|
value: _objectSpread({
|
|
319
318
|
OkrCommunicationPush: OkrCommunicationPush,
|
|
320
|
-
OkrOperateRecordDrawer: OkrOperateRecordDrawer,
|
|
321
319
|
relation: relation,
|
|
322
320
|
departmentName: departmentName,
|
|
323
321
|
departmentId: departmentId,
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports["default"] = void 0;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
11
|
-
|
|
12
|
-
var _context = require("../context");
|
|
13
|
-
|
|
14
|
-
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); }
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
9
|
|
|
16
|
-
function
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
11
|
|
|
18
12
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
19
13
|
|
|
@@ -37,19 +31,8 @@ function List(props) {
|
|
|
37
31
|
refreshList = props.refreshList,
|
|
38
32
|
replaceOkr = props.replaceOkr;
|
|
39
33
|
var OkrListCmp = props.OkrListCmp;
|
|
40
|
-
|
|
41
|
-
var _useContext = (0, _react.useContext)(_context.Context),
|
|
42
|
-
annualNum = _useContext.annualNum,
|
|
43
|
-
cycleType = _useContext.cycleType,
|
|
44
|
-
yqmNum = _useContext.yqmNum;
|
|
45
|
-
|
|
46
34
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(OkrListCmp, {
|
|
47
35
|
okrData: okrs,
|
|
48
|
-
cycle: {
|
|
49
|
-
annualNum: annualNum,
|
|
50
|
-
cycleType: cycleType,
|
|
51
|
-
yqmNum: yqmNum
|
|
52
|
-
},
|
|
53
36
|
addOkr: function addOkr(okr) {
|
|
54
37
|
setOkrs([].concat(_toConsumableArray(okrs), [okr]));
|
|
55
38
|
},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.visitOkrCyclePag = exports.okrSearch = exports.okrList = exports.okrCrowd = exports.getUserInfoById = exports.
|
|
6
|
+
exports.visitOkrCyclePag = exports.okrSearch = exports.okrList = exports.okrCrowd = exports.getUserInfoById = exports.getOkrInfoWithListData = exports.getCycleSetting = void 0;
|
|
7
7
|
|
|
8
8
|
var _request = require("../../utils/request");
|
|
9
9
|
|
|
@@ -224,10 +224,4 @@ var getCycleSetting = /*#__PURE__*/function () {
|
|
|
224
224
|
};
|
|
225
225
|
}();
|
|
226
226
|
|
|
227
|
-
exports.getCycleSetting = getCycleSetting;
|
|
228
|
-
|
|
229
|
-
var getOperateRecordAuth = function getOperateRecordAuth(toUserId) {
|
|
230
|
-
return (0, _request.rget)('v1')("okr/cycleComment/checkRole?touser_id=".concat(toUserId));
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
exports.getOperateRecordAuth = getOperateRecordAuth;
|
|
227
|
+
exports.getCycleSetting = getCycleSetting;
|
|
@@ -55,7 +55,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
55
55
|
|
|
56
56
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
57
57
|
|
|
58
|
-
var preCls =
|
|
58
|
+
var preCls = 'titapage-okr-map';
|
|
59
59
|
|
|
60
60
|
function _default(props) {
|
|
61
61
|
var onShowKrClick = props.onShowKrClick,
|
|
@@ -85,23 +85,23 @@ function _default(props) {
|
|
|
85
85
|
setOVisible = _useState4[1];
|
|
86
86
|
|
|
87
87
|
var iconButtons = [{
|
|
88
|
-
icon:
|
|
89
|
-
overlay: (0, _getLocale.getLocale)(
|
|
88
|
+
icon: 'daochu',
|
|
89
|
+
overlay: (0, _getLocale.getLocale)('Mod_Export'),
|
|
90
90
|
type: 'export'
|
|
91
91
|
}, {
|
|
92
|
-
icon:
|
|
93
|
-
overlay: (0, _getLocale.getLocale)(
|
|
92
|
+
icon: 'fenxiang',
|
|
93
|
+
overlay: (0, _getLocale.getLocale)('OKR_MyO_Share'),
|
|
94
94
|
type: 'share'
|
|
95
95
|
}, {
|
|
96
|
-
icon: fullScreen ?
|
|
97
|
-
overlay: (0, _getLocale.getLocale)(
|
|
96
|
+
icon: fullScreen ? 'restore' : 'quanping',
|
|
97
|
+
overlay: (0, _getLocale.getLocale)('OKR_Ali_Butt_Fullscreen'),
|
|
98
98
|
type: fullScreen ? 'quit-fullscreen' : 'fullscreen'
|
|
99
99
|
}, {
|
|
100
|
-
icon: direction ==
|
|
101
|
-
overlay: direction ==
|
|
102
|
-
placement:
|
|
103
|
-
rotate: direction ==
|
|
104
|
-
type: direction ==
|
|
100
|
+
icon: direction == 'horizontal' ? 'yangshi-ditu' : 'yangshi-ditu',
|
|
101
|
+
overlay: direction == 'horizontal' ? "".concat((0, _getLocale.getLocale)('OKR_Ali_Butt_Toggleportrait')) : "".concat((0, _getLocale.getLocale)('OKR_Ali_Butt_Togglelandscape')),
|
|
102
|
+
placement: 'topRight',
|
|
103
|
+
rotate: direction == 'horizontal' ? 0 : -90,
|
|
104
|
+
type: direction == 'horizontal' ? 'vertical' : 'horizontal'
|
|
105
105
|
}];
|
|
106
106
|
|
|
107
107
|
var onConfirmHandler = function onConfirmHandler(checked) {
|
|
@@ -129,13 +129,13 @@ function _default(props) {
|
|
|
129
129
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
130
|
className: (0, _classnames["default"])("".concat(preCls, "__header-action-showkr"))
|
|
131
131
|
}, /*#__PURE__*/_react["default"].createElement(_switch["default"], {
|
|
132
|
-
label: (0, _getLocale.getLocale)(
|
|
132
|
+
label: (0, _getLocale.getLocale)('OKR_Db_KRDetails'),
|
|
133
133
|
checked: showCardKr,
|
|
134
134
|
onChange: onhandleShowCardKr
|
|
135
135
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
136
136
|
className: (0, _classnames["default"])("".concat(preCls, "__header-action-showkr"))
|
|
137
137
|
}, /*#__PURE__*/_react["default"].createElement(_switch["default"], {
|
|
138
|
-
label: (0, _getLocale.getLocale)(
|
|
138
|
+
label: (0, _getLocale.getLocale)('OKR_Ali_Butt_ExhibitionKRs'),
|
|
139
139
|
checked: showkr,
|
|
140
140
|
onChange: onConfirmHandler
|
|
141
141
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -146,7 +146,7 @@ function _default(props) {
|
|
|
146
146
|
onChange: function onChange(num) {
|
|
147
147
|
return onLevelChange(num);
|
|
148
148
|
},
|
|
149
|
-
label: (0, _getLocale.getLocale)(
|
|
149
|
+
label: (0, _getLocale.getLocale)('OKR_Ali_Butt_Displaylevel'),
|
|
150
150
|
defaultValue: openLevel
|
|
151
151
|
})));
|
|
152
152
|
|
|
@@ -161,12 +161,12 @@ function _default(props) {
|
|
|
161
161
|
className: (0, _classnames["default"])("".concat(preCls, "__header-title"))
|
|
162
162
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
163
163
|
className: (0, _classnames["default"])("".concat(preCls, "__header-title-text"))
|
|
164
|
-
}, (0, _getLocale.getLocale)(
|
|
164
|
+
}, (0, _getLocale.getLocale)('OKR_Ali_Title_Objectivemap')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
165
165
|
className: (0, _classnames["default"])("".concat(preCls, "__header-title-right"))
|
|
166
166
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
167
167
|
className: (0, _classnames["default"])("".concat(preCls, "__header-theme")),
|
|
168
168
|
onClick: onThemeChange
|
|
169
|
-
}, "\u5207\u6362", darkTheme ?
|
|
169
|
+
}, "\u5207\u6362", darkTheme ? '浅色' : '深色', "\u6A21\u5F0F"), /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
|
|
170
170
|
align: "bottomRight",
|
|
171
171
|
onChange: onPeriodChange,
|
|
172
172
|
selected: period,
|
|
@@ -177,22 +177,22 @@ function _default(props) {
|
|
|
177
177
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
178
178
|
className: (0, _classnames["default"])("".concat(preCls, "__header-action-search"))
|
|
179
179
|
}, /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"], {
|
|
180
|
-
placeholder: (0, _getLocale.getLocale)(
|
|
180
|
+
placeholder: (0, _getLocale.getLocale)('Mod_Pleaseselect'),
|
|
181
181
|
value: searchType,
|
|
182
182
|
onChange: onSearchChange
|
|
183
183
|
}, /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"].Option, {
|
|
184
184
|
value: "company"
|
|
185
|
-
}, (0, _getLocale.getLocale)(
|
|
185
|
+
}, (0, _getLocale.getLocale)('OKR_Ali_From_Companyobje')), /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"].Option, {
|
|
186
186
|
value: "depart"
|
|
187
|
-
}, (0, _getLocale.getLocale)(
|
|
187
|
+
}, (0, _getLocale.getLocale)('OKR_Ali_From_Viewdepartment')), _utils.OkrTypeSetting && /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"].Option, {
|
|
188
188
|
value: "group"
|
|
189
|
-
}, (0, _getLocale.getLocale)(
|
|
189
|
+
}, (0, _getLocale.getLocale)('OKR_Ali_From_Viewteam')), /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"].Option, {
|
|
190
190
|
value: "user"
|
|
191
|
-
}, (0, _getLocale.getLocale)(
|
|
191
|
+
}, (0, _getLocale.getLocale)('OKR_Ali_From_Viewmember')))), /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
192
192
|
popup: popup
|
|
193
193
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
194
194
|
className: (0, _classnames["default"])("".concat(preCls, "__header-action--show-more"))
|
|
195
|
-
}, (0, _getLocale.getLocale)(
|
|
195
|
+
}, (0, _getLocale.getLocale)('OKR_Ali_Butt_Exhibitionmore'))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
196
196
|
className: (0, _classnames["default"])("".concat(preCls, "__header-action-btns"))
|
|
197
197
|
}, /*#__PURE__*/_react["default"].createElement(_iconButtonList["default"], {
|
|
198
198
|
items: iconButtons,
|
|
@@ -200,7 +200,7 @@ function _default(props) {
|
|
|
200
200
|
return onBtnClick(iconType);
|
|
201
201
|
}
|
|
202
202
|
}))), /*#__PURE__*/_react["default"].createElement(_rcTooltip["default"], {
|
|
203
|
-
overlay: fold ? "".concat((0, _getLocale.getLocale)(
|
|
203
|
+
overlay: fold ? "".concat((0, _getLocale.getLocale)('Mod_Unfold')) : "".concat((0, _getLocale.getLocale)('Mod_Fold')),
|
|
204
204
|
placement: "top"
|
|
205
205
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
206
206
|
className: (0, _classnames["default"])("".concat(preCls, "__header-fold"), _defineProperty({}, "".concat(preCls, "__header-fold__close"), fold)),
|