@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
|
@@ -3,16 +3,11 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-report-item__content {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: 69px;
|
|
7
7
|
line-height: 24px;
|
|
8
8
|
word-wrap: break-word;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.titaui-dynamic-report-item__content-title {
|
|
12
|
-
display: flex;
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
11
|
.titaui-dynamic-report-item__content ul {
|
|
17
12
|
list-style-type: disc;
|
|
18
13
|
padding-left: 20px;
|
|
@@ -86,11 +81,11 @@
|
|
|
86
81
|
}
|
|
87
82
|
|
|
88
83
|
.titaui-dynamic-report-item__block-title::before {
|
|
89
|
-
content:
|
|
84
|
+
content: "";
|
|
90
85
|
display: inline-block;
|
|
91
86
|
width: 4px;
|
|
92
87
|
height: 12px;
|
|
93
|
-
background: #2879ff;
|
|
88
|
+
background: linear-gradient(180deg, #2879ff 0%, #9fbfff 100%);
|
|
94
89
|
border-radius: 2px;
|
|
95
90
|
margin-right: 4px;
|
|
96
91
|
}
|
|
@@ -102,38 +97,32 @@
|
|
|
102
97
|
.titaui-dynamic-report-item__complete-type {
|
|
103
98
|
display: flex;
|
|
104
99
|
align-items: center;
|
|
105
|
-
font-size:
|
|
106
|
-
line-height:
|
|
100
|
+
font-size: 14px;
|
|
101
|
+
line-height: 22px;
|
|
107
102
|
margin-left: 8px;
|
|
108
|
-
border-radius: 12px;
|
|
109
|
-
padding: 2px 8px;
|
|
110
103
|
}
|
|
111
104
|
|
|
112
105
|
.titaui-dynamic-report-item__complete-type-icon {
|
|
113
106
|
margin-right: 4px;
|
|
114
107
|
display: inline-block;
|
|
115
|
-
width:
|
|
116
|
-
height:
|
|
108
|
+
width: 16px;
|
|
109
|
+
height: 16px;
|
|
117
110
|
}
|
|
118
111
|
|
|
119
112
|
.titaui-dynamic-report-item__complete-type-icon--normal {
|
|
120
113
|
background: url("../../img/dynamic-submit-normal.svg") no-repeat;
|
|
121
|
-
background-size: 14px;
|
|
122
114
|
}
|
|
123
115
|
|
|
124
116
|
.titaui-dynamic-report-item__complete-type-icon--delay {
|
|
125
117
|
background: url("../../img/dynamic-submit-delay.svg") no-repeat;
|
|
126
|
-
background-size: 14px;
|
|
127
118
|
}
|
|
128
119
|
|
|
129
120
|
.titaui-dynamic-report-item__complete-type--normal {
|
|
130
121
|
color: #5ad8a6;
|
|
131
|
-
background-color: rgba(90, 216, 166, 0.16);
|
|
132
122
|
}
|
|
133
123
|
|
|
134
124
|
.titaui-dynamic-report-item__complete-type--delay {
|
|
135
125
|
color: #624dff;
|
|
136
|
-
background-color: rgba(98, 77, 255, 0.16);
|
|
137
126
|
}
|
|
138
127
|
|
|
139
128
|
.titaui-dynamic-report-item .highlight {
|
|
@@ -141,10 +130,23 @@
|
|
|
141
130
|
}
|
|
142
131
|
|
|
143
132
|
.titaui-dynamic-report-item__operate-desc {
|
|
144
|
-
font-size:
|
|
133
|
+
font-size: 14px;
|
|
145
134
|
font-weight: 400;
|
|
146
135
|
color: #89919f;
|
|
147
|
-
line-height:
|
|
148
|
-
margin
|
|
136
|
+
line-height: 22px;
|
|
137
|
+
margin: 0 8px 0 4px;
|
|
149
138
|
overflow: hidden;
|
|
150
139
|
}
|
|
140
|
+
|
|
141
|
+
.titaui-dynamic-report-item-desc-operate-type {
|
|
142
|
+
display: inline-flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
padding: 0 6px;
|
|
146
|
+
height: 18px;
|
|
147
|
+
min-width: 40px;
|
|
148
|
+
border-radius: 10px 10px 10px 2px;
|
|
149
|
+
font-size: 12px;
|
|
150
|
+
color: #ffffff;
|
|
151
|
+
line-height: 18px;
|
|
152
|
+
}
|
|
@@ -21,10 +21,12 @@ var _tools = require("../../../../utils/tools");
|
|
|
21
21
|
|
|
22
22
|
var _title = _interopRequireDefault(require("../../components/title"));
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _util = require("../../util");
|
|
25
25
|
|
|
26
26
|
require("./index.css");
|
|
27
27
|
|
|
28
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
29
|
+
|
|
28
30
|
var _excluded = ["data"];
|
|
29
31
|
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -41,15 +43,11 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
41
43
|
|
|
42
44
|
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; }
|
|
43
45
|
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
27: (0, _getLocale.getLocale)("Rep_Tab_MonthlyReport")
|
|
49
|
-
};
|
|
50
|
-
return reportTextMap[type];
|
|
46
|
+
var EReportType = {
|
|
47
|
+
8: "日报:",
|
|
48
|
+
26: "周报:",
|
|
49
|
+
27: "月报:"
|
|
51
50
|
};
|
|
52
|
-
|
|
53
51
|
var prefix = "titaui-dynamic-report-item";
|
|
54
52
|
|
|
55
53
|
var DynamicReply = function DynamicReply(_ref) {
|
|
@@ -58,17 +56,21 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
58
56
|
|
|
59
57
|
var submitState = data.submitState,
|
|
60
58
|
feedId = data.feedId,
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
feedType = data.feedType,
|
|
60
|
+
publishUser = data.publishUser;
|
|
63
61
|
var contentRichTextRef = (0, _react.useRef)();
|
|
64
62
|
var workPlanRichTextRef = (0, _react.useRef)();
|
|
65
63
|
|
|
66
64
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
67
65
|
searchKeyWord = _useContext.searchKeyWord;
|
|
68
66
|
|
|
67
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
68
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
69
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
70
|
+
|
|
69
71
|
var handleClickTitle = function handleClickTitle() {
|
|
70
72
|
// @ts-ignore
|
|
71
|
-
|
|
73
|
+
Talent.app.vent.trigger("global-daily-detail-pull-screen", feedId);
|
|
72
74
|
};
|
|
73
75
|
|
|
74
76
|
var renderSuffix = (0, _react.useMemo)(function () {
|
|
@@ -78,17 +80,17 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
78
80
|
className: (0, _classnames["default"])("".concat(prefix, "__complete-type"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__complete-type--normal"), submitState === 1), _defineProperty(_classNames, "".concat(prefix, "__complete-type--delay"), submitState === 2), _classNames))
|
|
79
81
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
82
|
className: (0, _classnames["default"])("".concat(prefix, "__complete-type-icon"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefix, "__complete-type-icon--normal"), submitState === 1), _defineProperty(_classNames2, "".concat(prefix, "__complete-type-icon--delay"), submitState === 2), _classNames2))
|
|
81
|
-
}), submitState === 1 ? (0, _getLocale.getLocale)("Rep_Tab_Mys_Submitontime") : (0, _getLocale.getLocale)("Tasks_Tab_DelaSubmission"));
|
|
83
|
+
}), submitState === 1 ? (0, _getLocale.getLocale)("Rep_Tab_Mys_Submitontime") : (0, _getLocale.getLocale)("\"Tasks_Tab_DelaSubmission\""));
|
|
82
84
|
}, []);
|
|
83
85
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
84
|
-
|
|
85
|
-
8: (0, _getLocale.getLocale)("Rep_Tab_Mys_Dailynewsp"),
|
|
86
|
-
26: (0, _getLocale.getLocale)("Rep_Tab_Mys_sweeklyReport"),
|
|
87
|
-
27: (0, _getLocale.getLocale)("Rep_Tab_Sub_monthlyeport")
|
|
88
|
-
};
|
|
89
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
86
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
90
87
|
className: "".concat(prefix, "__operate-desc")
|
|
91
|
-
},
|
|
88
|
+
}, (0, _getLocale.getLocale)("Mod_skeyprogress")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
89
|
+
className: "".concat(prefix, "-desc-operate-type"),
|
|
90
|
+
style: {
|
|
91
|
+
background: feedTypeColor
|
|
92
|
+
}
|
|
93
|
+
}, feedTypeText));
|
|
92
94
|
}, []);
|
|
93
95
|
(0, _react.useEffect)(function () {
|
|
94
96
|
(0, _tools.highLightWord)({
|
|
@@ -106,20 +108,14 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
106
108
|
data: data
|
|
107
109
|
}, restProps, {
|
|
108
110
|
desc: renderDesc,
|
|
109
|
-
user: publishUser
|
|
110
|
-
suffixContent: renderSuffix
|
|
111
|
+
user: publishUser
|
|
111
112
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
113
|
className: "".concat(prefix, "__content")
|
|
113
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
|
-
className: "".concat(prefix, "__content-title")
|
|
115
114
|
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
116
|
-
content: data.name,
|
|
115
|
+
content: EReportType[data.reportType] + data.name,
|
|
117
116
|
onClickTitle: handleClickTitle,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
titleBgColor: "rgba(92, 142, 255, 0.1)",
|
|
121
|
-
contentColor: "#5C8EFF"
|
|
122
|
-
})), data.contentRichText && /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
|
+
suffixContent: renderSuffix
|
|
118
|
+
}), data.contentRichText && /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
119
|
className: "".concat(prefix, "__summary")
|
|
124
120
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
121
|
className: "".concat(prefix, "__block-title")
|
|
@@ -132,7 +128,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
132
128
|
className: "".concat(prefix, "__work-plan")
|
|
133
129
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
130
|
className: "".concat(prefix, "__block-title")
|
|
135
|
-
},
|
|
131
|
+
}, "\u4E0B\u4E00\u6B65\u5DE5\u4F5C\u8BA1\u5212"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
136
132
|
className: "".concat(prefix, "__content-text"),
|
|
137
133
|
ref: workPlanRichTextRef
|
|
138
134
|
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-reward-item__content {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: 69px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.titaui-dynamic-reward-item__title {
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.titaui-dynamic-reward-item__operate-desc {
|
|
56
|
-
font-size:
|
|
56
|
+
font-size: 14px;
|
|
57
57
|
font-weight: 400;
|
|
58
58
|
color: #89919f;
|
|
59
|
-
line-height:
|
|
60
|
-
margin
|
|
59
|
+
line-height: 22px;
|
|
60
|
+
margin: 0 8px 0 4px;
|
|
61
61
|
overflow: hidden;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -31,6 +31,8 @@ var _tools = require("../../../../utils/tools");
|
|
|
31
31
|
|
|
32
32
|
var _openData = require("../../../../utils/open-data");
|
|
33
33
|
|
|
34
|
+
var _util = require("../../util");
|
|
35
|
+
|
|
34
36
|
var _getLocale = require("../../../../utils/getLocale");
|
|
35
37
|
|
|
36
38
|
require("./index.css");
|
|
@@ -61,12 +63,17 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
61
63
|
rewardTags = data.rewardTags,
|
|
62
64
|
obj = data.obj,
|
|
63
65
|
classify = data.classify,
|
|
66
|
+
feedType = data.feedType,
|
|
64
67
|
rewardUser = data.rewardUser,
|
|
65
68
|
publishUser = data.publishUser;
|
|
66
69
|
|
|
67
70
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
68
71
|
searchKeyWord = _useContext.searchKeyWord;
|
|
69
72
|
|
|
73
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
74
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
75
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
76
|
+
|
|
70
77
|
var handleClickTitle = function handleClickTitle() {
|
|
71
78
|
if (!obj) {
|
|
72
79
|
return;
|
|
@@ -86,10 +93,10 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
86
93
|
} else if (objType === _constant.EObjType.Task) {
|
|
87
94
|
window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
|
|
88
95
|
} else if (objType === _constant.EObjType.Project) {
|
|
89
|
-
window.open(window.location.href.replace(
|
|
96
|
+
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
90
97
|
} else if (objType === _constant.EObjType.Assess) {
|
|
91
98
|
var assessId = data.url.split("assessId=")[1];
|
|
92
|
-
window.open(window.location.href.replace(
|
|
99
|
+
window.open(window.location.href.replace(location.hash, "#performance?reactRouterName=detail&formId=".concat(assessId)));
|
|
93
100
|
}
|
|
94
101
|
};
|
|
95
102
|
|
|
@@ -126,8 +133,8 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
126
133
|
var Classify = (0, _react.useMemo)(function () {
|
|
127
134
|
var _classNames;
|
|
128
135
|
|
|
129
|
-
if (!classify || Number(classify)
|
|
130
|
-
return
|
|
136
|
+
if (!classify || Number(classify) == 0) {
|
|
137
|
+
return;
|
|
131
138
|
}
|
|
132
139
|
|
|
133
140
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -145,7 +152,7 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
145
152
|
window.open(url, "_blank");
|
|
146
153
|
};
|
|
147
154
|
|
|
148
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
155
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
149
156
|
className: "".concat(prefix, "__operate-desc")
|
|
150
157
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
151
158
|
className: "".concat(prefix, "__reward")
|
|
@@ -155,7 +162,12 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
155
162
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
156
163
|
name: rewardUser.name,
|
|
157
164
|
id: rewardUser.userId
|
|
158
|
-
})), (0, _getLocale.getLocale)("OKR_MyO_E_Reward")))
|
|
165
|
+
})), (0, _getLocale.getLocale)("OKR_MyO_E_Reward"))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
166
|
+
className: "".concat(prefix, "-desc-operate-type"),
|
|
167
|
+
style: {
|
|
168
|
+
background: feedTypeColor
|
|
169
|
+
}
|
|
170
|
+
}, feedTypeText));
|
|
159
171
|
}, []);
|
|
160
172
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
161
173
|
className: prefix
|
|
@@ -178,14 +190,12 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
178
190
|
}
|
|
179
191
|
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
180
192
|
className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--left")),
|
|
181
|
-
alt: "",
|
|
182
193
|
src: _dynamicLeftQuoto["default"]
|
|
183
194
|
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
184
195
|
str: rewardContent,
|
|
185
196
|
keyWord: searchKeyWord
|
|
186
197
|
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
187
198
|
className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--right")),
|
|
188
|
-
alt: "",
|
|
189
199
|
src: _dynamicRightQuoto["default"]
|
|
190
200
|
}), rewardTags && rewardTags.length && rewardTags.map(function (reward) {
|
|
191
201
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -6,16 +6,31 @@
|
|
|
6
6
|
display: flex;
|
|
7
7
|
font-size: 14px;
|
|
8
8
|
color: #3f4755;
|
|
9
|
-
line-height:
|
|
10
|
-
margin-left:
|
|
9
|
+
line-height: 22px;
|
|
10
|
+
margin-left: 69px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.titaui-dynamic-share-item__content-quoto {
|
|
14
|
+
width: 12px;
|
|
15
|
+
height: 12px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-dynamic-share-item__content-quoto--left {
|
|
19
|
+
margin-right: 8px;
|
|
20
|
+
margin-top: -6px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-dynamic-share-item__content-quoto--right {
|
|
24
|
+
margin-left: 8px;
|
|
25
|
+
margin-top: 4px;
|
|
11
26
|
}
|
|
12
27
|
|
|
13
28
|
.titaui-dynamic-share-item__operate-desc {
|
|
14
|
-
font-size:
|
|
29
|
+
font-size: 14px;
|
|
15
30
|
font-weight: 400;
|
|
16
31
|
color: #89919f;
|
|
17
|
-
line-height:
|
|
18
|
-
margin
|
|
32
|
+
line-height: 22px;
|
|
33
|
+
margin: 0 8px 0 4px;
|
|
19
34
|
overflow: hidden;
|
|
20
35
|
}
|
|
21
36
|
|
|
@@ -33,7 +48,7 @@
|
|
|
33
48
|
}
|
|
34
49
|
|
|
35
50
|
.titaui-dynamic-share-item__files {
|
|
36
|
-
margin-left:
|
|
51
|
+
margin-left: 69px;
|
|
37
52
|
margin-top: 12px;
|
|
38
53
|
}
|
|
39
54
|
|
|
@@ -9,18 +9,26 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
15
|
+
|
|
16
|
+
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
17
|
+
|
|
12
18
|
var _fileList = _interopRequireDefault(require("../../../file-list"));
|
|
13
19
|
|
|
14
20
|
var _context = require("../../context");
|
|
15
21
|
|
|
16
22
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
23
|
|
|
24
|
+
var _dangerousHtml = _interopRequireDefault(require("../../components/dangerous-html"));
|
|
25
|
+
|
|
26
|
+
var _util = require("../../util");
|
|
27
|
+
|
|
18
28
|
var _tools = require("../../../../utils/tools");
|
|
19
29
|
|
|
20
30
|
var _getLocale = require("../../../../utils/getLocale");
|
|
21
31
|
|
|
22
|
-
var _openData = require("../../../../utils/open-data");
|
|
23
|
-
|
|
24
32
|
require("./index.css");
|
|
25
33
|
|
|
26
34
|
var _excluded = ["data", "dynamicShareIsShowToping", "hasDynamicOpereateAuth"];
|
|
@@ -31,6 +39,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
31
39
|
|
|
32
40
|
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; }
|
|
33
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
|
+
|
|
34
44
|
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); }
|
|
35
45
|
|
|
36
46
|
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; }
|
|
@@ -51,11 +61,21 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
51
61
|
searchKeyWord = _useContext.searchKeyWord;
|
|
52
62
|
|
|
53
63
|
var contentRef = (0, _react.useRef)();
|
|
64
|
+
|
|
65
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
66
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
67
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
68
|
+
|
|
54
69
|
var isPublisher = data.publishUser.userId === window.BSGlobal.loginUserInfo.Id;
|
|
55
70
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
56
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
71
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
57
72
|
className: "".concat(prefix, "__operate-desc")
|
|
58
|
-
}, (0, _getLocale.getLocale)("Mod_postedshare"))
|
|
73
|
+
}, (0, _getLocale.getLocale)("Mod_postedshare")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
74
|
+
className: "".concat(prefix, "-desc-operate-type"),
|
|
75
|
+
style: {
|
|
76
|
+
background: feedTypeColor
|
|
77
|
+
}
|
|
78
|
+
}, feedTypeText));
|
|
59
79
|
}, []);
|
|
60
80
|
(0, _react.useEffect)(function () {
|
|
61
81
|
(0, _tools.highLightWord)({
|
|
@@ -73,9 +93,19 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
73
93
|
user: data.publishUser
|
|
74
94
|
}, restProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
95
|
className: "".concat(prefix, "__content")
|
|
76
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", _defineProperty({
|
|
97
|
+
className: (0, _classnames["default"])("".concat(prefix, "__content-quoto"), "".concat(prefix, "__content-quoto--left")),
|
|
98
|
+
alt: "",
|
|
99
|
+
src: _dynamicLeftQuoto["default"]
|
|
100
|
+
}, "alt", "left"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
101
|
ref: contentRef
|
|
78
|
-
},
|
|
102
|
+
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
103
|
+
htmlText: data.content
|
|
104
|
+
}), /*#__PURE__*/_react["default"].createElement("img", _defineProperty({
|
|
105
|
+
className: (0, _classnames["default"])("".concat(prefix, "__content-quoto"), "".concat(prefix, "__content-quoto--right")),
|
|
106
|
+
alt: "",
|
|
107
|
+
src: _dynamicRightQuoto["default"]
|
|
108
|
+
}, "alt", "right")))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
109
|
className: "".concat(prefix, "__files")
|
|
80
110
|
}, /*#__PURE__*/_react["default"].createElement(_fileList["default"], {
|
|
81
111
|
data: data.attachments
|
|
Binary file
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
.titaui-dynamic-share-to-dynamic__operate-desc {
|
|
2
2
|
margin-left: 4px;
|
|
3
|
-
font-size:
|
|
3
|
+
font-size: 14px;
|
|
4
4
|
font-weight: normal;
|
|
5
5
|
color: #89919f;
|
|
6
|
-
line-height:
|
|
6
|
+
line-height: 22px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.titaui-dynamic-share-to-dynamic__content {
|
|
10
|
+
height: 24px;
|
|
10
11
|
display: flex;
|
|
12
|
+
padding: 0 50px;
|
|
11
13
|
box-sizing: border-box;
|
|
12
14
|
margin-top: 16px;
|
|
13
15
|
font-size: 14px;
|
|
@@ -18,7 +20,14 @@
|
|
|
18
20
|
overflow: hidden;
|
|
19
21
|
text-overflow: ellipsis;
|
|
20
22
|
white-space: nowrap;
|
|
21
|
-
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.titaui-dynamic-share-to-dynamic__content-quoto {
|
|
26
|
+
vertical-align: text-top;
|
|
27
|
+
margin-right: 6px;
|
|
28
|
+
width: 12px;
|
|
29
|
+
width: 12px;
|
|
30
|
+
height: 12px;
|
|
22
31
|
}
|
|
23
32
|
|
|
24
33
|
.titaui-dynamic-share-to-dynamic__content-title {
|
|
@@ -28,8 +37,7 @@
|
|
|
28
37
|
white-space: nowrap;
|
|
29
38
|
}
|
|
30
39
|
|
|
31
|
-
.titaui-dynamic-share-to-dynamic__content-title a,
|
|
32
|
-
.titaui-dynamic-share-to-dynamic__content-title b {
|
|
40
|
+
.titaui-dynamic-share-to-dynamic__content-title a, .titaui-dynamic-share-to-dynamic__content-title b {
|
|
33
41
|
color: #2879ff;
|
|
34
42
|
}
|
|
35
43
|
|
|
@@ -41,16 +49,16 @@
|
|
|
41
49
|
background: rgba(240, 244, 250, 0.5);
|
|
42
50
|
padding: 12px;
|
|
43
51
|
box-sizing: border-box;
|
|
44
|
-
margin-left:
|
|
52
|
+
margin-left: 68px;
|
|
45
53
|
margin-top: 12px;
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
.titaui-dynamic-share-to-dynamic__share-img {
|
|
49
57
|
width: 80px;
|
|
50
58
|
height: 80px;
|
|
51
|
-
border-radius:
|
|
59
|
+
border-radius: 8px;
|
|
52
60
|
margin-right: 12px;
|
|
53
|
-
background-color: #
|
|
61
|
+
background-color: #E9F1FF;
|
|
54
62
|
box-sizing: border-box;
|
|
55
63
|
padding: 16px;
|
|
56
64
|
}
|
|
@@ -67,10 +75,10 @@
|
|
|
67
75
|
.titaui-dynamic-share-to-dynamic__share-right-title {
|
|
68
76
|
display: block;
|
|
69
77
|
font-size: 16px;
|
|
70
|
-
font-weight:
|
|
78
|
+
font-weight: 700;
|
|
71
79
|
color: #141c28;
|
|
72
80
|
line-height: 24px;
|
|
73
|
-
margin-bottom:
|
|
81
|
+
margin-bottom: 8px;
|
|
74
82
|
}
|
|
75
83
|
|
|
76
84
|
.titaui-dynamic-share-to-dynamic__share-right-content {
|
|
@@ -11,17 +11,21 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
15
|
+
|
|
14
16
|
var _context = require("../../context");
|
|
15
17
|
|
|
16
18
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
19
|
|
|
18
20
|
var _dangerousHtml = _interopRequireDefault(require("../../components/dangerous-html"));
|
|
19
21
|
|
|
22
|
+
var _util = require("../../util");
|
|
23
|
+
|
|
20
24
|
var _tools = require("../../../../utils/tools");
|
|
21
25
|
|
|
22
26
|
var _bsGlobal = require("../../../../utils/bs-global");
|
|
23
27
|
|
|
24
|
-
var
|
|
28
|
+
var _guanlian = _interopRequireDefault(require("./img/guanlian.png"));
|
|
25
29
|
|
|
26
30
|
var _getLocale = require("../../../../utils/getLocale");
|
|
27
31
|
|
|
@@ -66,6 +70,11 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
66
70
|
searchKeyWord = _useContext.searchKeyWord;
|
|
67
71
|
|
|
68
72
|
var contentRef = (0, _react.useRef)();
|
|
73
|
+
|
|
74
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
75
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
76
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
77
|
+
|
|
69
78
|
var isPublisher = data.publishUser.userId === window.BSGlobal.loginUserInfo.Id;
|
|
70
79
|
|
|
71
80
|
var _useState = (0, _react.useState)(),
|
|
@@ -73,22 +82,27 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
73
82
|
title = _useState2[0],
|
|
74
83
|
setTitle = _useState2[1];
|
|
75
84
|
|
|
76
|
-
var _useState3 = (0, _react.useState)(
|
|
85
|
+
var _useState3 = (0, _react.useState)(),
|
|
77
86
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
78
87
|
content = _useState4[0],
|
|
79
88
|
setContent = _useState4[1];
|
|
80
89
|
|
|
81
90
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
82
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
91
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
83
92
|
className: "".concat(prefix, "__operate-desc")
|
|
84
|
-
}, (0, _getLocale.getLocale)("Feed_sharedexcelle"))
|
|
93
|
+
}, (0, _getLocale.getLocale)("Feed_sharedexcelle")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
94
|
+
className: "".concat(prefix, "-desc-operate-type"),
|
|
95
|
+
style: {
|
|
96
|
+
background: feedTypeColor
|
|
97
|
+
}
|
|
98
|
+
}));
|
|
85
99
|
}, []);
|
|
86
100
|
|
|
87
101
|
var htmlToText = function htmlToText(text) {
|
|
88
102
|
var div = document.createElement("div");
|
|
89
103
|
div.innerHTML = text;
|
|
90
|
-
|
|
91
|
-
return
|
|
104
|
+
text = div.innerText || div.textContent;
|
|
105
|
+
return text;
|
|
92
106
|
};
|
|
93
107
|
|
|
94
108
|
var handleClick = function handleClick() {
|
|
@@ -117,7 +131,10 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
117
131
|
user: data.publishUser
|
|
118
132
|
}, restProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
133
|
className: "".concat(prefix, "__content")
|
|
120
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
135
|
+
className: (0, _classnames["default"])("".concat(prefix, "__content-quoto"), "".concat(prefix, "__content-quoto--left")),
|
|
136
|
+
src: _dynamicLeftQuoto["default"]
|
|
137
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
121
138
|
ref: contentRef,
|
|
122
139
|
className: "".concat(prefix, "__content-title")
|
|
123
140
|
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
@@ -128,8 +145,7 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
128
145
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
146
|
className: (0, _classnames["default"])("".concat(prefix, "__share-img"))
|
|
130
147
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
131
|
-
src:
|
|
132
|
-
alt: ""
|
|
148
|
+
src: _guanlian["default"]
|
|
133
149
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
150
|
className: (0, _classnames["default"])("".concat(prefix, "__share-right"))
|
|
135
151
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|