@titaui/pc 1.10.5 → 1.10.8

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.
Files changed (104) hide show
  1. package/lib/components/change-okr-modal/index.js +3 -0
  2. package/lib/components/communication/CommunicationRecord.js +18 -12
  3. package/lib/components/communication/index.css +48 -9
  4. package/lib/components/communication/index.js +67 -28
  5. package/lib/components/communication/style.js +7 -5
  6. package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
  7. package/lib/components/dynamic/components/obj-status/index.css +3 -19
  8. package/lib/components/dynamic/components/obj-status/index.js +7 -8
  9. package/lib/components/dynamic/components/obj-status/utils.js +37 -0
  10. package/lib/components/dynamic/components/percent/index.css +1 -1
  11. package/lib/components/dynamic/components/title/index.css +21 -22
  12. package/lib/components/dynamic/components/title/index.js +20 -8
  13. package/lib/components/dynamic/dynamic-item/components/header/index.css +6 -6
  14. package/lib/components/dynamic/dynamic-item/components/header/index.js +12 -6
  15. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
  16. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
  17. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
  18. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +35 -24
  19. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +35 -29
  20. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +6 -34
  21. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +6 -32
  22. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +59 -19
  23. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +27 -19
  24. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +49 -38
  25. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +49 -44
  26. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +41 -29
  27. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +23 -29
  28. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +33 -16
  29. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +11 -24
  30. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +26 -41
  31. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +10 -29
  32. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +26 -41
  33. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +13 -30
  34. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +15 -57
  35. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +31 -80
  36. package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +72 -0
  37. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +35 -28
  38. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +10 -23
  39. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
  40. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
  41. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
  42. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
  43. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +23 -0
  44. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +45 -26
  45. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +41 -33
  46. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +19 -6
  47. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +11 -17
  48. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +21 -23
  49. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +31 -27
  50. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +4 -4
  51. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +8 -18
  52. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -21
  53. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +6 -36
  54. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/dynamic-share-course.png +0 -0
  55. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.css +10 -18
  56. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +9 -25
  57. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +34 -30
  58. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -24
  59. package/lib/components/dynamic/dynamic-item/index.css +4 -4
  60. package/lib/components/dynamic/dynamic-item/index.js +38 -8
  61. package/lib/components/dynamic/util.js +41 -81
  62. package/lib/components/file-list/components/single-file/index.css +9 -8
  63. package/lib/components/float-fixed-video-modal/img/close.png +0 -0
  64. package/lib/components/float-fixed-video-modal/img/full.svg +21 -0
  65. package/lib/components/float-fixed-video-modal/img/muted.svg +21 -0
  66. package/lib/components/float-fixed-video-modal/img/pause.svg +21 -0
  67. package/lib/components/float-fixed-video-modal/img/play.svg +22 -0
  68. package/lib/components/float-fixed-video-modal/img/small.svg +22 -0
  69. package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
  70. package/lib/components/float-fixed-video-modal/img/volume.svg +21 -0
  71. package/lib/components/float-fixed-video-modal/index.css +243 -0
  72. package/lib/components/float-fixed-video-modal/index.js +334 -0
  73. package/lib/components/float-fixed-video-modal/utils.js +25 -0
  74. package/lib/components/mblog/context.js +3 -1
  75. package/lib/components/mblog/index.css +7 -0
  76. package/lib/components/mblog/index.js +31 -4
  77. package/lib/components/mblog/style.js +4 -4
  78. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +7 -4
  79. package/lib/components/okr-detail/okr-list/index.js +1 -5
  80. package/lib/components/progress/circle-progress/index.css +1 -0
  81. package/lib/components/progress/circle-progress/index.js +7 -2
  82. package/lib/components/search-key-handle/index.js +7 -2
  83. package/lib/components/video-modal/img/bigFaqi.png +0 -0
  84. package/lib/components/video-modal/img/muted.svg +16 -0
  85. package/lib/components/video-modal/img/not-muted.svg +16 -0
  86. package/lib/components/video-modal/img/pause.svg +17 -0
  87. package/lib/components/video-modal/img/play.png +0 -0
  88. package/lib/components/video-modal/img/play.svg +16 -0
  89. package/lib/components/video-modal/img/small.svg +22 -0
  90. package/lib/components/video-modal/index.css +213 -0
  91. package/lib/components/video-modal/index.js +322 -0
  92. package/lib/components/video-modal/utils.js +25 -0
  93. package/lib/index.js +16 -0
  94. package/lib/utils/tools.js +11 -2
  95. package/package.json +1 -1
  96. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
  97. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
  98. package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
  99. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
  100. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
  101. package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
  102. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
  103. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
  104. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
