@titaui/pc 1.11.52-beta.3 → 1.11.52-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/change-okr-modal/Item.js +19 -18
- package/lib/components/change-okr-modal/styledComponents.js +9 -9
- package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
- package/lib/components/create-okr-modal/fields/index.css +14 -3
- package/lib/components/create-okr-modal/fields/o-new-name.js +25 -19
- package/lib/components/create-okr-modal/index.js +75 -35
- package/lib/components/create-okr-modal/kr-items/index.css +12 -1
- package/lib/components/create-okr-modal/kr-items/krDatas.js +6 -5
- package/lib/components/create-okr-modal/kr-items/krItem.js +22 -12
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/dynamic/advertise/components/next-btn/index.css +27 -0
- package/lib/components/dynamic/advertise/components/next-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +26 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/index.css +21 -0
- package/lib/components/dynamic/advertise/index.js +126 -0
- package/lib/components/dynamic/advertise/interface.js +5 -0
- package/lib/components/dynamic/advertise/util.js +28 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +81 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +203 -0
- package/lib/components/dynamic/components/first-level-tabs/index.css +101 -0
- package/lib/components/dynamic/components/first-level-tabs/index.js +131 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +8 -8
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +18 -18
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +146 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +180 -0
- package/lib/components/dynamic/dynamic-like-ranking/item.js +105 -0
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
- package/lib/components/dynamic/dynamic-liking/index.css +81 -0
- package/lib/components/{contact-kefu → dynamic/dynamic-liking}/index.js +35 -58
- package/lib/components/dynamic/dynamic-liking/item.js +75 -0
- package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
- package/lib/components/dynamic/dynamic-list/index.js +7 -14
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +16 -0
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +30 -0
- package/lib/components/dynamic/dynamic-topping/index.css +141 -0
- package/lib/components/dynamic/dynamic-topping/index.js +82 -0
- package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
- package/lib/components/dynamic/dynamic-topping/item.js +153 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
- package/lib/components/dynamic/dynamic.css +173 -0
- package/lib/components/dynamic/dynamic.js +428 -0
- package/lib/components/dynamic/export-module/index.js +37 -0
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/index.js +12 -9
- package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
- package/lib/components/dynamic/my-team/img/line.png +0 -0
- package/lib/components/dynamic/my-team/img/team.png +0 -0
- package/lib/components/dynamic/my-team/index.css +184 -0
- package/lib/components/dynamic/my-team/index.js +263 -0
- package/lib/components/dynamic/my-team/request-api.js +52 -0
- package/lib/components/dynamic/my-team/util.js +20 -0
- package/lib/components/dynamic/new-ui.css +192 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +58 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +68 -0
- package/lib/components/dynamic/online-broadcast/data.js +95 -0
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +14 -0
- package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
- package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
- package/lib/components/dynamic/online-broadcast/index.css +46 -0
- package/lib/components/dynamic/online-broadcast/index.js +61 -0
- package/lib/components/dynamic/online-broadcast/interfact.js +5 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +44 -0
- package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +51 -0
- package/lib/components/dynamic/quick-operation/index.js +120 -0
- package/lib/components/dynamic/request-api.js +68 -7
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/nav-top/components/menu/index.js +4 -3
- package/lib/components/nav-top/index.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/index.css +0 -4
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +0 -1
- package/lib/components/okr-detail/components/header/edit-name.js +86 -40
- package/lib/components/okr-detail/components/header/index.css +120 -41
- package/lib/components/okr-detail/components/header/index.js +36 -46
- package/lib/components/okr-detail/components/header/o-classify.js +152 -0
- package/lib/components/okr-detail/components/header/o-name.js +7 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +54 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +106 -56
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +5 -9
- package/lib/components/okr-detail/detail-header/index.js +8 -4
- package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +71 -53
- package/lib/components/okr-detail/request-apis.js +73 -69
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-flow/child-node/kr-node.js +3 -1
- package/lib/components/okr-flow/child-node/work-node.js +3 -1
- package/lib/components/okr-progress/components/kr-progress/index.js +5 -3
- package/lib/components/okr-progress/components/o-progress/index.js +3 -1
- package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +3 -3
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
- package/lib/components/okr-share/common-painter/utils.js +183 -36
- package/lib/components/okr-share/index.css +5 -4
- package/lib/components/okr-share/pink-card/card.js +3 -3
- package/lib/components/okr-share/pink-card/drawKrs.js +93 -18
- package/lib/components/okr-share/pink-card/index.js +20 -12
- package/lib/components/open-data-painter/index.js +6 -5
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
- package/lib/components/radio/index.css +3 -3
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/search-key-handle/index.js +9 -7
- package/lib/components/select/Option.js +3 -3
- package/lib/components/task-relation-modal/tree/okr-tree/index.css +1 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +11 -0
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +3 -1
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +16 -0
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +10 -4
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +16 -0
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +4 -0
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
- package/lib/components/textarea/index.js +35 -38
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/wechat-btn/index.css +4 -1
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/SingleMode.js +7 -5
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/index.js +0 -8
- package/lib/{components/contact-kefu → pages/aha2021}/img/canceled.svg +0 -0
- package/lib/{components/contact-kefu → pages/aha2021}/img/kefu.svg +0 -0
- package/lib/{components/contact-kefu → pages/aha2021}/img/not-try.png +0 -0
- package/lib/{components/contact-kefu → pages/aha2021}/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +26 -1
- package/lib/pages/aha2021/index.js +82 -3
- package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
- package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
- package/lib/pages/new-okr-list/header/index.css +1 -1
- package/lib/utils/open-data.js +213 -65
- package/package.json +3 -2
- package/lib/components/contact-kefu/img/notice.png +0 -0
- package/lib/components/contact-kefu/index.css +0 -85
|
@@ -88,18 +88,68 @@
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.tita-okrdt-tree__kr-node-title {
|
|
91
|
-
|
|
91
|
+
width: calc(100% - 32px);
|
|
92
92
|
margin-left: 8px;
|
|
93
93
|
font-size: 14px;
|
|
94
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
95
94
|
font-weight: 600;
|
|
96
|
-
color: #3f4755;
|
|
97
95
|
line-height: 22px;
|
|
96
|
+
color: #3f4755;
|
|
97
|
+
display: inline-flex;
|
|
98
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
98
99
|
vertical-align: top;
|
|
99
|
-
width: calc(100% - 32px);
|
|
100
100
|
white-space: break-spaces;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
.tita-okrdt-tree__kr-node-title .tu-icon-bianji2 {
|
|
104
|
+
margin-left: 5px;
|
|
105
|
+
font-size: 13px;
|
|
106
|
+
transition: visibility 0.3s ease;
|
|
107
|
+
color: #89919f;
|
|
108
|
+
visibility: hidden;
|
|
109
|
+
}
|
|
110
|
+
|
|
103
111
|
.tita-okrdt-tree__kr-node-title:hover .tu-icon-bianji2 {
|
|
104
112
|
visibility: visible;
|
|
105
113
|
}
|
|
114
|
+
|
|
115
|
+
.tita-okrdt-tree__kr-node-title .tita-rich-editor {
|
|
116
|
+
flex: 1;
|
|
117
|
+
border: 1px solid #2879ff;
|
|
118
|
+
border-radius: 4px;
|
|
119
|
+
box-shadow: 0px 0px 6px 0px rgba(40, 121, 255, 0.3) inset;
|
|
120
|
+
transition: all 0.3s ease;
|
|
121
|
+
box-sizing: border-box;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.tita-okrdt-tree__kr-node-title .tita-rich-editor .ProseMirror p {
|
|
125
|
+
padding: 2px;
|
|
126
|
+
white-space: nowrap;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.tita-okrdt-tree__kr-node-title .tita-rich-editor--disabled {
|
|
130
|
+
padding: 0;
|
|
131
|
+
flex: unset !important;
|
|
132
|
+
border-color: transparent;
|
|
133
|
+
box-shadow: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.tita-okrdt-tree__kr-node-title .tita-rich-editor--disabled .ProseMirror p {
|
|
137
|
+
padding: 0;
|
|
138
|
+
font-size: 14px;
|
|
139
|
+
font-weight: 600;
|
|
140
|
+
line-height: 20px;
|
|
141
|
+
transition: color 0.3s ease-in 0s;
|
|
142
|
+
color: #3f4755;
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
display: -webkit-box;
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
text-overflow: ellipsis;
|
|
147
|
+
word-break: break-all;
|
|
148
|
+
-webkit-box-orient: vertical;
|
|
149
|
+
-webkit-line-clamp: 2;
|
|
150
|
+
white-space: normal;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.tita-okrdt-tree__kr-node-title .tita-rich-editor--disabled .ProseMirror p:hover {
|
|
154
|
+
color: #2879ff;
|
|
155
|
+
}
|
|
@@ -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 _bsGlobal = require("../../../../../../utils/bs-global");
|
|
15
17
|
|
|
16
18
|
var _avatar = _interopRequireDefault(require("../../../../../avatar"));
|
|
@@ -27,8 +29,6 @@ var _toast = _interopRequireDefault(require("../../../../../toast"));
|
|
|
27
29
|
|
|
28
30
|
var _dialogConfirm = _interopRequireWildcard(require("../../../../../dialog-confirm"));
|
|
29
31
|
|
|
30
|
-
var _editableInput = _interopRequireDefault(require("../../../../components/editable-input"));
|
|
31
|
-
|
|
32
32
|
var _requestApis = require("../../../../request-apis");
|
|
33
33
|
|
|
34
34
|
var _auth = require("../../../../../../utils/auth");
|
|
@@ -84,9 +84,9 @@ function OkrRowColumn(_ref) {
|
|
|
84
84
|
marginLeft = _ref$marginLeft === void 0 ? 0 : _ref$marginLeft;
|
|
85
85
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
86
86
|
style: {
|
|
87
|
-
display:
|
|
87
|
+
display: 'inline-block',
|
|
88
88
|
width: width,
|
|
89
|
-
textAlign:
|
|
89
|
+
textAlign: 'left',
|
|
90
90
|
marginLeft: marginLeft
|
|
91
91
|
}
|
|
92
92
|
}, children);
|
|
@@ -119,43 +119,53 @@ function _default(props) {
|
|
|
119
119
|
editWightVisible = _useState6[0],
|
|
120
120
|
setEditWightVisible = _useState6[1];
|
|
121
121
|
|
|
122
|
-
var _useState7 = (0, _react.useState)(
|
|
122
|
+
var _useState7 = (0, _react.useState)(false),
|
|
123
123
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
editing = _useState8[0],
|
|
125
|
+
setEditing = _useState8[1];
|
|
126
126
|
|
|
127
|
-
var _useState9 = (0, _react.useState)(
|
|
127
|
+
var _useState9 = (0, _react.useState)(data.evaluateValue),
|
|
128
128
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
evaluateValue = _useState10[0],
|
|
130
|
+
setEvaluateValue = _useState10[1];
|
|
131
131
|
|
|
132
132
|
var _useState11 = (0, _react.useState)(false),
|
|
133
133
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
krModalVsible = _useState12[0],
|
|
135
|
+
setKrModalVsible = _useState12[1];
|
|
136
136
|
|
|
137
|
-
var _useState13 = (0, _react.useState)(
|
|
137
|
+
var _useState13 = (0, _react.useState)(false),
|
|
138
138
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
deleteModalVisible = _useState14[0],
|
|
140
|
+
setDeleteModalVisible = _useState14[1];
|
|
141
|
+
|
|
142
|
+
var _useState15 = (0, _react.useState)({
|
|
143
|
+
pureText: title,
|
|
144
|
+
pureTextExcludeAt: title,
|
|
145
|
+
richText: data.mileStoneNameRichText ? JSON.parse(data.mileStoneNameRichText) : (0, _richEditor.TitaRichEditorInitTextState)(title),
|
|
146
|
+
mentionUsers: []
|
|
147
|
+
}),
|
|
148
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
149
|
+
krNameData = _useState16[0],
|
|
150
|
+
setKrNameData = _useState16[1];
|
|
141
151
|
|
|
142
|
-
var
|
|
143
|
-
|
|
144
|
-
showHeart =
|
|
152
|
+
var _useState17 = (0, _react.useState)((0, _bsGlobal.getBSGlobal)('OkrAdvancedSetting').KRSetting.ShowKrConfidence),
|
|
153
|
+
_useState18 = _slicedToArray(_useState17, 1),
|
|
154
|
+
showHeart = _useState18[0]; // 高级功能: 关键成果信心指数
|
|
145
155
|
|
|
146
156
|
|
|
147
|
-
var
|
|
148
|
-
|
|
149
|
-
showKrWeight =
|
|
157
|
+
var _useState19 = (0, _react.useState)((0, _bsGlobal.getBSGlobal)('OkrAdvancedSetting').KRSetting.KrWeight),
|
|
158
|
+
_useState20 = _slicedToArray(_useState19, 1),
|
|
159
|
+
showKrWeight = _useState20[0]; // 高级功能: 关见成果权重
|
|
150
160
|
|
|
151
161
|
|
|
152
|
-
var
|
|
153
|
-
|
|
154
|
-
isEvaluate =
|
|
155
|
-
setIsEvaluate =
|
|
162
|
+
var _useState21 = (0, _react.useState)(data.isEvaluate),
|
|
163
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
164
|
+
isEvaluate = _useState22[0],
|
|
165
|
+
setIsEvaluate = _useState22[1]; // 权限 & 非结束目标
|
|
156
166
|
|
|
157
167
|
|
|
158
|
-
var
|
|
168
|
+
var _useState23 = (0, _react.useState)(function () {
|
|
159
169
|
var hasAuth = new _auth.KRAuth({
|
|
160
170
|
user: data.user,
|
|
161
171
|
createUserId: data.createUserId
|
|
@@ -163,11 +173,17 @@ function _default(props) {
|
|
|
163
173
|
var livetime = okrInfo.status != 2;
|
|
164
174
|
return hasAuth && livetime;
|
|
165
175
|
}),
|
|
166
|
-
|
|
167
|
-
krCanEdit =
|
|
176
|
+
_useState24 = _slicedToArray(_useState23, 1),
|
|
177
|
+
krCanEdit = _useState24[0];
|
|
168
178
|
|
|
179
|
+
var mentionInputRef = (0, _react.useRef)();
|
|
169
180
|
(0, _react.useEffect)(function () {
|
|
170
|
-
|
|
181
|
+
setKrNameData({
|
|
182
|
+
pureText: title,
|
|
183
|
+
pureTextExcludeAt: title,
|
|
184
|
+
richText: data.mileStoneNameRichText ? JSON.parse(data.mileStoneNameRichText) : (0, _richEditor.TitaRichEditorInitTextState)(title),
|
|
185
|
+
mentionUsers: []
|
|
186
|
+
});
|
|
171
187
|
}, [title]);
|
|
172
188
|
|
|
173
189
|
var _useContext2 = (0, _react.useContext)(_context2.OkrListContext),
|
|
@@ -190,9 +206,7 @@ function _default(props) {
|
|
|
190
206
|
kr: data,
|
|
191
207
|
confidenceIndex: level
|
|
192
208
|
}).then(function () {
|
|
193
|
-
_toast["default"].Success(
|
|
194
|
-
top: 60
|
|
195
|
-
});
|
|
209
|
+
_toast["default"].Success('修改成功');
|
|
196
210
|
});
|
|
197
211
|
};
|
|
198
212
|
|
|
@@ -214,7 +228,7 @@ function _default(props) {
|
|
|
214
228
|
progressDescription = val.progressDescription,
|
|
215
229
|
riskLevel = val.riskLevel,
|
|
216
230
|
updateProgressWay = val.updateProgressWay;
|
|
217
|
-
progress = progress.replace(/%/,
|
|
231
|
+
progress = progress.replace(/%/, '');
|
|
218
232
|
(0, _requestApis.updateKrProgressAndStatus)({
|
|
219
233
|
krId: data.mileStoneId,
|
|
220
234
|
progress: Number(progress),
|
|
@@ -223,7 +237,7 @@ function _default(props) {
|
|
|
223
237
|
updateProgressWay: updateProgressWay
|
|
224
238
|
}).then(function (res) {
|
|
225
239
|
if (res.Code == 1) {
|
|
226
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
240
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
227
241
|
|
|
228
242
|
refreshAll();
|
|
229
243
|
updateKrs();
|
|
@@ -251,7 +265,7 @@ function _default(props) {
|
|
|
251
265
|
setDeleteModalVisible(false);
|
|
252
266
|
|
|
253
267
|
if (!Message) {
|
|
254
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
268
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
255
269
|
|
|
256
270
|
setTimeout(function () {
|
|
257
271
|
refreshAll();
|
|
@@ -274,13 +288,27 @@ function _default(props) {
|
|
|
274
288
|
};
|
|
275
289
|
}();
|
|
276
290
|
|
|
277
|
-
var
|
|
291
|
+
var onInputKeyDownHandler = function onInputKeyDownHandler(e) {
|
|
292
|
+
if (e.keyCode !== 13) return;
|
|
293
|
+
onKrNameChangeHandler();
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
var onKrNameChangeHandler = function onKrNameChangeHandler() {
|
|
297
|
+
var mentionUsers = krNameData.mentionUsers,
|
|
298
|
+
pureText = krNameData.pureText,
|
|
299
|
+
richText = krNameData.richText;
|
|
278
300
|
(0, _requestApis.updateKrName)({
|
|
279
|
-
mileStoneName:
|
|
301
|
+
mileStoneName: pureText,
|
|
302
|
+
mileStoneNameRichText: richText,
|
|
303
|
+
aiteUsers: mentionUsers === null || mentionUsers === void 0 ? void 0 : mentionUsers.map(function (user) {
|
|
304
|
+
return user.mentionId;
|
|
305
|
+
}),
|
|
280
306
|
workId: data.workId,
|
|
281
307
|
workMileStoneId: data.mileStoneId
|
|
282
308
|
}).then(function () {
|
|
283
|
-
|
|
309
|
+
setEditing(false);
|
|
310
|
+
|
|
311
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
284
312
|
});
|
|
285
313
|
};
|
|
286
314
|
|
|
@@ -297,11 +325,26 @@ function _default(props) {
|
|
|
297
325
|
};
|
|
298
326
|
|
|
299
327
|
var onTitleTextClickHandler = function onTitleTextClickHandler() {
|
|
300
|
-
|
|
328
|
+
if (editing) return;
|
|
329
|
+
|
|
330
|
+
_drawerManager["default"].open('krDetail', {
|
|
301
331
|
krId: data.mileStoneId
|
|
302
332
|
});
|
|
303
333
|
};
|
|
304
334
|
|
|
335
|
+
var triggerEdit = function triggerEdit(e) {
|
|
336
|
+
e.stopPropagation();
|
|
337
|
+
e.nativeEvent.stopImmediatePropagation();
|
|
338
|
+
setEditing(true);
|
|
339
|
+
setTimeout(function () {
|
|
340
|
+
var _mentionInputRef$curr;
|
|
341
|
+
|
|
342
|
+
// @ts-ignore
|
|
343
|
+
(_mentionInputRef$curr = mentionInputRef.current) === null || _mentionInputRef$curr === void 0 ? void 0 : _mentionInputRef$curr.methods().focus();
|
|
344
|
+
}, 0);
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
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
348
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
306
349
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node"))
|
|
307
350
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -313,15 +356,22 @@ function _default(props) {
|
|
|
313
356
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
314
357
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-prefix"))
|
|
315
358
|
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
316
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-title"))
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
359
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-title")),
|
|
360
|
+
onClick: onTitleTextClickHandler
|
|
361
|
+
}, /*#__PURE__*/_react["default"].createElement(_richEditor.TitaInlineRichEditor, {
|
|
362
|
+
editable: editing,
|
|
363
|
+
initialState: krNameData.richText,
|
|
364
|
+
onChange: setKrNameData,
|
|
322
365
|
onBlur: onKrNameChangeHandler,
|
|
323
|
-
|
|
324
|
-
|
|
366
|
+
onKeyDown: onInputKeyDownHandler,
|
|
367
|
+
placeholder: "KR\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",
|
|
368
|
+
ref: mentionInputRef
|
|
369
|
+
}), krNameEditable && !editing && /*#__PURE__*/_react["default"].createElement("span", {
|
|
370
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__text-icon"))
|
|
371
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
372
|
+
className: "tu-icon-bianji2",
|
|
373
|
+
onClick: triggerEdit
|
|
374
|
+
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
325
375
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-h2"))
|
|
326
376
|
}, /*#__PURE__*/_react["default"].createElement(OkrRowColumn, {
|
|
327
377
|
width: 68
|
|
@@ -348,7 +398,7 @@ function _default(props) {
|
|
|
348
398
|
marginLeft: 16
|
|
349
399
|
}, /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
350
400
|
data: data,
|
|
351
|
-
editable: krCanEdit && (0, _helper.getApprovalKr)(approvalSetting,
|
|
401
|
+
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
402
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
353
403
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-actions"))
|
|
354
404
|
}, showHeart && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -366,9 +416,9 @@ function _default(props) {
|
|
|
366
416
|
percent: data.progress,
|
|
367
417
|
linear: true,
|
|
368
418
|
linearId: data.mileStoneId,
|
|
369
|
-
linearStartColor: (0, _utils.getProcessColor)(data.riskLevel,
|
|
370
|
-
linearEndColor: (0, _utils.getProcessColor)(data.riskLevel,
|
|
371
|
-
backgroundColor: (0, _utils.getProcessColor)(data.riskLevel,
|
|
419
|
+
linearStartColor: (0, _utils.getProcessColor)(data.riskLevel, 'linearStartColor', okrInfo.status),
|
|
420
|
+
linearEndColor: (0, _utils.getProcessColor)(data.riskLevel, 'linearEndColor', okrInfo.status),
|
|
421
|
+
backgroundColor: (0, _utils.getProcessColor)(data.riskLevel, 'backgroundColor', okrInfo.status)
|
|
372
422
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
373
423
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-score"))
|
|
374
424
|
}, /*#__PURE__*/_react["default"].createElement(_krScoreEditor["default"], {
|
|
@@ -394,7 +444,7 @@ function _default(props) {
|
|
|
394
444
|
onOk: onEditWightOkHandler
|
|
395
445
|
}), /*#__PURE__*/_react["default"].createElement(_okrProgressModal["default"], {
|
|
396
446
|
okrInfo: data,
|
|
397
|
-
title: (0, _getLocale.getLocale)(
|
|
447
|
+
title: (0, _getLocale.getLocale)('OKR_MyO_Title_UpdateKR'),
|
|
398
448
|
visible: krModalVsible,
|
|
399
449
|
onClose: function onClose() {
|
|
400
450
|
return setKrModalVsible(false);
|
|
@@ -407,15 +457,15 @@ function _default(props) {
|
|
|
407
457
|
type: "warning"
|
|
408
458
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
409
459
|
type: "title"
|
|
410
|
-
}, (0, _getLocale.getLocale)(
|
|
460
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_KRP_Deletekey')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
411
461
|
type: "content"
|
|
412
|
-
}, (0, _getLocale.getLocale)(
|
|
462
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_KRP_Thekeyachieve')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
|
|
413
463
|
type: "button",
|
|
414
464
|
onClick: function onClick() {
|
|
415
465
|
return setDeleteModalVisible(false);
|
|
416
466
|
}
|
|
417
|
-
}, (0, _getLocale.getLocale)(
|
|
467
|
+
}, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.WarningButton, {
|
|
418
468
|
type: "button",
|
|
419
469
|
onClick: onDeleteKrHandler
|
|
420
|
-
}, (0, _getLocale.getLocale)(
|
|
470
|
+
}, (0, _getLocale.getLocale)('Mod_Delete'))));
|
|
421
471
|
}
|
package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js
CHANGED
|
@@ -81,7 +81,7 @@ var EditPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
81
81
|
var _super = _createSuper(EditPop);
|
|
82
82
|
|
|
83
83
|
function EditPop() {
|
|
84
|
-
var _this;
|
|
84
|
+
var _temp, _this;
|
|
85
85
|
|
|
86
86
|
_classCallCheck(this, EditPop);
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ var EditPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
89
89
|
args[_key] = arguments[_key];
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
92
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
93
93
|
value: _this.props.value,
|
|
94
94
|
showError: false,
|
|
95
95
|
errMsg: "",
|
|
@@ -152,7 +152,7 @@ var EditPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
152
152
|
errMsg: (0, _i18nFrontTranslate.inputWordTrans)(value.length, maxLength),
|
|
153
153
|
disable: !!(maxLength && value.length > maxLength && disable)
|
|
154
154
|
});
|
|
155
|
-
},
|
|
155
|
+
}, _temp));
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
_createClass(EditPop, [{
|
|
@@ -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() {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
.okr-detail-delete-confirm__option-text {
|
|
8
8
|
font-size: 14px;
|
|
9
|
-
color: #
|
|
9
|
+
color: #3F4755;
|
|
10
10
|
line-height: 22px;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.okr-detail-delete-confirm__icon.tu-icon-singlebox-have {
|
|
26
|
-
color: #
|
|
26
|
+
color: #BFC7D5;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.okr-detail-delete-confirm__icon.tu-icon-wiki {
|
|
@@ -38,17 +38,13 @@
|
|
|
38
38
|
margin-top: 10px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.okr-detail-delete-confirm .tita-radio:hover .tita-radio-inner {
|
|
42
|
-
color: #2879ff;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
41
|
.isApprovalDisabled {
|
|
46
42
|
margin-bottom: 0;
|
|
47
43
|
padding: 5px 24px;
|
|
48
44
|
font-size: 14px;
|
|
49
45
|
line-height: 22px;
|
|
50
|
-
transition: all
|
|
51
|
-
color: #
|
|
46
|
+
transition: all .3s ease-in;
|
|
47
|
+
color: #BFC7D5;
|
|
52
48
|
cursor: pointer;
|
|
53
49
|
display: flex;
|
|
54
50
|
align-items: center;
|
|
@@ -58,6 +54,6 @@
|
|
|
58
54
|
.isApprovalDisabled .options-icon {
|
|
59
55
|
margin-right: 12px;
|
|
60
56
|
font-size: 14px;
|
|
61
|
-
transition: all
|
|
57
|
+
transition: all .3s ease-in;
|
|
62
58
|
color: #89919f;
|
|
63
59
|
}
|
|
@@ -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 }; }
|
|
@@ -397,7 +399,7 @@ function OkrDetailHeader(_ref) {
|
|
|
397
399
|
name: detailInfo.workName,
|
|
398
400
|
principalUser: detailInfo.principalUser
|
|
399
401
|
}),
|
|
400
|
-
content: parent
|
|
402
|
+
content: parent && /*#__PURE__*/_react["default"].createElement("span", {
|
|
401
403
|
className: "okr-detail-head-parent"
|
|
402
404
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
403
405
|
className: "tu-icon-liebiao-duiqinubiao"
|
|
@@ -409,14 +411,16 @@ function OkrDetailHeader(_ref) {
|
|
|
409
411
|
krId: parent.id
|
|
410
412
|
});
|
|
411
413
|
}
|
|
412
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, parent.type === 'okr' ? 'O ' : 'KR '), parent.name))
|
|
413
|
-
onlyShowContent: approveStatusColor ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
414
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, parent.type === 'okr' ? 'O ' : 'KR '), (0, _openData.parseString)(parent.name))),
|
|
415
|
+
onlyShowContent: /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, approveStatusColor ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
414
416
|
className: "okr-detail-header-status",
|
|
415
417
|
style: {
|
|
416
418
|
color: approveStatusColor.color,
|
|
417
419
|
backgroundColor: approveStatusColor.bgColor
|
|
418
420
|
}
|
|
419
|
-
}, (0, _constant.getApproveStatusTextMap)(okrInfo.applyState)) : null
|
|
421
|
+
}, (0, _constant.getApproveStatusTextMap)(okrInfo.applyState)) : null, Number(detailInfo.status) === 2 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
422
|
+
className: "okr-drawer-header__over-tag"
|
|
423
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Butt_Hasended')))
|
|
420
424
|
}), /*#__PURE__*/_react["default"].createElement(_okrShare["default"], {
|
|
421
425
|
visible: shareVisible,
|
|
422
426
|
onClose: closeShareModal,
|
|
@@ -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
|
+
}
|