@titaui/pc 1.12.7 → 1.12.8
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 +31 -20
- package/lib/components/create-okr-modal/fields/okr-parent.js +7 -5
- package/lib/components/create-okr-modal/index.js +197 -132
- package/lib/components/create-okr-modal/kr-items/index.css +23 -13
- package/lib/components/create-okr-modal/kr-items/krDatas.js +95 -76
- package/lib/components/create-okr-modal/kr-items/krItem.js +54 -57
- package/lib/components/create-okr-modal/style.js +5 -5
- package/lib/components/dynamic/components/title/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +17 -17
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +9 -9
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +3 -1
- package/lib/components/eReport/eReportLists/reportList.js +29 -30
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +11 -9
- package/lib/components/nav-top/components/menu/index.js +3 -3
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +3 -3
- package/lib/components/okr-detail/components/ao-nice/index.css +0 -1
- package/lib/components/okr-detail/components/header/edit-name.js +76 -39
- package/lib/components/okr-detail/components/header/index.css +122 -41
- package/lib/components/okr-detail/components/header/index.js +45 -48
- package/lib/components/okr-detail/components/header/o-classify.js +154 -0
- package/lib/components/okr-detail/components/header/o-name.js +7 -5
- package/lib/components/okr-detail/components/o-progress-update/index.js +2 -2
- 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 +66 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +174 -64
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +15 -13
- package/lib/components/okr-detail/components/tab-panel-content/index.css +1 -0
- package/lib/components/okr-detail/detail-header/index.js +11 -5
- package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +75 -53
- package/lib/components/okr-detail/okr-list/index.css +9 -0
- package/lib/components/okr-detail/okr-list/index.js +25 -25
- package/lib/components/okr-detail/request-apis.js +73 -69
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +34 -32
- package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-flow/child-node/kr-node.js +3 -1
- package/lib/components/okr-flow/child-node/work-node.js +3 -1
- package/lib/components/okr-flow/export-modal/index.js +6 -6
- 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/o-progress-update/index.js +2 -2
- package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +3 -3
- package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
- package/lib/components/okr-share/common-painter/utils.js +187 -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 +97 -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/search-key-handle/index.js +12 -10
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +2 -2
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +4 -4
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
- package/lib/components/upload/components/uploadedPreview.js +17 -17
- package/lib/components/upload/index.js +23 -23
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +14 -14
- package/lib/components/user-selector/searched-panel/index.js +4 -4
- package/lib/components/wechat-btn/index.css +5 -1
- package/lib/components-v1/userSelector/components/SingleMode.js +7 -5
- package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
- package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
- package/lib/pages/new-okr-list/header/index.js +15 -15
- package/lib/utils/hooks.js +5 -5
- package/lib/utils/open-data.js +216 -66
- package/lib/utils/tita-okr-cycle.js +3 -3
- package/package.json +2 -1
|
@@ -44,7 +44,7 @@ var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
|
|
|
44
44
|
|
|
45
45
|
var getKrs = function getKrs(_ref) {
|
|
46
46
|
var okrId = _ref.okrId;
|
|
47
|
-
return (0, _request.rpost)(
|
|
47
|
+
return (0, _request.rpost)('v1')("okr/task/kr?okrId=".concat(okrId), {
|
|
48
48
|
sortType: 1,
|
|
49
49
|
work_id: okrId,
|
|
50
50
|
startNum: 1,
|
|
@@ -53,7 +53,7 @@ var getKrs = function getKrs(_ref) {
|
|
|
53
53
|
app_id: 1,
|
|
54
54
|
app_type: 1,
|
|
55
55
|
to_user_id: userId,
|
|
56
|
-
detail_type:
|
|
56
|
+
detail_type: 'pq',
|
|
57
57
|
appId: 1,
|
|
58
58
|
appType: 1,
|
|
59
59
|
taskType: 0,
|
|
@@ -68,7 +68,7 @@ exports.getKrs = getKrs;
|
|
|
68
68
|
var updateKrPrincipal = function updateKrPrincipal(_ref2) {
|
|
69
69
|
var kr = _ref2.kr,
|
|
70
70
|
user = _ref2.user;
|
|
71
|
-
return (0, _request.rpost)(
|
|
71
|
+
return (0, _request.rpost)('v1')("WorkMileStone/UpdatePrincipal?workMileStoneId=".concat(kr.mileStoneId), {
|
|
72
72
|
endDate: kr.endDate,
|
|
73
73
|
mileStoneName: kr.mileStoneName,
|
|
74
74
|
principalId: user.userId,
|
|
@@ -83,7 +83,7 @@ exports.updateKrPrincipal = updateKrPrincipal;
|
|
|
83
83
|
var updateConfidenceIndex = function updateConfidenceIndex(_ref3) {
|
|
84
84
|
var kr = _ref3.kr,
|
|
85
85
|
confidenceIndex = _ref3.confidenceIndex;
|
|
86
|
-
return (0, _request.rpost)(
|
|
86
|
+
return (0, _request.rpost)('v1')("kr/updateConfidenceIndex?workMileStoneId=".concat(kr.mileStoneId), {
|
|
87
87
|
confidenceIndex: confidenceIndex
|
|
88
88
|
});
|
|
89
89
|
};
|
|
@@ -92,10 +92,14 @@ exports.updateConfidenceIndex = updateConfidenceIndex;
|
|
|
92
92
|
|
|
93
93
|
var updateOkrName = function updateOkrName(_ref4) {
|
|
94
94
|
var workId = _ref4.workId,
|
|
95
|
-
workName = _ref4.workName
|
|
96
|
-
|
|
95
|
+
workName = _ref4.workName,
|
|
96
|
+
workNameRichText = _ref4.workNameRichText,
|
|
97
|
+
aiteUsers = _ref4.aiteUsers;
|
|
98
|
+
return (0, _request.rpost)('v1')('okr/name', {
|
|
97
99
|
workId: workId,
|
|
98
|
-
workName: workName
|
|
100
|
+
workName: workName,
|
|
101
|
+
workNameRichText: workNameRichText,
|
|
102
|
+
aiteUsers: aiteUsers
|
|
99
103
|
});
|
|
100
104
|
};
|
|
101
105
|
|
|
@@ -103,9 +107,9 @@ exports.updateOkrName = updateOkrName;
|
|
|
103
107
|
|
|
104
108
|
var getOkrDetail = function getOkrDetail(_ref5) {
|
|
105
109
|
var okrId = _ref5.okrId;
|
|
106
|
-
return (0, _request.rget)(
|
|
110
|
+
return (0, _request.rget)('v1')("okr/detailInfo?okrId=".concat(okrId)).then(function (headInfo) {
|
|
107
111
|
if (headInfo.Code != 1) {
|
|
108
|
-
throw headInfo.Message.replace(/项目/g, (0, _getLocale.getLocale)(
|
|
112
|
+
throw headInfo.Message.replace(/项目/g, (0, _getLocale.getLocale)('Mod_Objective'));
|
|
109
113
|
}
|
|
110
114
|
|
|
111
115
|
return headInfo.Data;
|
|
@@ -115,7 +119,7 @@ var getOkrDetail = function getOkrDetail(_ref5) {
|
|
|
115
119
|
exports.getOkrDetail = getOkrDetail;
|
|
116
120
|
|
|
117
121
|
var getOkrApprovalSettingInfo = function getOkrApprovalSettingInfo() {
|
|
118
|
-
return (0, _request.rget)(
|
|
122
|
+
return (0, _request.rget)('v1')('WorkManageSetting/GetOkrApproval');
|
|
119
123
|
};
|
|
120
124
|
|
|
121
125
|
exports.getOkrApprovalSettingInfo = getOkrApprovalSettingInfo;
|
|
@@ -123,7 +127,7 @@ exports.getOkrApprovalSettingInfo = getOkrApprovalSettingInfo;
|
|
|
123
127
|
var updateClassify = function updateClassify(_ref6) {
|
|
124
128
|
var okrId = _ref6.okrId,
|
|
125
129
|
okrClassify = _ref6.okrClassify;
|
|
126
|
-
return (0, _request.rpost)(
|
|
130
|
+
return (0, _request.rpost)('v1')("okr/update/classify?okrId=".concat(okrId), {
|
|
127
131
|
okrClassify: okrClassify
|
|
128
132
|
});
|
|
129
133
|
};
|
|
@@ -131,9 +135,9 @@ var updateClassify = function updateClassify(_ref6) {
|
|
|
131
135
|
exports.updateClassify = updateClassify;
|
|
132
136
|
|
|
133
137
|
var updateOkrPrincipal = function updateOkrPrincipal(params) {
|
|
134
|
-
return (0, _request.rpost)(
|
|
138
|
+
return (0, _request.rpost)('v1')('Work/Deliver', _objectSpread({}, params), {
|
|
135
139
|
headers: {
|
|
136
|
-
|
|
140
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
137
141
|
},
|
|
138
142
|
transformRequest: _qs["default"].stringify
|
|
139
143
|
});
|
|
@@ -145,7 +149,7 @@ var updateKrDate = function updateKrDate(_ref7) {
|
|
|
145
149
|
var kr = _ref7.kr,
|
|
146
150
|
startDate = _ref7.startDate,
|
|
147
151
|
endDate = _ref7.endDate;
|
|
148
|
-
return (0, _request.rpost)(
|
|
152
|
+
return (0, _request.rpost)('v1')("WorkMileStone/UpdateDate?workMileStoneId=".concat(kr.mileStoneId), {
|
|
149
153
|
startDate: startDate,
|
|
150
154
|
endDate: endDate
|
|
151
155
|
});
|
|
@@ -154,24 +158,24 @@ var updateKrDate = function updateKrDate(_ref7) {
|
|
|
154
158
|
exports.updateKrDate = updateKrDate;
|
|
155
159
|
|
|
156
160
|
var updateKrProgressAndStatus = function updateKrProgressAndStatus(params) {
|
|
157
|
-
return (0, _request.rpost)(
|
|
161
|
+
return (0, _request.rpost)('v1')('kr/progressAndStatus/update', params);
|
|
158
162
|
};
|
|
159
163
|
|
|
160
164
|
exports.updateKrProgressAndStatus = updateKrProgressAndStatus;
|
|
161
165
|
|
|
162
166
|
var updateProgress = function updateProgress(params) {
|
|
163
|
-
return (0, _request.rpost)(
|
|
167
|
+
return (0, _request.rpost)('v2')('Work/progress', _objectSpread({}, params));
|
|
164
168
|
};
|
|
165
169
|
|
|
166
170
|
exports.updateProgress = updateProgress;
|
|
167
171
|
|
|
168
172
|
var createNewKr = function createNewKr(params) {
|
|
169
|
-
return (0, _request.rpost)(
|
|
173
|
+
return (0, _request.rpost)('v1')('kr/add', _objectSpread({
|
|
170
174
|
MileStoneType: 3,
|
|
171
175
|
confidenceIndex: 5
|
|
172
176
|
}, params), {
|
|
173
177
|
headers: {
|
|
174
|
-
|
|
178
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
175
179
|
},
|
|
176
180
|
transformRequest: _qs["default"].stringify
|
|
177
181
|
});
|
|
@@ -186,25 +190,25 @@ var getPraiseComments = function getPraiseComments(params) {
|
|
|
186
190
|
count = _params$count === void 0 ? 9999 : _params$count,
|
|
187
191
|
_params$objType = params.objType,
|
|
188
192
|
objType = _params$objType === void 0 ? 10 : _params$objType;
|
|
189
|
-
return (0, _request.rget)(
|
|
193
|
+
return (0, _request.rget)('v1')("praise/get?objId=".concat(objId, "&start=").concat(start, "&count=").concat(count, "&objType=").concat(objType));
|
|
190
194
|
};
|
|
191
195
|
|
|
192
196
|
exports.getPraiseComments = getPraiseComments;
|
|
193
197
|
|
|
194
198
|
var addPraise = function addPraise(feedId, type) {
|
|
195
|
-
return (0, _request.rpost)(
|
|
199
|
+
return (0, _request.rpost)('v1')("praise/feed?feedId=".concat(feedId, "&praiseType=").concat(type));
|
|
196
200
|
};
|
|
197
201
|
|
|
198
202
|
exports.addPraise = addPraise;
|
|
199
203
|
|
|
200
204
|
var cancelPraise = function cancelPraise(feedId) {
|
|
201
|
-
return (0, _request.rpost)(
|
|
205
|
+
return (0, _request.rpost)('v1')("praise/feed/cancel?feedId=".concat(feedId));
|
|
202
206
|
};
|
|
203
207
|
|
|
204
208
|
exports.cancelPraise = cancelPraise;
|
|
205
209
|
|
|
206
210
|
var getFeedById = function getFeedById(feedId, commentCount) {
|
|
207
|
-
return (0, _request.rget)(
|
|
211
|
+
return (0, _request.rget)('v2')("user/feed/GetById?feed_id=".concat(feedId, "&comment_count=").concat(commentCount));
|
|
208
212
|
};
|
|
209
213
|
|
|
210
214
|
exports.getFeedById = getFeedById;
|
|
@@ -215,7 +219,7 @@ var updateParentId = /*#__PURE__*/function () {
|
|
|
215
219
|
while (1) {
|
|
216
220
|
switch (_context.prev = _context.next) {
|
|
217
221
|
case 0:
|
|
218
|
-
return _context.abrupt("return", (0, _request.rpost)(
|
|
222
|
+
return _context.abrupt("return", (0, _request.rpost)('v1')("okr/updateParentId?okrId=".concat(params.okrId, "&parentId=").concat(params.parentId, "&parentType=").concat(params.parentId != 0 ? params.parentType : 0)));
|
|
219
223
|
|
|
220
224
|
case 1:
|
|
221
225
|
case "end":
|
|
@@ -233,13 +237,13 @@ var updateParentId = /*#__PURE__*/function () {
|
|
|
233
237
|
exports.updateParentId = updateParentId;
|
|
234
238
|
|
|
235
239
|
var cancelParentOkr = function cancelParentOkr(okrId) {
|
|
236
|
-
return (0, _request.rpost)(
|
|
240
|
+
return (0, _request.rpost)('v1')("okr/updateParentId?okrId=".concat(okrId, "&parentId=0&parentType=0"));
|
|
237
241
|
};
|
|
238
242
|
|
|
239
243
|
exports.cancelParentOkr = cancelParentOkr;
|
|
240
244
|
|
|
241
245
|
var getOrg = function getOrg() {
|
|
242
|
-
return (0, _request.rget)(
|
|
246
|
+
return (0, _request.rget)('v1')('org/Get');
|
|
243
247
|
};
|
|
244
248
|
|
|
245
249
|
exports.getOrg = getOrg;
|
|
@@ -247,9 +251,9 @@ exports.getOrg = getOrg;
|
|
|
247
251
|
var getKrsByCondition = function getKrsByCondition(_ref9) {
|
|
248
252
|
var okrId = _ref9.okrId,
|
|
249
253
|
condition = _ref9.condition;
|
|
250
|
-
return (0, _request.rpost)(
|
|
254
|
+
return (0, _request.rpost)('v1')("okr/task/kr?okrId=".concat(okrId), condition, {
|
|
251
255
|
headers: {
|
|
252
|
-
|
|
256
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
253
257
|
},
|
|
254
258
|
transformRequest: _qs["default"].stringify
|
|
255
259
|
}).then(function (resp) {
|
|
@@ -260,13 +264,13 @@ var getKrsByCondition = function getKrsByCondition(_ref9) {
|
|
|
260
264
|
exports.getKrsByCondition = getKrsByCondition;
|
|
261
265
|
|
|
262
266
|
var deleteKr = function deleteKr(mileStoneId) {
|
|
263
|
-
return (0, _request.rpost)(
|
|
267
|
+
return (0, _request.rpost)('v1')("WorkMileStone/Delete?workMileStoneId=".concat(mileStoneId));
|
|
264
268
|
};
|
|
265
269
|
|
|
266
270
|
exports.deleteKr = deleteKr;
|
|
267
271
|
|
|
268
272
|
var updateKrName = function updateKrName(params) {
|
|
269
|
-
return (0, _request.rpost)(
|
|
273
|
+
return (0, _request.rpost)('v1')("WorkMileStone/UpdateName?workMileStoneId=".concat(params.workMileStoneId), params);
|
|
270
274
|
};
|
|
271
275
|
|
|
272
276
|
exports.updateKrName = updateKrName;
|
|
@@ -274,12 +278,12 @@ exports.updateKrName = updateKrName;
|
|
|
274
278
|
var updateTaskPrincipal = function updateTaskPrincipal(_ref10) {
|
|
275
279
|
var task_id = _ref10.task_id,
|
|
276
280
|
to_user_id = _ref10.to_user_id;
|
|
277
|
-
return (0, _request.rpost)(
|
|
281
|
+
return (0, _request.rpost)('v1')('task/UpdatePrincipal', {
|
|
278
282
|
task_id: task_id,
|
|
279
283
|
to_user_id: to_user_id
|
|
280
284
|
}, {
|
|
281
285
|
headers: {
|
|
282
|
-
|
|
286
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
283
287
|
},
|
|
284
288
|
transformRequest: _qs["default"].stringify
|
|
285
289
|
});
|
|
@@ -292,14 +296,14 @@ var updateTaskDate = function updateTaskDate(_ref11) {
|
|
|
292
296
|
endDate = _ref11.endDate,
|
|
293
297
|
startDate = _ref11.startDate,
|
|
294
298
|
isLongTerm = _ref11.isLongTerm;
|
|
295
|
-
return (0, _request.rpost)(
|
|
299
|
+
return (0, _request.rpost)('v1')("task/UpdateTaskDate?task_id=".concat(task_id), {
|
|
296
300
|
task_id: task_id,
|
|
297
301
|
Deadline: endDate,
|
|
298
302
|
StartDate: startDate,
|
|
299
303
|
IsLongTerm: isLongTerm
|
|
300
304
|
}, {
|
|
301
305
|
headers: {
|
|
302
|
-
|
|
306
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
303
307
|
},
|
|
304
308
|
transformRequest: _qs["default"].stringify
|
|
305
309
|
});
|
|
@@ -310,12 +314,12 @@ exports.updateTaskDate = updateTaskDate;
|
|
|
310
314
|
var updateTaskStatus = function updateTaskStatus(_ref12) {
|
|
311
315
|
var task_id = _ref12.task_id,
|
|
312
316
|
status = _ref12.status;
|
|
313
|
-
return (0, _request.rput)(
|
|
317
|
+
return (0, _request.rput)('v1')("PlanV2/UpdateStatus?plan_item_id=".concat(task_id, "&Status=").concat(status), {
|
|
314
318
|
plan_item_id: task_id,
|
|
315
319
|
Status: status
|
|
316
320
|
}, {
|
|
317
321
|
headers: {
|
|
318
|
-
|
|
322
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
319
323
|
},
|
|
320
324
|
transformRequest: _qs["default"].stringify
|
|
321
325
|
});
|
|
@@ -328,7 +332,7 @@ var cancelRel = function cancelRel(_ref13) {
|
|
|
328
332
|
objType = _ref13.objType,
|
|
329
333
|
okrId = _ref13.okrId,
|
|
330
334
|
taskId = _ref13.taskId;
|
|
331
|
-
return (0, _request.rpost)(
|
|
335
|
+
return (0, _request.rpost)('v1')('okr/task/cancelrel', {
|
|
332
336
|
krId: krId,
|
|
333
337
|
objType: objType,
|
|
334
338
|
okrId: okrId,
|
|
@@ -342,13 +346,13 @@ exports.cancelRel = cancelRel;
|
|
|
342
346
|
var setTaskPriority = function setTaskPriority(_ref14) {
|
|
343
347
|
var task_id = _ref14.task_id,
|
|
344
348
|
priority = _ref14.priority;
|
|
345
|
-
return (0, _request.rpost)(
|
|
349
|
+
return (0, _request.rpost)('v2')("task/SetTaskPriority?task_id=".concat(task_id, "&priority=").concat(priority), {});
|
|
346
350
|
};
|
|
347
351
|
|
|
348
352
|
exports.setTaskPriority = setTaskPriority;
|
|
349
353
|
|
|
350
354
|
var krChangeOrder = function krChangeOrder(params) {
|
|
351
|
-
return (0, _request.rpost)(
|
|
355
|
+
return (0, _request.rpost)('v1')("workMileStone/drag?workId=".concat(params.workId), params);
|
|
352
356
|
}; // type: 1 上级查看 2 更新
|
|
353
357
|
|
|
354
358
|
|
|
@@ -359,14 +363,14 @@ var remindAction = function remindAction(_ref15) {
|
|
|
359
363
|
work_id = _ref15.work_id,
|
|
360
364
|
_ref15$type = _ref15.type,
|
|
361
365
|
type = _ref15$type === void 0 ? 1 : _ref15$type;
|
|
362
|
-
return (0, _request.rpost)(
|
|
366
|
+
return (0, _request.rpost)('v1')("work/notify/message?toUserId=".concat(toUserId), {
|
|
363
367
|
objId: work_id,
|
|
364
|
-
content:
|
|
368
|
+
content: '',
|
|
365
369
|
toUserId: toUserId,
|
|
366
|
-
templateId: type === 1 ?
|
|
370
|
+
templateId: type === 1 ? 'TitaFeedSystem.Work.Okr.Message.RemindSuperiorLookOkrInfo' : 'TitaFeedSystem.Work.Okr.Message.RemindSubUpdateProgress'
|
|
367
371
|
}, {
|
|
368
372
|
headers: {
|
|
369
|
-
|
|
373
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
370
374
|
},
|
|
371
375
|
transformRequest: _qs["default"].stringify
|
|
372
376
|
});
|
|
@@ -375,14 +379,14 @@ var remindAction = function remindAction(_ref15) {
|
|
|
375
379
|
exports.remindAction = remindAction;
|
|
376
380
|
|
|
377
381
|
var getOkrUsers = function getOkrUsers(workId) {
|
|
378
|
-
return (0, _request.rget)(
|
|
382
|
+
return (0, _request.rget)('v1')("okr/users?workId=".concat(workId));
|
|
379
383
|
};
|
|
380
384
|
|
|
381
385
|
exports.getOkrUsers = getOkrUsers;
|
|
382
386
|
|
|
383
387
|
var addComment = function addComment(data) {
|
|
384
|
-
return (0, _request.rpost)(
|
|
385
|
-
Content: data.Content ||
|
|
388
|
+
return (0, _request.rpost)('v2')('comment/Add', _objectSpread(_objectSpread({}, data), {}, {
|
|
389
|
+
Content: data.Content || ' '
|
|
386
390
|
}));
|
|
387
391
|
}; // okr request
|
|
388
392
|
|
|
@@ -390,19 +394,19 @@ var addComment = function addComment(data) {
|
|
|
390
394
|
exports.addComment = addComment;
|
|
391
395
|
|
|
392
396
|
var updateOkrVisibility = function updateOkrVisibility(data) {
|
|
393
|
-
return (0, _request.rpost)(
|
|
397
|
+
return (0, _request.rpost)('v2')('work/visiblity', data);
|
|
394
398
|
};
|
|
395
399
|
|
|
396
400
|
exports.updateOkrVisibility = updateOkrVisibility;
|
|
397
401
|
|
|
398
402
|
var addUser = function addUser(addUserId, okrId, relation) {
|
|
399
|
-
return (0, _request.rpost)(
|
|
403
|
+
return (0, _request.rpost)('v2')('work/addUser', {
|
|
400
404
|
relation: relation,
|
|
401
405
|
toUserIds: addUserId,
|
|
402
406
|
workId: okrId
|
|
403
407
|
}, {
|
|
404
408
|
headers: {
|
|
405
|
-
|
|
409
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
406
410
|
},
|
|
407
411
|
transformRequest: _qs["default"].stringify
|
|
408
412
|
});
|
|
@@ -411,13 +415,13 @@ var addUser = function addUser(addUserId, okrId, relation) {
|
|
|
411
415
|
exports.addUser = addUser;
|
|
412
416
|
|
|
413
417
|
var deleteUser = function deleteUser(delUserId, okrId, relation) {
|
|
414
|
-
return (0, _request.rdelete)(
|
|
418
|
+
return (0, _request.rdelete)('v2')("work/deleteUser?toUserIds=".concat(delUserId, "&workId=").concat(okrId, "&relation=").concat(relation));
|
|
415
419
|
};
|
|
416
420
|
|
|
417
421
|
exports.deleteUser = deleteUser;
|
|
418
422
|
|
|
419
423
|
var workDelete = function workDelete(data) {
|
|
420
|
-
return (0, _request.rdelete)(
|
|
424
|
+
return (0, _request.rdelete)('v1')("okr/deleteV2?workId=".concat(data.workId), {
|
|
421
425
|
data: data
|
|
422
426
|
});
|
|
423
427
|
};
|
|
@@ -425,11 +429,11 @@ var workDelete = function workDelete(data) {
|
|
|
425
429
|
exports.workDelete = workDelete;
|
|
426
430
|
|
|
427
431
|
var start = function start(okrId) {
|
|
428
|
-
return (0, _request.rpost)(
|
|
432
|
+
return (0, _request.rpost)('v1')('okr/Start', {
|
|
429
433
|
work_id: okrId
|
|
430
434
|
}, {
|
|
431
435
|
headers: {
|
|
432
|
-
|
|
436
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
433
437
|
},
|
|
434
438
|
transformRequest: _qs["default"].stringify
|
|
435
439
|
});
|
|
@@ -438,11 +442,11 @@ var start = function start(okrId) {
|
|
|
438
442
|
exports.start = start;
|
|
439
443
|
|
|
440
444
|
var close = function close(okrId) {
|
|
441
|
-
return (0, _request.rpost)(
|
|
445
|
+
return (0, _request.rpost)('v1')('okr/Close', {
|
|
442
446
|
work_id: okrId
|
|
443
447
|
}, {
|
|
444
448
|
headers: {
|
|
445
|
-
|
|
449
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
446
450
|
},
|
|
447
451
|
transformRequest: _qs["default"].stringify
|
|
448
452
|
});
|
|
@@ -451,9 +455,9 @@ var close = function close(okrId) {
|
|
|
451
455
|
exports.close = close;
|
|
452
456
|
|
|
453
457
|
var updateOCommitType = function updateOCommitType(params) {
|
|
454
|
-
return (0, _request.rpost)(
|
|
458
|
+
return (0, _request.rpost)('v1')("okr/update/okrType?okrId=".concat(params.okrId), params, {
|
|
455
459
|
headers: {
|
|
456
|
-
|
|
460
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
457
461
|
},
|
|
458
462
|
transformRequest: _qs["default"].stringify
|
|
459
463
|
});
|
|
@@ -462,7 +466,7 @@ var updateOCommitType = function updateOCommitType(params) {
|
|
|
462
466
|
exports.updateOCommitType = updateOCommitType;
|
|
463
467
|
|
|
464
468
|
var saveODesc = function saveODesc(workId, description) {
|
|
465
|
-
return (0, _request.rpost)(
|
|
469
|
+
return (0, _request.rpost)('v1')('okr/description', {
|
|
466
470
|
workId: workId,
|
|
467
471
|
description: description
|
|
468
472
|
});
|
|
@@ -471,9 +475,9 @@ var saveODesc = function saveODesc(workId, description) {
|
|
|
471
475
|
exports.saveODesc = saveODesc;
|
|
472
476
|
|
|
473
477
|
var transferPrincipal = function transferPrincipal(workId, email, toUserId) {
|
|
474
|
-
return (0, _request.rpost)(
|
|
478
|
+
return (0, _request.rpost)('v1')('Work/Deliver', "work_id=".concat(workId, "&to_user_id=").concat(toUserId), {
|
|
475
479
|
headers: {
|
|
476
|
-
|
|
480
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
|
477
481
|
}
|
|
478
482
|
});
|
|
479
483
|
};
|
|
@@ -481,7 +485,7 @@ var transferPrincipal = function transferPrincipal(workId, email, toUserId) {
|
|
|
481
485
|
exports.transferPrincipal = transferPrincipal;
|
|
482
486
|
|
|
483
487
|
var updateOClassify = function updateOClassify(classify, workId) {
|
|
484
|
-
return (0, _request.rpost)(
|
|
488
|
+
return (0, _request.rpost)('v1')("okr/update/classify?okrId=".concat(workId), {
|
|
485
489
|
work_id: workId,
|
|
486
490
|
okrClassify: classify
|
|
487
491
|
});
|
|
@@ -493,7 +497,7 @@ var updateVisibility = function updateVisibility(workId, visibility) {
|
|
|
493
497
|
var areaUserIds = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
494
498
|
var areaOrgIds = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
495
499
|
var areaGroupIds = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
|
|
496
|
-
return (0, _request.rpost)(
|
|
500
|
+
return (0, _request.rpost)('v2')('work/visiblity', {
|
|
497
501
|
workId: workId,
|
|
498
502
|
visibility: visibility,
|
|
499
503
|
areaUserIds: areaUserIds,
|
|
@@ -506,19 +510,19 @@ var updateVisibility = function updateVisibility(workId, visibility) {
|
|
|
506
510
|
exports.updateVisibility = updateVisibility;
|
|
507
511
|
|
|
508
512
|
var addUserRelation = function addUserRelation(workId, relation, addUser) {
|
|
509
|
-
return (0, _request.rpost)(
|
|
513
|
+
return (0, _request.rpost)('v2')("work/addUserByObj?workId=".concat(workId, "&relation=").concat(relation), addUser);
|
|
510
514
|
};
|
|
511
515
|
|
|
512
516
|
exports.addUserRelation = addUserRelation;
|
|
513
517
|
|
|
514
518
|
var getProgress = function getProgress(workId) {
|
|
515
|
-
return (0, _request.rget)(
|
|
519
|
+
return (0, _request.rget)('v1')("okr/GetProgress?work_id=".concat(workId, "&count=10000"));
|
|
516
520
|
};
|
|
517
521
|
|
|
518
522
|
exports.getProgress = getProgress;
|
|
519
523
|
|
|
520
524
|
var updateProgressDesc = function updateProgressDesc(commentId, workId, content) {
|
|
521
|
-
return (0, _request.rpost)(
|
|
525
|
+
return (0, _request.rpost)('v1')("progress/updateContent?commentId=".concat(commentId, "&objId=").concat(workId, "&objType=62"), {
|
|
522
526
|
content: content
|
|
523
527
|
});
|
|
524
528
|
};
|
|
@@ -526,25 +530,25 @@ var updateProgressDesc = function updateProgressDesc(commentId, workId, content)
|
|
|
526
530
|
exports.updateProgressDesc = updateProgressDesc;
|
|
527
531
|
|
|
528
532
|
var deleteProgressDesc = function deleteProgressDesc(commentId, workId) {
|
|
529
|
-
return (0, _request.rpost)(
|
|
533
|
+
return (0, _request.rpost)('v1')("progress/delete?commentId=".concat(commentId, "&objId=").concat(workId, "&objType=62"));
|
|
530
534
|
};
|
|
531
535
|
|
|
532
536
|
exports.deleteProgressDesc = deleteProgressDesc;
|
|
533
537
|
|
|
534
538
|
var getRelProgress = function getRelProgress(workId) {
|
|
535
|
-
return (0, _request.rget)(
|
|
539
|
+
return (0, _request.rget)('v1')("okr/detail/relProgress?okrId=".concat(workId));
|
|
536
540
|
};
|
|
537
541
|
|
|
538
542
|
exports.getRelProgress = getRelProgress;
|
|
539
543
|
|
|
540
544
|
var getRelWorks = function getRelWorks(okrId) {
|
|
541
|
-
return (0, _request.rget)(
|
|
545
|
+
return (0, _request.rget)('v1')("okr/detail/relWorks?okrId=".concat(okrId));
|
|
542
546
|
};
|
|
543
547
|
|
|
544
548
|
exports.getRelWorks = getRelWorks;
|
|
545
549
|
|
|
546
550
|
var updateChildOkrWeight = function updateChildOkrWeight(data) {
|
|
547
|
-
return (0, _request.rpost)(
|
|
551
|
+
return (0, _request.rpost)('v1')('okr/weight/save', {
|
|
548
552
|
OkrWeights: _toConsumableArray(data)
|
|
549
553
|
}, {
|
|
550
554
|
// "headers": { "Content-Type": "application/x-www-form-urlencoded" },
|
|
@@ -555,7 +559,7 @@ var updateChildOkrWeight = function updateChildOkrWeight(data) {
|
|
|
555
559
|
exports.updateChildOkrWeight = updateChildOkrWeight;
|
|
556
560
|
|
|
557
561
|
var updateOScore = function updateOScore(score, workId) {
|
|
558
|
-
return (0, _request.rpost)(
|
|
562
|
+
return (0, _request.rpost)('v2')('work/score', {
|
|
559
563
|
manualScore: score,
|
|
560
564
|
workId: workId
|
|
561
565
|
});
|
|
@@ -17,6 +17,8 @@ var _drawerManager = _interopRequireDefault(require("../../../../drawer-manager"
|
|
|
17
17
|
|
|
18
18
|
var _getLocale = require("../../../../../utils/getLocale");
|
|
19
19
|
|
|
20
|
+
var _openData = require("../../../../../utils/open-data");
|
|
21
|
+
|
|
20
22
|
require("./index.css");
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -33,7 +35,7 @@ var renderTitle = function renderTitle(index, title, id) {
|
|
|
33
35
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
36
|
className: "kr-progress__order"
|
|
35
37
|
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
36
|
-
text: title,
|
|
38
|
+
text: (0, _openData.parseString)(title),
|
|
37
39
|
maxWidth: 600,
|
|
38
40
|
exClass: "kr-progress__title-text"
|
|
39
41
|
}));
|