@@ -19,18 +19,24 @@ var _openData = require("../../../../utils/open-data");
19
19
 
20
20
  var _constant = require("../../constant");
21
21
 
22
- var _dynamicRelative = _interopRequireDefault(require("./img/dynamic-relative.svg"));
22
+ var _dynamicRela = _interopRequireDefault(require("./img/dynamic-rela.svg"));
23
23
 
24
24
  var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
25
25
 
26
- var _util = require("../../util");
27
-
28
26
  var _context = require("../../context");
29
27
 
30
28
  var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
31
29
 
32
30
  var _getLocale = require("../../../../utils/getLocale");
33
31
 
32
+ var _dynamicRelaO = _interopRequireDefault(require("./img/dynamic-rela-o.png"));
33
+
34
+ var _dynamicRelaKr = _interopRequireDefault(require("./img/dynamic-rela-kr.png"));
35
+
36
+ var _dynamicRelaProject = _interopRequireDefault(require("./img/dynamic-rela-project.png"));
37
+
38
+ var _dynamicRelaTask = _interopRequireDefault(require("./img/dynamic-rela-task.png"));
39
+
34
40
  require("./index.css");
35
41
 
36
42
  var _excluded = ["data"];
@@ -41,6 +47,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
41
47
 
42
48
  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; }
43
49
 
50
+ 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; }
51
+
44
52
  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); }
45
53
 
46
54
  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; }
@@ -50,6 +58,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
50
58
  var prefix = "titaui-dynamic-relative-item";
51
59
 
52
60
  var DynamicRelative = function DynamicRelative(_ref) {
61
+ var _classNames, _classNames2;
62
+
53
63
  var data = _ref.data,
54
64
  restProps = _objectWithoutProperties(_ref, _excluded);
55
65
 
@@ -68,10 +78,6 @@ var DynamicRelative = function DynamicRelative(_ref) {
68
78
  var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
69
79
  searchKeyWord = _useContext.searchKeyWord;
70
80
 
71
- var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
72
- feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
73
- feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
74
-
75
81
  var handleClickTitle = function handleClickTitle(id, type) {
76
82
  if (type === _constant.EObjType.Kr) {
77
83
  _drawerManager["default"].open("krDetail", {
@@ -86,7 +92,7 @@ var DynamicRelative = function DynamicRelative(_ref) {
86
92
  }
87
93
 
88
94
  if (type === _constant.EObjType.Project) {
89
- window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(id)));
95
+ window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(id)));
90
96
  }
91
97
 
92
98
  if (type === _constant.EObjType.Task) {
@@ -105,14 +111,9 @@ var DynamicRelative = function DynamicRelative(_ref) {
105
111
  text = "".concat((0, _getLocale.getLocale)("Mod_Connected")).concat((0, _getLocale.getLocale)("Mod_Objective"));
106
112
  }
107
113
 
108
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
114
+ return /*#__PURE__*/_react["default"].createElement("span", {
109
115
  className: "".concat(prefix, "__operate-desc")
110
- }, text), /*#__PURE__*/_react["default"].createElement("span", {
111
- className: "".concat(prefix, "-desc-operate-type"),
112
- style: {
113
- background: feedTypeColor
114
- }
115
- }, feedTypeText));
116
+ }, text);
116
117
  }, []);
