@titaui/pc 1.11.47 → 1.12.0-beta.1
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/avatar/name-avatar/index.css +0 -1
- package/lib/components/avatar/name-avatar/index.js +13 -22
- package/lib/components/avatar/text-avatar/index.css +2 -2
- package/lib/components/avatar/text-avatar/index.js +6 -6
- package/lib/components/button/rect-btn/index.css +11 -45
- package/lib/components/button/rect-btn/index.js +6 -12
- package/lib/components/change-okr-modal/index.js +6 -7
- package/lib/components/checkbox/index.css +3 -3
- package/lib/components/create-okr-modal/index.js +41 -45
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/dialog-confirm/index.css +2 -2
- package/lib/components/drawer/headerAction.js +1 -5
- package/lib/components/drawer/headerDrop.js +4 -42
- package/lib/components/drawer/index.css +0 -33
- package/lib/components/drawer/index.js +3 -26
- package/lib/components/dynamic/constant.js +33 -38
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +10 -48
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +2 -4
- package/lib/components/dynamic/new-ui.css +4 -4
- package/lib/components/dynamic/online-broadcast/data.js +1 -19
- package/lib/components/e-priority/index.css +4 -4
- package/lib/components/e-priority/index.js +2 -10
- package/lib/components/mblog/components/MblogContent.js +2 -5
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +11 -9
- package/lib/components/nav-top/components/menu/index.css +0 -91
- package/lib/components/nav-top/components/menu/index.js +24 -72
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -2
- package/lib/components/nav-top/components/user-message/components/todos/index.css +0 -1
- package/lib/components/nav-top/index.js +2 -6
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +4 -20
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -9
- package/lib/components/okr-detail/components/header/index.js +3 -10
- package/lib/components/okr-detail/components/header/o-name.js +3 -10
- package/lib/components/okr-detail/components/o-classify.js +1 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +16 -16
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +0 -10
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +54 -111
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +38 -0
- package/lib/components/okr-detail/detail-header/index.css +0 -11
- package/lib/components/okr-detail/detail-header/index.js +234 -228
- package/lib/components/okr-detail/index.js +4 -21
- package/lib/components/okr-detail/okr-list/index.js +6 -13
- package/lib/components/okr-detail/request-apis.js +8 -14
- package/lib/components/okr-flow/child-node/index.css +1 -1
- package/lib/components/okr-flow/export-modal/index.js +3 -66
- package/lib/components/okr-period-selector/index.js +5 -9
- package/lib/components/okr-period-selector/select-cycle.js +19 -23
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/survey-model/index.js +0 -3
- package/lib/components/task-relation-modal/index.js +1 -0
- package/lib/components/task-relation-modal/request-api.js +1 -2
- package/lib/components/task-tree/index.js +7 -1
- package/lib/components/task-tree/mock.js +944 -0
- package/lib/components/task-tree/task-item-node/constant.js +22 -39
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +8 -38
- package/lib/components/task-tree/task-item-node/e-task.js +24 -24
- package/lib/components/task-tree/task-item-node/index.css +18 -28
- package/lib/components/task-tree/task-tree.css +1 -1
- package/lib/components/time-picker/time-picker.js +102 -34
- package/lib/components/time-picker/timer-picker-input.js +6 -0
- package/lib/components/toast/index.js +3 -5
- package/lib/index.js +0 -40
- package/lib/pages/new-okr-list/header/index.css +0 -45
- package/lib/pages/new-okr-list/header/index.js +16 -40
- package/lib/pages/new-okr-list/index.js +2 -4
- package/lib/pages/new-okr-list/list/index.js +2 -19
- package/lib/pages/new-okr-list/request-api.js +2 -8
- package/lib/pages/okr-map/unsupport-ie/index.js +5 -3
- package/lib/utils/format-time.js +1 -8
- package/lib/utils/open-data.js +1 -5
- package/package.json +1 -1
- package/lib/components/nav-top/components/menu/img/new.svg +0 -30
- package/lib/components/nav-top/components/menu/img/wecome-temp.png +0 -0
- package/lib/components/okr-detail/detail-header/constant.js +0 -53
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +0 -59
- package/lib/components/okr-detail/helper.js +0 -108
- package/lib/components/textarea/index.css +0 -142
- package/lib/components/textarea/index.js +0 -259
- package/lib/pages/new-okr-list/header/common.js +0 -52
- package/lib/pages/new-okr-list/header/operate-record.js +0 -136
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.workDelete = exports.updateVisibility = exports.updateTaskStatus = exports.updateTaskPrincipal = exports.updateTaskDate = exports.updateProgressDesc = exports.updateProgress = exports.updateParentId = exports.updateOkrVisibility = exports.updateOkrPrincipal = exports.updateOkrName = exports.updateOScore = exports.updateOCommitType = exports.updateOClassify = exports.updateKrProgressAndStatus = exports.updateKrPrincipal = exports.updateKrName = exports.updateKrDate = exports.updateConfidenceIndex = exports.updateClassify = exports.updateChildOkrWeight = exports.transferPrincipal = exports.start = exports.setTaskPriority = exports.saveODesc = exports.remindAction = exports.krChangeOrder = exports.getRelWorks = exports.getRelProgress = exports.getProgress = exports.getPraiseComments = exports.getOrg = exports.getOkrUsers = exports.getOkrDetail = exports.
|
|
6
|
+
exports.workDelete = exports.updateVisibility = exports.updateTaskStatus = exports.updateTaskPrincipal = exports.updateTaskDate = exports.updateProgressDesc = exports.updateProgress = exports.updateParentId = exports.updateOkrVisibility = exports.updateOkrPrincipal = exports.updateOkrName = exports.updateOScore = exports.updateOCommitType = exports.updateOClassify = exports.updateKrProgressAndStatus = exports.updateKrPrincipal = exports.updateKrName = exports.updateKrDate = exports.updateConfidenceIndex = exports.updateClassify = exports.updateChildOkrWeight = exports.transferPrincipal = exports.start = exports.setTaskPriority = exports.saveODesc = exports.remindAction = exports.krChangeOrder = exports.getRelWorks = exports.getRelProgress = exports.getProgress = exports.getPraiseComments = exports.getOrg = exports.getOkrUsers = exports.getOkrDetail = exports.getKrsByCondition = exports.getKrs = exports.getFeedById = exports.deleteUser = exports.deleteProgressDesc = exports.deleteKr = exports.createNewKr = exports.close = exports.cancelRel = exports.cancelPraise = exports.cancelParentOkr = exports.addUserRelation = exports.addUser = exports.addPraise = exports.addComment = void 0;
|
|
7
7
|
|
|
8
8
|
var _qs = _interopRequireDefault(require("qs"));
|
|
9
9
|
|
|
@@ -89,7 +89,7 @@ exports.updateConfidenceIndex = updateConfidenceIndex;
|
|
|
89
89
|
var updateOkrName = function updateOkrName(_ref4) {
|
|
90
90
|
var workId = _ref4.workId,
|
|
91
91
|
workName = _ref4.workName;
|
|
92
|
-
return (0, _request.rpost)("
|
|
92
|
+
return (0, _request.rpost)("v2")("work/name", {
|
|
93
93
|
workId: workId,
|
|
94
94
|
workName: workName
|
|
95
95
|
});
|
|
@@ -110,12 +110,6 @@ var getOkrDetail = function getOkrDetail(_ref5) {
|
|
|
110
110
|
|
|
111
111
|
exports.getOkrDetail = getOkrDetail;
|
|
112
112
|
|
|
113
|
-
var getOkrApprovalSettingInfo = function getOkrApprovalSettingInfo() {
|
|
114
|
-
return (0, _request.rget)("v1")("WorkManageSetting/GetOkrApproval");
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
exports.getOkrApprovalSettingInfo = getOkrApprovalSettingInfo;
|
|
118
|
-
|
|
119
113
|
var updateClassify = function updateClassify(_ref6) {
|
|
120
114
|
var okrId = _ref6.okrId,
|
|
121
115
|
okrClassify = _ref6.okrClassify;
|
|
@@ -371,7 +365,7 @@ var remindAction = function remindAction(_ref15) {
|
|
|
371
365
|
exports.remindAction = remindAction;
|
|
372
366
|
|
|
373
367
|
var getOkrUsers = function getOkrUsers(workId) {
|
|
374
|
-
return (0, _request.rget)("
|
|
368
|
+
return (0, _request.rget)("v2")("work/users?workId=".concat(workId));
|
|
375
369
|
};
|
|
376
370
|
|
|
377
371
|
exports.getOkrUsers = getOkrUsers;
|
|
@@ -413,7 +407,7 @@ var deleteUser = function deleteUser(delUserId, okrId, relation) {
|
|
|
413
407
|
exports.deleteUser = deleteUser;
|
|
414
408
|
|
|
415
409
|
var workDelete = function workDelete(data) {
|
|
416
|
-
return (0, _request.rdelete)("
|
|
410
|
+
return (0, _request.rdelete)("v2")("work/deleteV2?workId=".concat(data.workId), {
|
|
417
411
|
data: data
|
|
418
412
|
});
|
|
419
413
|
};
|
|
@@ -421,7 +415,7 @@ var workDelete = function workDelete(data) {
|
|
|
421
415
|
exports.workDelete = workDelete;
|
|
422
416
|
|
|
423
417
|
var start = function start(okrId) {
|
|
424
|
-
return (0, _request.rpost)("v1")("
|
|
418
|
+
return (0, _request.rpost)("v1")("Work/Start", {
|
|
425
419
|
work_id: okrId
|
|
426
420
|
}, {
|
|
427
421
|
headers: {
|
|
@@ -434,7 +428,7 @@ var start = function start(okrId) {
|
|
|
434
428
|
exports.start = start;
|
|
435
429
|
|
|
436
430
|
var close = function close(okrId) {
|
|
437
|
-
return (0, _request.rpost)("v1")("
|
|
431
|
+
return (0, _request.rpost)("v1")("Work/Close", {
|
|
438
432
|
work_id: okrId
|
|
439
433
|
}, {
|
|
440
434
|
headers: {
|
|
@@ -458,7 +452,7 @@ var updateOCommitType = function updateOCommitType(params) {
|
|
|
458
452
|
exports.updateOCommitType = updateOCommitType;
|
|
459
453
|
|
|
460
454
|
var saveODesc = function saveODesc(workId, description) {
|
|
461
|
-
return (0, _request.rpost)("
|
|
455
|
+
return (0, _request.rpost)("v2")("work/description", {
|
|
462
456
|
workId: workId,
|
|
463
457
|
description: description
|
|
464
458
|
});
|
|
@@ -508,7 +502,7 @@ var addUserRelation = function addUserRelation(workId, relation, addUser) {
|
|
|
508
502
|
exports.addUserRelation = addUserRelation;
|
|
509
503
|
|
|
510
504
|
var getProgress = function getProgress(workId) {
|
|
511
|
-
return (0, _request.rget)("v1")("
|
|
505
|
+
return (0, _request.rget)("v1")("Work/GetProgress?work_id=".concat(workId, "&count=10000"));
|
|
512
506
|
};
|
|
513
507
|
|
|
514
508
|
exports.getProgress = getProgress;
|
|
@@ -37,8 +37,6 @@ var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
|
37
37
|
|
|
38
38
|
require("rc-color-picker/assets/index.css");
|
|
39
39
|
|
|
40
|
-
var Sentry = _interopRequireWildcard(require("@sentry/browser"));
|
|
41
|
-
|
|
42
40
|
require("./index.css");
|
|
43
41
|
|
|
44
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -157,8 +155,6 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
157
155
|
};
|
|
158
156
|
_context.next = 12;
|
|
159
157
|
return (0, _html2canvas["default"])(okrMapRef, opts).then(function (result) {
|
|
160
|
-
var _window, _window$BSGlobal, _window$BSGlobal$logi, _window2, _window2$BSGlobal, _window2$BSGlobal$ten;
|
|
161
|
-
|
|
162
158
|
if ((0, _bsGlobal.isWx)() && window.WWOpenData) {
|
|
163
159
|
if (window.WWOpenData.enableCanvasSharing) {
|
|
164
160
|
window.WWOpenData.enableCanvasSharing();
|
|
@@ -169,69 +165,11 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
169
165
|
}
|
|
170
166
|
}
|
|
171
167
|
|
|
172
|
-
var userId = (_window = window) === null || _window === void 0 ? void 0 : (_window$BSGlobal = _window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$logi = _window$BSGlobal.loginUserInfo) === null || _window$BSGlobal$logi === void 0 ? void 0 : _window$BSGlobal$logi.Id;
|
|
173
|
-
var telentId = (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$BSGlobal = _window2.BSGlobal) === null || _window2$BSGlobal === void 0 ? void 0 : (_window2$BSGlobal$ten = _window2$BSGlobal.tenantInfo) === null || _window2$BSGlobal$ten === void 0 ? void 0 : _window2$BSGlobal$ten.Id;
|
|
174
168
|
var imgUrl = result.toDataURL('image/png'); // 得到图片的base64编码数据
|
|
175
169
|
|
|
176
170
|
// 得到图片的base64编码数据
|
|
177
|
-
_toast["default"].Warning('导出中,请勿关闭弹窗', {
|
|
178
|
-
canClose: true
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
var equalIndex = imgUrl.indexOf('='); // 获取=号下标
|
|
182
|
-
|
|
183
|
-
// 获取=号下标
|
|
184
|
-
var size = 0;
|
|
185
|
-
|
|
186
|
-
if (equalIndex > 0) {
|
|
187
|
-
var str = imgUrl.substring(0, equalIndex); // 去除=号
|
|
188
|
-
|
|
189
|
-
// 去除=号
|
|
190
|
-
var strLength = str.length;
|
|
191
|
-
var fileLength = strLength - strLength / 8 * 2; // 真实的图片byte大小
|
|
192
|
-
|
|
193
|
-
// 真实的图片byte大小
|
|
194
|
-
size = Math.floor(fileLength); // 向下取整
|
|
195
|
-
} else {
|
|
196
|
-
var _strLength = imgUrl.length;
|
|
197
|
-
|
|
198
|
-
var _fileLength = _strLength - _strLength / 8 * 2;
|
|
199
|
-
|
|
200
|
-
size = Math.floor(_fileLength); // 向下取整
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
size = size / 1024 / 1024; // @ts-ignore
|
|
204
|
-
|
|
205
|
-
// @ts-ignore
|
|
206
|
-
window.titaTracker && window.titaTracker("action").record({
|
|
207
|
-
actionName: userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl.slice(1, 200),
|
|
208
|
-
actionGroup: 'okr地图图片',
|
|
209
|
-
productName: 'okr地图导出'
|
|
210
|
-
});
|
|
211
|
-
Sentry.withScope(function (scope) {
|
|
212
|
-
scope.setTag("error-level", "P0");
|
|
213
|
-
scope.setTag("error-type", "地图导出-图片生成");
|
|
214
|
-
scope.setExtra("userMessage", userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
|
|
215
|
-
});
|
|
216
171
|
(0, _requestApis.getBase64DownloadUrl)(imgUrl.split(',')[1]).then(function (url) {
|
|
217
|
-
var image = new Image();
|
|
218
|
-
|
|
219
|
-
// @ts-ignore
|
|
220
|
-
window.titaTracker && window.titaTracker("action").record({
|
|
221
|
-
actionName: userId + '租户:' + telentId + '我获得了地址' + url.Data.obj,
|
|
222
|
-
actionGroup: 'okr地图接口',
|
|
223
|
-
productName: 'okr地图导出'
|
|
224
|
-
});
|
|
225
|
-
Sentry.withScope(function (scope) {
|
|
226
|
-
scope.setTag("error-level", "P0");
|
|
227
|
-
scope.setTag("error-type", "地图导出-图片地址");
|
|
228
|
-
scope.setExtra("userMessage", userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
|
|
229
|
-
});
|
|
230
|
-
|
|
231
|
-
_toast["default"].Warning('图片上传成功,准备本地下载', {
|
|
232
|
-
canClose: true
|
|
233
|
-
});
|
|
234
|
-
|
|
172
|
+
var image = new Image();
|
|
235
173
|
image.setAttribute('crossOrigin', 'anonymous');
|
|
236
174
|
|
|
237
175
|
image.onload = function () {
|
|
@@ -250,9 +188,9 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
250
188
|
a.download = 'okr地图'; // 设置图片名称
|
|
251
189
|
|
|
252
190
|
// 设置图片名称
|
|
253
|
-
a.href = url.Data.obj; // 将生成的URL设置为a
|
|
191
|
+
a.href = url.Data.obj; // 将生成的URL设置为a.href属性
|
|
254
192
|
|
|
255
|
-
// 将生成的URL设置为a
|
|
193
|
+
// 将生成的URL设置为a.href属性
|
|
256
194
|
a.dispatchEvent(event); // 触发a的单击事件
|
|
257
195
|
|
|
258
196
|
// 触发a的单击事件
|
|
@@ -331,7 +269,6 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
331
269
|
onOk: confirmHandler,
|
|
332
270
|
onCancel: onCloseHandler,
|
|
333
271
|
ref: modalRef,
|
|
334
|
-
confirmLoading: isExport,
|
|
335
272
|
className: "export-map-modal titaui-dialog",
|
|
336
273
|
forceRender: true
|
|
337
274
|
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -17,8 +17,6 @@ var _selectCycle = _interopRequireDefault(require("./select-cycle"));
|
|
|
17
17
|
|
|
18
18
|
var _requestApis = require("./request-apis");
|
|
19
19
|
|
|
20
|
-
var _getLocale = require("../../utils/getLocale");
|
|
21
|
-
|
|
22
20
|
require("./index.css");
|
|
23
21
|
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -70,14 +68,12 @@ function _default(props) {
|
|
|
70
68
|
}, []);
|
|
71
69
|
|
|
72
70
|
var handleChangeCyecle = function handleChangeCyecle(data) {
|
|
73
|
-
(0, _requestApis.updateOCyecle)(okrId, data).then(function (
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
(0, _requestApis.updateOCyecle)(okrId, data).then(function () {
|
|
72
|
+
_toast["default"].Success("修改成功", {
|
|
73
|
+
canClose: false
|
|
74
|
+
});
|
|
76
75
|
|
|
77
|
-
|
|
78
|
-
} else {
|
|
79
|
-
_toast["default"].Error(resp.Message);
|
|
80
|
-
}
|
|
76
|
+
setCycle(data);
|
|
81
77
|
});
|
|
82
78
|
};
|
|
83
79
|
|
|
@@ -49,7 +49,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
49
49
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
50
50
|
|
|
51
51
|
function _formatCycleData(periodParams, getCycleRange) {
|
|
52
|
-
if (!periodParams) return
|
|
52
|
+
if (!periodParams) return "";
|
|
53
53
|
var startDate = periodParams.startDate;
|
|
54
54
|
var endDate = periodParams.endDate;
|
|
55
55
|
|
|
@@ -58,7 +58,7 @@ function _formatCycleData(periodParams, getCycleRange) {
|
|
|
58
58
|
endDate = periodParams.endDate.slice(5);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
return "".concat(_periodSelector["default"].formatPeriod(periodParams)).concat(getCycleRange ? ",".concat(startDate, "~").concat(endDate) :
|
|
61
|
+
return "".concat(_periodSelector["default"].formatPeriod(periodParams)).concat(getCycleRange ? ",".concat(startDate, "~").concat(endDate) : "");
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
function CreateCycle(_ref) {
|
|
@@ -94,21 +94,21 @@ function CreateCycle(_ref) {
|
|
|
94
94
|
setCycleSetting = _useState4[1];
|
|
95
95
|
|
|
96
96
|
(0, _react.useEffect)(function () {
|
|
97
|
-
var settings = localStorage.getItem(
|
|
97
|
+
var settings = localStorage.getItem("OKR_CYCLE_SETTING");
|
|
98
98
|
|
|
99
99
|
if (settings) {
|
|
100
100
|
setCycleSetting(JSON.parse(settings));
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
var url = (0, _helper.getApiUrl)(
|
|
105
|
-
(0, _helper.taker)(url,
|
|
104
|
+
var url = (0, _helper.getApiUrl)("okr/cycleSetting");
|
|
105
|
+
(0, _helper.taker)(url, "GET").then(function (res) {
|
|
106
106
|
if (res.Code == 1) {
|
|
107
107
|
setCycleSetting(res.Data);
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
}, []);
|
|
111
|
-
var cycleWrapperRef = (0, _react.useRef)(document.createElement(
|
|
111
|
+
var cycleWrapperRef = (0, _react.useRef)(document.createElement("div"));
|
|
112
112
|
|
|
113
113
|
var onPeriodSelectorChangeHandler = function onPeriodSelectorChangeHandler(c) {
|
|
114
114
|
setSelfCycle(_objectSpread(_objectSpread({}, selfCycle), c));
|
|
@@ -148,13 +148,13 @@ function CreateCycle(_ref) {
|
|
|
148
148
|
},
|
|
149
149
|
ref: cycleWrapperRef,
|
|
150
150
|
style: {
|
|
151
|
-
backgroundColor:
|
|
152
|
-
boxShadow:
|
|
151
|
+
backgroundColor: "white",
|
|
152
|
+
boxShadow: "0px 4px 12px 0px rgb(127 145 180 / 20%)",
|
|
153
153
|
borderRadius: 4
|
|
154
154
|
}
|
|
155
155
|
}, /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
|
|
156
156
|
style: {
|
|
157
|
-
width:
|
|
157
|
+
width: "100%"
|
|
158
158
|
},
|
|
159
159
|
selected: selfCycle,
|
|
160
160
|
showFullCycle: false,
|
|
@@ -176,9 +176,9 @@ function CreateCycle(_ref) {
|
|
|
176
176
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
177
177
|
className: "okr-detail-date-cycle__date-line",
|
|
178
178
|
style: {
|
|
179
|
-
borderBottom:
|
|
179
|
+
borderBottom: "1px solid #F0F2F5"
|
|
180
180
|
}
|
|
181
|
-
}, (0, _getLocale.getLocale)(
|
|
181
|
+
}, (0, _getLocale.getLocale)("Mod_StartDate"), "\uFF1A", /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
182
182
|
format: "YYYY/MM/DD",
|
|
183
183
|
controlled: true,
|
|
184
184
|
onConfirm: onStartDateConfirmHandler,
|
|
@@ -193,7 +193,7 @@ function CreateCycle(_ref) {
|
|
|
193
193
|
className: "tu-icon-arrow-down okr-detail-date-cycle__select-time-down-icon"
|
|
194
194
|
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
195
195
|
className: "okr-detail-date-cycle__date-line"
|
|
196
|
-
}, (0, _getLocale.getLocale)(
|
|
196
|
+
}, (0, _getLocale.getLocale)("Mod_EndDate"), "\uFF1A", /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
197
197
|
format: "YYYY/MM/DD",
|
|
198
198
|
controlled: true,
|
|
199
199
|
onConfirm: onEndDateCOnfirmHandler,
|
|
@@ -208,8 +208,8 @@ function CreateCycle(_ref) {
|
|
|
208
208
|
className: "tu-icon-arrow-down okr-detail-date-cycle__select-time-down-icon"
|
|
209
209
|
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
210
210
|
style: {
|
|
211
|
-
display:
|
|
212
|
-
justifyContent:
|
|
211
|
+
display: "flex",
|
|
212
|
+
justifyContent: "flex-end"
|
|
213
213
|
}
|
|
214
214
|
}, /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
|
|
215
215
|
size: "s",
|
|
@@ -217,15 +217,15 @@ function CreateCycle(_ref) {
|
|
|
217
217
|
marginRight: 12
|
|
218
218
|
},
|
|
219
219
|
onClick: onCancelClickHandler
|
|
220
|
-
}, (0, _getLocale.getLocale)(
|
|
220
|
+
}, (0, _getLocale.getLocale)("Mod_Cancel")), /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
|
|
221
221
|
size: "s",
|
|
222
222
|
type: "primary",
|
|
223
223
|
onClick: onSureClickHandler
|
|
224
|
-
}, (0, _getLocale.getLocale)(
|
|
224
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_Butt_Determine"))));
|
|
225
225
|
} else {
|
|
226
|
-
return
|
|
226
|
+
return /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
|
|
227
227
|
style: {
|
|
228
|
-
width:
|
|
228
|
+
width: "100%"
|
|
229
229
|
},
|
|
230
230
|
selected: cycle,
|
|
231
231
|
showFullCycle: false,
|
|
@@ -245,11 +245,7 @@ function CreateCycle(_ref) {
|
|
|
245
245
|
btnRef: btnRef,
|
|
246
246
|
clickCallback: function clickCallback() {},
|
|
247
247
|
text: _formatCycleData(cycle, getCycleRange)
|
|
248
|
-
}))
|
|
249
|
-
btnRef: btnRef,
|
|
250
|
-
clickCallback: function clickCallback() {},
|
|
251
|
-
text: _formatCycleData(cycle, getCycleRange)
|
|
252
|
-
});
|
|
248
|
+
}));
|
|
253
249
|
}
|
|
254
250
|
}
|
|
255
251
|
|
|
@@ -80,7 +80,7 @@ var OperationRecord = /*#__PURE__*/function (_PureComponent) {
|
|
|
80
80
|
|
|
81
81
|
_this.setState({
|
|
82
82
|
operationTrackList: newOperationTrackList,
|
|
83
|
-
operationTrackTotal:
|
|
83
|
+
operationTrackTotal: _mockData.OperationData.length
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
});
|
|
@@ -17,7 +17,7 @@ var OperationRecordWrapper = _styledComponents["default"].div(_templateObject ||
|
|
|
17
17
|
|
|
18
18
|
exports.OperationRecordWrapper = OperationRecordWrapper;
|
|
19
19
|
|
|
20
|
-
var OperationRecordTotal = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom:
|
|
20
|
+
var OperationRecordTotal = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: 8px;\n font-size: 12px;\n color: #8f9ca6;\n display: inline-block;\n cursor: pointer;\n\n &:hover {\n color: #2879ff;\n }\n\n p {\n line-height: 17px;\n\n &::before {\n float: right;\n margin-left: 4px;\n }\n }\n"])));
|
|
21
21
|
|
|
22
22
|
exports.OperationRecordTotal = OperationRecordTotal;
|
|
23
23
|
|
|
@@ -29,8 +29,6 @@ var _tools = require("../../utils/tools");
|
|
|
29
29
|
|
|
30
30
|
require("./index.css");
|
|
31
31
|
|
|
32
|
-
var _helpers = require("../../utils/helpers");
|
|
33
|
-
|
|
34
32
|
var _window$BSGlobal, _window$BSGlobal$tena, _window$BSGlobal2, _window$BSGlobal2$ten;
|
|
35
33
|
|
|
36
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -106,7 +104,6 @@ var SurveyModel = function SurveyModel(_ref) {
|
|
|
106
104
|
|
|
107
105
|
(0, _react.useEffect)(function () {
|
|
108
106
|
if (Version === 1) return;
|
|
109
|
-
if ((0, _helpers.isDingDing)()) return;
|
|
110
107
|
if (!!window.location.hostname.match(/.work/)) return;
|
|
111
108
|
var newDate = (0, _dayjs["default"])();
|
|
112
109
|
var oldDate = localStorage.getItem("survey_model_date__".concat(loginUserInfo.Id));
|
|
@@ -15,8 +15,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
15
15
|
|
|
16
16
|
var okrSearch = function okrSearch(params) {
|
|
17
17
|
return (0, _request.rpost)("v1")("okr/search", _objectSpread(_objectSpread({}, params), {}, {
|
|
18
|
-
orderType: 1
|
|
19
|
-
includeCreateFailApprovalOkr: false
|
|
18
|
+
orderType: 1
|
|
20
19
|
})).then(function (res) {
|
|
21
20
|
return res.Data;
|
|
22
21
|
});
|
|
@@ -11,6 +11,12 @@ var _helper = _interopRequireDefault(require("./helper"));
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
|
|
14
|
+
// import React from "react";
|
|
15
|
+
// import mockData from "./mock";
|
|
14
16
|
_taskTree["default"].formatTasksToTreeData = _helper["default"];
|
|
15
|
-
var _default = _taskTree["default"];
|
|
17
|
+
var _default = _taskTree["default"]; // export default () => {
|
|
18
|
+
// const dataSource = formatTasksToTreeData(mockData);
|
|
19
|
+
// return <TaskTree dataSource={dataSource} />;
|
|
20
|
+
// };
|
|
21
|
+
|
|
16
22
|
exports["default"] = _default;
|