@titaui/pc 1.11.52-beta.3 → 1.11.52-beta.6
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 +25 -19
- package/lib/components/create-okr-modal/index.js +75 -35
- package/lib/components/create-okr-modal/kr-items/index.css +12 -1
- package/lib/components/create-okr-modal/kr-items/krDatas.js +6 -5
- package/lib/components/create-okr-modal/kr-items/krItem.js +22 -12
- 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/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/dynamic-item/components/feed-operate/index.js +8 -8
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +18 -18
- 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/components/{contact-kefu → dynamic/dynamic-liking}/index.js +35 -58
- 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 -14
- 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 +95 -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/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/nav-top/components/menu/index.js +4 -3
- package/lib/components/nav-top/index.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/index.css +0 -4
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +0 -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 +54 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +106 -56
- 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/detail-header/delete-confirm/index.css +5 -9
- package/lib/components/okr-detail/detail-header/index.js +8 -4
- 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 +71 -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 +3 -1
- 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/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
- package/lib/components/radio/index.css +3 -3
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/search-key-handle/index.js +9 -7
- package/lib/components/select/Option.js +3 -3
- package/lib/components/task-relation-modal/tree/okr-tree/index.css +1 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +11 -0
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +3 -1
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +16 -0
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +10 -4
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +16 -0
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +4 -0
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
- package/lib/components/textarea/index.js +35 -38
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/wechat-btn/index.css +4 -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/index.js +0 -8
- package/lib/{components/contact-kefu → pages/aha2021}/img/canceled.svg +0 -0
- package/lib/{components/contact-kefu → pages/aha2021}/img/kefu.svg +0 -0
- package/lib/{components/contact-kefu → pages/aha2021}/img/not-try.png +0 -0
- package/lib/{components/contact-kefu → pages/aha2021}/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +26 -1
- package/lib/pages/aha2021/index.js +82 -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/pages/new-okr-list/header/index.css +1 -1
- package/lib/utils/open-data.js +213 -65
- package/package.json +3 -2
- package/lib/components/contact-kefu/img/notice.png +0 -0
- package/lib/components/contact-kefu/index.css +0 -85
|
@@ -35,37 +35,46 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.okr-drawer-header__classify {
|
|
38
|
+
padding: 3px 4px;
|
|
39
|
+
font-size: 12px;
|
|
40
|
+
line-height: 18px;
|
|
41
|
+
border: 1px solid transparent;
|
|
42
|
+
border-radius: 4px;
|
|
43
|
+
transition: all 0.3s ease;
|
|
44
|
+
color: #89919f;
|
|
38
45
|
display: inline-block;
|
|
39
|
-
width: 18px;
|
|
40
|
-
height: 20px;
|
|
41
|
-
margin: 0 9px;
|
|
42
46
|
vertical-align: middle;
|
|
47
|
+
white-space: nowrap;
|
|
43
48
|
}
|
|
44
49
|
|
|
45
|
-
.okr-drawer-header__classify--
|
|
46
|
-
|
|
50
|
+
.okr-drawer-header__classify--editable:hover {
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
border-color: #e9ecf0;
|
|
47
53
|
}
|
|
48
54
|
|
|
49
|
-
.okr-drawer-header__classify
|
|
50
|
-
|
|
55
|
+
.okr-drawer-header__classify::before {
|
|
56
|
+
margin-right: 7px;
|
|
57
|
+
position: relative;
|
|
58
|
+
top: 1px;
|
|
51
59
|
}
|
|
52
60
|
|
|
53
61
|
.okr-drawer-header__over-tag {
|
|
54
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
55
|
-
font-size: 12px;
|
|
56
|
-
display: inline-flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
justify-content: center;
|
|
59
|
-
color: #a4acb9;
|
|
60
62
|
width: 52px;
|
|
61
63
|
height: 18px;
|
|
64
|
+
margin: 0 8px;
|
|
62
65
|
line-height: 24px;
|
|
63
66
|
border-radius: 9px;
|
|
67
|
+
font-size: 12px;
|
|
68
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
64
69
|
background-color: #f7f8fa;
|
|
70
|
+
color: #a4acb9;
|
|
71
|
+
display: inline-flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
65
74
|
vertical-align: middle;
|
|
66
75
|
}
|
|
67
76
|
|
|
68
|
-
.okr-drawer-header__action-item {
|
|
77
|
+
.okr-drawer-header__action-item:not(:empty) {
|
|
69
78
|
margin-right: 12px;
|
|
70
79
|
}
|
|
71
80
|
|
|
@@ -88,18 +97,15 @@
|
|
|
88
97
|
}
|
|
89
98
|
|
|
90
99
|
.okr-drawer-header__edit {
|
|
91
|
-
position:
|
|
92
|
-
left: 0;
|
|
93
|
-
right: 0;
|
|
94
|
-
top: 0;
|
|
95
|
-
bottom: 0;
|
|
100
|
+
position: relative;
|
|
96
101
|
background-color: #fff;
|
|
97
102
|
}
|
|
98
103
|
|
|
99
104
|
.okr-drawer-header__edit-input {
|
|
100
|
-
margin-bottom: 8px;
|
|
101
|
-
border-bottom: 1px solid #2879FF;
|
|
102
105
|
height: calc(100% - 32px);
|
|
106
|
+
margin-bottom: 8px;
|
|
107
|
+
border-bottom: 1px solid transparent;
|
|
108
|
+
transition: border 0.3s ease;
|
|
103
109
|
}
|
|
104
110
|
|
|
105
111
|
.okr-drawer-header__edit-input textarea {
|
|
@@ -114,65 +120,138 @@
|
|
|
114
120
|
font-size: 20px;
|
|
115
121
|
line-height: 24px;
|
|
116
122
|
font-weight: 600;
|
|
117
|
-
caret-color: #
|
|
123
|
+
caret-color: #2879ff;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.okr-drawer-header__edit-input--editable:hover {
|
|
127
|
+
border-bottom-color: #e9ecf0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.okr-drawer-header__edit-input--editing, .okr-drawer-header__edit-input--editing:hover {
|
|
131
|
+
border-bottom-color: #2879ff;
|
|
118
132
|
}
|
|
119
133
|
|
|
120
134
|
.okr-drawer-header__edit-input--error {
|
|
121
|
-
border-bottom: 1px solid #
|
|
135
|
+
border-bottom: 1px solid #f05e5e;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.okr-drawer-header__edit-input .tita-rich-editor {
|
|
139
|
+
height: 100%;
|
|
140
|
+
padding: 0;
|
|
141
|
+
overflow: auto;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.okr-drawer-header__edit-input .tita-rich-editor .ProseMirror p {
|
|
145
|
+
padding: 0 0 4px 0;
|
|
146
|
+
font-size: 20px;
|
|
147
|
+
font-weight: 600;
|
|
122
148
|
}
|
|
123
149
|
|
|
124
150
|
.okr-drawer-header__edit-btns {
|
|
125
|
-
|
|
151
|
+
background-color: #ffffff;
|
|
152
|
+
opacity: 0;
|
|
153
|
+
transition: all 0.3s ease;
|
|
154
|
+
text-align: right;
|
|
155
|
+
visibility: hidden;
|
|
156
|
+
position: absolute;
|
|
157
|
+
right: 0;
|
|
158
|
+
left: 0;
|
|
126
159
|
}
|
|
127
160
|
|
|
128
161
|
.okr-drawer-header__edit-btns .titaui-pc-button {
|
|
129
|
-
|
|
130
|
-
display: inline-block;
|
|
162
|
+
padding: 5px 19px;
|
|
131
163
|
font-size: 13px;
|
|
132
164
|
line-height: 18px;
|
|
133
|
-
|
|
134
|
-
|
|
165
|
+
border-radius: 15px;
|
|
166
|
+
transform: translateY(-100%);
|
|
167
|
+
transition: all 0.3s ease;
|
|
168
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
169
|
+
display: inline-block;
|
|
135
170
|
cursor: pointer;
|
|
136
171
|
}
|
|
137
172
|
|
|
173
|
+
.okr-drawer-header__edit-btns--visible {
|
|
174
|
+
opacity: 1;
|
|
175
|
+
z-index: 2;
|
|
176
|
+
visibility: visible;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.okr-drawer-header__edit-btns--visible .titaui-pc-button {
|
|
180
|
+
transform: translateY(0);
|
|
181
|
+
}
|
|
182
|
+
|
|
138
183
|
.okr-drawer-header__edit-btns-confirm {
|
|
184
|
+
border: 1px solid #2879ff;
|
|
185
|
+
background: #2879ff;
|
|
139
186
|
color: #fff;
|
|
140
|
-
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.okr-drawer-header__edit-btns-confirm:hover {
|
|
190
|
+
background-color: #5c8eff;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.okr-drawer-header__edit-btns-confirm--disabled, .okr-drawer-header__edit-btns-confirm--disabled:hover {
|
|
194
|
+
background-color: rgba(40, 121, 255, 0.4);
|
|
195
|
+
cursor: not-allowed;
|
|
141
196
|
}
|
|
142
197
|
|
|
143
198
|
.okr-drawer-header__edit-btns-cancel {
|
|
144
|
-
color: #6F7886;
|
|
145
|
-
background: #fff;
|
|
146
|
-
border: 1px solid #DFE3EA;
|
|
147
199
|
margin-right: 10px;
|
|
200
|
+
border: 1px solid #dfe3ea;
|
|
201
|
+
background: #fff;
|
|
202
|
+
color: #6f7886;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.okr-drawer-header__edit-btns-cancel:hover {
|
|
206
|
+
border-color: #2879ff;
|
|
207
|
+
color: #2879ff;
|
|
148
208
|
}
|
|
149
209
|
|
|
150
210
|
.okr-drawer-header__edit-error-tip {
|
|
151
|
-
|
|
211
|
+
margin-top: -6px;
|
|
152
212
|
font-size: 12px;
|
|
153
213
|
line-height: 18px;
|
|
214
|
+
opacity: 0;
|
|
215
|
+
transform: translateY(-100%);
|
|
216
|
+
transition: all 0.3s ease;
|
|
154
217
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
155
|
-
color: #
|
|
156
|
-
|
|
218
|
+
color: #f05e5e;
|
|
219
|
+
visibility: hidden;
|
|
220
|
+
position: absolute;
|
|
221
|
+
z-index: 3;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.okr-drawer-header__edit-error-tip--visible {
|
|
225
|
+
opacity: 1;
|
|
226
|
+
transform: translateY(0);
|
|
227
|
+
visibility: visible;
|
|
157
228
|
}
|
|
158
229
|
|
|
159
230
|
.okr-drawer-header__classify-popup {
|
|
160
|
-
|
|
161
|
-
|
|
231
|
+
padding: 16px 6px;
|
|
232
|
+
border: 1px solid #f0f2f5;
|
|
233
|
+
border-radius: 8px;
|
|
162
234
|
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
163
|
-
|
|
235
|
+
background: #ffffff;
|
|
164
236
|
}
|
|
165
237
|
|
|
166
238
|
.okr-drawer-header__classify-popup-item {
|
|
167
|
-
|
|
168
|
-
color: #3F4755;
|
|
239
|
+
padding: 5px 30px;
|
|
169
240
|
font-size: 14px;
|
|
170
241
|
line-height: 22px;
|
|
171
|
-
|
|
242
|
+
border-radius: 8px;
|
|
243
|
+
transition: all 0.3s ease;
|
|
244
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
245
|
+
color: #3f4755;
|
|
172
246
|
cursor: pointer;
|
|
173
247
|
}
|
|
174
248
|
|
|
175
249
|
.okr-drawer-header__classify-popup-item:hover {
|
|
250
|
+
background: #f7f8fa;
|
|
251
|
+
color: #2879ff;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.okr-drawer-header__classify-popup-item.active {
|
|
176
255
|
color: #2879ff;
|
|
177
256
|
}
|
|
178
257
|
|
|
@@ -11,9 +11,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _richEditor = require("@titaui/rich-editor");
|
|
15
15
|
|
|
16
|
-
var _oClassify = _interopRequireDefault(require("
|
|
16
|
+
var _oClassify = _interopRequireDefault(require("./o-classify"));
|
|
17
17
|
|
|
18
18
|
var _oProgressUpdate = _interopRequireDefault(require("../o-progress-update"));
|
|
19
19
|
|
|
@@ -61,23 +61,19 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
61
61
|
|
|
62
62
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
63
63
|
|
|
64
|
-
var precls =
|
|
64
|
+
var precls = 'okr-drawer-header';
|
|
65
65
|
|
|
66
66
|
function Header(props) {
|
|
67
67
|
var _window, _window$BSGlobal, _window$BSGlobal$OkrA, _window$BSGlobal$OkrA2;
|
|
68
68
|
|
|
69
69
|
// 外部取到的 headInfo
|
|
70
70
|
var okrInfo = props.okrInfo;
|
|
71
|
+
var workNameRichText = okrInfo.workNameRichText ? JSON.parse(okrInfo.workNameRichText) : (0, _richEditor.TitaRichEditorInitTextState)(okrInfo.workName);
|
|
71
72
|
|
|
72
|
-
var _useState = (0, _react.useState)(
|
|
73
|
+
var _useState = (0, _react.useState)(workNameRichText),
|
|
73
74
|
_useState2 = _slicedToArray(_useState, 2),
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
var _useState3 = (0, _react.useState)(okrInfo.workName),
|
|
78
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
79
|
-
okrName = _useState4[0],
|
|
80
|
-
setOkrName = _useState4[1];
|
|
75
|
+
okrName = _useState2[0],
|
|
76
|
+
setOkrName = _useState2[1];
|
|
81
77
|
|
|
82
78
|
var _useContext = (0, _react.useContext)(_context.GeneralDataContext),
|
|
83
79
|
generalPrincipalUser = _useContext.generalPrincipalUser,
|
|
@@ -94,10 +90,10 @@ function Header(props) {
|
|
|
94
90
|
progressGrow = _okrInfo$progressGrow === void 0 ? 0 : _okrInfo$progressGrow,
|
|
95
91
|
progress = okrInfo.progress;
|
|
96
92
|
|
|
97
|
-
var
|
|
98
|
-
|
|
99
|
-
auth =
|
|
100
|
-
setAuth =
|
|
93
|
+
var _useState3 = (0, _react.useState)(false),
|
|
94
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
95
|
+
auth = _useState4[0],
|
|
96
|
+
setAuth = _useState4[1];
|
|
101
97
|
|
|
102
98
|
(0, _react.useEffect)(function () {
|
|
103
99
|
setAuth(new _auth.OAuth({
|
|
@@ -113,45 +109,45 @@ function Header(props) {
|
|
|
113
109
|
var progressCmp = /*#__PURE__*/_react["default"].createElement(_progress["default"], {
|
|
114
110
|
percent: progress,
|
|
115
111
|
backgroundColor: "#F7F8FA",
|
|
116
|
-
textColor: okrInfo.status === 2 ?
|
|
117
|
-
color: okrInfo.status === 2 ?
|
|
112
|
+
textColor: okrInfo.status === 2 ? '#89919f' : _utils.OkrRiskMapping[okrInfo.manualRiskLevel].textColor,
|
|
113
|
+
color: okrInfo.status === 2 ? 'linear-gradient(270deg, #BFC7D5, #E1E5EC)' : _utils.OkrRiskMapping[okrInfo.manualRiskLevel].line
|
|
118
114
|
});
|
|
119
115
|
|
|
120
116
|
if (!editable) {
|
|
121
117
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
122
118
|
className: "okr-drawer-header__action-progress"
|
|
123
119
|
}, progressCmp, progressGrow !== 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
124
|
-
className: (0, _classnames["default"])(
|
|
125
|
-
|
|
126
|
-
|
|
120
|
+
className: (0, _classnames["default"])('okr-drawer-header__action-progress-diff', {
|
|
121
|
+
'okr-drawer-header__action-progress-diff--up': progressGrow > 0,
|
|
122
|
+
'okr-drawer-header__action-progress-diff--down': progressGrow < 0
|
|
127
123
|
})
|
|
128
124
|
}, progressGrow > 0 ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
129
125
|
className: "tu-icon-simple-sort-up"
|
|
130
126
|
}) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
131
127
|
className: "tu-icon-simple-sort-down"
|
|
132
|
-
}), progressGrow.toString().replace(
|
|
128
|
+
}), progressGrow.toString().replace('-', ''), "%"));
|
|
133
129
|
}
|
|
134
130
|
|
|
135
131
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
136
132
|
className: "okr-drawer-header__action-progress"
|
|
137
133
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
138
|
-
overlay: (0, _getLocale.getLocale)(
|
|
134
|
+
overlay: (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Upd'),
|
|
139
135
|
placement: "top"
|
|
140
136
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
141
137
|
onClick: onOpenModal,
|
|
142
138
|
style: {
|
|
143
|
-
cursor:
|
|
139
|
+
cursor: 'pointer'
|
|
144
140
|
}
|
|
145
141
|
}, progressCmp)), progressGrow !== 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
146
|
-
className: (0, _classnames["default"])(
|
|
147
|
-
|
|
148
|
-
|
|
142
|
+
className: (0, _classnames["default"])('okr-drawer-header__action-progress-diff', {
|
|
143
|
+
'okr-drawer-header__action-progress-diff--up': progressGrow > 0,
|
|
144
|
+
'okr-drawer-header__action-progress-diff--down': progressGrow < 0
|
|
149
145
|
})
|
|
150
146
|
}, progressGrow > 0 ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
151
147
|
className: "tu-icon-simple-sort-up"
|
|
152
148
|
}) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
153
149
|
className: "tu-icon-simple-sort-down"
|
|
154
|
-
}), progressGrow.toString().replace(
|
|
150
|
+
}), progressGrow.toString().replace('-', ''), "%"));
|
|
155
151
|
};
|
|
156
152
|
|
|
157
153
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -164,24 +160,16 @@ function Header(props) {
|
|
|
164
160
|
okrId: okrInfo.workId
|
|
165
161
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
166
162
|
className: "".concat(precls, "__content")
|
|
167
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
163
|
+
}, /*#__PURE__*/_react["default"].createElement(_editName["default"], {
|
|
168
164
|
editable: editable,
|
|
169
165
|
okrName: okrName,
|
|
170
|
-
setIsEdit: setIsEdit,
|
|
171
|
-
okrStatus: okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.status,
|
|
172
|
-
OkrAndKrApprovalTypes: okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes,
|
|
173
|
-
applyState: okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.applyState,
|
|
174
|
-
approvalSetting: approvalSetting
|
|
175
|
-
}, /*#__PURE__*/_react["default"].createElement(_oClassify["default"], {
|
|
176
|
-
editable: editable,
|
|
177
166
|
okrId: okrInfo.workId,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
})), /*#__PURE__*/_react["default"].createElement("section", {
|
|
167
|
+
setOkrName: setOkrName
|
|
168
|
+
}), /*#__PURE__*/_react["default"].createElement("section", {
|
|
181
169
|
className: "".concat(precls, "__action")
|
|
182
170
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
183
171
|
style: {
|
|
184
|
-
position:
|
|
172
|
+
position: 'relative',
|
|
185
173
|
left: -4
|
|
186
174
|
}
|
|
187
175
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -193,8 +181,15 @@ function Header(props) {
|
|
|
193
181
|
onTypeChange: setGeneralOkrType
|
|
194
182
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
195
183
|
className: "".concat(precls, "__action-item")
|
|
184
|
+
}, /*#__PURE__*/_react["default"].createElement(_oClassify["default"], {
|
|
185
|
+
editable: editable,
|
|
186
|
+
okrId: okrInfo.workId,
|
|
187
|
+
okrClassify: generalOkrClassify,
|
|
188
|
+
onOkrClassifyChange: setGeneralOkrClassify
|
|
189
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
190
|
+
className: "".concat(precls, "__action-item")
|
|
196
191
|
}, /*#__PURE__*/_react["default"].createElement(_oCycle["default"], {
|
|
197
|
-
editable: editable && (0, _helper.getApprovalOkr)(approvalSetting,
|
|
192
|
+
editable: editable && (0, _helper.getApprovalOkr)(approvalSetting, 'changeOkrTime', okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.applyState, okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes),
|
|
198
193
|
okrId: okrInfo.workId
|
|
199
194
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
200
195
|
className: "".concat(precls, "__action-item")
|
|
@@ -206,12 +201,7 @@ function Header(props) {
|
|
|
206
201
|
}))), /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
|
|
207
202
|
okrInfo: okrInfo,
|
|
208
203
|
renderContent: renderContent
|
|
209
|
-
}))
|
|
210
|
-
okrName: okrName,
|
|
211
|
-
okrId: okrInfo.workId,
|
|
212
|
-
setOkrName: setOkrName,
|
|
213
|
-
setIsEdit: setIsEdit
|
|
214
|
-
})));
|
|
204
|
+
}))));
|
|
215
205
|
}
|
|
216
206
|
|
|
217
207
|
var _default = Header;
|
|
@@ -0,0 +1,152 @@
|
|
|
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 _getLocale = require("../../../../utils/getLocale");
|
|
15
|
+
|
|
16
|
+
var _popup = _interopRequireDefault(require("../../../../components/popup"));
|
|
17
|
+
|
|
18
|
+
var _toast = _interopRequireDefault(require("../../../../components/toast"));
|
|
19
|
+
|
|
20
|
+
var _requestApis = require("../../request-apis");
|
|
21
|
+
|
|
22
|
+
require("./index.css");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
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); }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
31
|
+
|
|
32
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
33
|
+
|
|
34
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
|
+
|
|
36
|
+
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."); }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
|
+
|
|
46
|
+
var OClassify = function OClassify(props) {
|
|
47
|
+
var editable = props.editable,
|
|
48
|
+
okrId = props.okrId,
|
|
49
|
+
okrClassify = props.okrClassify,
|
|
50
|
+
onOkrClassifyChange = props.onOkrClassifyChange;
|
|
51
|
+
|
|
52
|
+
var _useState = (0, _react.useState)(false),
|
|
53
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
54
|
+
visible = _useState2[0],
|
|
55
|
+
setVisible = _useState2[1];
|
|
56
|
+
|
|
57
|
+
var updateClassifyHandler = /*#__PURE__*/function () {
|
|
58
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(select) {
|
|
59
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
60
|
+
while (1) {
|
|
61
|
+
switch (_context.prev = _context.next) {
|
|
62
|
+
case 0:
|
|
63
|
+
if (!(select == okrClassify)) {
|
|
64
|
+
_context.next = 3;
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
setVisible(false);
|
|
69
|
+
return _context.abrupt("return");
|
|
70
|
+
|
|
71
|
+
case 3:
|
|
72
|
+
_context.next = 5;
|
|
73
|
+
return (0, _requestApis.updateClassify)({
|
|
74
|
+
okrId: okrId,
|
|
75
|
+
okrClassify: select
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
case 5:
|
|
79
|
+
if (onOkrClassifyChange) {
|
|
80
|
+
onOkrClassifyChange(select);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
setVisible(false);
|
|
84
|
+
|
|
85
|
+
_toast["default"].Success('修改成功');
|
|
86
|
+
|
|
87
|
+
case 8:
|
|
88
|
+
case "end":
|
|
89
|
+
return _context.stop();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}, _callee);
|
|
93
|
+
}));
|
|
94
|
+
|
|
95
|
+
return function updateClassifyHandler(_x) {
|
|
96
|
+
return _ref.apply(this, arguments);
|
|
97
|
+
};
|
|
98
|
+
}();
|
|
99
|
+
|
|
100
|
+
var renderTrigger = (0, _react.useMemo)(function () {
|
|
101
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
102
|
+
className: (0, _classnames["default"])('okr-drawer-header__classify', {
|
|
103
|
+
'okr-drawer-header__classify--editable': editable,
|
|
104
|
+
'tu-icon-nuo': okrClassify == 1,
|
|
105
|
+
'tu-icon-yuan': okrClassify == 2
|
|
106
|
+
}),
|
|
107
|
+
onClick: function onClick() {
|
|
108
|
+
return editable && setVisible(true);
|
|
109
|
+
}
|
|
110
|
+
}, okrClassify == 1 ? (0, _getLocale.getLocale)('OKR_MyO_Es_Commitment') : (0, _getLocale.getLocale)('OKR_MyO_Es_Visiontype'));
|
|
111
|
+
}, [okrClassify, editable]);
|
|
112
|
+
|
|
113
|
+
if (editable && okrClassify !== 0) {
|
|
114
|
+
var popContent = /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
|
+
className: "okr-drawer-header__classify-popup"
|
|
116
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
|
+
className: (0, _classnames["default"])('okr-drawer-header__classify-popup-item', {
|
|
118
|
+
active: okrClassify === 1
|
|
119
|
+
}),
|
|
120
|
+
onClick: function onClick() {
|
|
121
|
+
return updateClassifyHandler(1);
|
|
122
|
+
}
|
|
123
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Es_Commitment')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
|
+
className: (0, _classnames["default"])('okr-drawer-header__classify-popup-item', {
|
|
125
|
+
active: okrClassify === 2
|
|
126
|
+
}),
|
|
127
|
+
onClick: function onClick() {
|
|
128
|
+
return updateClassifyHandler(2);
|
|
129
|
+
}
|
|
130
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Es_Visiontype')));
|
|
131
|
+
|
|
132
|
+
return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
133
|
+
popup: popContent,
|
|
134
|
+
popupVisible: visible,
|
|
135
|
+
placement: "bottomLeft",
|
|
136
|
+
popupAlign: {
|
|
137
|
+
offset: [48, 0],
|
|
138
|
+
overflow: {
|
|
139
|
+
adjustX: true,
|
|
140
|
+
adjustY: true
|
|
141
|
+
},
|
|
142
|
+
targetOffset: [0, 0]
|
|
143
|
+
}
|
|
144
|
+
}, renderTrigger);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (okrClassify === 0) return null;
|
|
148
|
+
return renderTrigger;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
var _default = OClassify;
|
|
152
|
+
exports["default"] = _default;
|
|
@@ -13,6 +13,8 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
13
13
|
|
|
14
14
|
var _tools = require("../../../../utils/tools");
|
|
15
15
|
|
|
16
|
+
var _openData = require("../../../../utils/open-data");
|
|
17
|
+
|
|
16
18
|
var _helper = require("../../helper");
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -28,7 +30,7 @@ function OName(props) {
|
|
|
28
30
|
OkrAndKrApprovalTypes = props.OkrAndKrApprovalTypes;
|
|
29
31
|
|
|
30
32
|
var handleEditClick = function handleEditClick() {
|
|
31
|
-
if ((0, _helper.getApprovalOkr)(approvalSetting,
|
|
33
|
+
if ((0, _helper.getApprovalOkr)(approvalSetting, 'changeOkrName', applyState, OkrAndKrApprovalTypes)) {
|
|
32
34
|
if (editable) {
|
|
33
35
|
setIsEdit(true);
|
|
34
36
|
}
|
|
@@ -36,15 +38,15 @@ function OName(props) {
|
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
39
|
-
className: (0, _classnames["default"])(
|
|
40
|
-
|
|
41
|
+
className: (0, _classnames["default"])('okr-drawer-header__title', {
|
|
42
|
+
'okr-drawer-header__title--editable': editable
|
|
41
43
|
})
|
|
42
44
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
43
45
|
className: "okr-drawer-header__name",
|
|
44
46
|
onClick: handleEditClick
|
|
45
|
-
}, (0, _tools.htmlDecodeByRegExp)(okrName)), children, Number(okrStatus) === 2 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
47
|
+
}, (0, _openData.parseString)((0, _tools.htmlDecodeByRegExp)(okrName))), children, Number(okrStatus) === 2 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
46
48
|
className: "okr-drawer-header__over-tag"
|
|
47
|
-
}, (0, _getLocale.getLocale)(
|
|
49
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Butt_Hasended')));
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
var _default = OName;
|
|
@@ -29,6 +29,8 @@ var _getLocale = require("../../../../../../utils/getLocale");
|
|
|
29
29
|
|
|
30
30
|
var _bsGlobal = require("../../../../../../utils/bs-global");
|
|
31
31
|
|
|
32
|
+
var _openData = require("../../../../../../utils/open-data");
|
|
33
|
+
|
|
32
34
|
require("./index.css");
|
|
33
35
|
|
|
34
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -186,7 +188,7 @@ var EKrNode = function EKrNode(props) {
|
|
|
186
188
|
}
|
|
187
189
|
}
|
|
188
190
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
189
|
-
text: title,
|
|
191
|
+
text: (0, _openData.parseString)(title),
|
|
190
192
|
minusWidth: 150,
|
|
191
193
|
isPercent: true
|
|
192
194
|
})), okrInfo.status === 1 && (isParticipant || hasRelativeAuth) ? /*#__PURE__*/_react["default"].createElement("div", {
|