@titaui/pc 1.11.52-beta.2 → 1.11.52-beta.20
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 +31 -20
- package/lib/components/create-okr-modal/fields/okr-parent.js +7 -5
- package/lib/components/create-okr-modal/index.js +197 -132
- 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 +54 -57
- package/lib/components/create-okr-modal/style.js +5 -5
- package/lib/components/drop-selector/index.js +1 -2
- package/lib/components/dynamic/components/title/index.js +1 -1
- package/lib/components/dynamic/constant.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +17 -17
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +9 -9
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +3 -1
- package/lib/components/eReport/eReportLists/reportList.js +29 -30
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +11 -9
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +11 -9
- package/lib/components/nav-top/components/menu/index.js +18 -16
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +3 -3
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
- package/lib/components/okr-detail/components/header/edit-name.js +76 -39
- package/lib/components/okr-detail/components/header/index.css +122 -41
- package/lib/components/okr-detail/components/header/index.js +45 -48
- package/lib/components/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 +81 -43
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +66 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +174 -64
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +15 -13
- package/lib/components/okr-detail/detail-header/index.js +11 -5
- 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/okr-list/index.css +9 -0
- package/lib/components/okr-detail/okr-list/index.js +25 -25
- package/lib/components/okr-detail/request-apis.js +73 -69
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +34 -32
- package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-flow/child-node/kr-node.js +3 -1
- package/lib/components/okr-flow/child-node/work-node.js +3 -1
- package/lib/components/okr-flow/export-modal/index.js +26 -16
- 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-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/progress/circle-progress/index.css +2 -0
- package/lib/components/search-input/index.css +1 -1
- package/lib/components/search-key-handle/index.js +12 -10
- 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 +267 -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 +131 -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 +191 -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/task-relation-modal/search/task-relation.js +83 -0
- package/lib/components/task-relation-modal/search/task-status-select.js +87 -0
- package/lib/components/task-relation-modal/search/work-relation.js +83 -0
- 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 -1
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +4 -4
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +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/task-tree/task-item-node/index.css +2 -2
- package/lib/components/tooltip/index.js +3 -0
- package/lib/components/tooltip/tooltip-rows/index.css +26 -0
- package/lib/components/tooltip/tooltip-rows/index.js +106 -0
- package/lib/components/upload/components/uploadedPreview.js +18 -18
- package/lib/components/upload/index.js +57 -29
- package/lib/components/user-selector/category-selector-panel/index.js +6 -1
- package/lib/components/user-selector/category-selector-panel/subordinate-tree.js +61 -0
- 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 +16 -15
- 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 +32 -12
- 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/userSelector/components/SingleMode.js +7 -5
- package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
- package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
- package/lib/pages/new-okr-list/header/index.js +16 -18
- package/lib/utils/auth.js +12 -0
- package/lib/utils/hooks.js +19 -5
- package/lib/utils/open-data.js +214 -66
- package/lib/utils/planDataJson.js +11115 -0
- package/lib/utils/tita-okr-cycle.js +24 -0
- package/package.json +2 -1
|
@@ -11,6 +11,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var _richEditor = require("@titaui/rich-editor");
|
|
15
|
+
|
|
16
|
+
var _titaUi = require("tita-ui");
|
|
17
|
+
|
|
14
18
|
var _bsGlobal = require("../../../../../../utils/bs-global");
|
|
15
19
|
|
|
16
20
|
var _avatar = _interopRequireDefault(require("../../../../../avatar"));
|
|
@@ -27,7 +31,7 @@ var _toast = _interopRequireDefault(require("../../../../../toast"));
|
|
|
27
31
|
|
|
28
32
|
var _dialogConfirm = _interopRequireWildcard(require("../../../../../dialog-confirm"));
|
|
29
33
|
|
|
30
|
-
var
|
|
34
|
+
var _errorTip = _interopRequireDefault(require("../../../../../tooltip/error-tip"));
|
|
31
35
|
|
|
32
36
|
var _requestApis = require("../../../../request-apis");
|
|
33
37
|
|
|
@@ -51,6 +55,10 @@ var _helper = require("../../../../helper");
|
|
|
51
55
|
|
|
52
56
|
var _getLocale = require("../../../../../../utils/getLocale");
|
|
53
57
|
|
|
58
|
+
var _openData = require("../../../../../../utils/open-data");
|
|
59
|
+
|
|
60
|
+
var _i18nFrontTranslate = require("../../../../../../utils/i18n-front-translate");
|
|
61
|
+
|
|
54
62
|
require("./index.css");
|
|
55
63
|
|
|
56
64
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -84,9 +92,9 @@ function OkrRowColumn(_ref) {
|
|
|
84
92
|
marginLeft = _ref$marginLeft === void 0 ? 0 : _ref$marginLeft;
|
|
85
93
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
86
94
|
style: {
|
|
87
|
-
display:
|
|
95
|
+
display: 'inline-block',
|
|
88
96
|
width: width,
|
|
89
|
-
textAlign:
|
|
97
|
+
textAlign: 'left',
|
|
90
98
|
marginLeft: marginLeft
|
|
91
99
|
}
|
|
92
100
|
}, children);
|
|
@@ -98,6 +106,8 @@ function _default(props) {
|
|
|
98
106
|
title = props.title,
|
|
99
107
|
key = props.key,
|
|
100
108
|
canEditOkr = props.canEditOkr;
|
|
109
|
+
var mileStoneName = data.mileStoneName,
|
|
110
|
+
mileStoneNameRichText = data.mileStoneNameRichText;
|
|
101
111
|
|
|
102
112
|
var _useContext = (0, _react.useContext)(_context2.CommonContext),
|
|
103
113
|
refreshAll = _useContext.refreshAll,
|
|
@@ -109,53 +119,68 @@ function _default(props) {
|
|
|
109
119
|
confidence = _useState2[0],
|
|
110
120
|
setConfidence = _useState2[1];
|
|
111
121
|
|
|
112
|
-
var _useState3 = (0, _react.useState)(
|
|
122
|
+
var _useState3 = (0, _react.useState)(''),
|
|
113
123
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
114
|
-
|
|
115
|
-
|
|
124
|
+
errorTip = _useState4[0],
|
|
125
|
+
setErrorTip = _useState4[1];
|
|
116
126
|
|
|
117
|
-
var _useState5 = (0, _react.useState)(
|
|
127
|
+
var _useState5 = (0, _react.useState)(data.user || {}),
|
|
118
128
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
119
|
-
|
|
120
|
-
|
|
129
|
+
user = _useState6[0],
|
|
130
|
+
setUser = _useState6[1];
|
|
121
131
|
|
|
122
|
-
var _useState7 = (0, _react.useState)(
|
|
132
|
+
var _useState7 = (0, _react.useState)(false),
|
|
123
133
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
124
|
-
|
|
125
|
-
|
|
134
|
+
editWightVisible = _useState8[0],
|
|
135
|
+
setEditWightVisible = _useState8[1];
|
|
126
136
|
|
|
127
137
|
var _useState9 = (0, _react.useState)(false),
|
|
128
138
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
129
|
-
|
|
130
|
-
|
|
139
|
+
editing = _useState10[0],
|
|
140
|
+
setEditing = _useState10[1];
|
|
131
141
|
|
|
132
|
-
var _useState11 = (0, _react.useState)(
|
|
142
|
+
var _useState11 = (0, _react.useState)(data.evaluateValue),
|
|
133
143
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
134
|
-
|
|
135
|
-
|
|
144
|
+
evaluateValue = _useState12[0],
|
|
145
|
+
setEvaluateValue = _useState12[1];
|
|
136
146
|
|
|
137
|
-
var _useState13 = (0, _react.useState)(
|
|
147
|
+
var _useState13 = (0, _react.useState)(false),
|
|
138
148
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
139
|
-
|
|
140
|
-
|
|
149
|
+
krModalVsible = _useState14[0],
|
|
150
|
+
setKrModalVsible = _useState14[1];
|
|
151
|
+
|
|
152
|
+
var _useState15 = (0, _react.useState)(false),
|
|
153
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
154
|
+
deleteModalVisible = _useState16[0],
|
|
155
|
+
setDeleteModalVisible = _useState16[1];
|
|
156
|
+
|
|
157
|
+
var _useState17 = (0, _react.useState)({
|
|
158
|
+
pureText: mileStoneName,
|
|
159
|
+
pureTextExcludeAt: mileStoneName,
|
|
160
|
+
richText: mileStoneNameRichText ? JSON.parse(mileStoneNameRichText) : (0, _richEditor.TitaRichEditorInitTextState)(mileStoneName),
|
|
161
|
+
mentionUsers: []
|
|
162
|
+
}),
|
|
163
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
164
|
+
krNameData = _useState18[0],
|
|
165
|
+
setKrNameData = _useState18[1];
|
|
141
166
|
|
|
142
|
-
var
|
|
143
|
-
|
|
144
|
-
showHeart =
|
|
167
|
+
var _useState19 = (0, _react.useState)((0, _bsGlobal.getBSGlobal)('OkrAdvancedSetting').KRSetting.ShowKrConfidence),
|
|
168
|
+
_useState20 = _slicedToArray(_useState19, 1),
|
|
169
|
+
showHeart = _useState20[0]; // 高级功能: 关键成果信心指数
|
|
145
170
|
|
|
146
171
|
|
|
147
|
-
var
|
|
148
|
-
|
|
149
|
-
showKrWeight =
|
|
172
|
+
var _useState21 = (0, _react.useState)((0, _bsGlobal.getBSGlobal)('OkrAdvancedSetting').KRSetting.KrWeight),
|
|
173
|
+
_useState22 = _slicedToArray(_useState21, 1),
|
|
174
|
+
showKrWeight = _useState22[0]; // 高级功能: 关见成果权重
|
|
150
175
|
|
|
151
176
|
|
|
152
|
-
var
|
|
153
|
-
|
|
154
|
-
isEvaluate =
|
|
155
|
-
setIsEvaluate =
|
|
177
|
+
var _useState23 = (0, _react.useState)(data.isEvaluate),
|
|
178
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
179
|
+
isEvaluate = _useState24[0],
|
|
180
|
+
setIsEvaluate = _useState24[1]; // 权限 & 非结束目标
|
|
156
181
|
|
|
157
182
|
|
|
158
|
-
var
|
|
183
|
+
var _useState25 = (0, _react.useState)(function () {
|
|
159
184
|
var hasAuth = new _auth.KRAuth({
|
|
160
185
|
user: data.user,
|
|
161
186
|
createUserId: data.createUserId
|
|
@@ -163,12 +188,18 @@ function _default(props) {
|
|
|
163
188
|
var livetime = okrInfo.status != 2;
|
|
164
189
|
return hasAuth && livetime;
|
|
165
190
|
}),
|
|
166
|
-
|
|
167
|
-
krCanEdit =
|
|
191
|
+
_useState26 = _slicedToArray(_useState25, 1),
|
|
192
|
+
krCanEdit = _useState26[0];
|
|
168
193
|
|
|
194
|
+
var mentionInputRef = (0, _react.useRef)();
|
|
169
195
|
(0, _react.useEffect)(function () {
|
|
170
|
-
|
|
171
|
-
|
|
196
|
+
setKrNameData({
|
|
197
|
+
pureText: mileStoneName,
|
|
198
|
+
pureTextExcludeAt: mileStoneName,
|
|
199
|
+
richText: data.mileStoneNameRichText ? JSON.parse(data.mileStoneNameRichText) : (0, _richEditor.TitaRichEditorInitTextState)(mileStoneName),
|
|
200
|
+
mentionUsers: []
|
|
201
|
+
});
|
|
202
|
+
}, [mileStoneName]);
|
|
172
203
|
|
|
173
204
|
var _useContext2 = (0, _react.useContext)(_context2.OkrListContext),
|
|
174
205
|
updateKrs = _useContext2.updateKrs;
|
|
@@ -190,9 +221,7 @@ function _default(props) {
|
|
|
190
221
|
kr: data,
|
|
191
222
|
confidenceIndex: level
|
|
192
223
|
}).then(function () {
|
|
193
|
-
_toast["default"].Success(
|
|
194
|
-
top: 60
|
|
195
|
-
});
|
|
224
|
+
_toast["default"].Success('修改成功');
|
|
196
225
|
});
|
|
197
226
|
};
|
|
198
227
|
|
|
@@ -214,7 +243,7 @@ function _default(props) {
|
|
|
214
243
|
progressDescription = val.progressDescription,
|
|
215
244
|
riskLevel = val.riskLevel,
|
|
216
245
|
updateProgressWay = val.updateProgressWay;
|
|
217
|
-
progress = progress.replace(/%/,
|
|
246
|
+
progress = progress.replace(/%/, '');
|
|
218
247
|
(0, _requestApis.updateKrProgressAndStatus)({
|
|
219
248
|
krId: data.mileStoneId,
|
|
220
249
|
progress: Number(progress),
|
|
@@ -223,7 +252,7 @@ function _default(props) {
|
|
|
223
252
|
updateProgressWay: updateProgressWay
|
|
224
253
|
}).then(function (res) {
|
|
225
254
|
if (res.Code == 1) {
|
|
226
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
255
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
227
256
|
|
|
228
257
|
refreshAll();
|
|
229
258
|
updateKrs();
|
|
@@ -251,7 +280,7 @@ function _default(props) {
|
|
|
251
280
|
setDeleteModalVisible(false);
|
|
252
281
|
|
|
253
282
|
if (!Message) {
|
|
254
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
283
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
255
284
|
|
|
256
285
|
setTimeout(function () {
|
|
257
286
|
refreshAll();
|
|
@@ -274,13 +303,62 @@ function _default(props) {
|
|
|
274
303
|
};
|
|
275
304
|
}();
|
|
276
305
|
|
|
277
|
-
var
|
|
306
|
+
var onInputKeyDownHandler = function onInputKeyDownHandler(e) {
|
|
307
|
+
if (e.keyCode !== 13) return;
|
|
308
|
+
onKrNameChangeHandler();
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
var validateKrName = function validateKrName(data) {
|
|
312
|
+
var _pureTextExcludeAt$tr;
|
|
313
|
+
|
|
314
|
+
var pureTextExcludeAt = data.pureTextExcludeAt;
|
|
315
|
+
var krNameLen = pureTextExcludeAt === null || pureTextExcludeAt === void 0 ? void 0 : (_pureTextExcludeAt$tr = pureTextExcludeAt.trim()) === null || _pureTextExcludeAt$tr === void 0 ? void 0 : _pureTextExcludeAt$tr.length;
|
|
316
|
+
|
|
317
|
+
if (krNameLen === 0) {
|
|
318
|
+
setErrorTip('KR 名称不能为空');
|
|
319
|
+
return false;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
if (krNameLen > 5000) {
|
|
323
|
+
setErrorTip((0, _i18nFrontTranslate.inputWordTrans)(krNameLen, 5000));
|
|
324
|
+
return false;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
setErrorTip('');
|
|
328
|
+
return true;
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
var onEditorChange = function onEditorChange(data) {
|
|
332
|
+
setKrNameData(function () {
|
|
333
|
+
return data;
|
|
334
|
+
});
|
|
335
|
+
validateKrName(data);
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
var onKrNameChangeHandler = function onKrNameChangeHandler() {
|
|
339
|
+
var mentionUsers = krNameData.mentionUsers,
|
|
340
|
+
pureText = krNameData.pureText,
|
|
341
|
+
richText = krNameData.richText;
|
|
342
|
+
|
|
343
|
+
if (data.mileStoneName == pureText) {
|
|
344
|
+
setEditing(false);
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
var hasError = !validateKrName(krNameData);
|
|
349
|
+
if (hasError) return;
|
|
278
350
|
(0, _requestApis.updateKrName)({
|
|
279
|
-
mileStoneName:
|
|
351
|
+
mileStoneName: pureText,
|
|
352
|
+
mileStoneNameRichText: richText,
|
|
353
|
+
aiteUsers: mentionUsers === null || mentionUsers === void 0 ? void 0 : mentionUsers.map(function (user) {
|
|
354
|
+
return user.mentionId;
|
|
355
|
+
}),
|
|
280
356
|
workId: data.workId,
|
|
281
357
|
workMileStoneId: data.mileStoneId
|
|
282
|
-
}).then(function () {
|
|
283
|
-
|
|
358
|
+
}).then(function (res) {
|
|
359
|
+
setEditing(false);
|
|
360
|
+
|
|
361
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
284
362
|
});
|
|
285
363
|
};
|
|
286
364
|
|
|
@@ -297,11 +375,26 @@ function _default(props) {
|
|
|
297
375
|
};
|
|
298
376
|
|
|
299
377
|
var onTitleTextClickHandler = function onTitleTextClickHandler() {
|
|
300
|
-
|
|
378
|
+
if (editing) return;
|
|
379
|
+
|
|
380
|
+
_drawerManager["default"].open('krDetail', {
|
|
301
381
|
krId: data.mileStoneId
|
|
302
382
|
});
|
|
303
383
|
};
|
|
304
384
|
|
|
385
|
+
var triggerEdit = function triggerEdit(e) {
|
|
386
|
+
e.stopPropagation();
|
|
387
|
+
e.nativeEvent.stopImmediatePropagation();
|
|
388
|
+
setEditing(true);
|
|
389
|
+
setTimeout(function () {
|
|
390
|
+
var _mentionInputRef$curr;
|
|
391
|
+
|
|
392
|
+
// @ts-ignore
|
|
393
|
+
(_mentionInputRef$curr = mentionInputRef.current) === null || _mentionInputRef$curr === void 0 ? void 0 : _mentionInputRef$curr.methods().focus();
|
|
394
|
+
}, 0);
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
var krNameEditable = krCanEdit && (0, _helper.getApprovalKr)(approvalSetting, 'changeOkrName', okrInfo.applyState, okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes, data === null || data === void 0 ? void 0 : data.KrApprovalTypes);
|
|
305
398
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
306
399
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node"))
|
|
307
400
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -312,16 +405,33 @@ function _default(props) {
|
|
|
312
405
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-h1"))
|
|
313
406
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
314
407
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-prefix"))
|
|
315
|
-
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
408
|
+
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement(_errorTip["default"], {
|
|
409
|
+
overlay: /*#__PURE__*/_react["default"].createElement("span", {
|
|
410
|
+
style: {
|
|
411
|
+
color: '#f05e5e'
|
|
412
|
+
}
|
|
413
|
+
}, errorTip),
|
|
414
|
+
visible: editing && errorTip.length > 0,
|
|
415
|
+
placement: "top"
|
|
416
|
+
}, /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
|
|
417
|
+
content: editing ? '' : (0, _openData.parseString)(krNameData.pureText)
|
|
418
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
419
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-title"), _defineProperty({}, "".concat(_precls["default"], "__kr-node-title--editing"), editing)),
|
|
420
|
+
onClick: onTitleTextClickHandler
|
|
421
|
+
}, /*#__PURE__*/_react["default"].createElement(_richEditor.TitaInlineRichEditor, {
|
|
422
|
+
editable: editing,
|
|
423
|
+
initialState: krNameData.richText,
|
|
424
|
+
onDocChange: onEditorChange,
|
|
322
425
|
onBlur: onKrNameChangeHandler,
|
|
323
|
-
|
|
324
|
-
|
|
426
|
+
onKeyDown: onInputKeyDownHandler,
|
|
427
|
+
placeholder: "KR\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",
|
|
428
|
+
ref: mentionInputRef
|
|
429
|
+
}), krNameEditable && !editing && /*#__PURE__*/_react["default"].createElement("span", {
|
|
430
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__text-icon"))
|
|
431
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
432
|
+
className: "tu-icon-bianji2",
|
|
433
|
+
onClick: triggerEdit
|
|
434
|
+
})))))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
325
435
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-h2"))
|
|
326
436
|
}, /*#__PURE__*/_react["default"].createElement(OkrRowColumn, {
|
|
327
437
|
width: 68
|
|
@@ -348,7 +458,7 @@ function _default(props) {
|
|
|
348
458
|
marginLeft: 16
|
|
349
459
|
}, /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
350
460
|
data: data,
|
|
351
|
-
editable: krCanEdit && (0, _helper.getApprovalKr)(approvalSetting,
|
|
461
|
+
editable: krCanEdit && (0, _helper.getApprovalKr)(approvalSetting, 'changeOkrTime', okrInfo.applyState, okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes, data === null || data === void 0 ? void 0 : data.KrApprovalTypes)
|
|
352
462
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
353
463
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-actions"))
|
|
354
464
|
}, showHeart && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -366,9 +476,9 @@ function _default(props) {
|
|
|
366
476
|
percent: data.progress,
|
|
367
477
|
linear: true,
|
|
368
478
|
linearId: data.mileStoneId,
|
|
369
|
-
linearStartColor: (0, _utils.getProcessColor)(data.riskLevel,
|
|
370
|
-
linearEndColor: (0, _utils.getProcessColor)(data.riskLevel,
|
|
371
|
-
backgroundColor: (0, _utils.getProcessColor)(data.riskLevel,
|
|
479
|
+
linearStartColor: (0, _utils.getProcessColor)(data.riskLevel, 'linearStartColor', okrInfo.status),
|
|
480
|
+
linearEndColor: (0, _utils.getProcessColor)(data.riskLevel, 'linearEndColor', okrInfo.status),
|
|
481
|
+
backgroundColor: (0, _utils.getProcessColor)(data.riskLevel, 'backgroundColor', okrInfo.status)
|
|
372
482
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
373
483
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-score"))
|
|
374
484
|
}, /*#__PURE__*/_react["default"].createElement(_krScoreEditor["default"], {
|
|
@@ -394,7 +504,7 @@ function _default(props) {
|
|
|
394
504
|
onOk: onEditWightOkHandler
|
|
395
505
|
}), /*#__PURE__*/_react["default"].createElement(_okrProgressModal["default"], {
|
|
396
506
|
okrInfo: data,
|
|
397
|
-
title: (0, _getLocale.getLocale)(
|
|
507
|
+
title: (0, _getLocale.getLocale)('OKR_MyO_Title_UpdateKR'),
|
|
398
508
|
visible: krModalVsible,
|
|
399
509
|
onClose: function onClose() {
|
|
400
510
|
return setKrModalVsible(false);
|
|
@@ -407,15 +517,15 @@ function _default(props) {
|
|
|
407
517
|
type: "warning"
|
|
408
518
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
409
519
|
type: "title"
|
|
410
|
-
}, (0, _getLocale.getLocale)(
|
|
520
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_KRP_Deletekey')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
411
521
|
type: "content"
|
|
412
|
-
}, (0, _getLocale.getLocale)(
|
|
522
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_KRP_Thekeyachieve')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
|
|
413
523
|
type: "button",
|
|
414
524
|
onClick: function onClick() {
|
|
415
525
|
return setDeleteModalVisible(false);
|
|
416
526
|
}
|
|
417
|
-
}, (0, _getLocale.getLocale)(
|
|
527
|
+
}, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.WarningButton, {
|
|
418
528
|
type: "button",
|
|
419
529
|
onClick: onDeleteKrHandler
|
|
420
|
-
}, (0, _getLocale.getLocale)(
|
|
530
|
+
}, (0, _getLocale.getLocale)('Mod_Delete'))));
|
|
421
531
|
}
|
|
@@ -27,7 +27,7 @@ var _oClassify = _interopRequireDefault(require("../../../o-classify"));
|
|
|
27
27
|
|
|
28
28
|
var _precls = _interopRequireDefault(require("../../precls"));
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _openData = require("../../../../../../utils/open-data");
|
|
31
31
|
|
|
32
32
|
var _avatar = _interopRequireDefault(require("../../../../../avatar"));
|
|
33
33
|
|
|
@@ -61,10 +61,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
61
61
|
|
|
62
62
|
var getSeasonTectMap = function getSeasonTectMap() {
|
|
63
63
|
return {
|
|
64
|
-
1:
|
|
65
|
-
2:
|
|
66
|
-
3:
|
|
67
|
-
4:
|
|
64
|
+
1: '一',
|
|
65
|
+
2: '二',
|
|
66
|
+
3: '三',
|
|
67
|
+
4: '四'
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
|
|
@@ -91,7 +91,7 @@ function _default(props) {
|
|
|
91
91
|
_useState4 = _slicedToArray(_useState3, 1),
|
|
92
92
|
user = _useState4[0];
|
|
93
93
|
|
|
94
|
-
var _useState5 = (0, _react.useState)(((_getBSGlobal = (0, _bsGlobal.getBSGlobal)(
|
|
94
|
+
var _useState5 = (0, _react.useState)(((_getBSGlobal = (0, _bsGlobal.getBSGlobal)('OkrAdvancedSetting')) === null || _getBSGlobal === void 0 ? void 0 : (_getBSGlobal$KRSettin = _getBSGlobal.KRSetting) === null || _getBSGlobal$KRSettin === void 0 ? void 0 : _getBSGlobal$KRSettin.OKrWeight) || false),
|
|
95
95
|
_useState6 = _slicedToArray(_useState5, 1),
|
|
96
96
|
OKrWeightSetting = _useState6[0];
|
|
97
97
|
|
|
@@ -151,11 +151,11 @@ function _default(props) {
|
|
|
151
151
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
152
152
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__o-child-node-title")),
|
|
153
153
|
onClick: function onClick() {
|
|
154
|
-
_drawerManager["default"].open(
|
|
154
|
+
_drawerManager["default"].open('okrDetail', {
|
|
155
155
|
okrId: data.workId
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
}, title), /*#__PURE__*/_react["default"].createElement(_oClassify["default"], {
|
|
158
|
+
}, (0, _openData.parseString)(title)), /*#__PURE__*/_react["default"].createElement(_oClassify["default"], {
|
|
159
159
|
editable: false,
|
|
160
160
|
okrClassify: data.okrClassify,
|
|
161
161
|
okrId: data.workId
|
|
@@ -196,7 +196,7 @@ function _default(props) {
|
|
|
196
196
|
percent: data.progress,
|
|
197
197
|
width: 40,
|
|
198
198
|
backgroundColor: "#F7F8FA"
|
|
199
|
-
}, _defineProperty(_React$createElement, "width", 40), _defineProperty(_React$createElement, "textColor", data.status === 2 ?
|
|
199
|
+
}, _defineProperty(_React$createElement, "width", 40), _defineProperty(_React$createElement, "textColor", data.status === 2 ? '#89919f' : _utils.OkrRiskMapping[data.manualRiskLevel].textColor), _defineProperty(_React$createElement, "color", data.status === 2 ? 'linear-gradient(270deg, #BFC7D5, #E1E5EC)' : _utils.OkrRiskMapping[data.manualRiskLevel].line), _React$createElement))))), /*#__PURE__*/_react["default"].createElement(_editChildOkrWeight["default"], {
|
|
200
200
|
okrId: okrInfo.workId,
|
|
201
201
|
visible: editVisible,
|
|
202
202
|
onCancel: function onCancel() {
|
|
@@ -39,6 +39,8 @@ var _utils = require("../../../../../progress/utils");
|
|
|
39
39
|
|
|
40
40
|
var _getLocale = require("../../../../../../utils/getLocale");
|
|
41
41
|
|
|
42
|
+
var _openData = require("../../../../../../utils/open-data");
|
|
43
|
+
|
|
42
44
|
require("./index.css");
|
|
43
45
|
|
|
44
46
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -65,10 +67,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
65
67
|
|
|
66
68
|
var getSeasonTectMap = function getSeasonTectMap() {
|
|
67
69
|
return {
|
|
68
|
-
1:
|
|
69
|
-
2:
|
|
70
|
-
3:
|
|
71
|
-
4:
|
|
70
|
+
1: '一',
|
|
71
|
+
2: '二',
|
|
72
|
+
3: '三',
|
|
73
|
+
4: '四'
|
|
72
74
|
};
|
|
73
75
|
};
|
|
74
76
|
|
|
@@ -130,7 +132,7 @@ function _default(props) {
|
|
|
130
132
|
while (1) {
|
|
131
133
|
switch (_context.prev = _context.next) {
|
|
132
134
|
case 0:
|
|
133
|
-
if (!(name ==
|
|
135
|
+
if (!(name == 'modifyParent')) {
|
|
134
136
|
_context.next = 4;
|
|
135
137
|
break;
|
|
136
138
|
}
|
|
@@ -140,7 +142,7 @@ function _default(props) {
|
|
|
140
142
|
break;
|
|
141
143
|
|
|
142
144
|
case 4:
|
|
143
|
-
if (!(name ==
|
|
145
|
+
if (!(name == 'cancelParent')) {
|
|
144
146
|
_context.next = 9;
|
|
145
147
|
break;
|
|
146
148
|
}
|
|
@@ -149,7 +151,7 @@ function _default(props) {
|
|
|
149
151
|
return (0, _requestApis.cancelParentOkr)(okrInfo.workId);
|
|
150
152
|
|
|
151
153
|
case 7:
|
|
152
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
154
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
153
155
|
|
|
154
156
|
removeParent();
|
|
155
157
|
|
|
@@ -179,11 +181,11 @@ function _default(props) {
|
|
|
179
181
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
180
182
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__o-parent-node-title")),
|
|
181
183
|
onClick: function onClick() {
|
|
182
|
-
_drawerManager["default"].open(
|
|
184
|
+
_drawerManager["default"].open('okrDetail', {
|
|
183
185
|
okrId: data.workId
|
|
184
186
|
});
|
|
185
187
|
}
|
|
186
|
-
}, title), /*#__PURE__*/_react["default"].createElement(_oClassify["default"], {
|
|
188
|
+
}, (0, _openData.parseString)(title)), /*#__PURE__*/_react["default"].createElement(_oClassify["default"], {
|
|
187
189
|
editable: false,
|
|
188
190
|
okrClassify: data.okrClassify,
|
|
189
191
|
okrId: data.workId
|
|
@@ -216,8 +218,8 @@ function _default(props) {
|
|
|
216
218
|
percent: data.progress,
|
|
217
219
|
backgroundColor: "#F7F8FA",
|
|
218
220
|
width: 40,
|
|
219
|
-
textColor: data.status === 2 ?
|
|
220
|
-
color: data.status === 2 ?
|
|
221
|
+
textColor: data.status === 2 ? '#89919f' : _utils.OkrRiskMapping[data.manualRiskLevel].textColor,
|
|
222
|
+
color: data.status === 2 ? 'linear-gradient(270deg, #BFC7D5, #E1E5EC)' : _utils.OkrRiskMapping[data.manualRiskLevel].line
|
|
221
223
|
})), canEditOkr && /*#__PURE__*/_react["default"].createElement("div", {
|
|
222
224
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__o-parent-node-actions"))
|
|
223
225
|
}, /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
|
|
@@ -229,8 +231,8 @@ function _default(props) {
|
|
|
229
231
|
}, /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
230
232
|
icon: "tu-icon-bianji3",
|
|
231
233
|
name: "modifyParent"
|
|
232
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)(
|
|
234
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)('OKR_MyO_Butt_ModifyAlig'))), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
233
235
|
icon: "tu-icon-liebiao-duiqinubiao",
|
|
234
236
|
name: "cancelParent"
|
|
235
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)(
|
|
237
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)('OKR_MyO_Butt_CancelAlig'))))))));
|
|
236
238
|
}
|
|
@@ -35,6 +35,8 @@ var _drawerManager = _interopRequireDefault(require("../../drawer-manager"));
|
|
|
35
35
|
|
|
36
36
|
var _getLocale = require("../../../utils/getLocale");
|
|
37
37
|
|
|
38
|
+
var _openData = require("../../../utils/open-data");
|
|
39
|
+
|
|
38
40
|
require("./index.css");
|
|
39
41
|
|
|
40
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -65,6 +67,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
65
67
|
|
|
66
68
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
67
69
|
|
|
70
|
+
var StrRreg = /@\$(userName|departmentName)\=(.+?)\$(\s|$)/g;
|
|
71
|
+
|
|
68
72
|
function OkrDetailHeader(_ref) {
|
|
69
73
|
var detailInfo = _ref.detailInfo;
|
|
70
74
|
|
|
@@ -394,10 +398,10 @@ function OkrDetailHeader(_ref) {
|
|
|
394
398
|
actionComponent: /*#__PURE__*/_react["default"].createElement(_wechatBtn["default"], {
|
|
395
399
|
id: detailInfo.workId,
|
|
396
400
|
objType: 62,
|
|
397
|
-
name: detailInfo.workName,
|
|
401
|
+
name: detailInfo.workName.replace(StrRreg, ''),
|
|
398
402
|
principalUser: detailInfo.principalUser
|
|
399
403
|
}),
|
|
400
|
-
content: parent
|
|
404
|
+
content: parent && /*#__PURE__*/_react["default"].createElement("span", {
|
|
401
405
|
className: "okr-detail-head-parent"
|
|
402
406
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
403
407
|
className: "tu-icon-liebiao-duiqinubiao"
|
|
@@ -409,14 +413,16 @@ function OkrDetailHeader(_ref) {
|
|
|
409
413
|
krId: parent.id
|
|
410
414
|
});
|
|
411
415
|
}
|
|
412
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, parent.type === 'okr' ? 'O ' : 'KR '), parent.name))
|
|
413
|
-
onlyShowContent: approveStatusColor ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
416
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, parent.type === 'okr' ? 'O ' : 'KR '), (0, _openData.parseString)(parent.name))),
|
|
417
|
+
onlyShowContent: /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, approveStatusColor ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
414
418
|
className: "okr-detail-header-status",
|
|
415
419
|
style: {
|
|
416
420
|
color: approveStatusColor.color,
|
|
417
421
|
backgroundColor: approveStatusColor.bgColor
|
|
418
422
|
}
|
|
419
|
-
}, (0, _constant.getApproveStatusTextMap)(okrInfo.applyState)) : null
|
|
423
|
+
}, (0, _constant.getApproveStatusTextMap)(okrInfo.applyState)) : null, Number(detailInfo.status) === 2 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
424
|
+
className: "okr-drawer-header__over-tag"
|
|
425
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Butt_Hasended')))
|
|
420
426
|
}), /*#__PURE__*/_react["default"].createElement(_okrShare["default"], {
|
|
421
427
|
visible: shareVisible,
|
|
422
428
|
onClose: closeShareModal,
|
|
@@ -84,12 +84,12 @@ function Elist(props, ref) {
|
|
|
84
84
|
krList = _useState2[0],
|
|
85
85
|
setKrList = _useState2[1];
|
|
86
86
|
|
|
87
|
-
var _useState3 = (0, _react.useState)(hasCondition ? JSON.parse(localStorage.getItem("okrDrawerECheckedStatus".concat(loginUser))) : []),
|
|
87
|
+
var _useState3 = (0, _react.useState)(hasCondition ? JSON.parse(localStorage.getItem("okrDrawerECheckedStatus".concat(loginUser)) || '[]') : []),
|
|
88
88
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
89
89
|
checkedStatus = _useState4[0],
|
|
90
90
|
setCheckedStatus = _useState4[1];
|
|
91
91
|
|
|
92
|
-
var _useState5 = (0, _react.useState)(hasCondition ? JSON.parse(localStorage.getItem("okrDrawerESelectUsers".concat(loginUser))) : []),
|
|
92
|
+
var _useState5 = (0, _react.useState)(hasCondition ? JSON.parse(localStorage.getItem("okrDrawerESelectUsers".concat(loginUser)) || '[]') : []),
|
|
93
93
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
94
94
|
selectUsers = _useState6[0],
|
|
95
95
|
setSelectUsers = _useState6[1];
|
|
@@ -63,3 +63,20 @@
|
|
|
63
63
|
color: #2879ff;
|
|
64
64
|
margin-left: 10px;
|
|
65
65
|
}
|
|
66
|
+
|
|
67
|
+
.okr-list-create-kr__input .tita-rich-editor {
|
|
68
|
+
height: 36px;
|
|
69
|
+
border: 1px solid #2879ff;
|
|
70
|
+
border-radius: 8px;
|
|
71
|
+
box-shadow: 0px 0px 6px 0px rgba(40, 121, 255, 0.3) inset;
|
|
72
|
+
transition: all 0.3s ease;
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.okr-list-create-kr__input .tita-rich-editor .ProseMirror {
|
|
77
|
+
width: calc(100% - 76px);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.okr-list-create-kr__input .tita-rich-editor .ProseMirror p {
|
|
81
|
+
font-size: 14px;
|
|
82
|
+
}
|