@titaui/pc 1.11.39-beta.1 → 1.11.40
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 +1 -1
- package/lib/components/avatar/text-avatar/index.js +4 -4
- 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 +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 +38 -33
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +48 -10
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +4 -2
- package/lib/components/dynamic/new-ui.css +4 -4
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +2 -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 +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-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/task-relation-modal/request-api.js +1 -2
- package/lib/components/task-tree/task-item-node/constant.js +26 -21
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +26 -16
- package/lib/components/task-tree/task-item-node/e-task.js +21 -21
- package/lib/components/task-tree/task-item-node/index.css +2 -2
- 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 +1 -1
- 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/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 -131
|
@@ -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: {
|
|
@@ -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
|
|
|
@@ -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
|
});
|
|
@@ -8,33 +8,38 @@ exports.TASK_NDOE_TYPE = exports.EStatusStatus2ClassType = exports.EStatusClass2
|
|
|
8
8
|
var _getLocale = require("../../../utils/getLocale");
|
|
9
9
|
|
|
10
10
|
var EStatusClass2StatusType = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
"tu-icon-finished": 2,
|
|
12
|
+
"tu-icon-running": 1,
|
|
13
|
+
"tu-icon-canceled": 4,
|
|
14
|
+
"tu-icon-deferred": 3,
|
|
15
|
+
"tu-icon-paused": 6,
|
|
16
|
+
"tu-icon-notstart": 0,
|
|
17
|
+
"tu-icon-jiantou-right": 5
|
|
18
18
|
};
|
|
19
19
|
exports.EStatusClass2StatusType = EStatusClass2StatusType;
|
|
20
20
|
var EStatusStatus2ClassType = {
|
|
21
|
-
2:
|
|
22
|
-
1:
|
|
23
|
-
4:
|
|
24
|
-
3:
|
|
25
|
-
6:
|
|
26
|
-
0:
|
|
27
|
-
5:
|
|
21
|
+
2: "tu-icon-finished",
|
|
22
|
+
1: "tu-icon-running",
|
|
23
|
+
4: "tu-icon-canceled",
|
|
24
|
+
3: "tu-icon-deferred",
|
|
25
|
+
6: "tu-icon-paused",
|
|
26
|
+
0: "tu-icon-notstart",
|
|
27
|
+
5: "tu-icon-weijieshou-right"
|
|
28
28
|
};
|
|
29
29
|
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
|
|
31
|
+
var EStatusClass2StatusTypeText = function EStatusClass2StatusTypeText() {
|
|
32
|
+
return {
|
|
33
|
+
"tu-icon-finished": (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed"),
|
|
34
|
+
"tu-icon-running": (0, _getLocale.getLocale)("Per_MyRe_text_Inprogress"),
|
|
35
|
+
"tu-icon-canceled": (0, _getLocale.getLocale)("OKR_MyO_E_From_Cancelled"),
|
|
36
|
+
"tu-icon-deferred": (0, _getLocale.getLocale)("OKR_MyO_E_From_Delayed"),
|
|
37
|
+
"tu-icon-paused": (0, _getLocale.getLocale)("OKR_MyO_E_From_Suspended"),
|
|
38
|
+
"tu-icon-notstart": (0, _getLocale.getLocale)("OKR_MyO_E_From_NotStarted"),
|
|
39
|
+
"tu-icon-weijieshou-right": (0, _getLocale.getLocale)("OKR_MyO_E_From_Notaccepted")
|
|
40
|
+
};
|
|
37
41
|
};
|
|
42
|
+
|
|
38
43
|
exports.EStatusClass2StatusTypeText = EStatusClass2StatusTypeText;
|
|
39
44
|
var TASK_NDOE_TYPE;
|
|
40
45
|
exports.TASK_NDOE_TYPE = TASK_NDOE_TYPE;
|
|
@@ -11,10 +11,14 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var _titaUi = require("tita-ui");
|
|
15
|
+
|
|
14
16
|
var _dropSelector = _interopRequireWildcard(require("../../drop-selector"));
|
|
15
17
|
|
|
16
18
|
var _getLocale = require("../../../utils/getLocale");
|
|
17
19
|
|
|
20
|
+
var _constant = require("./constant");
|
|
21
|
+
|
|
18
22
|
require("./index.css");
|
|
19
23
|
|
|
20
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -41,7 +45,7 @@ var EStatusDropdown = function EStatusDropdown(props) {
|
|
|
41
45
|
checked = props.checked,
|
|
42
46
|
hasAuth = props.hasAuth;
|
|
43
47
|
|
|
44
|
-
var _useState = (0, _react.useState)(
|
|
48
|
+
var _useState = (0, _react.useState)('tu-icon-notstart'),
|
|
45
49
|
_useState2 = _slicedToArray(_useState, 2),
|
|
46
50
|
status = _useState2[0],
|
|
47
51
|
setStatus = _useState2[1];
|
|
@@ -59,55 +63,61 @@ var EStatusDropdown = function EStatusDropdown(props) {
|
|
|
59
63
|
}, [checked]);
|
|
60
64
|
|
|
61
65
|
if (!hasAuth) {
|
|
62
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
66
|
+
return /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
|
|
67
|
+
content: (0, _constant.EStatusClass2StatusTypeText)()[status]
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
63
69
|
style: {
|
|
64
|
-
color:
|
|
70
|
+
color: '#89919F',
|
|
65
71
|
fontSize: 16,
|
|
66
72
|
marginRight: 4,
|
|
67
|
-
verticalAlign:
|
|
73
|
+
verticalAlign: 'baseline'
|
|
68
74
|
},
|
|
69
75
|
className: (0, _classnames["default"])(status)
|
|
70
|
-
});
|
|
76
|
+
}));
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
return /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
|
|
74
80
|
onChange: onMenuClickHandler,
|
|
75
81
|
checked: status,
|
|
76
82
|
canEdit: hasAuth,
|
|
77
|
-
trigger: /*#__PURE__*/_react["default"].createElement("
|
|
83
|
+
trigger: /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
84
|
style: {
|
|
79
|
-
color:
|
|
85
|
+
color: '#89919F',
|
|
80
86
|
fontSize: 16,
|
|
81
87
|
marginRight: 4,
|
|
82
|
-
verticalAlign:
|
|
83
|
-
|
|
88
|
+
verticalAlign: 'baseline',
|
|
89
|
+
display: 'flex'
|
|
90
|
+
}
|
|
91
|
+
}, /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
|
|
92
|
+
content: (0, _constant.EStatusClass2StatusTypeText)()[status]
|
|
93
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
84
94
|
className: (0, _classnames["default"])(status)
|
|
85
|
-
})
|
|
95
|
+
})))
|
|
86
96
|
}, /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
87
97
|
name: "tu-icon-finished",
|
|
88
98
|
icon: "tu-icon-finished",
|
|
89
99
|
exIconClass: "e-node-status-icon"
|
|
90
|
-
}, (0, _getLocale.getLocale)(
|
|
100
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_From_Completed')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
91
101
|
name: "tu-icon-running",
|
|
92
102
|
icon: "tu-icon-running",
|
|
93
103
|
exIconClass: "e-node-status-icon"
|
|
94
|
-
}, (0, _getLocale.getLocale)(
|
|
104
|
+
}, (0, _getLocale.getLocale)('Per_MyRe_text_Inprogress')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
95
105
|
name: "tu-icon-canceled",
|
|
96
106
|
icon: "tu-icon-canceled",
|
|
97
107
|
exIconClass: "e-node-status-icon"
|
|
98
|
-
}, (0, _getLocale.getLocale)(
|
|
108
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_From_Cancelled')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
99
109
|
name: "tu-icon-deferred",
|
|
100
110
|
icon: "tu-icon-deferred",
|
|
101
111
|
exIconClass: "e-node-status-icon"
|
|
102
|
-
}, (0, _getLocale.getLocale)(
|
|
112
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_From_Delayed')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
103
113
|
name: "tu-icon-paused",
|
|
104
114
|
icon: "tu-icon-paused",
|
|
105
115
|
exIconClass: "e-node-status-icon"
|
|
106
|
-
}, (0, _getLocale.getLocale)(
|
|
116
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_From_Suspended')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
107
117
|
name: "tu-icon-notstart",
|
|
108
118
|
icon: "tu-icon-notstart",
|
|
109
119
|
exIconClass: "e-node-status-icon"
|
|
110
|
-
}, (0, _getLocale.getLocale)(
|
|
120
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_From_NotStarted')));
|
|
111
121
|
};
|
|
112
122
|
|
|
113
123
|
var _default = EStatusDropdown;
|
|
@@ -138,7 +138,7 @@ function ETaskNode(props) {
|
|
|
138
138
|
setDataInfo = _useState14[1];
|
|
139
139
|
|
|
140
140
|
var _useState15 = (0, _react.useState)(function () {
|
|
141
|
-
return (0, _bsGlobal.getBSGlobal)(
|
|
141
|
+
return (0, _bsGlobal.getBSGlobal)('TaskAdvancedSetting').TaskFunctionSetting.TaskPriority;
|
|
142
142
|
}),
|
|
143
143
|
_useState16 = _slicedToArray(_useState15, 1),
|
|
144
144
|
isShowPriority = _useState16[0];
|
|
@@ -152,8 +152,8 @@ function ETaskNode(props) {
|
|
|
152
152
|
var hasEditAuth = new _auth.EAuth({
|
|
153
153
|
principalUser: data.principalUser,
|
|
154
154
|
user: data.user
|
|
155
|
-
}).hasAuth() // || extraEditAuth
|
|
156
|
-
|
|
155
|
+
}).hasAuth() && // || extraEditAuth
|
|
156
|
+
data.status !== 5;
|
|
157
157
|
var isParticipant = ((_okrInfo$authority = okrInfo.authority) === null || _okrInfo$authority === void 0 ? void 0 : _okrInfo$authority.roleRelation) && okrInfo.authority.roleRelation.roleType === 2;
|
|
158
158
|
var hasRelativeAuth = new _auth.KRAuth({
|
|
159
159
|
user: krUser,
|
|
@@ -174,7 +174,7 @@ function ETaskNode(props) {
|
|
|
174
174
|
if (data.Code === 1) {
|
|
175
175
|
setUser(user.data);
|
|
176
176
|
|
|
177
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
177
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'), {
|
|
178
178
|
canClose: false
|
|
179
179
|
});
|
|
180
180
|
} else {
|
|
@@ -183,7 +183,7 @@ function ETaskNode(props) {
|
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
})["catch"](function () {
|
|
186
|
-
_toast["default"].Error(
|
|
186
|
+
_toast["default"].Error('网络异常', {
|
|
187
187
|
canClose: false
|
|
188
188
|
});
|
|
189
189
|
});
|
|
@@ -195,7 +195,7 @@ function ETaskNode(props) {
|
|
|
195
195
|
status: _constant.EStatusClass2StatusType[statusType]
|
|
196
196
|
}).then(function (resp) {
|
|
197
197
|
if (resp.Code === 1) {
|
|
198
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
198
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'), {
|
|
199
199
|
canClose: false
|
|
200
200
|
});
|
|
201
201
|
|
|
@@ -210,7 +210,7 @@ function ETaskNode(props) {
|
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
})["catch"](function () {
|
|
213
|
-
_toast["default"].Error(
|
|
213
|
+
_toast["default"].Error('网络异常', {
|
|
214
214
|
canClose: false
|
|
215
215
|
});
|
|
216
216
|
});
|
|
@@ -224,7 +224,7 @@ function ETaskNode(props) {
|
|
|
224
224
|
taskId: data.taskId
|
|
225
225
|
}).then(function (resp) {
|
|
226
226
|
if (resp.Code === 1) {
|
|
227
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
227
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'), {
|
|
228
228
|
canClose: false
|
|
229
229
|
});
|
|
230
230
|
} else {
|
|
@@ -233,7 +233,7 @@ function ETaskNode(props) {
|
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
})["catch"](function () {
|
|
236
|
-
_toast["default"].Error(
|
|
236
|
+
_toast["default"].Error('网络异常', {
|
|
237
237
|
canClose: false
|
|
238
238
|
});
|
|
239
239
|
})["finally"](setUnConnectVisible(false));
|
|
@@ -279,7 +279,7 @@ function ETaskNode(props) {
|
|
|
279
279
|
status: resp.Data.status
|
|
280
280
|
}));
|
|
281
281
|
|
|
282
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
282
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'), {
|
|
283
283
|
canClose: false
|
|
284
284
|
});
|
|
285
285
|
} else {
|
|
@@ -288,7 +288,7 @@ function ETaskNode(props) {
|
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
})["catch"](function () {
|
|
291
|
-
_toast["default"].Error(
|
|
291
|
+
_toast["default"].Error('网络异常', {
|
|
292
292
|
canClose: false
|
|
293
293
|
});
|
|
294
294
|
});
|
|
@@ -322,7 +322,7 @@ function ETaskNode(props) {
|
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
var handleShowTaskDetail = function handleShowTaskDetail() {
|
|
325
|
-
if ((0, _platform.isPlatform)(
|
|
325
|
+
if ((0, _platform.isPlatform)('dd')) {
|
|
326
326
|
_drawerManager["default"].close();
|
|
327
327
|
}
|
|
328
328
|
|
|
@@ -333,7 +333,7 @@ function ETaskNode(props) {
|
|
|
333
333
|
(_window$Talent2 = window.Talent) === null || _window$Talent2 === void 0 ? void 0 : _window$Talent2.app.vent.on("global-pull-screen:closed:".concat(data.taskId), function () {// refreshEList && refreshEList();
|
|
334
334
|
}); // 任务:打开推屏
|
|
335
335
|
|
|
336
|
-
window.Talent.app.vent.trigger(
|
|
336
|
+
window.Talent.app.vent.trigger('global-pull-screen', data.taskId, 'task');
|
|
337
337
|
} else {
|
|
338
338
|
window.open("//".concat(window.location.host).concat(window.location.pathname, "#more/taskinfo?id=").concat(data.taskId));
|
|
339
339
|
}
|
|
@@ -391,11 +391,11 @@ function ETaskNode(props) {
|
|
|
391
391
|
percent: progress,
|
|
392
392
|
linear: true,
|
|
393
393
|
linearId: data.taskId,
|
|
394
|
-
linearStartColor: (0, _getProcessColor["default"])(dataInfo.riskLevel,
|
|
395
|
-
linearEndColor: (0, _getProcessColor["default"])(dataInfo.riskLevel,
|
|
396
|
-
backgroundColor: (0, _getProcessColor["default"])(dataInfo.riskLevel,
|
|
394
|
+
linearStartColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, 'linearStartColor', dataInfo.status),
|
|
395
|
+
linearEndColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, 'linearEndColor', dataInfo.status),
|
|
396
|
+
backgroundColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, 'backgroundColor', dataInfo.status)
|
|
397
397
|
})), okrInfo.status === 1 && hasRelation && (hasRelativeAuth || isParticipant) ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
398
|
-
overlay: (0, _getLocale.getLocale)(
|
|
398
|
+
overlay: (0, _getLocale.getLocale)('OKR_MyO_Text_Cancel'),
|
|
399
399
|
placement: "top"
|
|
400
400
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
401
401
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions-connect")),
|
|
@@ -409,17 +409,17 @@ function ETaskNode(props) {
|
|
|
409
409
|
type: "warning"
|
|
410
410
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
411
411
|
type: "title"
|
|
412
|
-
}, (0, _getLocale.getLocale)(
|
|
412
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Text_Cancelass')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
413
413
|
type: "content"
|
|
414
|
-
}, (0, _getLocale.getLocale)(
|
|
414
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Text_TtasknotO')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
|
|
415
415
|
type: "button",
|
|
416
416
|
onClick: function onClick() {
|
|
417
417
|
return setUnConnectVisible(false);
|
|
418
418
|
}
|
|
419
|
-
}, (0, _getLocale.getLocale)(
|
|
419
|
+
}, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.SureButton, {
|
|
420
420
|
type: "button",
|
|
421
421
|
onClick: onSureUnConnectHandler
|
|
422
|
-
}, (0, _getLocale.getLocale)(
|
|
422
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Butt_Determine'))));
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
var _default = ETaskNode;
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
|
|
99
99
|
.titaui-task-tree__e-task-node-actions-date--canedit:hover {
|
|
100
100
|
border-radius: 8px;
|
|
101
|
-
border: 1px solid #
|
|
101
|
+
border: 1px solid #dfe3ea;
|
|
102
102
|
padding: 3px;
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
|
|
255
255
|
.titaui-task-tree__e-project-node-actions-date--canedit:hover {
|
|
256
256
|
border-radius: 8px;
|
|
257
|
-
border: 1px solid #
|
|
257
|
+
border: 1px solid #dfe3ea;
|
|
258
258
|
padding: 3px;
|
|
259
259
|
}
|
|
260
260
|
|
|
@@ -168,7 +168,6 @@ var Toast = /*#__PURE__*/function () {
|
|
|
168
168
|
var options,
|
|
169
169
|
key,
|
|
170
170
|
ins,
|
|
171
|
-
canClose,
|
|
172
171
|
_args3 = arguments;
|
|
173
172
|
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
174
173
|
while (1) {
|
|
@@ -181,15 +180,14 @@ var Toast = /*#__PURE__*/function () {
|
|
|
181
180
|
|
|
182
181
|
case 4:
|
|
183
182
|
ins = _context3.sent;
|
|
184
|
-
canClose = options.canClose !== undefined ? options.canClose : false;
|
|
185
183
|
ins.notice({
|
|
186
|
-
content: (0, _SuccessRender.RenderError)(msg, key, canClose, ins),
|
|
184
|
+
content: (0, _SuccessRender.RenderError)(msg, key, options.canClose, ins),
|
|
187
185
|
style: options.style,
|
|
188
|
-
duration: options.duration || canClose === false ? 3 : 3000,
|
|
186
|
+
duration: options.duration || options.canClose === false ? 3 : 3000,
|
|
189
187
|
key: key
|
|
190
188
|
});
|
|
191
189
|
|
|
192
|
-
case
|
|
190
|
+
case 6:
|
|
193
191
|
case "end":
|
|
194
192
|
return _context3.stop();
|
|
195
193
|
}
|