117
118
  return /*#__PURE__*/_react["default"].createElement("div", {
118
119
  className: prefix
@@ -127,12 +128,15 @@ var DynamicRelative = function DynamicRelative(_ref) {
127
128
  className: "".concat(prefix, "__obj")
128
129
  }, /*#__PURE__*/_react["default"].createElement("div", {
129
130
  className: "".concat(prefix, "__obj-base-info")
130
- }, /*#__PURE__*/_react["default"].createElement("i", {
131
- className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-icon"), {
132
- "tu-icon-okr": relateObjType === _constant.EObjType.O,
133
- "tu-icon-KR": relateObjType === _constant.EObjType.Kr
134
- })
135
- }), /*#__PURE__*/_react["default"].createElement("span", {
131
+ }, /*#__PURE__*/_react["default"].createElement("span", {
132
+ className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-left"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--o"), relateObjType === _constant.EObjType.O), _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--kr"), relateObjType === _constant.EObjType.Kr), _classNames))
133
+ }, /*#__PURE__*/_react["default"].createElement("img", {
134
+ alt: "",
135
+ className: "".concat(prefix, "__obj-base-info-left-img"),
136
+ src: relateObjType === _constant.EObjType.O ? _dynamicRelaO["default"] : _dynamicRelaKr["default"]
137
+ })), /*#__PURE__*/_react["default"].createElement("div", {
138
+ className: "".concat(prefix, "__obj-base-info-right")
139
+ }, /*#__PURE__*/_react["default"].createElement("span", {
136
140
  className: "".concat(prefix, "__obj-title"),
137
141
  onClick: function onClick() {
138
142
  handleClickTitle(relateObjId, relateObjType);
@@ -143,28 +147,32 @@ var DynamicRelative = function DynamicRelative(_ref) {
143
147
  str: relateObjName,
144
148
  keyWord: searchKeyWord
145
149
  })
146
- }))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
150
+ })), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
147
151
  className: "".concat(prefix, "__obj-principal-user")
148
152
  }, rObjprincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
149
153
  id: rObjprincipalUser.userId,
150
154
  name: rObjprincipalUser.name
151
155
  })), /*#__PURE__*/_react["default"].createElement("span", {
152
156
  className: "".concat(prefix, "__obj-cycle")
153
- }, rObjCycleName))), /*#__PURE__*/_react["default"].createElement("img", {
154
- className: "".concat(prefix, "__relative-img"),
155
- src: _dynamicRelative["default"]
157
+ }, rObjCycleName))))), /*#__PURE__*/_react["default"].createElement("img", {
158
+ className: "".concat(prefix, "__rela-img"),
159
+ src: _dynamicRela["default"],
160
+ alt: ""
156
161
  }), /*#__PURE__*/_react["default"].createElement("div", {
157
162
  className: "".concat(prefix, "__space")
158
163
  }), /*#__PURE__*/_react["default"].createElement("div", {
159
164
  className: "".concat(prefix, "__obj")
160
165
  }, /*#__PURE__*/_react["default"].createElement("div", {
161
166
  className: "".concat(prefix, "__obj-base-info")
162
- }, /*#__PURE__*/_react["default"].createElement("i", {
163
- className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-icon"), {
164
- "tu-icon-renwu-s": objType === _constant.EObjType.Task,
165
- "tu-icon-project-s": objType === _constant.EObjType.Project
166
- })
167
- }), /*#__PURE__*/_react["default"].createElement("span", {
167
+ }, /*#__PURE__*/_react["default"].createElement("span", {
168
+ className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-left"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefix, "__obj-base-info-left--task"), objType === _constant.EObjType.Task), _defineProperty(_classNames2, "".concat(prefix, "__obj-base-info-left--project"), objType === _constant.EObjType.Project), _classNames2))
169
+ }, /*#__PURE__*/_react["default"].createElement("img", {
170
+ alt: "",
171
+ className: "".concat(prefix, "__obj-base-info-left-img"),
172
+ src: objType === _constant.EObjType.Task ? _dynamicRelaTask["default"] : _dynamicRelaProject["default"]
173
+ })), /*#__PURE__*/_react["default"].createElement("div", {
174
+ className: "".concat(prefix, "__obj-base-info-right")
175
+ }, /*#__PURE__*/_react["default"].createElement("span", {
168
176
  className: "".concat(prefix, "__obj-title"),
169
177
  onClick: function onClick() {
170
178
  handleClickTitle(objId, objType);
@@ -172,14 +180,14 @@ var DynamicRelative = function DynamicRelative(_ref) {
172
180
  }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
173
181
  isPercent: true,
174
182
  text: objName
175
- }))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
183
+ })), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
176
184
  className: "".concat(prefix, "__obj-principal-user")
