@titaui/pc 1.9.15 → 1.9.19
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 +41 -18
- package/lib/components/change-okr-modal/styledComponents.js +1 -1
- package/lib/components/create-okr-modal/fields/index.css +1 -1
- package/lib/components/create-okr-modal/index.css +1 -0
- package/lib/components/create-okr-modal/index.js +2 -2
- package/lib/components/create-okr-modal/request-api.js +1 -7
- package/lib/components/dialog-confirm/index.css +8 -3
- package/lib/components/dialog-confirm/index.js +17 -15
- package/lib/components/drawer/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +1 -3
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +2 -3
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -4
- package/lib/components/dynamic/dynamic-topping/index.css +1 -1
- package/lib/components/grid-layout/okr-align/index.js +1 -1
- package/lib/components/grid-layout/okr-progress/index.js +1 -1
- package/lib/components/img-viewer/index.js +3 -3
- package/lib/components/menus/components/flip-menu-card/index.js +12 -1
- package/lib/components/menus/components/menu-tree/index.css +2 -2
- package/lib/components/menus/export-modules/okr-menus/depart-menus/index.css +1 -1
- package/lib/components/okr-detail/base-info/base-info.js +14 -13
- package/lib/components/okr-detail/base-info/o-desc/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +5 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +10 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +6 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.css +1 -1
- package/lib/components/okr-detail/detail-footer/index.css +1 -1
- package/lib/components/okr-detail/e-list/search-form/fields/index.css +1 -0
- package/lib/components/okr-detail/okr-list/index.css +2 -2
- package/lib/components/okr-progress-modal/helper.js +2 -2
- package/lib/components/okr-progress-modal/index.css +2 -2
- package/lib/components/okrcase-library/index.css +1 -1
- package/lib/components/pagination/select.css +1 -1
- package/lib/components/search-dropdown/index.css +1 -1
- package/lib/components/switch/index.css +1 -1
- package/lib/components/tabs/index.css +1 -1
- package/lib/components/tita-chart/charts/pie.js +3 -1
- package/lib/components/tooltip/tooltip-text/index.js +3 -1
- package/lib/components/version-change-modal/index.css +1 -1
- package/lib/components/weekly-report/index.css +1 -1
- package/lib/components-v1/confirm/index.js +1 -1
- package/lib/components-v1/dropDownSelector/styles/index.js +1 -1
- package/lib/pages/appointment-demo/index.css +1 -1
- package/lib/pages/group-management/page-view/importGroupStaff/index.css +2 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.css +1 -1
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +1 -1
- package/package.json +1 -1
- package/src/components/change-okr-modal/Item.tsx +11 -3
- package/src/components/change-okr-modal/styledComponents.ts +0 -1
- package/src/components/create-okr-modal/fields/index.scss +1 -1
- package/src/components/create-okr-modal/index.scss +1 -0
- package/src/components/create-okr-modal/index.tsx +2 -2
- package/src/components/create-okr-modal/request-api.ts +2 -3
- package/src/components/dialog-confirm/index.js +95 -58
- package/src/components/dialog-confirm/index.scss +16 -12
- package/src/components/drawer/index.scss +1 -1
- package/src/components/dynamic/dynamic-item/dynamic-align/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-announcement/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-assessment/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-create-o/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-kr/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-milestone/index.scss +1 -3
- package/src/components/dynamic/dynamic-item/dynamic-okrs-communication/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-plan-communication/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-progress/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-project/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-relative/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-replay/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-report/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-reward/index.scss +2 -3
- package/src/components/dynamic/dynamic-item/dynamic-share/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-task/index.scss +2 -4
- package/src/components/dynamic/dynamic-topping/index.scss +1 -1
- package/src/components/grid-layout/okr-align/index.tsx +1 -1
- package/src/components/grid-layout/okr-progress/index.tsx +1 -1
- package/src/components/img-viewer/index.tsx +3 -3
- package/src/components/menus/components/flip-menu-card/index.tsx +8 -1
- package/src/components/menus/components/menu-tree/index.scss +2 -2
- package/src/components/menus/export-modules/okr-menus/depart-menus/index.scss +1 -1
- package/src/components/okr-detail/base-info/base-info.tsx +39 -27
- package/src/components/okr-detail/base-info/o-desc/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +2 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.tsx +2 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.tsx +3 -3
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +2 -6
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.scss +1 -1
- package/src/components/okr-detail/detail-footer/index.scss +1 -1
- package/src/components/okr-detail/e-list/search-form/fields/index.scss +1 -0
- package/src/components/okr-detail/okr-list/index.scss +1 -1
- package/src/components/okr-progress-modal/helper.js +2 -2
- package/src/components/okr-progress-modal/index.scss +2 -2
- package/src/components/okrcase-library/index.scss +1 -1
- package/src/components/pagination/select.scss +1 -1
- package/src/components/search-dropdown/index.scss +1 -1
- package/src/components/switch/index.scss +1 -1
- package/src/components/tabs/index.scss +1 -1
- package/src/components/tita-chart/charts/pie.tsx +2 -1
- package/src/components/tooltip/tooltip-text/index.tsx +4 -1
- package/src/components/version-change-modal/index.scss +1 -1
- package/src/components/weekly-report/index.scss +1 -1
- package/src/components-v1/confirm/index.tsx +0 -1
- package/src/components-v1/dropDownSelector/styles/index.tsx +1 -1
- package/src/pages/appointment-demo/index.scss +1 -1
- package/src/pages/group-management/page-view/importGroupStaff/index.scss +2 -2
- package/src/pages/okr-map/export-modules/okr-map/header/index.scss +1 -1
- package/src/pages/okr-map/export-modules/share-okr-page/header/index.scss +1 -1
|
@@ -82,7 +82,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
82
82
|
okrInfo = _useContext2.okrInfo,
|
|
83
83
|
setOkrInfo = _useContext2.setOkrInfo;
|
|
84
84
|
|
|
85
|
-
var originDesc = decodeURI(encodeURI(okrInfo.description)) ===
|
|
85
|
+
var originDesc = decodeURI(encodeURI(okrInfo.description)) === "null" ? "" : decodeURI(encodeURI(okrInfo.description));
|
|
86
86
|
|
|
87
87
|
var _useState = (0, _react.useState)(originDesc || ""),
|
|
88
88
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -140,6 +140,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
140
140
|
var oldGeneralRoleTypeRef = (0, _react.useRef)(generalRoleType);
|
|
141
141
|
var loginUser = (0, _bsGlobal.getUserInfo)();
|
|
142
142
|
var setting = (0, _bsGlobal.getOkrAdvancedSetting)().KRSetting;
|
|
143
|
+
console.log(setting.TargetFollowers);
|
|
143
144
|
(0, _react.useEffect)(function () {
|
|
144
145
|
setOriginalDesc(okrInfo.description);
|
|
145
146
|
}, [okrInfo]);
|
|
@@ -147,7 +148,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
147
148
|
if (desc.trim().length > 5000) return;
|
|
148
149
|
(0, _requestApis.saveODesc)(okrInfo.workId, desc).then(function (resp) {
|
|
149
150
|
if (resp.Code === 1) {
|
|
150
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
151
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
|
|
151
152
|
canClose: false
|
|
152
153
|
});
|
|
153
154
|
|
|
@@ -164,7 +165,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
164
165
|
var handleChangePrincipalUser = (0, _react.useCallback)(function (user) {
|
|
165
166
|
(0, _requestApis.transferPrincipal)(okrInfo.workId, user.email, user.id).then(function (resp) {
|
|
166
167
|
if (resp.Code === 1) {
|
|
167
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
168
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
|
|
168
169
|
canClose: false
|
|
169
170
|
});
|
|
170
171
|
|
|
@@ -207,7 +208,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
207
208
|
var handleChangeClassify = (0, _react.useCallback)(function (classify) {
|
|
208
209
|
(0, _requestApis.updateOClassify)(classify, okrInfo.workId).then(function (resp) {
|
|
209
210
|
if (resp.Code === 1) {
|
|
210
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
211
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
|
|
211
212
|
canClose: false
|
|
212
213
|
});
|
|
213
214
|
|
|
@@ -231,7 +232,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
231
232
|
});
|
|
232
233
|
(0, _requestApis.updateVisibility)(okrInfo.workId, visiableValue, areaUserIds, areaOrgIds, areaGroupIds).then(function (resp) {
|
|
233
234
|
if (resp.Code === 1) {
|
|
234
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
235
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
|
|
235
236
|
canClose: false
|
|
236
237
|
});
|
|
237
238
|
|
|
@@ -346,7 +347,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
346
347
|
var userIndex = (0, _util.findUserIndex)(delUserType === 1 ? participant : followers, delUser.id || delUser.userId);
|
|
347
348
|
(0, _requestApis.deleteUser)(delUser.id, okrInfo.workId, delUserType === 1 ? 2 : 3).then(function (resp) {
|
|
348
349
|
if (resp.Code === 1) {
|
|
349
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
350
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Pro_detail_Deletsuccess"), {
|
|
350
351
|
canClose: false
|
|
351
352
|
});
|
|
352
353
|
|
|
@@ -427,13 +428,13 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
427
428
|
type: "warning"
|
|
428
429
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
429
430
|
type: "title"
|
|
430
|
-
}, "\u786E\u5B9A\u5220\u9664\u6B64", delUserType === 1 ? "参与" : (0, _getLocale.getLocale)(
|
|
431
|
+
}, "\u786E\u5B9A\u5220\u9664\u6B64", delUserType === 1 ? "参与" : (0, _getLocale.getLocale)("OKR_MyO_Butt_Follow"), "\u4EBA\u5417\uFF1F"), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
|
|
431
432
|
type: "button",
|
|
432
433
|
onClick: cancelDelPerson
|
|
433
|
-
}, (0, _getLocale.getLocale)(
|
|
434
|
+
}, (0, _getLocale.getLocale)("Mod_Cancel")), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.WarningButton, {
|
|
434
435
|
type: "button",
|
|
435
436
|
onClick: ensureDelPerson
|
|
436
|
-
}, (0, _getLocale.getLocale)(
|
|
437
|
+
}, (0, _getLocale.getLocale)("Mod_Delete")));
|
|
437
438
|
}, [showDialogConfirm, delUserType]);
|
|
438
439
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
439
440
|
className: "base-info__infos-wrapper"
|
|
@@ -460,16 +461,16 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
460
461
|
className: "base-info__person-block"
|
|
461
462
|
}, !canEditPerson && !canEditAllInfo && participant.length === 0 ? null : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
462
463
|
className: "base-info__person-block-title"
|
|
463
|
-
}, (0, _getLocale.getLocale)(
|
|
464
|
+
}, (0, _getLocale.getLocale)("Mod_Participants")), /*#__PURE__*/_react["default"].createElement(_person["default"], {
|
|
464
465
|
users: participant,
|
|
465
466
|
canEdit: canEditPerson,
|
|
466
467
|
onAddUser: handleAddUser,
|
|
467
468
|
onDelUser: handleDelParticipantUser
|
|
468
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
469
|
+
}))), setting.TargetFollowers && /*#__PURE__*/_react["default"].createElement("div", {
|
|
469
470
|
className: "base-info__person-block"
|
|
470
|
-
}, !canEditFocusPerson && !canEditAllInfo &&
|
|
471
|
+
}, !canEditFocusPerson && !canEditAllInfo && followers.length === 0 ? null : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
471
472
|
className: "base-info__person-block-title"
|
|
472
|
-
}, (0, _getLocale.getLocale)(
|
|
473
|
+
}, (0, _getLocale.getLocale)("Mod_Followers")), /*#__PURE__*/_react["default"].createElement(_person["default"], {
|
|
473
474
|
type: "followers",
|
|
474
475
|
users: followers,
|
|
475
476
|
canEdit: canEditFocusPerson,
|
|
@@ -173,9 +173,9 @@ var _default = function _default(props) {
|
|
|
173
173
|
type: "warning"
|
|
174
174
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
175
175
|
type: "title"
|
|
176
|
-
},
|
|
176
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Text_Cancelass')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
177
177
|
type: "content"
|
|
178
|
-
},
|
|
178
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Text_TitemnotO')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
|
|
179
179
|
type: "button",
|
|
180
180
|
onClick: function onClick() {
|
|
181
181
|
return setUnConnectVisible(false);
|
|
@@ -388,9 +388,9 @@ var _default = function _default(props) {
|
|
|
388
388
|
type: "warning"
|
|
389
389
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
390
390
|
type: "title"
|
|
391
|
-
},
|
|
391
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Text_Cancelass')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
392
392
|
type: "content"
|
|
393
|
-
},
|
|
393
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Text_TtasknotO')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
|
|
394
394
|
type: "button",
|
|
395
395
|
onClick: function onClick() {
|
|
396
396
|
return setUnConnectVisible(false);
|
|
@@ -390,9 +390,9 @@ var _default = function _default(props) {
|
|
|
390
390
|
type: "warning"
|
|
391
391
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
392
392
|
type: "title"
|
|
393
|
-
},
|
|
393
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Text_Cancelass')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
394
394
|
type: "content"
|
|
395
|
-
},
|
|
395
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Text_TtasknotO')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
|
|
396
396
|
type: "button",
|
|
397
397
|
onClick: function onClick() {
|
|
398
398
|
return setUnConnectVisible(false);
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
margin-left: 8px;
|
|
93
93
|
font-size: 14px;
|
|
94
94
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
95
|
-
font-weight:
|
|
95
|
+
font-weight: 600;
|
|
96
96
|
color: #3f4755;
|
|
97
97
|
line-height: 22px;
|
|
98
98
|
vertical-align: top;
|
package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js
CHANGED
|
@@ -197,9 +197,12 @@ var EditPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
197
197
|
className: "tu-icon-canceled",
|
|
198
198
|
onClick: this.handleCancel
|
|
199
199
|
})), /*#__PURE__*/_react["default"].createElement(Body, null, /*#__PURE__*/_react["default"].createElement(Line, null, /*#__PURE__*/_react["default"].createElement(InputName, {
|
|
200
|
-
style: type == 'line' ?
|
|
200
|
+
style: type == 'line' ? {
|
|
201
|
+
width: _getLocale.isEn ? '75px' : '30px'
|
|
202
|
+
} : {
|
|
201
203
|
position: 'relative',
|
|
202
|
-
top: '3px'
|
|
204
|
+
top: '3px',
|
|
205
|
+
width: _getLocale.isEn ? '75px' : '30px'
|
|
203
206
|
}
|
|
204
207
|
}, inputName), type == 'line' && /*#__PURE__*/_react["default"].createElement(LineInputWrapper, {
|
|
205
208
|
style: showError ? {
|
|
@@ -184,12 +184,20 @@ var Score = /*#__PURE__*/function (_PureComponent) {
|
|
|
184
184
|
*/
|
|
185
185
|
information: _this.state.showScoreInfoError ? /*#__PURE__*/_react["default"].createElement(_style.ScoreInfoWrapperError, {
|
|
186
186
|
"data-length": "\u5DF2\u8F93\u5165 ".concat(_this.state.areaLength, " \u4E2A\u5B57\uFF0C\u6700\u591A\u53EF\u8F93\u5165 1000 \u4E2A\u5B57")
|
|
187
|
-
}, /*#__PURE__*/_react["default"].createElement(_style.ScoreInfoSpanText,
|
|
187
|
+
}, /*#__PURE__*/_react["default"].createElement(_style.ScoreInfoSpanText, {
|
|
188
|
+
style: {
|
|
189
|
+
minWidth: _getLocale.isEn ? '75px' : '30px'
|
|
190
|
+
}
|
|
191
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Description')), /*#__PURE__*/_react["default"].createElement(_style.ScoreInfoSpanTextareaError, {
|
|
188
192
|
ref: _this.state.scoreInfoErrorRef,
|
|
189
193
|
placeholder: (0, _getLocale.getLocale)('OKR_MyO_scoredescription'),
|
|
190
194
|
onChange: _this.handleScoreInfoTextChange,
|
|
191
195
|
value: (0, _tools.htmlDecodeByRegExp)(_this.state.scoreInfoText)
|
|
192
|
-
})) : /*#__PURE__*/_react["default"].createElement(_style.ScoreInfoWrapper, null, /*#__PURE__*/_react["default"].createElement(_style.ScoreInfoSpanText,
|
|
196
|
+
})) : /*#__PURE__*/_react["default"].createElement(_style.ScoreInfoWrapper, null, /*#__PURE__*/_react["default"].createElement(_style.ScoreInfoSpanText, {
|
|
197
|
+
style: {
|
|
198
|
+
minWidth: _getLocale.isEn ? '75px' : '30px'
|
|
199
|
+
}
|
|
200
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Description')), /*#__PURE__*/_react["default"].createElement(_style.ScoreInfoSpanTextarea, {
|
|
193
201
|
ref: _this.state.scoreInfoRef,
|
|
194
202
|
placeholder: (0, _getLocale.getLocale)('OKR_MyO_scoredescription'),
|
|
195
203
|
onChange: _this.handleScoreInfoTextChange,
|
package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js
CHANGED
|
@@ -21,23 +21,23 @@ var ExtraWrapper = _styledComponents["default"].div(_templateObject || (_templat
|
|
|
21
21
|
|
|
22
22
|
exports.ExtraWrapper = ExtraWrapper;
|
|
23
23
|
|
|
24
|
-
var ScoreInfoWrapper = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n
|
|
24
|
+
var ScoreInfoWrapper = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 75px;\n display: flex;\n margin-bottom: 20px;\n"])));
|
|
25
25
|
|
|
26
26
|
exports.ScoreInfoWrapper = ScoreInfoWrapper;
|
|
27
27
|
|
|
28
|
-
var ScoreInfoWrapperError = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n
|
|
28
|
+
var ScoreInfoWrapperError = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n height: 75px;\n display: flex;\n margin-bottom: 20px;\n position: relative;\n &:after{\n content: attr(data-length);\n height: 20px;\n color: rgb(208,2,27);\n position: absolute;\n bottom: -18px;\n left: 31px;\n font-size: 12px;\n }\n"])));
|
|
29
29
|
|
|
30
30
|
exports.ScoreInfoWrapperError = ScoreInfoWrapperError;
|
|
31
31
|
|
|
32
|
-
var ScoreInfoSpanText = _styledComponents["default"].span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 30px;\n height: 20px;\n font-
|
|
32
|
+
var ScoreInfoSpanText = _styledComponents["default"].span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 30px;\n height: 20px;\n font-size: 14px;\n color: #83898F;\n margin-right: 4px;\n"])));
|
|
33
33
|
|
|
34
34
|
exports.ScoreInfoSpanText = ScoreInfoSpanText;
|
|
35
35
|
|
|
36
|
-
var ScoreInfoSpanTextarea = _styledComponents["default"].textarea(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width:
|
|
36
|
+
var ScoreInfoSpanTextarea = _styledComponents["default"].textarea(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 100%;\n box-sizing: border-box;\n padding: 1px 7px;\n border: 1px solid #F0F2F5;\n border-radius: 2px;\n resize: none;\n position: relative;\n"])));
|
|
37
37
|
|
|
38
38
|
exports.ScoreInfoSpanTextarea = ScoreInfoSpanTextarea;
|
|
39
39
|
|
|
40
|
-
var ScoreInfoSpanTextareaError = _styledComponents["default"].textarea(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width:
|
|
40
|
+
var ScoreInfoSpanTextareaError = _styledComponents["default"].textarea(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100%;\n box-sizing: border-box;\n padding: 1px 7px;\n border: 1px solid #F0F2F5;\n border-radius: 2px;\n resize: none;\n position: relative;\n border: 1px rgb(208, 2, 27) solid;\n"])));
|
|
41
41
|
/*
|
|
42
42
|
新增评分弹层的div --end
|
|
43
43
|
*/
|
|
@@ -45,7 +45,7 @@ var ScoreInfoSpanTextareaError = _styledComponents["default"].textarea(_template
|
|
|
45
45
|
|
|
46
46
|
exports.ScoreInfoSpanTextareaError = ScoreInfoSpanTextareaError;
|
|
47
47
|
|
|
48
|
-
var CallSomeoneSpan = _styledComponents["default"].span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n font-
|
|
48
|
+
var CallSomeoneSpan = _styledComponents["default"].span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n font-size: 14px;\n color: #83898F;\n padding-right: 15px;\n"])));
|
|
49
49
|
|
|
50
50
|
exports.CallSomeoneSpan = CallSomeoneSpan;
|
|
51
51
|
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
margin-left: 8px;
|
|
98
98
|
font-size: 14px;
|
|
99
99
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
100
|
-
font-weight:
|
|
100
|
+
font-weight: 600;
|
|
101
101
|
color: #3f4755;
|
|
102
102
|
line-height: 22px;
|
|
103
103
|
vertical-align: top;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
height: 22px;
|
|
52
52
|
font-size: 14px;
|
|
53
53
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
54
|
-
font-weight:
|
|
54
|
+
font-weight: 600;
|
|
55
55
|
color: #a4acb9;
|
|
56
56
|
line-height: 22px;
|
|
57
57
|
}
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
height: 22px;
|
|
117
117
|
font-size: 14px;
|
|
118
118
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
119
|
-
font-weight:
|
|
119
|
+
font-weight: 600;
|
|
120
120
|
color: #a4acb9;
|
|
121
121
|
line-height: 22px;
|
|
122
122
|
}
|
|
@@ -45,7 +45,7 @@ var getO_SETTING = function getO_SETTING() {
|
|
|
45
45
|
childkrProgress = recommandProgressObj.childkrProgress;
|
|
46
46
|
var textArr = [];
|
|
47
47
|
childkrProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_KRCom')).concat(childkrProgress).concat((0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Percentage')));
|
|
48
|
-
childOkrProgress !== -1 && textArr.push("
|
|
48
|
+
childOkrProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)('OKR_MyO_Ew_SubobjCom')).concat(childOkrProgress).concat((0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Percentage')));
|
|
49
49
|
if (textArr.length == 0) return '';
|
|
50
50
|
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
51
51
|
className: "auto-update__recommand-icon"
|
|
@@ -89,7 +89,7 @@ var getKR_SETTING = function getKR_SETTING() {
|
|
|
89
89
|
childEProgress = recommandProgressObj.childEProgress;
|
|
90
90
|
var textArr = [];
|
|
91
91
|
childEProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)('OKR_MyO_Ecompletion')).concat(childEProgress).concat((0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Percentage')));
|
|
92
|
-
childOkrProgress !== -1 && textArr.push("
|
|
92
|
+
childOkrProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)('OKR_MyO_Ew_SubobjCom')).concat(childOkrProgress).concat((0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Percentage')));
|
|
93
93
|
if (textArr.length == 0) return '';
|
|
94
94
|
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
95
95
|
className: "auto-update__recommand-icon"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
margin-bottom: 0;
|
|
4
4
|
margin-right: 16px;
|
|
5
5
|
font-size: 14px;
|
|
6
|
-
font-weight:
|
|
6
|
+
font-weight: 600;
|
|
7
7
|
line-height: 20px;
|
|
8
8
|
color: #3f4755;
|
|
9
9
|
text-align: right;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.auto-update__item-progress-input--disabled input {
|
|
38
|
-
color: #
|
|
38
|
+
color: #A4ACB9 !important;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.auto-update__item-progress-input__suffix {
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _pie = _interopRequireDefault(require("../plots/pie"));
|
|
11
11
|
|
|
12
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
13
|
+
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
15
|
|
|
14
16
|
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); }
|
|
@@ -90,7 +92,7 @@ function TitaPieChart(props) {
|
|
|
90
92
|
fontSize: '12px'
|
|
91
93
|
},
|
|
92
94
|
offsetY: -10,
|
|
93
|
-
content: '
|
|
95
|
+
content: (0, _getLocale.getLocale)('HP_Onumber')
|
|
94
96
|
},
|
|
95
97
|
content: {
|
|
96
98
|
style: {
|
|
@@ -33,6 +33,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33
33
|
|
|
34
34
|
var TooltipText = function TooltipText(_ref) {
|
|
35
35
|
var text = _ref.text,
|
|
36
|
+
_ref$overlayText = _ref.overlayText,
|
|
37
|
+
overlayText = _ref$overlayText === void 0 ? "" : _ref$overlayText,
|
|
36
38
|
_ref$maxWidth = _ref.maxWidth,
|
|
37
39
|
maxWidth = _ref$maxWidth === void 0 ? 0 : _ref$maxWidth,
|
|
38
40
|
exClass = _ref.exClass,
|
|
@@ -71,7 +73,7 @@ var TooltipText = function TooltipText(_ref) {
|
|
|
71
73
|
}, [text, maxWidth]);
|
|
72
74
|
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, hasTooltip && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
73
75
|
overlayClassName: overlayClassName,
|
|
74
|
-
overlay: text,
|
|
76
|
+
overlay: !!overlayText ? overlayText : text,
|
|
75
77
|
placement: "top",
|
|
76
78
|
mouseEnterDelay: mouseEnterDelay
|
|
77
79
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -47,7 +47,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
47
47
|
|
|
48
48
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
49
49
|
|
|
50
|
-
var ConfirmWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* TODO padding \u53EF\u52A8\u6001\u8C03\u6574 */\n width: 300px;\n
|
|
50
|
+
var ConfirmWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* TODO padding \u53EF\u52A8\u6001\u8C03\u6574 */\n width: 300px;\n border-radius: 5px;\n box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15);\n padding: 15px 12px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n background-color: #fff;\n"])));
|
|
51
51
|
|
|
52
52
|
var FooterWrapper = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-top: 5px;\n button {\n padding: 2px 12px;\n font-size: 12px;\n }\n"])));
|
|
53
53
|
|
|
@@ -13,7 +13,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
13
13
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
|
|
16
|
-
var DropDownContainer = _styledComponents["default"].span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
16
|
+
var DropDownContainer = _styledComponents["default"].span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n /* margin: 0 0 15px; */\n padding: 5px 3px 0 0;\n font-size: 12px;\n color: #0a131a;\n display: flex;\n align-items: center;\n position: relative;\n cursor: pointer;\n outline: none;\n\n span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .tu-icon-arrow-down {\n top: 0 !important;\n transition: 300ms ease-in-out;\n }\n .dropdown-active {\n transform: rotate(180deg);\n }\n"])));
|
|
17
17
|
|
|
18
18
|
exports.DropDownContainer = DropDownContainer;
|
|
19
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.user-group-page__dialog .user-group-page__import-download-template {
|
|
2
2
|
font-size: 14px;
|
|
3
|
-
font-weight:
|
|
3
|
+
font-weight: 600;
|
|
4
4
|
color: #3F4755;
|
|
5
5
|
display: flex;
|
|
6
6
|
justify-content: space-between;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
border-radius: 3px;
|
|
16
16
|
border: 1px solid #2879FF;
|
|
17
17
|
font-size: 12px;
|
|
18
|
-
font-weight:
|
|
18
|
+
font-weight: 600;
|
|
19
19
|
color: #2879FF;
|
|
20
20
|
line-height: 26px;
|
|
21
21
|
}
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import { OkrData } from './types';
|
|
|
4
4
|
import { OpenUserName } from '../../utils/open-data';
|
|
5
5
|
import drawerManager from '../../components/drawer-manager'
|
|
6
6
|
import { getMonth, getTypeMap } from './constant';
|
|
7
|
+
import Tooltip from '../tooltip';
|
|
7
8
|
import { getLocale } from '../../utils/getLocale';
|
|
8
9
|
import { isEn } from '../../utils/getLocale';
|
|
9
10
|
|
|
@@ -70,6 +71,13 @@ export default class Item extends PureComponent<Props, State> {
|
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
|
|
74
|
+
htmlToText = (text) => {
|
|
75
|
+
let div = document.createElement('div');
|
|
76
|
+
div.innerHTML = text;
|
|
77
|
+
text = div.innerText || div.textContent;
|
|
78
|
+
return text;
|
|
79
|
+
};
|
|
80
|
+
|
|
73
81
|
getCycleText = () => {
|
|
74
82
|
const { data } = this.props;
|
|
75
83
|
const hzNum = [
|
|
@@ -122,7 +130,7 @@ export default class Item extends PureComponent<Props, State> {
|
|
|
122
130
|
<Radio onClick={(e: any) => this.onSelect(e, data)} active={active && data.workId == active.workId} />
|
|
123
131
|
<Tag color={colorMap[data.cycleType] || colorMap[4]}>{this.getCycleText()}</Tag>
|
|
124
132
|
<WorkNameWrapper isShowKr={isShowKr}>
|
|
125
|
-
<OkrName isKr={false} isShowKr={isShowKr} dangerouslySetInnerHTML={{ __html: this.okrData.workName }}></OkrName>
|
|
133
|
+
<Tooltip.Text isPercent overlayText={this.htmlToText(this.okrData.workName)} text={<OkrName isKr={false} isShowKr={isShowKr} dangerouslySetInnerHTML={{ __html: this.okrData.workName }}></OkrName>} />
|
|
126
134
|
</WorkNameWrapper>
|
|
127
135
|
{this.isObjectiveRelevanceKr && isShowKr && data.Krs.length > 0 && <span className={`${this.state.isExpand ? "tu-icon-arrow-up" : 'tu-icon-arrow-down'}`}></span>}
|
|
128
136
|
</ItemTop>
|
|
@@ -153,14 +161,14 @@ export default class Item extends PureComponent<Props, State> {
|
|
|
153
161
|
<ItemTop key={item.mileStoneId}>
|
|
154
162
|
<Radio onClick={(e: any) => this.onSelect(e, data.Krs[index])} active={active && item.mileStoneId == (active.workId || active.mileStoneId)} />
|
|
155
163
|
<WorkNameWrapper isShowKr={isShowKr}>
|
|
156
|
-
<OkrName isKr={true} isShowKr={isShowKr} dangerouslySetInnerHTML={{ __html: `KR${index + 1}:${item.mileStoneName}` }}></OkrName>
|
|
164
|
+
<Tooltip.Text isPercent overlayText={this.htmlToText(item.mileStoneName)} text={<OkrName isKr={true} isShowKr={isShowKr} dangerouslySetInnerHTML={{ __html: `KR${index + 1}:${item.mileStoneName}` }}></OkrName>} />
|
|
157
165
|
</WorkNameWrapper>
|
|
158
166
|
</ItemTop>
|
|
159
167
|
) : active && item.mileStoneId == (active.workId || active.mileStoneId) ? (
|
|
160
168
|
<ItemTop key={item.mileStoneId}>
|
|
161
169
|
<Radio onClick={(e: any) => this.onSelect(e, data.Krs[index])} active={active && item.mileStoneId == (active.workId || active.mileStoneId)} />
|
|
162
170
|
<WorkNameWrapper isShowKr={isShowKr}>
|
|
163
|
-
<OkrName isKr={true} isShowKr={isShowKr} dangerouslySetInnerHTML={{ __html: `KR${index + 1}:${item.mileStoneName}` }}></OkrName>
|
|
171
|
+
<Tooltip.Text isPercent overlayText={this.htmlToText(item.mileStoneName)} text={<OkrName isKr={true} isShowKr={isShowKr} dangerouslySetInnerHTML={{ __html: `KR${index + 1}:${item.mileStoneName}` }}></OkrName>} />
|
|
164
172
|
</WorkNameWrapper>
|
|
165
173
|
</ItemTop>
|
|
166
174
|
) : ''
|