@titaui/pc 1.11.51 → 1.11.52-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/button/images/blue.svg +21 -0
- package/lib/components/button/images/red.svg +21 -0
- package/lib/components/button/images/white.svg +19 -0
- package/lib/components/button/rect-btn/index.js +3 -3
- package/lib/components/change-okr-modal/Item.js +19 -18
- package/lib/components/change-okr-modal/styledComponents.js +9 -9
- package/lib/components/checkbox/index.css +4 -0
- package/lib/components/contact-kefu/index.css +11 -1
- package/lib/components/contact-kefu/index.js +10 -4
- package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
- package/lib/components/create-okr-modal/fields/index.css +14 -3
- package/lib/components/create-okr-modal/fields/o-new-name.js +30 -19
- package/lib/components/create-okr-modal/fields/okr-parent.js +7 -5
- package/lib/components/create-okr-modal/index.js +200 -133
- package/lib/components/create-okr-modal/kr-items/index.css +23 -13
- package/lib/components/create-okr-modal/kr-items/krDatas.js +95 -76
- package/lib/components/create-okr-modal/kr-items/krItem.js +53 -56
- package/lib/components/create-okr-modal/style.js +5 -5
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/dynamic/constant.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +8 -8
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -8
- package/lib/components/dynamic/dynamic-list/index.js +14 -7
- package/lib/components/dynamic/index.js +9 -12
- package/lib/components/dynamic/request-api.js +7 -68
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +11 -9
- package/lib/components/nav-top/components/menu/index.js +18 -16
- package/lib/components/nav-top/index.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
- package/lib/components/okr-detail/components/header/edit-name.js +86 -40
- package/lib/components/okr-detail/components/header/index.css +120 -41
- package/lib/components/okr-detail/components/header/index.js +36 -46
- package/lib/components/okr-detail/components/header/o-classify.js +152 -0
- package/lib/components/okr-detail/components/header/o-name.js +7 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +58 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +159 -63
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +15 -13
- package/lib/components/okr-detail/detail-header/index.js +8 -4
- package/lib/components/okr-detail/e-list/index.js +2 -2
- package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +75 -53
- package/lib/components/okr-detail/request-apis.js +73 -69
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +34 -32
- package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-flow/child-node/kr-node.js +3 -1
- package/lib/components/okr-flow/child-node/work-node.js +3 -1
- package/lib/components/okr-progress/components/kr-progress/index.js +5 -3
- package/lib/components/okr-progress/components/o-progress/index.js +3 -1
- package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +3 -3
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
- package/lib/components/okr-share/common-painter/utils.js +183 -36
- package/lib/components/okr-share/index.css +5 -4
- package/lib/components/okr-share/pink-card/card.js +3 -3
- package/lib/components/okr-share/pink-card/drawKrs.js +93 -18
- package/lib/components/okr-share/pink-card/index.js +20 -12
- package/lib/components/open-data-painter/index.js +6 -5
- package/lib/components/period-selector/interface.js +7 -0
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +16 -10
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/search-input/index.css +1 -1
- package/lib/components/search-key-handle/index.js +9 -7
- package/lib/components/select/Option.js +3 -3
- package/lib/components/select-layer/index.css +1 -1
- package/lib/components/task-relation-modal/helper.js +139 -2
- package/lib/components/task-relation-modal/image/loading.gif +0 -0
- package/lib/components/task-relation-modal/index.js +9 -0
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.css +18 -0
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +262 -0
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +135 -0
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.css +0 -0
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +129 -0
- package/lib/components/task-relation-modal/okr-relation/request-api.js +106 -0
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +120 -0
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.js +185 -0
- package/lib/components/task-relation-modal/request-api.js +28 -2
- package/lib/components/task-relation-modal/search/okr-status-select.js +3 -3
- package/lib/components/task-relation-modal/search/principal.js +36 -19
- package/lib/components/task-relation-modal/search/search-dropdown/index.css +2 -1
- package/lib/components/task-relation-modal/search/search-dropdown/index.js +1 -1
- package/lib/components/{dynamic/dynamic-topping/index.js → task-relation-modal/search/task-relation.js} +45 -44
- package/lib/components/task-relation-modal/search/task-status-select.js +87 -0
- package/lib/components/{dynamic/dynamic-liking/index.js → task-relation-modal/search/work-relation.js} +43 -39
- package/lib/components/task-relation-modal/search/work-status-select.js +74 -0
- package/lib/components/task-relation-modal/tree/category-tree/index.css +3 -3
- package/lib/components/task-relation-modal/tree/okr-tree/index.css +1 -1
- package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +16 -2
- package/lib/components/task-relation-modal/tree/task-list/index.css +0 -0
- package/lib/components/task-relation-modal/tree/task-list/index.js +1 -0
- package/lib/components/task-relation-modal/tree/work-list/index.css +14 -0
- package/lib/components/task-relation-modal/tree/work-list/index.js +176 -0
- package/lib/components/task-relation-modal/tree/work-list/search-form.js +123 -0
- package/lib/components/task-relation-modal/tree/work-tree/index.css +1 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +1 -12
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +1 -3
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +4 -10
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +0 -4
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +3 -1
- package/lib/components/task-relation-modal/work-relation/index.css +0 -0
- package/lib/components/task-relation-modal/work-relation/index.js +256 -0
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/tooltip/index.js +3 -0
- package/lib/components/tooltip/tooltip-rows/index.css +26 -0
- package/lib/components/{dynamic/advertise → tooltip/tooltip-rows}/index.js +65 -85
- package/lib/components/user-selector/category-selector-panel/index.js +6 -1
- package/lib/components/{dynamic/quick-operation/components/create-task/index.js → user-selector/category-selector-panel/subordinate-tree.js} +37 -20
- package/lib/components/user-selector/constant.js +10 -2
- package/lib/components/user-selector/empty/index.css +5 -0
- package/lib/components/user-selector/empty/index.js +9 -3
- package/lib/components/user-selector/export-modules/depart-search-selector/index.js +45 -17
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +3 -1
- package/lib/components/user-selector/images/no-auth.png +0 -0
- package/lib/components/user-selector/request-apis.js +28 -9
- package/lib/components/user-selector/searched-panel/index.js +21 -7
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +46 -18
- package/lib/components/wechat-btn/index.css +5 -1
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/SingleMode.js +7 -5
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
- package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
- package/lib/utils/open-data.js +213 -65
- package/lib/utils/planDataJson.js +11115 -0
- package/package.json +3 -2
- package/lib/components/dynamic/advertise/components/next-btn/index.css +0 -27
- package/lib/components/dynamic/advertise/components/next-btn/index.js +0 -32
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +0 -26
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +0 -32
- package/lib/components/dynamic/advertise/index.css +0 -21
- package/lib/components/dynamic/advertise/interface.js +0 -5
- package/lib/components/dynamic/advertise/util.js +0 -28
- package/lib/components/dynamic/components/dynamic-search-input/index.css +0 -81
- package/lib/components/dynamic/components/dynamic-search-input/index.js +0 -203
- package/lib/components/dynamic/components/first-level-tabs/index.css +0 -101
- package/lib/components/dynamic/components/first-level-tabs/index.js +0 -131
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +0 -23
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +0 -146
- package/lib/components/dynamic/dynamic-like-ranking/index.js +0 -180
- package/lib/components/dynamic/dynamic-like-ranking/item.js +0 -105
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +0 -30
- package/lib/components/dynamic/dynamic-liking/index.css +0 -81
- package/lib/components/dynamic/dynamic-liking/item.js +0 -75
- package/lib/components/dynamic/dynamic-liking/mock.js +0 -83
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +0 -16
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +0 -30
- package/lib/components/dynamic/dynamic-topping/index.css +0 -141
- package/lib/components/dynamic/dynamic-topping/interface.js +0 -5
- package/lib/components/dynamic/dynamic-topping/item.js +0 -153
- package/lib/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/lib/components/dynamic/dynamic.css +0 -173
- package/lib/components/dynamic/dynamic.js +0 -428
- package/lib/components/dynamic/export-module/index.js +0 -37
- package/lib/components/dynamic/img/dynamic-top.svg +0 -14
- package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
- package/lib/components/dynamic/my-team/img/line.png +0 -0
- package/lib/components/dynamic/my-team/img/team.png +0 -0
- package/lib/components/dynamic/my-team/index.css +0 -184
- package/lib/components/dynamic/my-team/index.js +0 -263
- package/lib/components/dynamic/my-team/request-api.js +0 -52
- package/lib/components/dynamic/my-team/util.js +0 -20
- package/lib/components/dynamic/new-ui.css +0 -192
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +0 -58
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +0 -68
- package/lib/components/dynamic/online-broadcast/data.js +0 -95
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +0 -14
- package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
- package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
- package/lib/components/dynamic/online-broadcast/index.css +0 -46
- package/lib/components/dynamic/online-broadcast/index.js +0 -61
- package/lib/components/dynamic/online-broadcast/interfact.js +0 -5
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +0 -25
- package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +0 -51
- package/lib/components/dynamic/quick-operation/index.js +0 -120
|
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var _richEditor = require("@titaui/rich-editor");
|
|
15
|
+
|
|
14
16
|
var _toast = _interopRequireDefault(require("../../../toast"));
|
|
15
17
|
|
|
16
18
|
var _requestApis = require("../../request-apis");
|
|
@@ -29,6 +31,12 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
29
31
|
|
|
30
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); }); }; }
|
|
31
33
|
|
|
34
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
35
|
+
|
|
36
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
37
|
+
|
|
38
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39
|
+
|
|
32
40
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
41
|
|
|
34
42
|
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."); }
|
|
@@ -41,25 +49,42 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
41
49
|
|
|
42
50
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
51
|
|
|
52
|
+
var prefixCls = 'okr-drawer-header__edit';
|
|
53
|
+
|
|
44
54
|
function EditNameCmp(props) {
|
|
45
|
-
var
|
|
55
|
+
var _classNames;
|
|
56
|
+
|
|
57
|
+
var editable = props.editable,
|
|
58
|
+
okrName = props.okrName,
|
|
46
59
|
okrId = props.okrId,
|
|
47
|
-
setIsEdit = props.setIsEdit,
|
|
48
60
|
setOkrName = props.setOkrName;
|
|
49
61
|
|
|
50
|
-
var _useState = (0, _react.useState)(
|
|
62
|
+
var _useState = (0, _react.useState)(false),
|
|
51
63
|
_useState2 = _slicedToArray(_useState, 2),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
64
|
+
editing = _useState2[0],
|
|
65
|
+
setEditing = _useState2[1];
|
|
66
|
+
|
|
67
|
+
var _useState3 = (0, _react.useState)(''),
|
|
68
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
69
|
+
errorTip = _useState4[0],
|
|
70
|
+
setErrorTip = _useState4[1];
|
|
71
|
+
|
|
72
|
+
var _useState5 = (0, _react.useState)({
|
|
73
|
+
mentionUsers: [],
|
|
74
|
+
pureText: '',
|
|
75
|
+
pureTextExcludeAt: '',
|
|
76
|
+
richText: okrName,
|
|
77
|
+
state: 'normal'
|
|
78
|
+
}),
|
|
79
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
80
|
+
okrNameData = _useState6[0],
|
|
81
|
+
setOkrNameData = _useState6[1];
|
|
82
|
+
|
|
83
|
+
var mentionInputRef = (0, _react.useRef)();
|
|
59
84
|
|
|
60
85
|
var checkError = function checkError(val) {
|
|
61
86
|
if (val.length == 0) {
|
|
62
|
-
setErrorTip((0, _getLocale.getLocale)(
|
|
87
|
+
setErrorTip((0, _getLocale.getLocale)('OKR_MyO_Pop_Targetname'));
|
|
63
88
|
return;
|
|
64
89
|
}
|
|
65
90
|
|
|
@@ -68,21 +93,37 @@ function EditNameCmp(props) {
|
|
|
68
93
|
return;
|
|
69
94
|
}
|
|
70
95
|
|
|
71
|
-
setErrorTip(
|
|
96
|
+
setErrorTip('');
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
var onChangeHandler = function onChangeHandler(data) {
|
|
100
|
+
setOkrNameData(function (prevData) {
|
|
101
|
+
return _objectSpread(_objectSpread({}, prevData), data);
|
|
102
|
+
});
|
|
103
|
+
checkError(data.pureTextExcludeAt);
|
|
72
104
|
};
|
|
73
105
|
|
|
74
|
-
var
|
|
75
|
-
|
|
106
|
+
var onFocusHandler = function onFocusHandler() {
|
|
107
|
+
return setEditing(true);
|
|
76
108
|
};
|
|
77
109
|
|
|
78
110
|
var cancelEditHandler = function cancelEditHandler() {
|
|
79
|
-
|
|
80
|
-
setErrorTip(
|
|
111
|
+
setEditing(false);
|
|
112
|
+
setErrorTip('');
|
|
113
|
+
setOkrNameData(function (prevData) {
|
|
114
|
+
return {
|
|
115
|
+
mentionUsers: [],
|
|
116
|
+
pureText: okrName,
|
|
117
|
+
pureTextExcludeAt: okrName,
|
|
118
|
+
richText: (0, _richEditor.TitaRichEditorInitTextState)(okrName),
|
|
119
|
+
state: prevData.state === 'normal' ? 'reset' : 'normal'
|
|
120
|
+
};
|
|
121
|
+
});
|
|
81
122
|
};
|
|
82
123
|
|
|
83
124
|
var confiremEditHandle = /*#__PURE__*/function () {
|
|
84
125
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
85
|
-
var
|
|
126
|
+
var mentionUsers, pureText, pureTextExcludeAt, richText, data;
|
|
86
127
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
87
128
|
while (1) {
|
|
88
129
|
switch (_context.prev = _context.next) {
|
|
@@ -95,31 +136,35 @@ function EditNameCmp(props) {
|
|
|
95
136
|
return _context.abrupt("return");
|
|
96
137
|
|
|
97
138
|
case 2:
|
|
98
|
-
|
|
139
|
+
mentionUsers = okrNameData.mentionUsers, pureText = okrNameData.pureText, pureTextExcludeAt = okrNameData.pureTextExcludeAt, richText = okrNameData.richText;
|
|
99
140
|
|
|
100
|
-
if (!(okrName ==
|
|
141
|
+
if (!(okrName == pureTextExcludeAt)) {
|
|
101
142
|
_context.next = 6;
|
|
102
143
|
break;
|
|
103
144
|
}
|
|
104
145
|
|
|
105
|
-
|
|
146
|
+
setEditing(false);
|
|
106
147
|
return _context.abrupt("return");
|
|
107
148
|
|
|
108
149
|
case 6:
|
|
109
150
|
_context.next = 8;
|
|
110
151
|
return (0, _requestApis.updateOkrName)({
|
|
111
152
|
workId: okrId,
|
|
112
|
-
workName:
|
|
153
|
+
workName: pureText,
|
|
154
|
+
workNameRichText: richText,
|
|
155
|
+
aiteUsers: mentionUsers.map(function (user) {
|
|
156
|
+
return user.mentionId;
|
|
157
|
+
})
|
|
113
158
|
});
|
|
114
159
|
|
|
115
160
|
case 8:
|
|
116
161
|
data = _context.sent;
|
|
117
162
|
|
|
118
163
|
if (data.Code == 1) {
|
|
119
|
-
|
|
120
|
-
setOkrName(
|
|
164
|
+
setEditing(false);
|
|
165
|
+
setOkrName(okrNameData.richText);
|
|
121
166
|
|
|
122
|
-
_toast["default"].Success(
|
|
167
|
+
_toast["default"].Success('修改成功');
|
|
123
168
|
} else {
|
|
124
169
|
_toast["default"].Error(data.Message);
|
|
125
170
|
}
|
|
@@ -138,27 +183,28 @@ function EditNameCmp(props) {
|
|
|
138
183
|
}();
|
|
139
184
|
|
|
140
185
|
return /*#__PURE__*/_react["default"].createElement("section", {
|
|
141
|
-
className:
|
|
186
|
+
className: prefixCls
|
|
142
187
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
-
className: (0, _classnames["default"])("
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
188
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "-input"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-input--editable"), editable), _defineProperty(_classNames, "".concat(prefixCls, "-input--editing"), editing), _defineProperty(_classNames, "".concat(prefixCls, "-input--error"), errorTip.length > 0), _classNames))
|
|
189
|
+
}, /*#__PURE__*/_react["default"].createElement(_richEditor.TitaInlineRichEditor, {
|
|
190
|
+
key: okrNameData.state,
|
|
191
|
+
editable: editable,
|
|
192
|
+
initialState: okrNameData.richText,
|
|
193
|
+
manualWrap: true,
|
|
194
|
+
onDocChange: onChangeHandler,
|
|
195
|
+
onFocus: onFocusHandler,
|
|
196
|
+
ref: mentionInputRef
|
|
197
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
198
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "-error-tip"), _defineProperty({}, "".concat(prefixCls, "-error-tip--visible"), errorTip.length > 0))
|
|
153
199
|
}, errorTip), /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
|
-
className: "
|
|
200
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "-btns"), _defineProperty({}, "".concat(prefixCls, "-btns--visible"), editing))
|
|
155
201
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
156
|
-
className: (0, _classnames["default"])(
|
|
202
|
+
className: (0, _classnames["default"])('titaui-pc-button', "".concat(prefixCls, "-btns-cancel")),
|
|
157
203
|
onClick: cancelEditHandler
|
|
158
|
-
}, (0, _getLocale.getLocale)(
|
|
159
|
-
className: (0, _classnames["default"])(
|
|
204
|
+
}, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
205
|
+
className: (0, _classnames["default"])('titaui-pc-button', "".concat(prefixCls, "-btns-confirm"), _defineProperty({}, "".concat(prefixCls, "-btns-confirm--disabled"), errorTip.length > 0)),
|
|
160
206
|
onClick: confiremEditHandle
|
|
161
|
-
}, (0, _getLocale.getLocale)(
|
|
207
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Butt_Determine'))));
|
|
162
208
|
}
|
|
163
209
|
|
|
164
210
|
var _default = EditNameCmp;
|
|
@@ -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;
|