@titaui/pc 1.5.69-beta.2 → 1.5.69-beta.23
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/icon-avatar/index.js +1 -1
- package/lib/components/avatar/index.js +5 -1
- package/lib/components/avatar/num-avatar/index.css +12 -0
- package/lib/components/avatar/num-avatar/index.js +34 -0
- package/lib/components/button/default-button/index.css +49 -0
- package/lib/components/button/default-button/index.js +51 -0
- package/lib/components/button/index.js +8 -2
- package/lib/components/communication/CommunicationRecord.js +110 -162
- package/lib/components/communication/index.css +4 -0
- package/lib/components/communication/index.js +34 -25
- package/lib/components/communication/style.js +1 -1
- package/lib/components/create-okr/index.css +4 -0
- package/lib/components/create-okr/index.js +43 -31
- package/lib/components/dropdown-layer/index.js +15 -12
- package/lib/components/dynamic/components/condition-render/index.js +20 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +6 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +4 -2
- package/lib/components/dynamic/components/obj-status/index.css +22 -0
- package/lib/components/dynamic/components/obj-status/index.js +38 -0
- package/lib/components/dynamic/components/percent/index.css +21 -0
- package/lib/components/dynamic/components/percent/index.js +38 -0
- package/lib/components/dynamic/components/title/index.css +35 -0
- package/lib/components/dynamic/{dynamic-item/components/publish-content → components/title}/index.js +27 -31
- package/lib/components/dynamic/constant.js +19 -2
- package/lib/components/dynamic/dynamic-item/components/{dynamic-item-header → header}/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/components/{dynamic-item-header → header}/index.js +97 -73
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +10 -0
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +35 -0
- package/lib/components/dynamic/dynamic-item/{components/align → dynamic-align}/img/dynamic-align.svg +0 -0
- package/lib/components/dynamic/dynamic-item/{components/align → dynamic-align}/img/dynamic-relative.svg +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +173 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +54 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +48 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +89 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +96 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +171 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +67 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +110 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project → dynamic-milestone}/constant.js +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +158 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +215 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-project}/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +91 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +125 -0
- package/lib/components/dynamic/dynamic-item/{components/relative → dynamic-relative}/img/dynamic-relative.svg +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +192 -0
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +138 -0
- package/lib/components/dynamic/dynamic-item/{components/replay → dynamic-replay}/index.js +76 -11
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +153 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +138 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +97 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +207 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +54 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/constant.js +13 -3
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-unstart.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +164 -0
- package/lib/components/dynamic/dynamic-item/index.css +34 -10
- package/lib/components/dynamic/dynamic-item/index.js +155 -85
- package/lib/components/dynamic/dynamic-like-ranking/index.css +11 -8
- package/lib/components/dynamic/dynamic-like-ranking/index.js +69 -20
- package/lib/components/dynamic/dynamic-like-ranking/item.js +28 -51
- package/lib/components/dynamic/dynamic-liking/index.css +1 -8
- package/lib/components/dynamic/dynamic-liking/index.js +10 -4
- package/lib/components/dynamic/dynamic-liking/item.js +46 -25
- package/lib/components/dynamic/dynamic-list/index.css +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +9 -7
- package/lib/components/dynamic/dynamic-topping/index.css +0 -5
- package/lib/components/dynamic/dynamic-topping/index.js +1 -1
- package/lib/components/dynamic/dynamic-topping/item.js +13 -17
- package/lib/components/dynamic/dynamic.css +54 -0
- package/lib/components/dynamic/dynamic.js +126 -58
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/quick-operation/index.css +3 -1
- package/lib/components/dynamic/quick-operation/index.js +14 -4
- package/lib/components/dynamic/request-api.js +20 -8
- package/lib/components/dynamic/util.js +41 -7
- package/lib/components/file-list/components/single-file/index.css +3 -3
- package/lib/components/grid-page/personal-info/index.js +4 -4
- package/lib/components/img-viewer/index.css +1 -1
- package/lib/components/mblog/index.js +2 -2
- package/lib/components/mblog/style.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +48 -25
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +62 -24
- package/lib/components/publish-dynamic-modal/requist-api.js +17 -2
- package/lib/components/table/index.css +0 -1
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upvote/index.js +26 -14
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +4 -0
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +8 -6
- package/lib/index.js +5 -1
- package/lib/pages/dynamic/index.css +1 -0
- package/lib/pages/like-ranking/column.js +33 -14
- package/lib/pages/like-ranking/filter-buttons/department.js +8 -11
- package/lib/pages/like-ranking/filter-buttons/group.js +34 -0
- package/lib/pages/like-ranking/filter-buttons/index.css +4 -8
- package/lib/pages/like-ranking/filter-buttons/index.js +18 -11
- package/lib/pages/like-ranking/filter-buttons/modular.js +51 -28
- package/lib/pages/like-ranking/filter-buttons/name.js +33 -6
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +17 -0
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +8 -2
- package/lib/pages/like-ranking/filter-buttons/timer.js +28 -46
- package/lib/pages/like-ranking/image/dynamic-empty.png +0 -0
- package/lib/pages/like-ranking/image/loading.gif +0 -0
- package/lib/pages/like-ranking/index.css +83 -4
- package/lib/pages/like-ranking/index.js +183 -22
- package/lib/pages/like-ranking/request-api.js +15 -0
- package/lib/utils/auth.js +16 -2
- package/lib/utils/bs-global.js +19 -2
- package/lib/utils/format-time.js +113 -8
- package/lib/utils/tools.js +50 -25
- package/package.json +1 -1
- package/lib/components/dynamic/components/common-title/index.css +0 -106
- package/lib/components/dynamic/components/common-title/index.js +0 -129
- package/lib/components/dynamic/dynamic-item/components/align/index.css +0 -66
- package/lib/components/dynamic/dynamic-item/components/align/index.js +0 -109
- package/lib/components/dynamic/dynamic-item/components/assessment/index.css +0 -20
- package/lib/components/dynamic/dynamic-item/components/assessment/index.js +0 -48
- package/lib/components/dynamic/dynamic-item/components/common-dynamic/index.css +0 -34
- package/lib/components/dynamic/dynamic-item/components/common-dynamic/index.js +0 -142
- package/lib/components/dynamic/dynamic-item/components/create-o/index.css +0 -52
- package/lib/components/dynamic/dynamic-item/components/create-o/index.js +0 -104
- package/lib/components/dynamic/dynamic-item/components/dynamic-desc/index.css +0 -62
- package/lib/components/dynamic/dynamic-item/components/dynamic-desc/index.js +0 -256
- package/lib/components/dynamic/dynamic-item/components/publish-content/index.css +0 -22
- package/lib/components/dynamic/dynamic-item/components/relative/index.css +0 -66
- package/lib/components/dynamic/dynamic-item/components/relative/index.js +0 -124
- package/lib/components/dynamic/dynamic-item/components/replay/index.css +0 -93
- package/lib/components/dynamic/dynamic-item/components/report/index.css +0 -32
- package/lib/components/dynamic/dynamic-item/components/report/index.js +0 -82
- package/lib/components/dynamic/dynamic-item/components/task-project/index.css +0 -57
- package/lib/components/dynamic/dynamic-item/components/task-project/index.js +0 -87
- package/lib/components/dynamic/dynamic-item/components/task-project-icon/index.css +0 -20
- package/lib/components/dynamic/dynamic-item/components/task-project-icon/index.js +0 -40
- package/lib/components/dynamic/dynamic-topping/mock.js +0 -1
- package/lib/pages/like-ranking/tab-bar/index.css +0 -22
- package/lib/pages/like-ranking/tab-bar/index.js +0 -65
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
.titaui-dynamic-create-o {
|
|
2
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.titaui-dynamic-create-o__infos-wrapper {
|
|
6
|
-
margin-top: 8px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.titaui-dynamic-create-o__okr {
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
font-size: 12px;
|
|
13
|
-
color: #89919f;
|
|
14
|
-
line-height: 18px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.titaui-dynamic-create-o__okr-type-icon, .titaui-dynamic-create-o__okr-cycle-icon {
|
|
18
|
-
margin-right: 4px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.titaui-dynamic-create-o__okr-cycle-icon {
|
|
22
|
-
margin-left: 20px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.titaui-dynamic-create-o__okr-krs {
|
|
26
|
-
margin-top: 4px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.titaui-dynamic-create-o__kr {
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
margin-top: 8px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.titaui-dynamic-create-o__kr-order {
|
|
36
|
-
font-size: 12px;
|
|
37
|
-
color: #2879ff;
|
|
38
|
-
line-height: 18px;
|
|
39
|
-
margin-right: 4px;
|
|
40
|
-
margin-top: 1px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.titaui-dynamic-create-o__kr-name {
|
|
44
|
-
font-size: 14px;
|
|
45
|
-
color: #3f4755;
|
|
46
|
-
line-height: 22px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.titaui-dynamic-create-o__kr-name:hover {
|
|
50
|
-
color: #2879ff;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
|
-
var _commonTitle = _interopRequireDefault(require("../../../components/common-title"));
|
|
13
|
-
|
|
14
|
-
var _manager = _interopRequireDefault(require("../../../../drawer/manager"));
|
|
15
|
-
|
|
16
|
-
var _openData = require("../../../../../utils/open-data");
|
|
17
|
-
|
|
18
|
-
require("./index.css");
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
|
-
var prefix = "titaui-dynamic-create-o";
|
|
23
|
-
|
|
24
|
-
var CreateO = function CreateO(_ref) {
|
|
25
|
-
var data = _ref.data;
|
|
26
|
-
var okrId = data.okrId,
|
|
27
|
-
okrName = data.okrName,
|
|
28
|
-
krs = data.krs,
|
|
29
|
-
okrType = data.okrType,
|
|
30
|
-
cycleName = data.cycleName,
|
|
31
|
-
classify = data.classify;
|
|
32
|
-
|
|
33
|
-
var handleClickOTitle = function handleClickOTitle() {
|
|
34
|
-
_manager["default"].open("okrDetail", {
|
|
35
|
-
okrId: okrId
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
var handleClickKrTitle = function handleClickKrTitle(id) {
|
|
40
|
-
_manager["default"].open("krDetail", {
|
|
41
|
-
krId: id
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
var okrTypeMap = {
|
|
46
|
-
1: {
|
|
47
|
-
icon: "tu-icon-liebiao-geren",
|
|
48
|
-
text: "个人"
|
|
49
|
-
},
|
|
50
|
-
// 个人
|
|
51
|
-
2: {
|
|
52
|
-
icon: "tu-icon-liebiao-xiashu",
|
|
53
|
-
text: // @ts-ignore
|
|
54
|
-
"departmentId" == -1 ? "默认部门" : /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
|
55
|
-
id: "departmentId",
|
|
56
|
-
name: "departmentName"
|
|
57
|
-
})
|
|
58
|
-
},
|
|
59
|
-
// 部门
|
|
60
|
-
3: {
|
|
61
|
-
icon: "tu-icon-gong_si",
|
|
62
|
-
text: "公司"
|
|
63
|
-
},
|
|
64
|
-
// 公司
|
|
65
|
-
4: {
|
|
66
|
-
icon: "tu-icon-liebiao-tuandui",
|
|
67
|
-
text: "groupName" || "团队"
|
|
68
|
-
} // 团队
|
|
69
|
-
|
|
70
|
-
};
|
|
71
|
-
var okrTypeInfo = okrTypeMap[okrType];
|
|
72
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
-
className: prefix
|
|
74
|
-
}, /*#__PURE__*/_react["default"].createElement(_commonTitle["default"], {
|
|
75
|
-
content: "O:" + okrName,
|
|
76
|
-
onClickTitle: handleClickOTitle,
|
|
77
|
-
showOClassify: true,
|
|
78
|
-
oClassify: classify
|
|
79
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
|
-
className: prefix + "__infos-wrapper"
|
|
81
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
82
|
-
className: prefix + "__okr"
|
|
83
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
84
|
-
className: (0, _classnames["default"])(okrTypeInfo.icon, prefix + "__okr-type-icon")
|
|
85
|
-
}), okrTypeInfo.text, /*#__PURE__*/_react["default"].createElement("i", {
|
|
86
|
-
className: (0, _classnames["default"])("tu-icon-deferred", prefix + "__okr-cycle-icon")
|
|
87
|
-
}), cycleName), krs && krs.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
|
-
className: prefix + "__okr-krs"
|
|
89
|
-
}, krs.map(function (kr, index) {
|
|
90
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
-
className: prefix + "__kr"
|
|
92
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
93
|
-
className: prefix + "__kr-order"
|
|
94
|
-
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
95
|
-
className: prefix + "__kr-name",
|
|
96
|
-
onClick: function onClick() {
|
|
97
|
-
handleClickKrTitle(kr.krId);
|
|
98
|
-
}
|
|
99
|
-
}, kr.krName));
|
|
100
|
-
}))));
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
var _default = CreateO;
|
|
104
|
-
exports["default"] = _default;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
.titaui-dynamic-desc__object-name {
|
|
2
|
-
font-size: 14px;
|
|
3
|
-
color: #2879ff;
|
|
4
|
-
line-height: 22px;
|
|
5
|
-
margin: 0 4px;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.titaui-dynamic-desc__object-name:hover {
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
color: #5c8eff;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.titaui-dynamic-desc__operate-desc {
|
|
15
|
-
font-size: 14px;
|
|
16
|
-
font-weight: 400;
|
|
17
|
-
color: #89919f;
|
|
18
|
-
line-height: 22px;
|
|
19
|
-
margin: 0 8px 0 4px;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-dynamic-desc__operate-desc-wrapper {
|
|
24
|
-
display: flex;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.titaui-dynamic-desc-desc-operate-type {
|
|
28
|
-
display: inline-flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
width: 40px;
|
|
32
|
-
height: 18px;
|
|
33
|
-
min-width: 40px;
|
|
34
|
-
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
35
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
36
|
-
border-radius: 14px 10px 10px 4px;
|
|
37
|
-
font-size: 12px;
|
|
38
|
-
color: #ffffff;
|
|
39
|
-
line-height: 18px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.titaui-dynamic-desc__reward-img {
|
|
43
|
-
width: 25px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.titaui-dynamic-desc__reward-user {
|
|
47
|
-
font-size: 14px;
|
|
48
|
-
font-weight: 600;
|
|
49
|
-
color: #3F4755;
|
|
50
|
-
line-height: 22px;
|
|
51
|
-
margin: 0 4px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.titaui-dynamic-desc__reward-user:hover {
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
color: #2879ff;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.titaui-dynamic-desc__reward-user--not-link:hover {
|
|
60
|
-
cursor: default !important;
|
|
61
|
-
color: #3f4755 !important;
|
|
62
|
-
}
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
|
-
var _constant = require("../../../constant");
|
|
15
|
-
|
|
16
|
-
var _manager = _interopRequireDefault(require("../../../../drawer/manager"));
|
|
17
|
-
|
|
18
|
-
var _searchKeyHandle = _interopRequireDefault(require("../../../../search-key-handle"));
|
|
19
|
-
|
|
20
|
-
var _context = require("../../../context");
|
|
21
|
-
|
|
22
|
-
var _tooltip = require("../../../../..//components/tooltip");
|
|
23
|
-
|
|
24
|
-
var _util = require("../../../util");
|
|
25
|
-
|
|
26
|
-
var _openData = require("../../../../../utils/open-data");
|
|
27
|
-
|
|
28
|
-
var _tools = require("../../../../../utils/tools");
|
|
29
|
-
|
|
30
|
-
var _dynamicReword = _interopRequireDefault(require("../../../img/dynamic-reword.svg"));
|
|
31
|
-
|
|
32
|
-
require("./index.css");
|
|
33
|
-
|
|
34
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
|
-
|
|
36
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
37
|
-
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
|
-
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; }
|
|
41
|
-
|
|
42
|
-
var prefix = "titaui-dynamic-desc";
|
|
43
|
-
|
|
44
|
-
var DynamicDesc = function DynamicDesc(_ref) {
|
|
45
|
-
var data = _ref.data;
|
|
46
|
-
|
|
47
|
-
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
48
|
-
searchKeyWord = _useContext.searchKeyWord;
|
|
49
|
-
|
|
50
|
-
var feedType = data.feedType,
|
|
51
|
-
parentObjType = data.parentObjType,
|
|
52
|
-
replayObjType = data.replayObjType,
|
|
53
|
-
relateObjType = data.relateObjType,
|
|
54
|
-
rewardUser = data.rewardUser;
|
|
55
|
-
|
|
56
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
57
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
58
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
59
|
-
|
|
60
|
-
var handleClickTitle = function handleClickTitle(_ref2) {
|
|
61
|
-
var type = _ref2.type,
|
|
62
|
-
id = _ref2.id;
|
|
63
|
-
|
|
64
|
-
if (type === _constant.EObjType.Kr) {
|
|
65
|
-
_manager["default"].open("krDetail", {
|
|
66
|
-
krId: id
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
if (type === _constant.EObjType.O) {
|
|
71
|
-
_manager["default"].open("okrDetail", {
|
|
72
|
-
okrId: id
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
if (type === _constant.EObjType.Project) {
|
|
77
|
-
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=" + id));
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
var renderOperateDesc = function renderOperateDesc() {
|
|
82
|
-
if (feedType === _constant.EFeedType.O) {
|
|
83
|
-
return "负责了目标";
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
if (feedType === _constant.EFeedType.Project) {
|
|
87
|
-
return "负责了项目";
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (feedType === _constant.EFeedType.Kr) {
|
|
91
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
92
|
-
className: prefix + "__operate-desc-wrapper"
|
|
93
|
-
}, "\u8D1F\u8D23\u4E86", _constant.ObjTypeMapText[data.obj.objType], /*#__PURE__*/_react["default"].createElement("span", {
|
|
94
|
-
className: prefix + "__object-name",
|
|
95
|
-
onClick: function onClick() {
|
|
96
|
-
handleClickTitle({
|
|
97
|
-
type: data.obj.objType,
|
|
98
|
-
id: data.obj.objId
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
102
|
-
text: data.obj.objName,
|
|
103
|
-
isPercent: true
|
|
104
|
-
})), "\u4E0B\u5173\u952E\u6210\u679C");
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
if (feedType === _constant.EFeedType.Task) {
|
|
108
|
-
if (data.obj === null) {
|
|
109
|
-
return "负责了任务";
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
113
|
-
className: prefix + "__operate-desc-wrapper"
|
|
114
|
-
}, "\u8D1F\u8D23\u4E86", _constant.ObjTypeMapText[data.obj.objType], /*#__PURE__*/_react["default"].createElement("span", {
|
|
115
|
-
className: prefix + "__object-name",
|
|
116
|
-
onClick: function onClick() {
|
|
117
|
-
handleClickTitle({
|
|
118
|
-
type: data.obj.objType,
|
|
119
|
-
id: data.obj.objId
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
123
|
-
text: data.obj.objName,
|
|
124
|
-
isPercent: true
|
|
125
|
-
})), "\u4E0B\u4EFB\u52A1");
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (feedType === _constant.EFeedType.Assessment) {
|
|
129
|
-
return "的考核";
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
if (feedType === _constant.EFeedType.Report) {
|
|
133
|
-
return "的总结";
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
if (feedType === _constant.EFeedType.Reply) {
|
|
137
|
-
if (replayObjType === _constant.EObjType.O) {
|
|
138
|
-
return "的目标复盘";
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if (replayObjType === _constant.EObjType.Kr) {
|
|
142
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
143
|
-
className: prefix + "__operate-desc-wrapper"
|
|
144
|
-
}, "\u5728\u76EE\u6807", /*#__PURE__*/_react["default"].createElement("span", {
|
|
145
|
-
className: prefix + "__object-name",
|
|
146
|
-
onClick: function onClick() {
|
|
147
|
-
handleClickTitle({
|
|
148
|
-
type: data.obj.objType,
|
|
149
|
-
id: data.obj.objId
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
153
|
-
text: data.obj.objName,
|
|
154
|
-
isPercent: true
|
|
155
|
-
})), "\u4E0B\u5173\u952E\u6210\u679C\u7684\u590D\u76D8");
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
if (feedType === _constant.EFeedType.Align) {
|
|
160
|
-
if (parentObjType === _constant.EObjType.Kr) {
|
|
161
|
-
return "对齐了关键成果";
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
if (parentObjType === _constant.EObjType.O) {
|
|
165
|
-
return "对齐了目标";
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
if (feedType === _constant.EFeedType.Relative) {
|
|
170
|
-
if (relateObjType === _constant.EObjType.Kr) {
|
|
171
|
-
return "关联了关键成果";
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
if (relateObjType === _constant.EObjType.O) {
|
|
175
|
-
return "关联了目标";
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
if (feedType === _constant.EFeedType.Progress) {
|
|
180
|
-
if (relateObjType === _constant.EObjType.Kr) {
|
|
181
|
-
return /*#__PURE__*/_react["default"].createElement("span", null, "\u66F4\u65B0\u4E86\u76EE\u6807", /*#__PURE__*/_react["default"].createElement("span", {
|
|
182
|
-
className: prefix + "__object-name",
|
|
183
|
-
onClick: function onClick() {
|
|
184
|
-
handleClickTitle({
|
|
185
|
-
type: data.obj.objType,
|
|
186
|
-
id: data.obj.objId
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
190
|
-
str: data.obj.objName,
|
|
191
|
-
keyWord: searchKeyWord
|
|
192
|
-
})), "\u4E0B\u5173\u952E\u6210\u679C\u8FDB\u5C55");
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
if (relateObjType === _constant.EObjType.O) {
|
|
196
|
-
return "更新了目标进展";
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
if (relateObjType === _constant.EObjType.Task) {
|
|
200
|
-
return "更新了任务进展";
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
if (relateObjType === _constant.EObjType.Project) {
|
|
204
|
-
return "更新了项目进展";
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
return "";
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
if (feedType === _constant.EFeedType.Reword) {
|
|
211
|
-
var url = (0, _tools.getUrlForUserPage)({
|
|
212
|
-
userId: rewardUser.name,
|
|
213
|
-
userType: rewardUser.userType
|
|
214
|
-
});
|
|
215
|
-
|
|
216
|
-
var handleOpenUserPage = function handleOpenUserPage() {
|
|
217
|
-
window.open(url, '_blank');
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
221
|
-
className: prefix + '__reward'
|
|
222
|
-
}, "\u83B7\u5F97", /*#__PURE__*/_react["default"].createElement("span", {
|
|
223
|
-
className: (0, _classnames["default"])(prefix + '__reward-user', _defineProperty({}, prefix + '__reward-user--not-link', !url)),
|
|
224
|
-
onClick: handleOpenUserPage
|
|
225
|
-
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
226
|
-
name: rewardUser.name,
|
|
227
|
-
id: rewardUser.userId
|
|
228
|
-
})), "\u6253\u8D4F");
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
if (feedType === _constant.EFeedType.Announcement) {
|
|
232
|
-
return '发布的公告';
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
if (feedType === _constant.EFeedType.Share) {
|
|
236
|
-
return '发布的分享';
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
return "";
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
243
|
-
className: prefix + "__operate-desc"
|
|
244
|
-
}, renderOperateDesc()), feedType === _constant.EFeedType.Reword ? /*#__PURE__*/_react["default"].createElement("img", {
|
|
245
|
-
className: prefix + "__reward-img",
|
|
246
|
-
src: _dynamicReword["default"]
|
|
247
|
-
}) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
248
|
-
className: prefix + "-desc-operate-type",
|
|
249
|
-
style: {
|
|
250
|
-
background: feedTypeColor
|
|
251
|
-
}
|
|
252
|
-
}, feedTypeText));
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
var _default = DynamicDesc;
|
|
256
|
-
exports["default"] = _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
.titaui-dynamic-publish-content__content {
|
|
2
|
-
font-size: 14px;
|
|
3
|
-
color: #3F4755;
|
|
4
|
-
line-height: 22px;
|
|
5
|
-
display: flex;
|
|
6
|
-
margin-bottom: 12px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.titaui-dynamic-publish-content__content-quoto {
|
|
10
|
-
width: 12px;
|
|
11
|
-
height: 12px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.titaui-dynamic-publish-content__content-quoto--left {
|
|
15
|
-
margin-right: 8px;
|
|
16
|
-
margin-top: -6px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.titaui-dynamic-publish-content__content-quoto--right {
|
|
20
|
-
margin-left: 8px;
|
|
21
|
-
margin-top: 4px;
|
|
22
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
|
|
3
|
-
.titaui-dynamic-relative {
|
|
4
|
-
position: relative;
|
|
5
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.titaui-dynamic-relative__obj {
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.titaui-dynamic-relative__obj-base-info {
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
width: 100%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.titaui-dynamic-relative__obj-base-info-icon {
|
|
20
|
-
color: #89919F;
|
|
21
|
-
font-size: 18px;
|
|
22
|
-
margin-right: 8px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.titaui-dynamic-relative__obj-title {
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
white-space: nowrap;
|
|
28
|
-
word-break: keep-all;
|
|
29
|
-
font-size: 14px;
|
|
30
|
-
font-weight: 600;
|
|
31
|
-
color: #3F4755;
|
|
32
|
-
line-height: 22px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.titaui-dynamic-relative__obj-title:hover {
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
color: #2879ff;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.titaui-dynamic-relative__obj-principal-user {
|
|
41
|
-
font-size: 12px;
|
|
42
|
-
color: #89919F;
|
|
43
|
-
line-height: 18px;
|
|
44
|
-
margin-left: 26px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.titaui-dynamic-relative__obj-principal-user::after {
|
|
48
|
-
content: '·';
|
|
49
|
-
display: inline-block;
|
|
50
|
-
margin: 0 4px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.titaui-dynamic-relative__obj-cycle {
|
|
54
|
-
font-size: 12px;
|
|
55
|
-
color: #89919F;
|
|
56
|
-
line-height: 18px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.titaui-dynamic-relative__align-img {
|
|
60
|
-
position: absolute;
|
|
61
|
-
top: 38px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.titaui-dynamic-relative__space {
|
|
65
|
-
height: 20px;
|
|
66
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
|
-
var _tooltip = require("../../../../tooltip");
|
|
13
|
-
|
|
14
|
-
var _manager = _interopRequireDefault(require("../../../../drawer/manager"));
|
|
15
|
-
|
|
16
|
-
var _openData = require("../../../../../utils/open-data");
|
|
17
|
-
|
|
18
|
-
var _constant = require("../../../constant");
|
|
19
|
-
|
|
20
|
-
var _dynamicRelative = _interopRequireDefault(require("./img/dynamic-relative.svg"));
|
|
21
|
-
|
|
22
|
-
require("./index.css");
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
-
|
|
26
|
-
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; }
|
|
27
|
-
|
|
28
|
-
var prefix = "titaui-dynamic-relative";
|
|
29
|
-
|
|
30
|
-
var DynamicRelative = function DynamicRelative(_ref) {
|
|
31
|
-
var _classNames;
|
|
32
|
-
|
|
33
|
-
var data = _ref.data;
|
|
34
|
-
var objName = data.objName,
|
|
35
|
-
objId = data.objId,
|
|
36
|
-
objType = data.objType,
|
|
37
|
-
relateObjType = data.relateObjType,
|
|
38
|
-
relateObjName = data.relateObjName,
|
|
39
|
-
relateObjId = data.relateObjId,
|
|
40
|
-
objCycleName = data.objCycleName,
|
|
41
|
-
status = data.status,
|
|
42
|
-
objPrincipalUser = data.objPrincipalUser,
|
|
43
|
-
rObjprincipalUser = data.rObjprincipalUser,
|
|
44
|
-
rObjCycleName = data.rObjCycleName;
|
|
45
|
-
|
|
46
|
-
var handleClickTitle = function handleClickTitle(id, type) {
|
|
47
|
-
if (type === _constant.EObjType.Kr) {
|
|
48
|
-
_manager["default"].open("krDetail", {
|
|
49
|
-
krId: id
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if (type === _constant.EObjType.O) {
|
|
54
|
-
_manager["default"].open("okrDetail", {
|
|
55
|
-
okrId: id
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (type === _constant.EObjType.Project) {
|
|
60
|
-
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=" + id));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (type === _constant.EObjType.Task) {
|
|
64
|
-
window.Talent.app.vent.trigger("global-pull-screen", id, "task");
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
|
-
className: prefix
|
|
70
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
71
|
-
className: prefix + "__obj"
|
|
72
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
-
className: prefix + "__obj-base-info"
|
|
74
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
75
|
-
className: (0, _classnames["default"])(prefix + "__obj-base-info-icon", {
|
|
76
|
-
"tu-icon-okr": relateObjType === _constant.EObjType.O,
|
|
77
|
-
"tu-icon-KR": relateObjType === _constant.EObjType.Kr
|
|
78
|
-
})
|
|
79
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
|
-
className: prefix + "__obj-title",
|
|
81
|
-
onClick: function onClick() {
|
|
82
|
-
handleClickTitle(relateObjId, relateObjType);
|
|
83
|
-
}
|
|
84
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
85
|
-
isPercent: true,
|
|
86
|
-
text: relateObjName
|
|
87
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
88
|
-
className: prefix + "__obj-principal-user"
|
|
89
|
-
}, rObjprincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
90
|
-
id: rObjprincipalUser.userId,
|
|
91
|
-
name: rObjprincipalUser.name
|
|
92
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
93
|
-
className: prefix + "__obj-cycle"
|
|
94
|
-
}, rObjCycleName))), /*#__PURE__*/_react["default"].createElement("img", {
|
|
95
|
-
className: prefix + "__relative-img",
|
|
96
|
-
src: _dynamicRelative["default"]
|
|
97
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
|
-
className: prefix + "__space"
|
|
99
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
-
className: prefix + "__obj"
|
|
101
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
|
-
className: prefix + "__obj-base-info"
|
|
103
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
104
|
-
className: (0, _classnames["default"])(prefix + "__obj-base-info-icon", (_classNames = {}, _defineProperty(_classNames, _constant.EStatusStatus2ClassType[status], objType === _constant.EObjType.Task), _defineProperty(_classNames, "tu-icon-project-s", objType === _constant.EObjType.Project), _classNames))
|
|
105
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
|
-
className: prefix + "__obj-title",
|
|
107
|
-
onClick: function onClick() {
|
|
108
|
-
handleClickTitle(objId, objType);
|
|
109
|
-
}
|
|
110
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
111
|
-
isPercent: true,
|
|
112
|
-
text: objName
|
|
113
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
114
|
-
className: prefix + "__obj-principal-user"
|
|
115
|
-
}, objPrincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
116
|
-
id: objPrincipalUser.userId,
|
|
117
|
-
name: objPrincipalUser.name
|
|
118
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
119
|
-
className: prefix + "__obj-cycle"
|
|
120
|
-
}, objCycleName))));
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
var _default = DynamicRelative;
|
|
124
|
-
exports["default"] = _default;
|