@titaui/pc 1.12.0-beta.0 → 1.12.0-beta.3
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 +1 -0
- package/lib/components/avatar/name-avatar/index.js +22 -13
- 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 +45 -11
- package/lib/components/button/rect-btn/index.js +12 -6
- package/lib/components/change-okr-modal/index.js +7 -6
- package/lib/components/checkbox/index.css +3 -3
- package/lib/{pages/aha2021 → components/contact-kefu}/img/canceled.svg +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/kefu.svg +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/not-try.png +0 -0
- package/lib/components/contact-kefu/img/notice.png +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/try.png +0 -0
- package/lib/components/contact-kefu/index.css +85 -0
- package/lib/components/contact-kefu/index.js +102 -0
- package/lib/components/create-okr-modal/index.js +45 -41
- 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 +5 -1
- package/lib/components/drawer/headerDrop.js +42 -4
- package/lib/components/drawer/index.css +33 -0
- package/lib/components/drawer/index.js +26 -3
- 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/dynamic/online-broadcast/data.js +19 -1
- package/lib/components/e-priority/index.css +4 -4
- package/lib/components/e-priority/index.js +10 -2
- package/lib/components/form/form-fields/radios/index.css +4 -0
- package/lib/components/form/form-fields/radios/index.js +4 -3
- package/lib/components/mblog/components/MblogContent.js +5 -2
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +4 -3
- package/lib/components/nav-top/components/menu/img/new.svg +30 -0
- package/lib/components/nav-top/components/menu/img/wecome-temp.png +0 -0
- package/lib/components/nav-top/components/menu/index.css +91 -0
- package/lib/components/nav-top/components/menu/index.js +72 -24
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +2 -1
- package/lib/components/nav-top/components/user-message/components/todos/index.css +1 -0
- package/lib/components/nav-top/index.js +6 -2
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +20 -4
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +9 -1
- package/lib/components/okr-detail/components/base-okr-type/index.css +4 -0
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -0
- package/lib/components/okr-detail/components/header/index.js +10 -3
- package/lib/components/okr-detail/components/header/o-name.js +10 -3
- package/lib/components/okr-detail/components/o-classify.js +5 -1
- 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 +10 -0
- package/lib/components/okr-detail/detail-header/constant.js +53 -0
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +111 -54
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +63 -0
- package/lib/components/okr-detail/detail-header/index.css +11 -0
- package/lib/components/okr-detail/detail-header/index.js +228 -234
- package/lib/components/okr-detail/helper.js +108 -0
- package/lib/components/okr-detail/index.js +21 -4
- package/lib/components/okr-detail/okr-list/index.js +13 -6
- package/lib/components/okr-detail/request-apis.js +14 -8
- package/lib/components/okr-flow/child-node/index.css +1 -1
- package/lib/components/okr-flow/export-modal/index.js +66 -3
- package/lib/components/okr-period-selector/index.js +9 -5
- package/lib/components/okr-period-selector/select-cycle.js +23 -19
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/radio/index.css +3 -3
- package/lib/components/survey-model/index.js +3 -0
- package/lib/components/task-relation-modal/index.js +0 -1
- package/lib/components/task-relation-modal/request-api.js +2 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +0 -11
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +1 -3
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +0 -6
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +0 -4
- package/lib/components/task-tree/index.js +1 -7
- package/lib/components/task-tree/task-item-node/constant.js +39 -22
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +38 -8
- package/lib/components/task-tree/task-item-node/e-task.js +24 -24
- package/lib/components/task-tree/task-item-node/index.css +28 -18
- package/lib/components/task-tree/task-tree.css +1 -1
- package/lib/components/textarea/index.css +142 -0
- package/lib/components/textarea/index.js +262 -0
- package/lib/components/time-picker/time-picker.js +34 -102
- package/lib/components/time-picker/timer-picker-input.js +0 -6
- package/lib/components/toast/index.js +5 -3
- 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 +3 -1
- 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 +21 -7
- package/lib/components-v1/radio/radio.js +1 -1
- package/lib/index.js +48 -0
- package/lib/pages/aha2021/index.css +1 -26
- package/lib/pages/aha2021/index.js +3 -82
- package/lib/pages/new-okr-list/header/common.js +52 -0
- package/lib/pages/new-okr-list/header/index.css +45 -0
- package/lib/pages/new-okr-list/header/index.js +40 -16
- package/lib/pages/new-okr-list/header/operate-record.js +136 -0
- package/lib/pages/new-okr-list/index.js +4 -2
- package/lib/pages/new-okr-list/list/index.js +19 -2
- package/lib/pages/new-okr-list/request-api.js +8 -2
- package/lib/pages/okr-map/unsupport-ie/index.js +3 -5
- package/lib/utils/format-time.js +8 -1
- package/lib/utils/open-data.js +5 -1
- package/package.json +1 -1
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +0 -38
- package/lib/components/task-tree/mock.js +0 -944
|
@@ -15,7 +15,8 @@ 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
|
|
18
|
+
orderType: 1,
|
|
19
|
+
includeCreateFailApprovalOkr: false
|
|
19
20
|
})).then(function (res) {
|
|
20
21
|
return res.Data;
|
|
21
22
|
});
|
|
@@ -13,17 +13,6 @@
|
|
|
13
13
|
top: 1px;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.rel-category-node__pointer {
|
|
17
|
-
position: absolute;
|
|
18
|
-
top: -23px;
|
|
19
|
-
left: -33px;
|
|
20
|
-
width: 27px;
|
|
21
|
-
height: 31px;
|
|
22
|
-
border-left: 1px solid #e9ecf0;
|
|
23
|
-
border-bottom: 1px solid #e9ecf0;
|
|
24
|
-
border-bottom-left-radius: 6px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
16
|
.rel-category-node__name {
|
|
28
17
|
flex: 1;
|
|
29
18
|
margin-right: 40px;
|
|
@@ -83,9 +83,7 @@ function CategoryNode(props) {
|
|
|
83
83
|
onChange: onCheckHandler,
|
|
84
84
|
id: data.id,
|
|
85
85
|
checked: checked
|
|
86
|
-
})),
|
|
87
|
-
className: "".concat(precls, "__pointer")
|
|
88
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
86
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
89
87
|
className: "".concat(precls, "__name")
|
|
90
88
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
91
89
|
className: (0, _classnames["default"])("".concat(precls, "__name-icon"), {
|
|
@@ -17,22 +17,6 @@
|
|
|
17
17
|
border: 1px solid #bfc7d5;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.rel-kr-node__pointer {
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: -26px;
|
|
23
|
-
left: -33px;
|
|
24
|
-
width: 27px;
|
|
25
|
-
height: 34px;
|
|
26
|
-
border-left: 1px solid #e9ecf0;
|
|
27
|
-
border-bottom: 1px solid #e9ecf0;
|
|
28
|
-
border-bottom-left-radius: 6px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.rel-kr-node__pointer-first {
|
|
32
|
-
height: 26px;
|
|
33
|
-
top: -20px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
20
|
.rel-kr-node__name {
|
|
37
21
|
flex: 1;
|
|
38
22
|
margin-right: 40px;
|
|
@@ -9,8 +9,6 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
12
|
var _checkbox = _interopRequireDefault(require("../../../checkbox"));
|
|
15
13
|
|
|
16
14
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
@@ -35,8 +33,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
35
33
|
|
|
36
34
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
35
|
|
|
38
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39
|
-
|
|
40
36
|
var precls = "rel-kr-node";
|
|
41
37
|
|
|
42
38
|
function KrNode(props) {
|
|
@@ -93,8 +89,6 @@ function KrNode(props) {
|
|
|
93
89
|
id: data.feedId,
|
|
94
90
|
checked: checked
|
|
95
91
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
96
|
-
className: (0, _classnames["default"])("".concat(precls, "__pointer"), _defineProperty({}, "".concat(precls, "__pointer-first"), krIndex === 1))
|
|
97
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
98
92
|
className: "".concat(precls, "__name")
|
|
99
93
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
100
94
|
className: "".concat(precls, "__name-index")
|
|
@@ -17,22 +17,6 @@
|
|
|
17
17
|
border: 1px solid #bfc7d5;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.rel-milestone-node__pointer {
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: -26px;
|
|
23
|
-
left: -33px;
|
|
24
|
-
width: 27px;
|
|
25
|
-
height: 34px;
|
|
26
|
-
border-left: 1px solid #e9ecf0;
|
|
27
|
-
border-bottom: 1px solid #e9ecf0;
|
|
28
|
-
border-bottom-left-radius: 6px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.rel-milestone-node__pointer-first {
|
|
32
|
-
height: 26px;
|
|
33
|
-
top: -20px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
20
|
.rel-milestone-node__name {
|
|
37
21
|
flex: 1;
|
|
38
22
|
margin-right: 40px;
|
|
@@ -35,8 +35,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
35
35
|
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
37
|
|
|
38
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39
|
-
|
|
40
38
|
var precls = "rel-milestone-node";
|
|
41
39
|
|
|
42
40
|
function MileStone(props) {
|
|
@@ -100,8 +98,6 @@ function MileStone(props) {
|
|
|
100
98
|
id: data.mileStoneId,
|
|
101
99
|
checked: checked
|
|
102
100
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
103
|
-
className: (0, _classnames["default"])("".concat(precls, "__pointer"), _defineProperty({}, "".concat(precls, "__pointer-first"), index === 1))
|
|
104
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
105
101
|
className: "".concat(precls, "__name")
|
|
106
102
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
107
103
|
className: (0, _classnames["default"])("tu-icon-licheng-s", "".concat(precls, "__name-icon"))
|
|
@@ -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;
|
|
@@ -3,39 +3,56 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.TASK_NDOE_TYPE = exports.EStatusStatus2ClassType = exports.EStatusClass2StatusTypeText = exports.EStatusClass2StatusType = void 0;
|
|
6
|
+
exports.getPriorityTextMapping = exports.TASK_NDOE_TYPE = exports.EStatusStatus2ClassType = exports.EStatusClass2StatusTypeText = exports.EStatusClass2StatusType = void 0;
|
|
7
7
|
|
|
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;
|
|
44
|
+
|
|
45
|
+
var getPriorityTextMapping = function getPriorityTextMapping() {
|
|
46
|
+
return {
|
|
47
|
+
1: "".concat((0, _getLocale.getLocale)("OKR_MyO_E_Priority"), "\uFF1A").concat((0, _getLocale.getLocale)("OKR_MyO_E_Butt_Highest")),
|
|
48
|
+
2: "".concat((0, _getLocale.getLocale)("OKR_MyO_E_Priority"), "\uFF1A").concat((0, _getLocale.getLocale)("OKR_MyO_E_Butt_High")),
|
|
49
|
+
3: "".concat((0, _getLocale.getLocale)("OKR_MyO_E_Priority"), "\uFF1A").concat((0, _getLocale.getLocale)("OKR_MyO_E_Butt_Middle")),
|
|
50
|
+
4: "".concat((0, _getLocale.getLocale)("OKR_MyO_E_Priority"), "\uFF1A").concat((0, _getLocale.getLocale)("OKR_MyO_E_Butt_Low")),
|
|
51
|
+
5: "".concat((0, _getLocale.getLocale)("OKR_MyO_E_Priority"), "\uFF1A").concat((0, _getLocale.getLocale)("OKR_MyO_E_Butt_Verylow"))
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
exports.getPriorityTextMapping = getPriorityTextMapping;
|
|
39
56
|
var TASK_NDOE_TYPE;
|
|
40
57
|
exports.TASK_NDOE_TYPE = TASK_NDOE_TYPE;
|
|
41
58
|
|
|
@@ -5,16 +5,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] =
|
|
8
|
+
exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
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 }; }
|
|
@@ -35,7 +39,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
35
39
|
|
|
36
40
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
41
|
|
|
38
|
-
function
|
|
42
|
+
var EStatusDropdown = function EStatusDropdown(props) {
|
|
43
|
+
// eslint-disable-next-line react/prop-types
|
|
39
44
|
var onChange = props.onChange,
|
|
40
45
|
checked = props.checked,
|
|
41
46
|
hasAuth = props.hasAuth;
|
|
@@ -47,25 +52,47 @@ function _default(props) {
|
|
|
47
52
|
|
|
48
53
|
var onMenuClickHandler = function onMenuClickHandler(name) {
|
|
49
54
|
setStatus(name);
|
|
50
|
-
|
|
55
|
+
|
|
56
|
+
if (onChange) {
|
|
57
|
+
onChange(name);
|
|
58
|
+
}
|
|
51
59
|
};
|
|
52
60
|
|
|
53
61
|
(0, _react.useEffect)(function () {
|
|
54
62
|
setStatus(checked);
|
|
55
63
|
}, [checked]);
|
|
64
|
+
|
|
65
|
+
if (!hasAuth) {
|
|
66
|
+
return /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
|
|
67
|
+
content: (0, _constant.EStatusClass2StatusTypeText)()[status]
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
|
+
style: {
|
|
70
|
+
color: '#89919F',
|
|
71
|
+
fontSize: 16,
|
|
72
|
+
marginRight: 4,
|
|
73
|
+
verticalAlign: 'baseline'
|
|
74
|
+
},
|
|
75
|
+
className: (0, _classnames["default"])(status)
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
|
|
56
79
|
return /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
|
|
57
80
|
onChange: onMenuClickHandler,
|
|
58
81
|
checked: status,
|
|
59
82
|
canEdit: hasAuth,
|
|
60
|
-
trigger: /*#__PURE__*/_react["default"].createElement("
|
|
83
|
+
trigger: /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
84
|
style: {
|
|
62
85
|
color: '#89919F',
|
|
63
86
|
fontSize: 16,
|
|
64
87
|
marginRight: 4,
|
|
65
|
-
verticalAlign: 'baseline'
|
|
66
|
-
|
|
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", {
|
|
67
94
|
className: (0, _classnames["default"])(status)
|
|
68
|
-
})
|
|
95
|
+
})))
|
|
69
96
|
}, /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
70
97
|
name: "tu-icon-finished",
|
|
71
98
|
icon: "tu-icon-finished",
|
|
@@ -91,4 +118,7 @@ function _default(props) {
|
|
|
91
118
|
icon: "tu-icon-notstart",
|
|
92
119
|
exIconClass: "e-node-status-icon"
|
|
93
120
|
}, (0, _getLocale.getLocale)('OKR_MyO_E_From_NotStarted')));
|
|
94
|
-
}
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
var _default = EStatusDropdown;
|
|
124
|
+
exports["default"] = _default;
|
|
@@ -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
|
}
|
|
@@ -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 && data.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),
|
|
@@ -376,7 +376,7 @@ function ETaskNode(props) {
|
|
|
376
376
|
avatar: user === null || user === void 0 ? void 0 : user.avatar,
|
|
377
377
|
extraCls: (isCancel || isGray) && "".concat(_precls["default"], "__e-project-node-gray")
|
|
378
378
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
379
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions-date")),
|
|
379
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions-date"), _defineProperty({}, "".concat(_precls["default"], "__e-task-node-actions-date--canedit"), dataInfo.status !== 2 && hasEditAuth)),
|
|
380
380
|
onClick: updateDateHandler
|
|
381
381
|
}, /*#__PURE__*/_react["default"].createElement(_statusTime["default"], {
|
|
382
382
|
deadLine: dataInfo.deadLine,
|
|
@@ -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;
|
|
@@ -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,27 +83,32 @@
|
|
|
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:
|
|
89
|
-
height:
|
|
87
|
+
width: 82px;
|
|
88
|
+
height: 32px;
|
|
90
89
|
padding: 4px;
|
|
91
90
|
text-align: left;
|
|
92
|
-
line-height:
|
|
91
|
+
line-height: 32px;
|
|
92
|
+
margin-left: 28px;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.titaui-task-tree__e-task-node-actions-date > span {
|
|
96
96
|
vertical-align: text-bottom;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
.titaui-task-tree__e-task-node-actions-date--canedit:hover {
|
|
100
|
+
border-radius: 8px;
|
|
101
|
+
border: 1px solid #dfe3ea;
|
|
102
|
+
padding: 3px;
|
|
103
|
+
}
|
|
104
|
+
|
|
99
105
|
.titaui-task-tree__e-task-node-actions-progress {
|
|
100
106
|
position: relative;
|
|
101
107
|
top: 3px;
|
|
102
108
|
color: #89919f;
|
|
103
109
|
cursor: auto;
|
|
104
|
-
width:
|
|
105
|
-
margin-left:
|
|
106
|
-
margin-right: 4px;
|
|
110
|
+
width: 68px;
|
|
111
|
+
margin-left: 20px;
|
|
107
112
|
}
|
|
108
113
|
|
|
109
114
|
.titaui-task-tree__e-task-node-actions-progress .tooltip-text-wrapper {
|
|
@@ -223,8 +228,8 @@
|
|
|
223
228
|
|
|
224
229
|
.titaui-task-tree__e-project-node-actions-user {
|
|
225
230
|
display: inline-block;
|
|
226
|
-
width:
|
|
227
|
-
margin-left:
|
|
231
|
+
width: 92px;
|
|
232
|
+
margin-left: 24px;
|
|
228
233
|
}
|
|
229
234
|
|
|
230
235
|
.titaui-task-tree__e-project-node-actions-date {
|
|
@@ -234,27 +239,32 @@
|
|
|
234
239
|
line-height: 18px;
|
|
235
240
|
display: inline-flex;
|
|
236
241
|
align-items: center;
|
|
237
|
-
justify-content: flex-end;
|
|
238
242
|
box-sizing: border-box;
|
|
239
|
-
width:
|
|
240
|
-
height:
|
|
243
|
+
width: 82px;
|
|
244
|
+
height: 32px;
|
|
241
245
|
padding: 4px;
|
|
242
246
|
text-align: left;
|
|
243
|
-
line-height:
|
|
247
|
+
line-height: 32px;
|
|
248
|
+
margin-left: 28px;
|
|
244
249
|
}
|
|
245
250
|
|
|
246
251
|
.titaui-task-tree__e-project-node-actions-date > span {
|
|
247
252
|
vertical-align: text-bottom;
|
|
248
253
|
}
|
|
249
254
|
|
|
255
|
+
.titaui-task-tree__e-project-node-actions-date--canedit:hover {
|
|
256
|
+
border-radius: 8px;
|
|
257
|
+
border: 1px solid #dfe3ea;
|
|
258
|
+
padding: 3px;
|
|
259
|
+
}
|
|
260
|
+
|
|
250
261
|
.titaui-task-tree__e-project-node-actions-progress {
|
|
251
262
|
position: relative;
|
|
252
263
|
top: 3px;
|
|
253
264
|
color: #89919f;
|
|
254
265
|
cursor: auto;
|
|
255
|
-
width:
|
|
256
|
-
margin-left:
|
|
257
|
-
margin-right: 4px;
|
|
266
|
+
width: 68px;
|
|
267
|
+
margin-left: 20px;
|
|
258
268
|
}
|
|
259
269
|
|
|
260
270
|
.titaui-task-tree__e-project-node-actions-progress .tooltip-text-wrapper {
|