@titaui/pc 1.11.35-beta.2 → 1.11.36
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/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 +1 -2
- package/lib/components/checkbox/index.css +3 -3
- package/lib/components/create-okr-modal/index.js +42 -48
- 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/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-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/{pages/new-okr-list/header/operate-record.js → components/dynamic/dynamic-liking/index.js} +39 -91
- 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 +6 -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 +77 -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/nav-top/index.js +4 -8
- 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 +14 -13
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +43 -98
- 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 +3 -8
- package/lib/components/okr-detail/request-apis.js +4 -10
- package/lib/components/okr-flow/child-node/index.css +1 -1
- package/lib/components/okr-flow/export-modal/index.js +2 -47
- 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/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
- package/lib/components/task-relation-modal/request-api.js +1 -2
- package/lib/components/task-tree/index.js +1 -7
- package/lib/components/task-tree/task-item-node/e-task.js +2 -2
- package/lib/components/task-tree/task-item-node/index.css +12 -14
- package/lib/components/task-tree/task-tree.css +1 -1
- package/lib/components/time-picker/time-picker.js +93 -37
- 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 -38
- package/lib/pages/new-okr-list/index.js +1 -3
- 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 +2 -2
- package/lib/components/okr-detail/detail-header/constant.js +0 -53
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +0 -55
- package/lib/components/okr-detail/helper.js +0 -108
- package/lib/components/task-tree/mock.js +0 -944
- 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
|
@@ -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
|
|
|
@@ -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;
|
|
@@ -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: {
|
|
@@ -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 }; }
|
|
@@ -172,47 +170,15 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
172
170
|
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
171
|
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
172
|
var imgUrl = result.toDataURL('image/png'); // 得到图片的base64编码数据
|
|
173
|
+
// @ts-ignore
|
|
175
174
|
|
|
176
175
|
// 得到图片的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
176
|
// @ts-ignore
|
|
206
177
|
window.titaTracker && window.titaTracker("action").record({
|
|
207
|
-
actionName: userId + '租户:' + telentId + '
|
|
178
|
+
actionName: userId + '租户:' + telentId + '我得到了图片' + imgUrl.slice(1, 200),
|
|
208
179
|
actionGroup: 'okr地图图片',
|
|
209
180
|
productName: 'okr地图导出'
|
|
210
181
|
});
|
|
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
182
|
(0, _requestApis.getBase64DownloadUrl)(imgUrl.split(',')[1]).then(function (url) {
|
|
217
183
|
var image = new Image(); // @ts-ignore
|
|
218
184
|
|
|
@@ -222,16 +188,6 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
222
188
|
actionGroup: 'okr地图接口',
|
|
223
189
|
productName: 'okr地图导出'
|
|
224
190
|
});
|
|
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
|
-
|
|
235
191
|
image.setAttribute('crossOrigin', 'anonymous');
|
|
236
192
|
|
|
237
193
|
image.onload = function () {
|
|
@@ -331,7 +287,6 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
331
287
|
onOk: confirmHandler,
|
|
332
288
|
onCancel: onCloseHandler,
|
|
333
289
|
ref: modalRef,
|
|
334
|
-
confirmLoading: isExport,
|
|
335
290
|
className: "export-map-modal titaui-dialog",
|
|
336
291
|
forceRender: true
|
|
337
292
|
}, /*#__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
|
|
|
@@ -41,9 +41,12 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
41
41
|
|
|
42
42
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
43
|
|
|
44
|
+
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); }
|
|
45
|
+
|
|
44
46
|
var prefix = "publish-dynamic-modal";
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
|
|
48
|
+
var PublishDynamicModal = function PublishDynamicModal(_ref) {
|
|
49
|
+
_objectDestructuringEmpty(_ref);
|
|
47
50
|
|
|
48
51
|
var _useState = (0, _react.useState)(false),
|
|
49
52
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -79,10 +82,10 @@ var PublishDynamicModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
|
|
|
79
82
|
localStorage.removeItem("mblogLocalStroage_".concat((0, _bsGlobal.getUserInfo)().Id, "_commentsTypeKey_").concat(isShare ? "share" : "announcement"));
|
|
80
83
|
setVisible(false);
|
|
81
84
|
setSubmitStatus(1);
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
85
|
+
setTimeout(function () {
|
|
86
|
+
// @ts-ignore 跳到我的发布页签
|
|
87
|
+
window.setTabsToPublish && window.setTabsToPublish();
|
|
88
|
+
}, 2000);
|
|
86
89
|
} else {
|
|
87
90
|
_toast["default"].Error(resp.Message, {
|
|
88
91
|
canClose: false
|
|
@@ -143,13 +146,6 @@ var PublishDynamicModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
|
|
|
143
146
|
setVisible(true);
|
|
144
147
|
};
|
|
145
148
|
|
|
146
|
-
(0, _react.useImperativeHandle)(ref, function () {
|
|
147
|
-
return {
|
|
148
|
-
hide: hidePublishDynamicModal,
|
|
149
|
-
showShareModal: showPublishShareDynamicModal,
|
|
150
|
-
showAnnouncementModal: showPublishAnnouncementDynamicModal
|
|
151
|
-
};
|
|
152
|
-
});
|
|
153
149
|
(0, _react.useEffect)(function () {
|
|
154
150
|
// @ts-ignore
|
|
155
151
|
window.hidePublishDynamicModal = hidePublishDynamicModal; // @ts-ignore
|
|
@@ -192,9 +188,7 @@ var PublishDynamicModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
|
|
|
192
188
|
,
|
|
193
189
|
onMblogSubmit: onMblogSubmit
|
|
194
190
|
})));
|
|
195
|
-
});
|
|
196
|
-
PublishDynamicModal.defaultProps = {
|
|
197
|
-
onSubmitSuccess: function onSubmitSuccess() {}
|
|
198
191
|
};
|
|
192
|
+
|
|
199
193
|
var _default = PublishDynamicModal;
|
|
200
194
|
exports["default"] = _default;
|
|
@@ -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,12 +11,6 @@ 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";
|
|
16
14
|
_taskTree["default"].formatTasksToTreeData = _helper["default"];
|
|
17
|
-
var _default = _taskTree["default"];
|
|
18
|
-
// const dataSource = formatTasksToTreeData(mockData);
|
|
19
|
-
// return <TaskTree dataSource={dataSource} />;
|
|
20
|
-
// };
|
|
21
|
-
|
|
15
|
+
var _default = _taskTree["default"];
|
|
22
16
|
exports["default"] = _default;
|
|
@@ -347,7 +347,7 @@ function ETaskNode(props) {
|
|
|
347
347
|
}, /*#__PURE__*/_react["default"].createElement(_eStatusDropdown["default"], {
|
|
348
348
|
onChange: onEStatusChangeHandler,
|
|
349
349
|
checked: _constant.EStatusStatus2ClassType[dataInfo.status],
|
|
350
|
-
hasAuth: hasEditAuth
|
|
350
|
+
hasAuth: hasEditAuth && dataInfo.editStatusable
|
|
351
351
|
})), isShowPriority && /*#__PURE__*/_react["default"].createElement("span", {
|
|
352
352
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-priority"))
|
|
353
353
|
}, /*#__PURE__*/_react["default"].createElement(_ePriority["default"], {
|
|
@@ -356,7 +356,7 @@ function ETaskNode(props) {
|
|
|
356
356
|
hasAuth: hasEditAuth,
|
|
357
357
|
status: data.status
|
|
358
358
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
359
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-title
|
|
359
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-title"), _defineProperty({}, "".concat(_precls["default"], "__e-project-node-gray"), isCancel || isGray)),
|
|
360
360
|
onClick: handleShowTaskDetail
|
|
361
361
|
}, /*#__PURE__*/_react["default"].createElement(TooltipText, {
|
|
362
362
|
text: (0, _helpers.escapeHtml)(title),
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
|
|
73
73
|
.titaui-task-tree__e-task-node-actions-user {
|
|
74
74
|
display: inline-block;
|
|
75
|
-
width:
|
|
76
|
-
margin-left:
|
|
75
|
+
width: 92px;
|
|
76
|
+
margin-left: 24px;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.titaui-task-tree__e-task-node-actions-date {
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
line-height: 18px;
|
|
84
84
|
display: inline-flex;
|
|
85
85
|
align-items: center;
|
|
86
|
-
justify-content: flex-end;
|
|
87
86
|
box-sizing: border-box;
|
|
88
|
-
width:
|
|
87
|
+
width: 82px;
|
|
89
88
|
height: 26px;
|
|
90
89
|
padding: 4px;
|
|
91
90
|
text-align: left;
|
|
92
91
|
line-height: 26px;
|
|
92
|
+
margin-left: 28px;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.titaui-task-tree__e-task-node-actions-date > span {
|
|
@@ -101,9 +101,8 @@
|
|
|
101
101
|
top: 3px;
|
|
102
102
|
color: #89919f;
|
|
103
103
|
cursor: auto;
|
|
104
|
-
width:
|
|
105
|
-
margin-left:
|
|
106
|
-
margin-right: 4px;
|
|
104
|
+
width: 68px;
|
|
105
|
+
margin-left: 20px;
|
|
107
106
|
}
|
|
108
107
|
|
|
109
108
|
.titaui-task-tree__e-task-node-actions-progress .tooltip-text-wrapper {
|
|
@@ -223,8 +222,8 @@
|
|
|
223
222
|
|
|
224
223
|
.titaui-task-tree__e-project-node-actions-user {
|
|
225
224
|
display: inline-block;
|
|
226
|
-
width:
|
|
227
|
-
margin-left:
|
|
225
|
+
width: 92px;
|
|
226
|
+
margin-left: 24px;
|
|
228
227
|
}
|
|
229
228
|
|
|
230
229
|
.titaui-task-tree__e-project-node-actions-date {
|
|
@@ -234,13 +233,13 @@
|
|
|
234
233
|
line-height: 18px;
|
|
235
234
|
display: inline-flex;
|
|
236
235
|
align-items: center;
|
|
237
|
-
justify-content: flex-end;
|
|
238
236
|
box-sizing: border-box;
|
|
239
|
-
width:
|
|
237
|
+
width: 82px;
|
|
240
238
|
height: 26px;
|
|
241
239
|
padding: 4px;
|
|
242
240
|
text-align: left;
|
|
243
241
|
line-height: 26px;
|
|
242
|
+
margin-left: 28px;
|
|
244
243
|
}
|
|
245
244
|
|
|
246
245
|
.titaui-task-tree__e-project-node-actions-date > span {
|
|
@@ -252,9 +251,8 @@
|
|
|
252
251
|
top: 3px;
|
|
253
252
|
color: #89919f;
|
|
254
253
|
cursor: auto;
|
|
255
|
-
width:
|
|
256
|
-
margin-left:
|
|
257
|
-
margin-right: 4px;
|
|
254
|
+
width: 68px;
|
|
255
|
+
margin-left: 20px;
|
|
258
256
|
}
|
|
259
257
|
|
|
260
258
|
.titaui-task-tree__e-project-node-actions-progress .tooltip-text-wrapper {
|