@titaui/pc 1.10.8 → 1.10.9
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/change-okr-modal/index.js +88 -108
- package/lib/components/communication/CommunicationRecord.js +12 -18
- package/lib/components/communication/index.css +9 -48
- package/lib/components/communication/index.js +28 -67
- package/lib/components/communication/style.js +5 -7
- package/lib/components/create-okr-modal/fields/okr-parent.js +5 -1
- package/lib/components/dynamic/components/obj-status/index.css +19 -3
- package/lib/components/dynamic/components/obj-status/index.js +8 -7
- package/lib/components/dynamic/components/percent/index.css +1 -1
- package/lib/components/dynamic/components/title/index.css +22 -21
- package/lib/components/dynamic/components/title/index.js +8 -20
- package/lib/components/dynamic/dynamic-item/components/header/index.css +6 -6
- package/lib/components/dynamic/dynamic-item/components/header/index.js +6 -12
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +24 -35
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +29 -35
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +34 -6
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +32 -6
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +19 -59
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +19 -27
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +38 -49
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +44 -49
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +29 -41
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +29 -23
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +16 -33
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +24 -11
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +41 -26
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +29 -10
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +41 -26
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +30 -13
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +57 -15
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +80 -31
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +28 -35
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +23 -10
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +26 -45
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +33 -41
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +6 -19
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +17 -11
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +23 -21
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +27 -31
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +4 -4
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +18 -8
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +21 -6
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +36 -6
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.css +18 -10
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +25 -9
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +30 -34
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +24 -10
- package/lib/components/dynamic/dynamic-item/index.css +4 -4
- package/lib/components/dynamic/dynamic-item/index.js +8 -38
- package/lib/components/dynamic/util.js +81 -41
- package/lib/components/file-list/components/single-file/index.css +8 -9
- package/lib/components/mblog/context.js +1 -3
- package/lib/components/mblog/index.js +4 -31
- package/lib/components/mblog/style.js +4 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +12 -21
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +4 -7
- package/lib/components/okr-detail/okr-list/index.js +5 -1
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/progress/circle-progress/index.css +0 -1
- package/lib/components/progress/circle-progress/index.js +2 -7
- package/lib/components/search-key-handle/index.js +2 -7
- package/lib/index.js +0 -16
- package/lib/utils/bs-global.js +4 -8
- package/lib/utils/tools.js +2 -11
- package/package.json +1 -1
- package/lib/components/dynamic/components/obj-status/utils.js +0 -37
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +0 -72
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +0 -23
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/dynamic-share-course.png +0 -0
- package/lib/components/float-fixed-video-modal/img/close.png +0 -0
- package/lib/components/float-fixed-video-modal/img/full.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
- package/lib/components/float-fixed-video-modal/index.css +0 -243
- package/lib/components/float-fixed-video-modal/index.js +0 -334
- package/lib/components/float-fixed-video-modal/utils.js +0 -25
- package/lib/components/mblog/index.css +0 -7
- package/lib/components/video-modal/img/bigFaqi.png +0 -0
- package/lib/components/video-modal/img/muted.svg +0 -16
- package/lib/components/video-modal/img/not-muted.svg +0 -16
- package/lib/components/video-modal/img/pause.svg +0 -17
- package/lib/components/video-modal/img/play.png +0 -0
- package/lib/components/video-modal/img/play.svg +0 -16
- package/lib/components/video-modal/img/small.svg +0 -22
- package/lib/components/video-modal/index.css +0 -213
- package/lib/components/video-modal/index.js +0 -322
- package/lib/components/video-modal/utils.js +0 -25
|
@@ -4,50 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-create-o-item__content {
|
|
6
6
|
display: flex;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
border-radius: 18px;
|
|
10
|
-
padding: 16px;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
margin-left: 69px;
|
|
11
9
|
}
|
|
12
10
|
|
|
13
|
-
.titaui-dynamic-create-o-
|
|
14
|
-
|
|
15
|
-
transform: translate(-50%, -50%);
|
|
16
|
-
left: 50%;
|
|
17
|
-
top: 50%;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.titaui-dynamic-create-o-item__content-right {
|
|
21
|
-
flex: 1;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
margin-left: 12px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.titaui-dynamic-create-o-item__content-right-title {
|
|
27
|
-
display: flex;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
word-break: keep-all;
|
|
31
|
-
white-space: nowrap;
|
|
32
|
-
font-size: 14px;
|
|
33
|
-
line-height: 22px;
|
|
34
|
-
color: #3f4755;
|
|
35
|
-
font-weight: 600;
|
|
36
|
-
z-index: 2;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.titaui-dynamic-create-o-item__content-right-title-text {
|
|
40
|
-
flex: 1;
|
|
41
|
-
overflow: hidden;
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.titaui-dynamic-create-o-item__content-right-title-text:hover {
|
|
46
|
-
color: #2879ff !important;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.titaui-dynamic-create-o-item__content-right-infos-wrapper {
|
|
50
|
-
margin-top: 6px;
|
|
11
|
+
.titaui-dynamic-create-o-item__infos-wrapper {
|
|
12
|
+
margin-top: 12px;
|
|
51
13
|
}
|
|
52
14
|
|
|
53
15
|
.titaui-dynamic-create-o-item__okr {
|
|
@@ -58,12 +20,12 @@
|
|
|
58
20
|
line-height: 18px;
|
|
59
21
|
}
|
|
60
22
|
|
|
61
|
-
.titaui-dynamic-create-o-item__okr-type {
|
|
23
|
+
.titaui-dynamic-create-o-item__okr-type-icon, .titaui-dynamic-create-o-item__okr-cycle-icon {
|
|
62
24
|
margin-right: 4px;
|
|
63
25
|
}
|
|
64
26
|
|
|
65
|
-
.titaui-dynamic-create-o-item__okr-cycle {
|
|
66
|
-
margin-left:
|
|
27
|
+
.titaui-dynamic-create-o-item__okr-cycle-icon {
|
|
28
|
+
margin-left: 20px;
|
|
67
29
|
}
|
|
68
30
|
|
|
69
31
|
.titaui-dynamic-create-o-item__okr-krs {
|
|
@@ -78,7 +40,7 @@
|
|
|
78
40
|
|
|
79
41
|
.titaui-dynamic-create-o-item__kr-order {
|
|
80
42
|
font-size: 12px;
|
|
81
|
-
color: #
|
|
43
|
+
color: #2879ff;
|
|
82
44
|
line-height: 18px;
|
|
83
45
|
margin-right: 4px;
|
|
84
46
|
margin-top: 1px;
|
|
@@ -96,11 +58,38 @@
|
|
|
96
58
|
cursor: pointer;
|
|
97
59
|
}
|
|
98
60
|
|
|
61
|
+
.titaui-dynamic-create-o-item__classify {
|
|
62
|
+
display: flex;
|
|
63
|
+
width: 18px;
|
|
64
|
+
margin-left: 8px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.titaui-dynamic-create-o-item__classify--desire {
|
|
68
|
+
background: url("../../img/dynamic-desire.svg") no-repeat;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.titaui-dynamic-create-o-item__classify--promise {
|
|
72
|
+
background: url("../../img/dynamic-promise.svg") no-repeat;
|
|
73
|
+
}
|
|
74
|
+
|
|
99
75
|
.titaui-dynamic-create-o-item__operate-desc {
|
|
100
|
-
font-size:
|
|
76
|
+
font-size: 14px;
|
|
101
77
|
font-weight: 400;
|
|
102
78
|
color: #89919f;
|
|
103
|
-
line-height:
|
|
104
|
-
margin
|
|
79
|
+
line-height: 22px;
|
|
80
|
+
margin: 0 8px 0 4px;
|
|
105
81
|
overflow: hidden;
|
|
106
82
|
}
|
|
83
|
+
|
|
84
|
+
.titaui-dynamic-create-o-item-desc-operate-type {
|
|
85
|
+
display: inline-flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
padding: 0 6px;
|
|
89
|
+
height: 18px;
|
|
90
|
+
min-width: 40px;
|
|
91
|
+
border-radius: 10px 10px 10px 2px;
|
|
92
|
+
font-size: 12px;
|
|
93
|
+
color: #ffffff;
|
|
94
|
+
line-height: 18px;
|
|
95
|
+
}
|
|
@@ -15,7 +15,7 @@ var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handl
|
|
|
15
15
|
|
|
16
16
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
19
19
|
|
|
20
20
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
21
21
|
|
|
@@ -23,12 +23,10 @@ var _openData = require("../../../../utils/open-data");
|
|
|
23
23
|
|
|
24
24
|
var _context = require("../../context");
|
|
25
25
|
|
|
26
|
-
var _getLocale = require("../../../../utils/getLocale");
|
|
27
|
-
|
|
28
|
-
var _progress = _interopRequireDefault(require("../../../progress"));
|
|
29
|
-
|
|
30
26
|
var _util = require("../../util");
|
|
31
27
|
|
|
28
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
29
|
+
|
|
32
30
|
require("./index.css");
|
|
33
31
|
|
|
34
32
|
var _excluded = ["data"];
|
|
@@ -41,6 +39,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
41
39
|
|
|
42
40
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
43
41
|
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
44
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
45
45
|
|
|
46
46
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -58,16 +58,16 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
58
58
|
cycleName = data.cycleName,
|
|
59
59
|
okrTypeName = data.okrTypeName,
|
|
60
60
|
okrTypeId = data.okrTypeId,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
riskLevel = _data$riskLevel === void 0 ? 3 : _data$riskLevel,
|
|
64
|
-
okrStatus = data.okrStatus,
|
|
65
|
-
_data$okrProgress = data.okrProgress,
|
|
66
|
-
okrProgress = _data$okrProgress === void 0 ? 0 : _data$okrProgress;
|
|
61
|
+
classify = data.classify,
|
|
62
|
+
principalUser = data.principalUser;
|
|
67
63
|
|
|
68
64
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
69
65
|
searchKeyWord = _useContext.searchKeyWord;
|
|
70
66
|
|
|
67
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
68
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
69
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
70
|
+
|
|
71
71
|
var handleClickOTitle = function handleClickOTitle() {
|
|
72
72
|
_drawerManager["default"].open("okrDetail", {
|
|
73
73
|
okrId: okrId
|
|
@@ -88,7 +88,8 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
88
88
|
// 个人
|
|
89
89
|
2: {
|
|
90
90
|
icon: "tu-icon-liebiao-xiashu",
|
|
91
|
-
text:
|
|
91
|
+
text: // @ts-ignore
|
|
92
|
+
"departmentId" == -1 ? "默认部门" : /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
|
92
93
|
id: okrTypeId,
|
|
93
94
|
name: okrTypeName
|
|
94
95
|
})
|
|
@@ -114,10 +115,26 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
114
115
|
};
|
|
115
116
|
}
|
|
116
117
|
|
|
117
|
-
var
|
|
118
|
+
var Classify = (0, _react.useMemo)(function () {
|
|
119
|
+
var _classNames;
|
|
120
|
+
|
|
121
|
+
if (+classify == 0) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
118
125
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
126
|
+
className: (0, _classnames["default"])("".concat(prefix, "__classify"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__classify--desire"), classify == 2), _defineProperty(_classNames, "".concat(prefix, "__classify--promise"), classify == 1), _classNames))
|
|
127
|
+
});
|
|
128
|
+
}, [classify]);
|
|
129
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
130
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
119
131
|
className: "".concat(prefix, "__operate-desc")
|
|
120
|
-
}, (0, _getLocale.getLocale)("Mod_InChargeof"), (0, _getLocale.getLocale)("Mod_Objective"))
|
|
132
|
+
}, (0, _getLocale.getLocale)("Mod_InChargeof"), (0, _getLocale.getLocale)("Mod_Objective")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
133
|
+
className: "".concat(prefix, "-desc-operate-type"),
|
|
134
|
+
style: {
|
|
135
|
+
background: feedTypeColor
|
|
136
|
+
}
|
|
137
|
+
}, feedTypeText));
|
|
121
138
|
}, []);
|
|
122
139
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
140
|
className: prefix
|
|
@@ -128,41 +145,19 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
128
145
|
user: principalUser
|
|
129
146
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
147
|
className: "".concat(prefix, "__content")
|
|
131
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
linearEndColor: (0, _util.getProcessColor)(okrStatus, riskLevel, "linearEndColor"),
|
|
138
|
-
backgroundColor: (0, _util.getProcessColor)(okrStatus, riskLevel, "backgroundColor"),
|
|
139
|
-
percent: Number.parseInt(okrProgress || 0, 10),
|
|
140
|
-
showTextContent: true,
|
|
141
|
-
size: 48,
|
|
142
|
-
width: 5,
|
|
143
|
-
textClass: "".concat(prefix, "__content-progress-text")
|
|
144
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
|
-
className: "".concat(prefix, "__content-right")
|
|
146
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
|
-
className: "".concat(prefix, "__content-right-title")
|
|
148
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
149
|
-
className: "".concat(prefix, "__content-right-title-text"),
|
|
150
|
-
onClick: handleClickOTitle
|
|
151
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
152
|
-
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
153
|
-
str: okrName,
|
|
154
|
-
keyWord: searchKeyWord
|
|
155
|
-
}),
|
|
156
|
-
isPercent: true
|
|
157
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
158
|
-
className: "".concat(prefix, "__content-right-infos-wrapper")
|
|
148
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
149
|
+
content: "O\uFF1A".concat(okrName),
|
|
150
|
+
onClickTitle: handleClickOTitle,
|
|
151
|
+
suffixContent: Classify
|
|
152
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
153
|
+
className: "".concat(prefix, "__infos-wrapper")
|
|
159
154
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
160
155
|
className: "".concat(prefix, "__okr")
|
|
161
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
162
|
-
className: "".concat(prefix, "__okr-type")
|
|
163
|
-
}, okrTypeInfo.text
|
|
164
|
-
className: "".concat(prefix, "__okr-cycle")
|
|
165
|
-
}, cycleName)
|
|
156
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
157
|
+
className: (0, _classnames["default"])(okrTypeInfo.icon, "".concat(prefix, "__okr-type-icon"))
|
|
158
|
+
}), okrTypeInfo.text, /*#__PURE__*/_react["default"].createElement("i", {
|
|
159
|
+
className: (0, _classnames["default"])("tu-icon-deferred", "".concat(prefix, "__okr-cycle-icon"))
|
|
160
|
+
}), cycleName), krs && krs.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
166
161
|
className: "".concat(prefix, "__okr-krs")
|
|
167
162
|
}, krs.map(function (kr, index) {
|
|
168
163
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -171,7 +166,7 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
171
166
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
172
167
|
className: "".concat(prefix, "__kr-order")
|
|
173
168
|
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
174
|
-
className:
|
|
169
|
+
className: "".concat(prefix, "__kr-name"),
|
|
175
170
|
onClick: function onClick() {
|
|
176
171
|
handleClickKrTitle(kr.krId);
|
|
177
172
|
}
|
|
@@ -179,7 +174,7 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
179
174
|
str: kr.krName,
|
|
180
175
|
keyWord: searchKeyWord
|
|
181
176
|
})));
|
|
182
|
-
})))))
|
|
177
|
+
})))));
|
|
183
178
|
};
|
|
184
179
|
|
|
185
180
|
var _default = DynamicCreateO;
|
|
@@ -3,57 +3,32 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-kr-item__content {
|
|
6
|
-
margin-left:
|
|
7
|
-
background: rgba(90, 216, 166, 0.1);
|
|
8
|
-
border-radius: 12px;
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
padding: 8px 12px;
|
|
12
|
-
box-sizing: border-box;
|
|
6
|
+
margin-left: 69px;
|
|
13
7
|
}
|
|
14
8
|
|
|
15
|
-
.titaui-dynamic-kr-item__content-
|
|
9
|
+
.titaui-dynamic-kr-item__content-time-range {
|
|
16
10
|
display: flex;
|
|
17
11
|
align-items: center;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
font-size: 16px;
|
|
23
|
-
font-weight: 600;
|
|
24
|
-
color: #3f4755;
|
|
25
|
-
line-height: 24px;
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
color: #89919f;
|
|
14
|
+
line-height: 18px;
|
|
15
|
+
margin-top: 8px;
|
|
26
16
|
}
|
|
27
17
|
|
|
28
|
-
.titaui-dynamic-kr-item__content-
|
|
29
|
-
|
|
30
|
-
background: rgba(90, 216, 166, 0.5);
|
|
31
|
-
color: #ffffff;
|
|
32
|
-
margin-right: 8px;
|
|
33
|
-
font-size: 14px;
|
|
34
|
-
line-height: 20px;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
padding: 0 6px;
|
|
39
|
-
font-weight: 400;
|
|
40
|
-
height: 20px;
|
|
18
|
+
.titaui-dynamic-kr-item__content-time-range-icon {
|
|
19
|
+
margin-right: 4px;
|
|
41
20
|
}
|
|
42
21
|
|
|
43
|
-
.titaui-dynamic-kr-
|
|
44
|
-
|
|
45
|
-
|
|
22
|
+
.titaui-dynamic-kr-item__title {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
46
25
|
overflow: hidden;
|
|
47
26
|
}
|
|
48
27
|
|
|
49
|
-
.titaui-dynamic-kr-item__content-title-text:hover {
|
|
50
|
-
color: #2879ff;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
28
|
.titaui-dynamic-kr-item__object-name {
|
|
54
|
-
font-size:
|
|
29
|
+
font-size: 14px;
|
|
55
30
|
color: #2879ff;
|
|
56
|
-
line-height:
|
|
31
|
+
line-height: 22px;
|
|
57
32
|
margin: 0 4px;
|
|
58
33
|
overflow: hidden;
|
|
59
34
|
}
|
|
@@ -64,14 +39,27 @@
|
|
|
64
39
|
}
|
|
65
40
|
|
|
66
41
|
.titaui-dynamic-kr-item__operate-desc {
|
|
67
|
-
font-size:
|
|
42
|
+
font-size: 14px;
|
|
68
43
|
font-weight: 400;
|
|
69
44
|
color: #89919f;
|
|
70
|
-
line-height:
|
|
71
|
-
margin
|
|
45
|
+
line-height: 22px;
|
|
46
|
+
margin: 0 8px 0 4px;
|
|
72
47
|
overflow: hidden;
|
|
73
48
|
}
|
|
74
49
|
|
|
75
50
|
.titaui-dynamic-kr-item__operate-desc-wrapper {
|
|
76
51
|
display: flex;
|
|
77
52
|
}
|
|
53
|
+
|
|
54
|
+
.titaui-dynamic-kr-item-desc-operate-type {
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
padding: 0 6px;
|
|
59
|
+
height: 18px;
|
|
60
|
+
min-width: 40px;
|
|
61
|
+
border-radius: 10px 10px 10px 2px;
|
|
62
|
+
font-size: 12px;
|
|
63
|
+
color: #ffffff;
|
|
64
|
+
line-height: 18px;
|
|
65
|
+
}
|
|
@@ -9,22 +9,24 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
12
14
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
13
15
|
|
|
14
16
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
15
17
|
|
|
18
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
19
|
+
|
|
20
|
+
var _util = require("../../util");
|
|
21
|
+
|
|
16
22
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
17
23
|
|
|
18
24
|
var _getLocale = require("../../../../utils/getLocale");
|
|
19
25
|
|
|
20
26
|
var _constant = require("../../constant");
|
|
21
27
|
|
|
22
|
-
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
23
|
-
|
|
24
28
|
require("./index.css");
|
|
25
29
|
|
|
26
|
-
var _context = require("../../context");
|
|
27
|
-
|
|
28
30
|
var _excluded = ["data"];
|
|
29
31
|
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -45,13 +47,16 @@ var DynamicKr = function DynamicKr(_ref) {
|
|
|
45
47
|
var data = _ref.data,
|
|
46
48
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
47
49
|
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
var name = data.name,
|
|
50
|
+
var endDate = data.endDate,
|
|
51
|
+
startDate = data.startDate,
|
|
52
|
+
name = data.name,
|
|
52
53
|
krId = data.krId,
|
|
53
54
|
principalUser = data.principalUser;
|
|
54
55
|
|
|
56
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
57
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
58
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
59
|
+
|
|
55
60
|
var handleClickKrTitle = function handleClickKrTitle() {
|
|
56
61
|
_drawerManager["default"].open("krDetail", {
|
|
57
62
|
krId: krId
|
|
@@ -65,7 +70,7 @@ var DynamicKr = function DynamicKr(_ref) {
|
|
|
65
70
|
};
|
|
66
71
|
|
|
67
72
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
68
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
73
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
74
|
className: "".concat(prefix, "__operate-desc")
|
|
70
75
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
71
76
|
className: "".concat(prefix, "__operate-desc-wrapper")
|
|
@@ -75,7 +80,12 @@ var DynamicKr = function DynamicKr(_ref) {
|
|
|
75
80
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
76
81
|
text: data.obj.objName,
|
|
77
82
|
isPercent: true
|
|
78
|
-
})), (0, _getLocale.getLocale)("Mod_skeyresults")))
|
|
83
|
+
})), (0, _getLocale.getLocale)("Mod_skeyresults"))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
84
|
+
className: "".concat(prefix, "-desc-operate-type"),
|
|
85
|
+
style: {
|
|
86
|
+
background: feedTypeColor
|
|
87
|
+
}
|
|
88
|
+
}, feedTypeText));
|
|
79
89
|
}, []);
|
|
80
90
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
91
|
className: prefix
|
|
@@ -87,19 +97,15 @@ var DynamicKr = function DynamicKr(_ref) {
|
|
|
87
97
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
98
|
className: "".concat(prefix, "__content")
|
|
89
99
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
|
-
className: "".concat(prefix, "
|
|
91
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
keyWord: searchKeyWord
|
|
100
|
-
}),
|
|
101
|
-
isPercent: true
|
|
102
|
-
})))));
|
|
100
|
+
className: "".concat(prefix, "__title")
|
|
101
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
102
|
+
content: "KR\uFF1A".concat(name),
|
|
103
|
+
onClickTitle: handleClickKrTitle
|
|
104
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
105
|
+
className: "".concat(prefix, "__content-time-range")
|
|
106
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
107
|
+
className: (0, _classnames["default"])("tu-icon-deferred", "".concat(prefix, "__content-time-range-icon"))
|
|
108
|
+
}), /*#__PURE__*/_react["default"].createElement("span", null, startDate, "-", endDate))));
|
|
103
109
|
};
|
|
104
110
|
|
|
105
111
|
var _default = DynamicKr;
|
|
Binary file
|
|
@@ -11,24 +11,27 @@
|
|
|
11
11
|
height: 78px;
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: center;
|
|
14
|
-
border-radius:
|
|
15
|
-
background: rgba(
|
|
16
|
-
padding:
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
background: rgba(240, 244, 250, 0.5);
|
|
16
|
+
padding: 16px 12px 16px 16px;
|
|
17
17
|
box-sizing: border-box;
|
|
18
|
-
margin-left:
|
|
18
|
+
margin-left: 69px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.titaui-dynamic-milestone-item__content-img {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: 36px;
|
|
24
|
+
border-radius: 6px;
|
|
19
25
|
}
|
|
20
26
|
|
|
21
27
|
.titaui-dynamic-milestone-item__content-info {
|
|
22
28
|
flex: 1;
|
|
23
29
|
display: flex;
|
|
24
30
|
flex-direction: column;
|
|
31
|
+
margin-left: 16px;
|
|
25
32
|
overflow: hidden;
|
|
26
33
|
}
|
|
27
34
|
|
|
28
|
-
.titaui-dynamic-milestone-item__content-status-icon {
|
|
29
|
-
font-size: 14px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
35
|
.titaui-dynamic-milestone-item__content-status-and-time-range {
|
|
33
36
|
display: flex;
|
|
34
37
|
align-items: center;
|
|
@@ -56,30 +59,10 @@
|
|
|
56
59
|
font-weight: 600;
|
|
57
60
|
color: #3f4755;
|
|
58
61
|
line-height: 24px;
|
|
59
|
-
display: flex;
|
|
60
|
-
margin-bottom: 4px;
|
|
61
|
-
align-items: center;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.titaui-dynamic-milestone-item__content-title-type {
|
|
65
|
-
border-radius: 18px;
|
|
66
|
-
background: rgba(98, 77, 255, 0.5);
|
|
67
|
-
color: #ffffff;
|
|
68
|
-
margin-right: 8px;
|
|
69
|
-
font-size: 14px;
|
|
70
|
-
line-height: 20px;
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: center;
|
|
73
|
-
justify-content: center;
|
|
74
|
-
padding: 0 6px;
|
|
75
|
-
font-weight: 400;
|
|
76
|
-
height: 20px;
|
|
77
62
|
}
|
|
78
63
|
|
|
79
64
|
.titaui-dynamic-milestone-item__content-title-text {
|
|
80
|
-
flex: 1;
|
|
81
65
|
cursor: pointer;
|
|
82
|
-
overflow: hidden;
|
|
83
66
|
}
|
|
84
67
|
|
|
85
68
|
.titaui-dynamic-milestone-item__content-title-text:hover {
|
|
@@ -93,9 +76,9 @@
|
|
|
93
76
|
}
|
|
94
77
|
|
|
95
78
|
.titaui-dynamic-milestone-item__object-name {
|
|
96
|
-
font-size:
|
|
79
|
+
font-size: 14px;
|
|
97
80
|
color: #2879ff;
|
|
98
|
-
line-height:
|
|
81
|
+
line-height: 22px;
|
|
99
82
|
margin: 0 4px;
|
|
100
83
|
overflow: hidden;
|
|
101
84
|
}
|
|
@@ -106,11 +89,11 @@
|
|
|
106
89
|
}
|
|
107
90
|
|
|
108
91
|
.titaui-dynamic-milestone-item__operate-desc {
|
|
109
|
-
font-size:
|
|
92
|
+
font-size: 14px;
|
|
110
93
|
font-weight: 400;
|
|
111
94
|
color: #89919f;
|
|
112
|
-
line-height:
|
|
113
|
-
margin
|
|
95
|
+
line-height: 22px;
|
|
96
|
+
margin: 0 8px 0 4px;
|
|
114
97
|
overflow: hidden;
|
|
115
98
|
}
|
|
116
99
|
|
|
@@ -23,6 +23,10 @@ var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handl
|
|
|
23
23
|
|
|
24
24
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
25
25
|
|
|
26
|
+
var _util = require("../../util");
|
|
27
|
+
|
|
28
|
+
var _dynamicMilestone = _interopRequireDefault(require("./img/dynamic-milestone.png"));
|
|
29
|
+
|
|
26
30
|
var _getLocale = require("../../../../utils/getLocale");
|
|
27
31
|
|
|
28
32
|
require("./index.css");
|
|
@@ -51,12 +55,17 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
51
55
|
name = data.name,
|
|
52
56
|
startDate = data.startDate,
|
|
53
57
|
endDate = data.endDate,
|
|
58
|
+
feedType = data.feedType,
|
|
54
59
|
obj = data.obj,
|
|
55
60
|
principalUser = data.principalUser;
|
|
56
61
|
|
|
57
62
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
58
63
|
searchKeyWord = _useContext.searchKeyWord;
|
|
59
64
|
|
|
65
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
66
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
67
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
68
|
+
|
|
60
69
|
var handleClickTaskTitle = function handleClickTaskTitle() {
|
|
61
70
|
window.Talent.app.vent.trigger("global-pull-screen", data.mileStoneId, "milestone", new window.Talent.Model(data), {
|
|
62
71
|
option: true,
|
|
@@ -72,7 +81,7 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
72
81
|
objId = obj.objId;
|
|
73
82
|
|
|
74
83
|
if (objType === _constant2.EObjType.Project) {
|
|
75
|
-
window.open(window.location.href.replace(
|
|
84
|
+
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
76
85
|
}
|
|
77
86
|
};
|
|
78
87
|
|
|
@@ -86,7 +95,7 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
86
95
|
}));
|
|
87
96
|
}, [name, searchKeyWord]);
|
|
88
97
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
89
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
98
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
90
99
|
className: "".concat(prefix, "__operate-desc")
|
|
91
100
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
92
101
|
className: "".concat(prefix, "__operate-desc-wrapper")
|
|
@@ -96,7 +105,12 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
96
105
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
97
106
|
text: obj.objName,
|
|
98
107
|
isPercent: true
|
|
99
|
-
})), (0, _getLocale.getLocale)("Mod_smilestone")))
|
|
108
|
+
})), (0, _getLocale.getLocale)("Mod_smilestone"))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
109
|
+
className: "".concat(prefix, "-desc-operate-type"),
|
|
110
|
+
style: {
|
|
111
|
+
background: feedTypeColor
|
|
112
|
+
}
|
|
113
|
+
}, feedTypeText));
|
|
100
114
|
}, []);
|
|
101
115
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
116
|
className: prefix
|
|
@@ -107,26 +121,25 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
107
121
|
user: principalUser
|
|
108
122
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
109
123
|
className: "".concat(prefix, "__content")
|
|
110
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
124
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
125
|
+
className: "".concat(prefix, "__content-img"),
|
|
126
|
+
src: _dynamicMilestone["default"]
|
|
127
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
128
|
className: "".concat(prefix, "__content-info")
|
|
112
129
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
113
130
|
className: "".concat(prefix, "__content-title")
|
|
114
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
115
|
-
className: "".concat(prefix, "__content-title-type")
|
|
116
|
-
}, (0, _getLocale.getLocale)("Pro_page_Plan_Milestone")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
117
|
-
className: "".concat(prefix, "__content-title-text")
|
|
118
131
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
119
132
|
isPercent: true,
|
|
120
133
|
text: renderName,
|
|
121
134
|
minusWidth: 30
|
|
122
|
-
}))
|
|
135
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
136
|
className: "".concat(prefix, "__content-status-and-time-range")
|
|
124
137
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
125
|
-
className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status]
|
|
138
|
+
className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status])
|
|
126
139
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
127
140
|
className: "".concat(prefix, "__content-status-text")
|
|
128
141
|
}, _constant.MileStoneStatusClass2StatusTypeText[status]), /*#__PURE__*/_react["default"].createElement("i", {
|
|
129
|
-
className: (0, _classnames["default"])("tu-icon-deferred"
|
|
142
|
+
className: (0, _classnames["default"])("tu-icon-deferred")
|
|
130
143
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
131
144
|
className: "".concat(prefix, "__content-time-range")
|
|
132
145
|
}, startDate, "-", endDate)))));
|