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