177
185
  }, objPrincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
178
186
  id: objPrincipalUser.userId,
179
187
  name: objPrincipalUser.name
180
188
  })), /*#__PURE__*/_react["default"].createElement("span", {
181
189
  className: "".concat(prefix, "__obj-cycle")
182
- }, objCycleName)))));
190
+ }, objCycleName)))))));
183
191
  };
184
192
 
185
193
  var _default = DynamicRelative;
@@ -3,11 +3,16 @@
3
3
  }
4
4
 
5
5
  .titaui-dynamic-reply-item__content {
6
- margin-left: 69px;
6
+ margin-left: 88px;
7
+ }
8
+
9
+ .titaui-dynamic-reply-item__content-title {
10
+ display: flex;
11
+ overflow: hidden;
7
12
  }
8
13
 
9
14
  .titaui-dynamic-reply-item__detail {
10
- margin-top: 16px;
15
+ margin-top: 14px;
11
16
  }
12
17
 
13
18
  .titaui-dynamic-reply-item__detail-gain {
@@ -18,6 +23,10 @@
18
23
  margin-bottom: 16px;
19
24
  }
20
25
 
26
+ .titaui-dynamic-reply-item__detail-drawback:last-of-type {
27
+ margin-bottom: 0;
28
+ }
29
+
21
30
  .titaui-dynamic-reply-item__detail-tasks-item {
22
31
  display: flex;
23
32
  align-items: center;
@@ -57,7 +66,7 @@
57
66
  display: inline-block;
58
67
  width: 4px;
59
68
  height: 12px;
60
- background: linear-gradient(180deg, #2879ff 0%, #9fbfff 100%);
69
+ background: #2879ff;
61
70
  border-radius: 2px;
62
71
  margin-right: 4px;
63
72
  }
@@ -94,6 +103,10 @@
94
103
  white-space: pre-wrap;
95
104
  }
96
105
 
106
+ .titaui-dynamic-reply-item__detail-block-content:last-of-type {
107
+ margin-bottom: 0;
108
+ }
109
+
97
110
  .titaui-dynamic-reply-item__detail-block-content--sub {
98
111
  margin-left: 20px;
99
112
  }
@@ -112,11 +125,11 @@
112
125
  }
113
126
 
114
127
  .titaui-dynamic-reply-item__operate-desc {
115
- font-size: 14px;
128
+ font-size: 16px;
116
129
  font-weight: 400;
117
130
  color: #89919f;
118
- line-height: 22px;
119
- margin: 0 8px 0 4px;
131
+ line-height: 24px;
132
+ margin-left: 4px;
120
133
  overflow: hidden;
121
134
  }
122
135
 
@@ -23,8 +23,6 @@ var _constant = require("../../constant");
23
23
 
24
24
  var _title = _interopRequireDefault(require("../../components/title"));
25
25
 
26
- var _util = require("../../util");
27
-
28
26
  var _tooltip = _interopRequireDefault(require("../../../tooltip"));
29
27
 
30
28
  var _getLocale = require("../../../../utils/getLocale");
@@ -57,13 +55,8 @@ var DynamicReply = function DynamicReply(_ref) {
57
55
  searchKeyWord = _useContext.searchKeyWord;
58
56
 
59
57
  var replayObjType = data.replayObjType,
60
- feedType = data.feedType,
61
58
  publishUser = data.publishUser;
62
59
 
63
- var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
64
- feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
65
- feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
66
-
67
60
  var handleShowTaskDrawer = function handleShowTaskDrawer(taskId) {
68
61
  window.Talent.app.vent.trigger("global-pull-screen", taskId, "task");
69
62
  };
@@ -107,14 +100,9 @@ var DynamicReply = function DynamicReply(_ref) {
107
100
  })), "\u4E0B\u5173\u952E\u6210\u679C\u7684\u590D\u76D8");
