@titaui/pc 1.10.5 → 1.10.6

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