@titaui/pc 1.11.51 → 1.11.52-beta.11
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/button/images/blue.svg +21 -0
- package/lib/components/button/images/red.svg +21 -0
- package/lib/components/button/images/white.svg +19 -0
- package/lib/components/button/rect-btn/index.js +3 -3
- package/lib/components/change-okr-modal/Item.js +19 -18
- package/lib/components/change-okr-modal/styledComponents.js +9 -9
- package/lib/components/checkbox/index.css +4 -0
- package/lib/components/contact-kefu/index.css +11 -1
- package/lib/components/contact-kefu/index.js +10 -4
- 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 +30 -19
- package/lib/components/create-okr-modal/fields/okr-parent.js +7 -5
- package/lib/components/create-okr-modal/index.js +200 -133
- package/lib/components/create-okr-modal/kr-items/index.css +23 -13
- package/lib/components/create-okr-modal/kr-items/krDatas.js +95 -76
- package/lib/components/create-okr-modal/kr-items/krItem.js +53 -56
- package/lib/components/create-okr-modal/style.js +5 -5
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/dynamic/constant.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +8 -8
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -8
- package/lib/components/dynamic/dynamic-list/index.js +14 -7
- package/lib/components/dynamic/index.js +9 -12
- package/lib/components/dynamic/request-api.js +7 -68
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +11 -9
- package/lib/components/nav-top/components/menu/index.js +18 -16
- package/lib/components/nav-top/index.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
- package/lib/components/okr-detail/components/header/edit-name.js +86 -40
- package/lib/components/okr-detail/components/header/index.css +120 -41
- package/lib/components/okr-detail/components/header/index.js +36 -46
- package/lib/components/okr-detail/components/header/o-classify.js +152 -0
- package/lib/components/okr-detail/components/header/o-name.js +7 -5
- 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 +58 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +159 -63
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- 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/detail-header/index.js +8 -4
- package/lib/components/okr-detail/e-list/index.js +2 -2
- 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/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-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/sub-o-progress/index.js +3 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +3 -3
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
- package/lib/components/okr-share/common-painter/utils.js +183 -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 +93 -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/interface.js +7 -0
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +16 -10
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/search-input/index.css +1 -1
- package/lib/components/search-key-handle/index.js +9 -7
- package/lib/components/select/Option.js +3 -3
- package/lib/components/select-layer/index.css +1 -1
- package/lib/components/task-relation-modal/helper.js +139 -2
- package/lib/components/task-relation-modal/image/loading.gif +0 -0
- package/lib/components/task-relation-modal/index.js +9 -0
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.css +18 -0
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +262 -0
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +135 -0
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.css +0 -0
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +129 -0
- package/lib/components/task-relation-modal/okr-relation/request-api.js +106 -0
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +120 -0
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.js +185 -0
- package/lib/components/task-relation-modal/request-api.js +28 -2
- package/lib/components/task-relation-modal/search/okr-status-select.js +3 -3
- package/lib/components/task-relation-modal/search/principal.js +36 -19
- package/lib/components/task-relation-modal/search/search-dropdown/index.css +2 -1
- package/lib/components/task-relation-modal/search/search-dropdown/index.js +1 -1
- package/lib/components/{dynamic/dynamic-topping/index.js → task-relation-modal/search/task-relation.js} +45 -44
- package/lib/components/task-relation-modal/search/task-status-select.js +87 -0
- package/lib/components/{dynamic/dynamic-liking/index.js → task-relation-modal/search/work-relation.js} +43 -39
- package/lib/components/task-relation-modal/search/work-status-select.js +74 -0
- package/lib/components/task-relation-modal/tree/category-tree/index.css +3 -3
- package/lib/components/task-relation-modal/tree/okr-tree/index.css +1 -1
- package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +16 -2
- package/lib/components/task-relation-modal/tree/task-list/index.css +0 -0
- package/lib/components/task-relation-modal/tree/task-list/index.js +1 -0
- package/lib/components/task-relation-modal/tree/work-list/index.css +14 -0
- package/lib/components/task-relation-modal/tree/work-list/index.js +176 -0
- package/lib/components/task-relation-modal/tree/work-list/search-form.js +123 -0
- package/lib/components/task-relation-modal/tree/work-tree/index.css +1 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +1 -12
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +1 -3
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +4 -10
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +0 -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 +3 -1
- package/lib/components/task-relation-modal/work-relation/index.css +0 -0
- package/lib/components/task-relation-modal/work-relation/index.js +256 -0
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/tooltip/index.js +3 -0
- package/lib/components/tooltip/tooltip-rows/index.css +26 -0
- package/lib/components/{dynamic/advertise → tooltip/tooltip-rows}/index.js +65 -85
- package/lib/components/user-selector/category-selector-panel/index.js +6 -1
- package/lib/components/{dynamic/quick-operation/components/create-task/index.js → user-selector/category-selector-panel/subordinate-tree.js} +37 -20
- package/lib/components/user-selector/constant.js +10 -2
- package/lib/components/user-selector/empty/index.css +5 -0
- package/lib/components/user-selector/empty/index.js +9 -3
- package/lib/components/user-selector/export-modules/depart-search-selector/index.js +45 -17
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +3 -1
- package/lib/components/user-selector/images/no-auth.png +0 -0
- package/lib/components/user-selector/request-apis.js +28 -9
- package/lib/components/user-selector/searched-panel/index.js +21 -7
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +46 -18
- package/lib/components/wechat-btn/index.css +5 -1
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/SingleMode.js +7 -5
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- 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/utils/open-data.js +213 -65
- package/lib/utils/planDataJson.js +11115 -0
- package/package.json +3 -2
- package/lib/components/dynamic/advertise/components/next-btn/index.css +0 -27
- package/lib/components/dynamic/advertise/components/next-btn/index.js +0 -32
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +0 -26
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +0 -32
- package/lib/components/dynamic/advertise/index.css +0 -21
- package/lib/components/dynamic/advertise/interface.js +0 -5
- package/lib/components/dynamic/advertise/util.js +0 -28
- package/lib/components/dynamic/components/dynamic-search-input/index.css +0 -81
- package/lib/components/dynamic/components/dynamic-search-input/index.js +0 -203
- package/lib/components/dynamic/components/first-level-tabs/index.css +0 -101
- package/lib/components/dynamic/components/first-level-tabs/index.js +0 -131
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +0 -23
- 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 +0 -146
- package/lib/components/dynamic/dynamic-like-ranking/index.js +0 -180
- package/lib/components/dynamic/dynamic-like-ranking/item.js +0 -105
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +0 -30
- package/lib/components/dynamic/dynamic-liking/index.css +0 -81
- package/lib/components/dynamic/dynamic-liking/item.js +0 -75
- package/lib/components/dynamic/dynamic-liking/mock.js +0 -83
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +0 -16
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +0 -30
- package/lib/components/dynamic/dynamic-topping/index.css +0 -141
- package/lib/components/dynamic/dynamic-topping/interface.js +0 -5
- package/lib/components/dynamic/dynamic-topping/item.js +0 -153
- package/lib/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/lib/components/dynamic/dynamic.css +0 -173
- package/lib/components/dynamic/dynamic.js +0 -428
- package/lib/components/dynamic/export-module/index.js +0 -37
- package/lib/components/dynamic/img/dynamic-top.svg +0 -14
- 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 +0 -184
- package/lib/components/dynamic/my-team/index.js +0 -263
- package/lib/components/dynamic/my-team/request-api.js +0 -52
- package/lib/components/dynamic/my-team/util.js +0 -20
- package/lib/components/dynamic/new-ui.css +0 -192
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +0 -58
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +0 -68
- package/lib/components/dynamic/online-broadcast/data.js +0 -95
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +0 -14
- 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 +0 -46
- package/lib/components/dynamic/online-broadcast/index.js +0 -61
- package/lib/components/dynamic/online-broadcast/interfact.js +0 -5
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +0 -25
- 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 +0 -51
- package/lib/components/dynamic/quick-operation/index.js +0 -120
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.onlineBroadcastData = exports["default"] = void 0;
|
|
7
|
-
// import { getBSGlobal } from "../../../utils/bs-global";
|
|
8
|
-
// 上线预报定义1
|
|
9
|
-
// const source = getBSGlobal("tenantInfo").Source;
|
|
10
|
-
// let href = "";
|
|
11
|
-
// if (source === 860) {
|
|
12
|
-
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697696";
|
|
13
|
-
// } else if (source === 861) {
|
|
14
|
-
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697725";
|
|
15
|
-
// } else if (source === 862) {
|
|
16
|
-
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697712";
|
|
17
|
-
// } else {
|
|
18
|
-
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697741";
|
|
19
|
-
// }
|
|
20
|
-
var onlineBroadcastData = [{
|
|
21
|
-
hasOnline: true,
|
|
22
|
-
preContent: "「OKR」支持上级审批,管理更规范",
|
|
23
|
-
preHref: "https://wiki.tita.com/x/F4SeAQ",
|
|
24
|
-
isNew: true,
|
|
25
|
-
date: "5/05"
|
|
26
|
-
}, {
|
|
27
|
-
hasOnline: true,
|
|
28
|
-
preContent: "「考核」更多位置支持离职人员筛选啦",
|
|
29
|
-
preHref: "https://wiki.tita.com/x/pwDQAQ",
|
|
30
|
-
isNew: true,
|
|
31
|
-
date: "4/29"
|
|
32
|
-
}, {
|
|
33
|
-
hasOnline: true,
|
|
34
|
-
preContent: "「1 on 1」面谈全新上线",
|
|
35
|
-
preHref: "https://wiki.tita.com/pages/viewpage.action?pageId=27165723",
|
|
36
|
-
isNew: true,
|
|
37
|
-
date: "4/27"
|
|
38
|
-
}, {
|
|
39
|
-
hasOnline: true,
|
|
40
|
-
preContent: "「考核」OKR 维度支持按 KR 评分啦",
|
|
41
|
-
preHref: "https://wiki.tita.com/x/JYOeAQ",
|
|
42
|
-
isNew: false,
|
|
43
|
-
date: "4/11"
|
|
44
|
-
}, {
|
|
45
|
-
hasOnline: true,
|
|
46
|
-
preContent: "「OKR 工作法」体验优化 ",
|
|
47
|
-
preHref: "https://wiki.tita.com/x/jIOeAQ",
|
|
48
|
-
isNew: false,
|
|
49
|
-
date: "3/29"
|
|
50
|
-
}, {
|
|
51
|
-
hasOnline: true,
|
|
52
|
-
preContent: "「考核」支持建立企业指标库",
|
|
53
|
-
preHref: "https://wiki.tita.com/x/vYGeAQ",
|
|
54
|
-
isNew: false,
|
|
55
|
-
date: "2/17"
|
|
56
|
-
}, {
|
|
57
|
-
hasOnline: true,
|
|
58
|
-
preContent: "「OKR」支持手动进行目标打分",
|
|
59
|
-
preHref: "https://wiki.tita.com/x/GYCeAQ",
|
|
60
|
-
isNew: false,
|
|
61
|
-
date: "1/12"
|
|
62
|
-
}, {
|
|
63
|
-
hasOnline: true,
|
|
64
|
-
preContent: "「考核」支持批量公布考核结果 ",
|
|
65
|
-
preHref: "https://wiki.tita.com/x/L4CeAQ",
|
|
66
|
-
isNew: false,
|
|
67
|
-
date: "1/11"
|
|
68
|
-
}, {
|
|
69
|
-
hasOnline: true,
|
|
70
|
-
preContent: "Tita「Learning」 全新上线",
|
|
71
|
-
preHref: "https://wiki.tita.com/x/doNrAQ",
|
|
72
|
-
isNew: false,
|
|
73
|
-
date: "12/26"
|
|
74
|
-
}, {
|
|
75
|
-
hasOnline: true,
|
|
76
|
-
preContent: "「OKR」支持设置子目标权重",
|
|
77
|
-
preHref: "https://wiki.tita.com/x/mIFrAQ",
|
|
78
|
-
isNew: false,
|
|
79
|
-
date: "12/18"
|
|
80
|
-
}, {
|
|
81
|
-
hasOnline: true,
|
|
82
|
-
preContent: "「OKR 」每周工作小结推送",
|
|
83
|
-
preHref: "https://wiki.tita.com/x/F4FrAQ",
|
|
84
|
-
isNew: false,
|
|
85
|
-
date: "12/8"
|
|
86
|
-
}, {
|
|
87
|
-
hasOnline: true,
|
|
88
|
-
preContent: "「OKR」新增管理规定,开启全员提醒",
|
|
89
|
-
preHref: "https://wiki.tita.com/x/6YBrAQ",
|
|
90
|
-
isNew: false,
|
|
91
|
-
date: "12/7"
|
|
92
|
-
}];
|
|
93
|
-
exports.onlineBroadcastData = onlineBroadcastData;
|
|
94
|
-
var _default = onlineBroadcastData;
|
|
95
|
-
exports["default"] = _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>上线</title>
|
|
4
|
-
<g id="动态" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
-
<g transform="translate(-922.000000, -729.000000)" id="编组-7">
|
|
6
|
-
<g transform="translate(906.000000, 711.000000)">
|
|
7
|
-
<g id="上线" transform="translate(16.000000, 18.000000)">
|
|
8
|
-
<circle id="椭圆形" fill="#F56868" cx="10" cy="10" r="10"></circle>
|
|
9
|
-
<path d="M11.8409601,5.02039481 C12.0607062,5.06789152 12.2513045,5.19521898 12.3708171,5.37436084 C12.4551761,5.50081575 12.5,5.64709197 12.5,5.79637754 L12.5,14.2038355 C12.5,14.4933736 12.3323006,14.7601176 12.0619452,14.9004804 C11.7915897,15.0408432 11.4612064,15.0327093 11.199096,14.8792372 L7.07387659,12.8671576 L6.19040457,12.8671576 C5.53296228,12.8671576 5,12.3679353 5,11.7521134 L5,8.24809964 C5,7.63227776 5.53296228,7.13305548 6.19040457,7.13305548 L7.07387659,7.13305548 L11.199096,5.1211008 C11.3903249,5.00912372 11.621214,4.9728981 11.8409601,5.02039481 Z M14.098818,7.2775841 C15.2999064,9.00639215 15.3004375,11.3014434 14.1001492,13.0308092 C13.9844061,13.1916195 13.7614463,13.2299439 13.598824,13.1169815 C13.4362017,13.0040191 13.3938229,12.7813824 13.5035352,12.616383 C14.5312451,11.1363956 14.5307622,9.17185423 13.502325,7.69237405 C13.3880073,7.52734138 13.4288592,7.30070687 13.5935719,7.18616299 C13.7582899,7.07162698 13.9844924,7.1125569 14.098818,7.2775841 Z" id="形状结合" fill="#FFFFFF" fill-rule="nonzero"></path>
|
|
10
|
-
</g>
|
|
11
|
-
</g>
|
|
12
|
-
</g>
|
|
13
|
-
</g>
|
|
14
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
.dynamic-online-broadcast__container {
|
|
2
|
-
width: 278px;
|
|
3
|
-
border-radius: 12px;
|
|
4
|
-
box-shadow: 0px 2px 12px 0px rgba(127, 145, 180, 0.2);
|
|
5
|
-
background: #ffffff;
|
|
6
|
-
padding: 16px 16px 24px 16px;
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
margin-top: 10px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.dynamic-online-broadcast__header {
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: space-between;
|
|
14
|
-
align-items: center;
|
|
15
|
-
padding-bottom: 10px;
|
|
16
|
-
border-bottom: 1px solid #e9ecf0;
|
|
17
|
-
margin-bottom: 4px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.dynamic-online-broadcast__header-left {
|
|
21
|
-
display: inline-flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.dynamic-online-broadcast__header-left-icon {
|
|
26
|
-
width: 20px;
|
|
27
|
-
height: 20px;
|
|
28
|
-
margin-right: 4px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.dynamic-online-broadcast__header-left-text {
|
|
32
|
-
font-size: 16px;
|
|
33
|
-
font-weight: 600;
|
|
34
|
-
color: #3f4755;
|
|
35
|
-
line-height: 24px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.dynamic-online-broadcast__header-right {
|
|
39
|
-
font-size: 14px;
|
|
40
|
-
color: #2879ff;
|
|
41
|
-
line-height: 24px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.dynamic-online-broadcast__header-right:hover {
|
|
45
|
-
color: #5c8eff;
|
|
46
|
-
}
|
|
@@ -1,61 +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 _bsGlobal = require("../../../utils/bs-global");
|
|
11
|
-
|
|
12
|
-
var _broadcast = _interopRequireDefault(require("./img/broadcast.svg"));
|
|
13
|
-
|
|
14
|
-
var _data = require("./data");
|
|
15
|
-
|
|
16
|
-
var _broadcastItem = _interopRequireDefault(require("./components/broadcast-item"));
|
|
17
|
-
|
|
18
|
-
var _getLocale = require("../../../utils/getLocale");
|
|
19
|
-
|
|
20
|
-
require("./index.css");
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
-
|
|
26
|
-
var prefix = "dynamic-online-broadcast";
|
|
27
|
-
var titaHost = (0, _bsGlobal.getBSGlobal)("titaHost"); // 飞书端不显示
|
|
28
|
-
|
|
29
|
-
var onlinePreHandler = titaHost.indexOf("tita") > -1 && window.BSGlobal.tenantInfo.Source != 862;
|
|
30
|
-
|
|
31
|
-
var OnlineBroadcast = function OnlineBroadcast() {
|
|
32
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
-
className: prefix
|
|
34
|
-
}, onlinePreHandler && _data.onlineBroadcastData.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
35
|
-
className: "".concat(prefix, "__container")
|
|
36
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
37
|
-
className: "".concat(prefix, "__header")
|
|
38
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
39
|
-
className: "".concat(prefix, "__header-left")
|
|
40
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
41
|
-
className: "".concat(prefix, "__header-left-icon"),
|
|
42
|
-
src: _broadcast["default"]
|
|
43
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
44
|
-
className: "".concat(prefix, "__header-left-text")
|
|
45
|
-
}, (0, _getLocale.getLocale)("Feed_Title_Onlinebroadcast"))), /*#__PURE__*/_react["default"].createElement("a", {
|
|
46
|
-
className: "".concat(prefix, "__header-right"),
|
|
47
|
-
href: "https://wiki.tita.com/pages/viewpage.action?pageId=15696164",
|
|
48
|
-
target: "_blank",
|
|
49
|
-
rel: "noreferrer"
|
|
50
|
-
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_More"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
51
|
-
className: "".concat(prefix, "__content")
|
|
52
|
-
}, _data.onlineBroadcastData.slice(0, 5).map(function (data, index) {
|
|
53
|
-
return /*#__PURE__*/_react["default"].createElement(_broadcastItem["default"], _extends({}, data, {
|
|
54
|
-
index: index + 1,
|
|
55
|
-
key: index
|
|
56
|
-
}));
|
|
57
|
-
}))));
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
var _default = OnlineBroadcast;
|
|
61
|
-
exports["default"] = _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.titaui-pc-create-announcement {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
flex: 1;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.titaui-pc-create-announcement__img {
|
|
10
|
-
width: 44px;
|
|
11
|
-
height: 44px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.titaui-pc-create-announcement__text {
|
|
15
|
-
margin-top: 5px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.titaui-pc-create-announcement:hover {
|
|
19
|
-
color: #2879ff;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-pc-create-announcement:hover img {
|
|
24
|
-
animation: dynamicQuickOperationRubberBand 1s;
|
|
25
|
-
}
|
|
@@ -1,39 +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 _newAnnouncement = _interopRequireDefault(require("../../img/new-announcement.png"));
|
|
11
|
-
|
|
12
|
-
var _getLocale = require("../../../../../utils/getLocale");
|
|
13
|
-
|
|
14
|
-
require("./index.css");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
var prefix = "titaui-pc-create-announcement";
|
|
19
|
-
|
|
20
|
-
var CreateAnnouncement = function CreateAnnouncement(_ref) {
|
|
21
|
-
var onClick = _ref.onClick;
|
|
22
|
-
|
|
23
|
-
var handleCreateAnnouncementClick = function handleCreateAnnouncementClick() {
|
|
24
|
-
onClick && onClick();
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
-
className: prefix,
|
|
29
|
-
onClick: handleCreateAnnouncementClick
|
|
30
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
31
|
-
className: "".concat(prefix, "__img animate__rubberBand"),
|
|
32
|
-
src: _newAnnouncement["default"]
|
|
33
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
|
-
className: "".concat(prefix, "__text")
|
|
35
|
-
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_Announcement")));
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
var _default = CreateAnnouncement;
|
|
39
|
-
exports["default"] = _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.titaui-pc-create-okr {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
flex: 1;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.titaui-pc-create-okr__img {
|
|
10
|
-
width: 44px;
|
|
11
|
-
height: 44px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.titaui-pc-create-okr__text {
|
|
15
|
-
margin-top: 5px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.titaui-pc-create-okr:hover {
|
|
19
|
-
color: #2879ff;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-pc-create-okr:hover img {
|
|
24
|
-
animation: dynamicQuickOperationRubberBand 1s;
|
|
25
|
-
}
|
|
@@ -1,39 +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 _newOkr = _interopRequireDefault(require("../../img/new-okr.png"));
|
|
11
|
-
|
|
12
|
-
var _getLocale = require("../../../../../utils/getLocale");
|
|
13
|
-
|
|
14
|
-
require("./index.css");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
var prefix = "titaui-pc-create-okr";
|
|
19
|
-
|
|
20
|
-
var CreateOKr = function CreateOKr(_ref) {
|
|
21
|
-
var onClick = _ref.onClick;
|
|
22
|
-
|
|
23
|
-
var handleCreateOKrClick = function handleCreateOKrClick() {
|
|
24
|
-
onClick && onClick();
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
-
className: prefix,
|
|
29
|
-
onClick: handleCreateOKrClick
|
|
30
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
31
|
-
className: "".concat(prefix, "__img animate__rubberBand"),
|
|
32
|
-
src: _newOkr["default"]
|
|
33
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
|
-
className: "".concat(prefix, "__text")
|
|
35
|
-
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_NewOKR")));
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
var _default = CreateOKr;
|
|
39
|
-
exports["default"] = _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.titaui-pc-create-share {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
flex: 1;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.titaui-pc-create-share__img {
|
|
10
|
-
width: 44px;
|
|
11
|
-
height: 44px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.titaui-pc-create-share__text {
|
|
15
|
-
margin-top: 5px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.titaui-pc-create-share:hover {
|
|
19
|
-
color: #2879ff;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-pc-create-share:hover img {
|
|
24
|
-
animation: dynamicQuickOperationRubberBand 1s;
|
|
25
|
-
}
|
|
@@ -1,39 +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 _newShare = _interopRequireDefault(require("../../img/new-share.png"));
|
|
11
|
-
|
|
12
|
-
var _getLocale = require("../../../../../utils/getLocale");
|
|
13
|
-
|
|
14
|
-
require("./index.css");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
var prefix = "titaui-pc-create-share";
|
|
19
|
-
|
|
20
|
-
var CreateShare = function CreateShare(_ref) {
|
|
21
|
-
var onClick = _ref.onClick;
|
|
22
|
-
|
|
23
|
-
var handleCreateShareClick = function handleCreateShareClick() {
|
|
24
|
-
onClick && onClick();
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
-
className: prefix,
|
|
29
|
-
onClick: handleCreateShareClick
|
|
30
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
31
|
-
className: "".concat(prefix, "__img animate__rubberBand"),
|
|
32
|
-
src: _newShare["default"]
|
|
33
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
|
-
className: "".concat(prefix, "__text")
|
|
35
|
-
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_Sendshare")));
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
var _default = CreateShare;
|
|
39
|
-
exports["default"] = _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.titaui-pc-create-task {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
flex: 1;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.titaui-pc-create-task__img {
|
|
10
|
-
width: 44px;
|
|
11
|
-
height: 44px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.titaui-pc-create-task__text {
|
|
15
|
-
margin-top: 5px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.titaui-pc-create-task:hover {
|
|
19
|
-
color: #2879ff;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-pc-create-task:hover img {
|
|
24
|
-
animation: dynamicQuickOperationRubberBand 1s;
|
|
25
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
.titaui-pc-dynamic-quick-operation {
|
|
2
|
-
width: 278px;
|
|
3
|
-
height: 126px;
|
|
4
|
-
padding: 0 5px;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background: #ffffff;
|
|
9
|
-
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
10
|
-
border-radius: 12px;
|
|
11
|
-
font-size: 12px;
|
|
12
|
-
color: #3f4755;
|
|
13
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@keyframes dynamicQuickOperationRubberBand {
|
|
17
|
-
0% {
|
|
18
|
-
-webkit-transform: scaleX(1);
|
|
19
|
-
transform: scaleX(1);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
30% {
|
|
23
|
-
-webkit-transform: scale3d(1.25, 0.75, 1);
|
|
24
|
-
transform: scale3d(1.25, 0.75, 1);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
40% {
|
|
28
|
-
-webkit-transform: scale3d(0.75, 1.25, 1);
|
|
29
|
-
transform: scale3d(0.75, 1.25, 1);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
50% {
|
|
33
|
-
-webkit-transform: scale3d(1.15, 0.85, 1);
|
|
34
|
-
transform: scale3d(1.15, 0.85, 1);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
65% {
|
|
38
|
-
-webkit-transform: scale3d(0.95, 1.05, 1);
|
|
39
|
-
transform: scale3d(0.95, 1.05, 1);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
75% {
|
|
43
|
-
-webkit-transform: scale3d(1.05, 0.95, 1);
|
|
44
|
-
transform: scale3d(1.05, 0.95, 1);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
to {
|
|
48
|
-
-webkit-transform: scaleX(1);
|
|
49
|
-
transform: scaleX(1);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,120 +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 _createOkr = _interopRequireDefault(require("./components/create-okr"));
|
|
13
|
-
|
|
14
|
-
var _createTask = _interopRequireDefault(require("./components/create-task"));
|
|
15
|
-
|
|
16
|
-
var _createShare = _interopRequireDefault(require("./components/create-share"));
|
|
17
|
-
|
|
18
|
-
var _createAnnouncement = _interopRequireDefault(require("./components/create-announcement"));
|
|
19
|
-
|
|
20
|
-
var _auth = require("../../../utils/auth");
|
|
21
|
-
|
|
22
|
-
var _createOkrModal = _interopRequireDefault(require("../../create-okr-modal"));
|
|
23
|
-
|
|
24
|
-
var _publishDynamicModal = _interopRequireDefault(require("../../publish-dynamic-modal/publish-dynamic-modal"));
|
|
25
|
-
|
|
26
|
-
var _toast = _interopRequireDefault(require("../../toast"));
|
|
27
|
-
|
|
28
|
-
var _bsGlobal = require("../../../utils/bs-global");
|
|
29
|
-
|
|
30
|
-
var _getLocale = require("../../../utils/getLocale");
|
|
31
|
-
|
|
32
|
-
require("./index.css");
|
|
33
|
-
|
|
34
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
|
-
|
|
36
|
-
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); }
|
|
37
|
-
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
|
-
var prefix = "titaui-pc-dynamic-quick-operation";
|
|
41
|
-
|
|
42
|
-
var DynamicQuickOperation = function DynamicQuickOperation(_ref) {
|
|
43
|
-
var _ref$showCreateOKr = _ref.showCreateOKr,
|
|
44
|
-
showCreateOKr = _ref$showCreateOKr === void 0 ? true : _ref$showCreateOKr,
|
|
45
|
-
_ref$showCreateTask = _ref.showCreateTask,
|
|
46
|
-
showCreateTask = _ref$showCreateTask === void 0 ? true : _ref$showCreateTask,
|
|
47
|
-
_ref$showCreateShare = _ref.showCreateShare,
|
|
48
|
-
showCreateShare = _ref$showCreateShare === void 0 ? true : _ref$showCreateShare,
|
|
49
|
-
_ref$showCreateAnnoun = _ref.showCreateAnnouncement,
|
|
50
|
-
showCreateAnnouncement = _ref$showCreateAnnoun === void 0 ? true : _ref$showCreateAnnoun;
|
|
51
|
-
var hasDynamicAnnouncementAuth = new _auth.DynamicManagerAuth().hasAuth();
|
|
52
|
-
var createTaskDivRef = (0, _react.useRef)(document.createElement("div"));
|
|
53
|
-
var isNewUI = (0, _bsGlobal.getBSGlobal)("tenantInfo").isNewIndex;
|
|
54
|
-
var newNavigation = (0, _bsGlobal.getBSGlobal)("newNavigation") || [];
|
|
55
|
-
var hasOKRApp = newNavigation.find(function (item) {
|
|
56
|
-
return item.appId === 113;
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
var handleShowCreateOKrModal = function handleShowCreateOKrModal() {
|
|
60
|
-
// @ts-ignore
|
|
61
|
-
window.showCreateOkrModal && window.showCreateOkrModal();
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var handleShowCreateAnnouncement = function handleShowCreateAnnouncement() {
|
|
65
|
-
// @ts-ignore
|
|
66
|
-
window.showPublishAnnouncementDynamicModal && window.showPublishAnnouncementDynamicModal();
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
var handleShowCreatShare = function handleShowCreatShare() {
|
|
70
|
-
// @ts-ignore
|
|
71
|
-
window.showPublishShareDynamicModal && window.showPublishShareDynamicModal();
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
var handleCreateTaskClick = function handleCreateTaskClick() {
|
|
75
|
-
// @ts-ignore
|
|
76
|
-
window.openCreateTaskPop(createTaskDivRef.current, {
|
|
77
|
-
createParams: {
|
|
78
|
-
objId: "",
|
|
79
|
-
objType: 4,
|
|
80
|
-
AppId: 1,
|
|
81
|
-
AppType: 1,
|
|
82
|
-
TaskType: 0
|
|
83
|
-
}
|
|
84
|
-
}).then(function () {
|
|
85
|
-
_toast["default"].Success((0, _getLocale.getLocale)("Pro_tag_pop_Pubsuc"), {
|
|
86
|
-
canClose: false
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
setTimeout(function () {
|
|
90
|
-
// @ts-ignore 跳到我的发布页签
|
|
91
|
-
window.setTabsToPublish && window.setTabsToPublish();
|
|
92
|
-
}, 2000);
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
var handleAfterSuccess = function handleAfterSuccess() {
|
|
97
|
-
setTimeout(function () {
|
|
98
|
-
// @ts-ignore 跳到我的发布页签
|
|
99
|
-
window.setTabsToPublish && window.setTabsToPublish();
|
|
100
|
-
}, 2000);
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
-
className: prefix
|
|
105
|
-
}, showCreateOKr && (isNewUI && hasOKRApp || !isNewUI && (0, _bsGlobal.hasWebHead)("okr")) && /*#__PURE__*/_react["default"].createElement(_createOkr["default"], {
|
|
106
|
-
onClick: handleShowCreateOKrModal
|
|
107
|
-
}), showCreateTask && /*#__PURE__*/_react["default"].createElement(_createTask["default"], {
|
|
108
|
-
onClick: handleCreateTaskClick,
|
|
109
|
-
ref: createTaskDivRef
|
|
110
|
-
}), showCreateShare && /*#__PURE__*/_react["default"].createElement(_createShare["default"], {
|
|
111
|
-
onClick: handleShowCreatShare
|
|
112
|
-
}), showCreateAnnouncement && hasDynamicAnnouncementAuth && /*#__PURE__*/_react["default"].createElement(_createAnnouncement["default"], {
|
|
113
|
-
onClick: handleShowCreateAnnouncement
|
|
114
|
-
}), /*#__PURE__*/_react["default"].createElement(_createOkrModal["default"], {
|
|
115
|
-
onSuccess: handleAfterSuccess
|
|
116
|
-
}), /*#__PURE__*/_react["default"].createElement(_publishDynamicModal["default"], null));
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
var _default = DynamicQuickOperation;
|
|
120
|
-
exports["default"] = _default;
|