108
101
  }
109
102
 
110
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
103
+ return /*#__PURE__*/_react["default"].createElement("span", {
111
104
  className: "".concat(prefix, "__operate-desc")
112
- }, dom), /*#__PURE__*/_react["default"].createElement("span", {
113
- className: "".concat(prefix, "-desc-operate-type"),
114
- style: {
115
- background: feedTypeColor
116
- }
117
- }, feedTypeText));
105
+ }, dom);
118
106
  }, []);
119
107
  return /*#__PURE__*/_react["default"].createElement("div", {
120
108
  className: prefix
@@ -125,10 +113,16 @@ var DynamicReply = function DynamicReply(_ref) {
125
113
  user: publishUser
126
114
  })), /*#__PURE__*/_react["default"].createElement("div", {
127
115
  className: "".concat(prefix, "__content")
116
+ }, /*#__PURE__*/_react["default"].createElement("div", {
117
+ className: "".concat(prefix, "__content-title")
128
118
  }, /*#__PURE__*/_react["default"].createElement(_title["default"], {
129
- content: "".concat(data.replayObjType === 65 ? "KR:" : "O:").concat(data.replayObjName),
130
- onClickTitle: handleClickTitle
131
- }), /*#__PURE__*/_react["default"].createElement("div", {
119
+ content: data.replayObjName,
120
+ onClickTitle: handleClickTitle,
121
+ type: "".concat(data.replayObjType === 65 ? "KR" : (0, _getLocale.getLocale)("Mod_Objective")),
122
+ typeBgColor: "".concat(data.replayObjType === 65 ? "rgba(90, 216, 166, 0.5)" : "rgba(40, 121, 255, 0.5)"),
123
+ titleBgColor: "".concat(data.replayObjType === 65 ? "rgba(90, 216, 166, 0.1)" : "rgba(40, 121, 255, 0.1)"),
124
+ contentColor: "".concat(data.replayObjType === 65 ? "#5AD8A6" : "#2879FF")
125
+ })), /*#__PURE__*/_react["default"].createElement("div", {
132
126
  className: "".concat(prefix, "__detail")
133
127
  }, /*#__PURE__*/_react["default"].createElement("div", {
134
128
  className: "".concat(prefix, "__detail-gain")
@@ -3,11 +3,16 @@
3
3
  }
4
4
 
5
5
  .titaui-dynamic-report-item__content {
6
- margin-left: 69px;
6
+ margin-left: 88px;
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
+
11
16
  .titaui-dynamic-report-item__content ul {
12
17
  list-style-type: disc;
13
18
  padding-left: 20px;
@@ -81,11 +86,11 @@
81
86
  }
82
87
 
83
88
  .titaui-dynamic-report-item__block-title::before {
84
- content: "";
89
+ content: '';
85
90
  display: inline-block;
86
91
  width: 4px;
87
92
  height: 12px;
88
- background: linear-gradient(180deg, #2879ff 0%, #9fbfff 100%);
93
+ background: #2879ff;
89
94
  border-radius: 2px;
90
95
  margin-right: 4px;
91
96
  }
@@ -97,32 +102,38 @@
97
102
  .titaui-dynamic-report-item__complete-type {
98
103
  display: flex;
99
104
  align-items: center;
100
- font-size: 14px;
101
- line-height: 22px;
105
+ font-size: 12px;
106
+ line-height: 18px;
102
107
  margin-left: 8px;
108
+ border-radius: 12px;
109
+ padding: 2px 8px;
103
110
  }
104
111
 
105
112
  .titaui-dynamic-report-item__complete-type-icon {
106
113
  margin-right: 4px;
107
114
  display: inline-block;
108
- width: 16px;
109
- height: 16px;
115
+ width: 14px;
116
+ height: 14px;
110
117
  }
111
118
 
112
119
  .titaui-dynamic-report-item__complete-type-icon--normal {
113
120
  background: url("../../img/dynamic-submit-normal.svg") no-repeat;
121
+ background-size: 14px;
114
122
  }
115
123
 
116
124
  .titaui-dynamic-report-item__complete-type-icon--delay {
117
125
  background: url("../../img/dynamic-submit-delay.svg") no-repeat;
126
+ background-size: 14px;
118
127
  }
119
128
 
120
129
  .titaui-dynamic-report-item__complete-type--normal {
121
130
  color: #5ad8a6;
131
+ background-color: rgba(90, 216, 166, 0.16);
122
132
  }
123
133
 
124
134
  .titaui-dynamic-report-item__complete-type--delay {
125
135
  color: #624dff;
136
+ background-color: rgba(98, 77, 255, 0.16);
126
137
  }
127
138
 
128
139
  .titaui-dynamic-report-item .highlight {
@@ -130,23 +141,10 @@
130
141
  }
131
142
 
132
143
  .titaui-dynamic-report-item__operate-desc {
133
- font-size: 14px;
144
+ font-size: 16px;
134
145
  font-weight: 400;
135
146
  color: #89919f;
136
- line-height: 22px;
137
- margin: 0 8px 0 4px;
147
+ line-height: 24px;
148
+ margin-left: 4px;
138
149
  overflow: hidden;
139
150
  }
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,12 +21,10 @@ var _tools = require("../../../../utils/tools");
21
21
 
22
22
  var _title = _interopRequireDefault(require("../../components/title"));
23
23
 
24
- var _util = require("../../util");
24
+ var _getLocale = require("../../../../utils/getLocale");
25
25
 
26
26
  require("./index.css");
27
27
 
28
- var _getLocale = require("../../../../utils/getLocale");
29
-
30
28
  var _excluded = ["data"];
31
29
 
32
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -43,11 +41,15 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
43
41
 
44
42
  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; }
45
43
 
46
- var EReportType = {
47
- 8: "日报:",
48
- 26: "周报:",
49
- 27: "月报:"
44
+ var getEReportType = function getEReportType(type) {
45
+ var reportTextMap = {
46
+ 8: (0, _getLocale.getLocale)("Rep_Tab_Dailynewspaper"),
47
+ 26: (0, _getLocale.getLocale)("Rep_Tab_Weeklynewspaper"),
48
+ 27: (0, _getLocale.getLocale)("Rep_Tab_MonthlyReport")
49
+ };
50
+ return reportTextMap[type];
50
51
  };
52
+
51
53
  var prefix = "titaui-dynamic-report-item";
52
54
 
53
55
  var DynamicReply = function DynamicReply(_ref) {
@@ -56,21 +58,17 @@ var DynamicReply = function DynamicReply(_ref) {
56
58
 
57
59
  var submitState = data.submitState,
58
60
  feedId = data.feedId,
59
- feedType = data.feedType,
60
- publishUser = data.publishUser;
61
+ publishUser = data.publishUser,
62
+ reportType = data.reportType;
61
63
  var contentRichTextRef = (0, _react.useRef)();
62
64
  var workPlanRichTextRef = (0, _react.useRef)();
63
65
 
64
66
  var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
65
67
  searchKeyWord = _useContext.searchKeyWord;
66
68
 
67
- var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
68
- feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
69
- feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
70
-
71
69
  var handleClickTitle = function handleClickTitle() {
72
70
  // @ts-ignore
73
- Talent.app.vent.trigger("global-daily-detail-pull-screen", feedId);
71
+ window.Talent.app.vent.trigger("global-daily-detail-pull-screen", feedId);
74
72
  };
75
73
 
76
74
  var renderSuffix = (0, _react.useMemo)(function () {
@@ -80,17 +78,17 @@ var DynamicReply = function DynamicReply(_ref) {
80
78
  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))
81
79
  }, /*#__PURE__*/_react["default"].createElement("span", {
82
80
  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))
83
- }), submitState === 1 ? (0, _getLocale.getLocale)("Rep_Tab_Mys_Submitontime") : (0, _getLocale.getLocale)("\"Tasks_Tab_DelaSubmission\""));
81
+ }), submitState === 1 ? (0, _getLocale.getLocale)("Rep_Tab_Mys_Submitontime") : (0, _getLocale.getLocale)("Tasks_Tab_DelaSubmission"));
84
82
  }, []);
85
83
  var renderDesc = (0, _react.useMemo)(function () {
86
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
84
+ var reportTextMap = {
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", {
87
90
  className: "".concat(prefix, "__operate-desc")
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));
91
+ }, reportTextMap[reportType]);
94
92
  }, []);
95
93
  (0, _react.useEffect)(function () {
96
94
  (0, _tools.highLightWord)({
@@ -108,14 +106,20 @@ var DynamicReply = function DynamicReply(_ref) {
108
106
  data: data
109
107
  }, restProps, {
110
108
  desc: renderDesc,
111
- user: publishUser
109
+ user: publishUser,
110
+ suffixContent: renderSuffix
112
111
  })), /*#__PURE__*/_react["default"].createElement("div", {
113
112
  className: "".concat(prefix, "__content")
113
+ }, /*#__PURE__*/_react["default"].createElement("div", {
114
+ className: "".concat(prefix, "__content-title")
114
115
  }, /*#__PURE__*/_react["default"].createElement(_title["default"], {
115
- content: EReportType[data.reportType] + data.name,
116
+ content: data.name,
116
117
  onClickTitle: handleClickTitle,
117
- suffixContent: renderSuffix
118
- }), data.contentRichText && /*#__PURE__*/_react["default"].createElement("div", {
118
+ type: getEReportType(reportType),
119
+ typeBgColor: "rgba(92, 142, 255, 0.5)",
120
+ titleBgColor: "rgba(92, 142, 255, 0.1)",
121
+ contentColor: "#5C8EFF"
122
+ })), data.contentRichText && /*#__PURE__*/_react["default"].createElement("div", {
119
123
  className: "".concat(prefix, "__summary")
120
124
  }, /*#__PURE__*/_react["default"].createElement("div", {
121
125
  className: "".concat(prefix, "__block-title")
@@ -128,7 +132,7 @@ var DynamicReply = function DynamicReply(_ref) {
128
132
  className: "".concat(prefix, "__work-plan")
129
133
  }, /*#__PURE__*/_react["default"].createElement("div", {
130
134
  className: "".concat(prefix, "__block-title")
131
- }, "\u4E0B\u4E00\u6B65\u5DE5\u4F5C\u8BA1\u5212"), /*#__PURE__*/_react["default"].createElement("div", {
135
+ }, (0, _getLocale.getLocale)("Rep_Tab_Mys_NextWorkPlans")), /*#__PURE__*/_react["default"].createElement("div", {
132
136
  className: "".concat(prefix, "__content-text"),
133
137
  ref: workPlanRichTextRef
134
138
  }, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .titaui-dynamic-reward-item__content {
6
- margin-left: 69px;
6
+ margin-left: 88px;
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: 14px;
56
+ font-size: 16px;
57
57
  font-weight: 400;
58
58
  color: #89919f;
59
- line-height: 22px;
60
- margin: 0 8px 0 4px;
59
+ line-height: 24px;
60
+ margin-left: 4px;
61
61
  overflow: hidden;
62
62
  }
63
63
 
@@ -31,8 +31,6 @@ var _tools = require("../../../../utils/tools");
31
31
 
32
32
  var _openData = require("../../../../utils/open-data");
33
33
 
34
- var _util = require("../../util");
35
-
36
34
  var _getLocale = require("../../../../utils/getLocale");
37
35
 
38
36
  require("./index.css");
@@ -63,17 +61,12 @@ var DynamicReward = function DynamicReward(_ref) {
63
61
  rewardTags = data.rewardTags,
64
62
  obj = data.obj,
65
63
  classify = data.classify,
66
- feedType = data.feedType,
67
64
  rewardUser = data.rewardUser,
68
65
  publishUser = data.publishUser;
69
66
 
70
67
  var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
71
68
  searchKeyWord = _useContext.searchKeyWord;
72
69
 
73
- var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
74
- feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
75
- feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
76
-
77
70
  var handleClickTitle = function handleClickTitle() {
78
71
  if (!obj) {
79
72
  return;
@@ -93,10 +86,10 @@ var DynamicReward = function DynamicReward(_ref) {
93
86
  } else if (objType === _constant.EObjType.Task) {
94
87
  window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
95
88
  } else if (objType === _constant.EObjType.Project) {
96
- window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
89
+ window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
97
90
  } else if (objType === _constant.EObjType.Assess) {
98
91
  var assessId = data.url.split("assessId=")[1];
99
- window.open(window.location.href.replace(location.hash, "#performance?reactRouterName=detail&formId=".concat(assessId)));
92
+ window.open(window.location.href.replace(window.location.hash, "#performance?reactRouterName=detail&formId=".concat(assessId)));
100
93
  }
101
94
  };
102
95
 
@@ -133,8 +126,8 @@ var DynamicReward = function DynamicReward(_ref) {
133
126
  var Classify = (0, _react.useMemo)(function () {
134
127
  var _classNames;
135
128
 
136
- if (!classify || Number(classify) == 0) {
137
- return;
129
+ if (!classify || Number(classify) === 0) {
130
+ return "";
138
131
  }
139
132
 
140
133
  return /*#__PURE__*/_react["default"].createElement("span", {
@@ -152,7 +145,7 @@ var DynamicReward = function DynamicReward(_ref) {
152
145
  window.open(url, "_blank");
153
146
  };
154
147
 
155
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
148
+ return /*#__PURE__*/_react["default"].createElement("span", {
156
149
  className: "".concat(prefix, "__operate-desc")
157
150
  }, /*#__PURE__*/_react["default"].createElement("span", {
158
151
  className: "".concat(prefix, "__reward")
@@ -162,12 +155,7 @@ var DynamicReward = function DynamicReward(_ref) {
162
155
  }, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
163
156
  name: rewardUser.name,
164
157
  id: rewardUser.userId
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));
158
+ })), (0, _getLocale.getLocale)("OKR_MyO_E_Reward")));
171
159
  }, []);
172
160
  return /*#__PURE__*/_react["default"].createElement("div", {
173
161
  className: prefix
@@ -190,12 +178,14 @@ var DynamicReward = function DynamicReward(_ref) {
190
178
  }
191
179
  }, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
192
180
  className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--left")),
181
+ alt: "",
193
182
  src: _dynamicLeftQuoto["default"]
194
183
  })), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
195
184
  str: rewardContent,
196
185
  keyWord: searchKeyWord
197
186
  }), /*#__PURE__*/_react["default"].createElement("img", {
198
187
  className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--right")),
188
+ alt: "",
199
189
  src: _dynamicRightQuoto["default"]
200
190
  }), rewardTags && rewardTags.length && rewardTags.map(function (reward) {
201
191
  return /*#__PURE__*/_react["default"].createElement("span", {
@@ -6,31 +6,16 @@
6
6
  display: flex;
7
7
  font-size: 14px;
8
8
  color: #3f4755;
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;
9
+ line-height: 24px;
10
+ margin-left: 88px;
26
11
  }
27
12
 
28
13
  .titaui-dynamic-share-item__operate-desc {
29
- font-size: 14px;
14
+ font-size: 16px;
30
15
  font-weight: 400;
31
16
  color: #89919f;
32
- line-height: 22px;
33
- margin: 0 8px 0 4px;
17
+ line-height: 24px;
18
+ margin-left: 4px;
34
19
  overflow: hidden;
35
20
  }
36
21
 
@@ -48,7 +33,7 @@
48
33
  }
49
34
 
50
35
  .titaui-dynamic-share-item__files {
51
- margin-left: 69px;
36
+ margin-left: 88px;
52
37
  margin-top: 12px;
53
38
  }
54
39