@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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.titaui-dynamic-align-item__content {
|
|
9
|
-
margin-left:
|
|
9
|
+
margin-left: 69px;
|
|
10
10
|
position: relative;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -21,33 +21,10 @@
|
|
|
21
21
|
width: 100%;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.titaui-dynamic-align-item__obj-base-info-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
min-width: 40px;
|
|
28
|
-
border-radius: 50%;
|
|
24
|
+
.titaui-dynamic-align-item__obj-base-info-icon {
|
|
25
|
+
color: #89919f;
|
|
26
|
+
font-size: 18px;
|
|
29
27
|
margin-right: 8px;
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.titaui-dynamic-align-item__obj-base-info-left--o {
|
|
36
|
-
background: rgba(40, 121, 255, 0.16);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.titaui-dynamic-align-item__obj-base-info-left--kr {
|
|
40
|
-
background: rgba(90, 216, 166, 0.16);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.titaui-dynamic-align-item__obj-base-info-left-img {
|
|
44
|
-
width: 20px;
|
|
45
|
-
height: 20px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.titaui-dynamic-align-item__obj-base-info-right {
|
|
49
|
-
flex: 1;
|
|
50
|
-
overflow: hidden;
|
|
51
28
|
}
|
|
52
29
|
|
|
53
30
|
.titaui-dynamic-align-item__obj-title {
|
|
@@ -69,10 +46,11 @@
|
|
|
69
46
|
font-size: 12px;
|
|
70
47
|
color: #89919f;
|
|
71
48
|
line-height: 18px;
|
|
49
|
+
margin-left: 26px;
|
|
72
50
|
}
|
|
73
51
|
|
|
74
52
|
.titaui-dynamic-align-item__obj-principal-user::after {
|
|
75
|
-
content:
|
|
53
|
+
content: "·";
|
|
76
54
|
display: inline-block;
|
|
77
55
|
margin: 0 4px;
|
|
78
56
|
}
|
|
@@ -85,20 +63,31 @@
|
|
|
85
63
|
|
|
86
64
|
.titaui-dynamic-align-item__align-img {
|
|
87
65
|
position: absolute;
|
|
88
|
-
top:
|
|
89
|
-
width: 18px;
|
|
90
|
-
left: 11px;
|
|
66
|
+
top: 38px;
|
|
91
67
|
}
|
|
92
68
|
|
|
93
69
|
.titaui-dynamic-align-item__space {
|
|
94
|
-
height:
|
|
70
|
+
height: 20px;
|
|
95
71
|
}
|
|
96
72
|
|
|
97
73
|
.titaui-dynamic-align-item__operate-desc {
|
|
98
|
-
font-size:
|
|
74
|
+
font-size: 14px;
|
|
99
75
|
font-weight: 400;
|
|
100
76
|
color: #89919f;
|
|
101
|
-
line-height:
|
|
102
|
-
margin
|
|
77
|
+
line-height: 22px;
|
|
78
|
+
margin: 0 8px 0 4px;
|
|
103
79
|
overflow: hidden;
|
|
104
80
|
}
|
|
81
|
+
|
|
82
|
+
.titaui-dynamic-align-item-desc-operate-type {
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
padding: 0 6px;
|
|
87
|
+
height: 18px;
|
|
88
|
+
min-width: 40px;
|
|
89
|
+
border-radius: 10px 10px 10px 2px;
|
|
90
|
+
font-size: 12px;
|
|
91
|
+
color: #ffffff;
|
|
92
|
+
line-height: 18px;
|
|
93
|
+
}
|
|
@@ -19,20 +19,18 @@ var _openData = require("../../../../utils/open-data");
|
|
|
19
19
|
|
|
20
20
|
var _constant = require("../../constant");
|
|
21
21
|
|
|
22
|
-
var _dynamicAlign = _interopRequireDefault(require("./img/dynamic-align.
|
|
22
|
+
var _dynamicAlign = _interopRequireDefault(require("./img/dynamic-align.svg"));
|
|
23
23
|
|
|
24
24
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
25
25
|
|
|
26
|
+
var _util = require("../../util");
|
|
27
|
+
|
|
26
28
|
var _context = require("../../context");
|
|
27
29
|
|
|
28
30
|
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
29
31
|
|
|
30
32
|
var _getLocale = require("../../../../utils/getLocale");
|
|
31
33
|
|
|
32
|
-
var _dynamicAlignO = _interopRequireDefault(require("./img/dynamic-align-o.png"));
|
|
33
|
-
|
|
34
|
-
var _dynamicAlignKr = _interopRequireDefault(require("./img/dynamic-align-kr.png"));
|
|
35
|
-
|
|
36
34
|
require("./index.css");
|
|
37
35
|
|
|
38
36
|
var _excluded = ["data"];
|
|
@@ -43,8 +41,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
43
41
|
|
|
44
42
|
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; }
|
|
45
43
|
|
|
46
|
-
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; }
|
|
47
|
-
|
|
48
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); }
|
|
49
45
|
|
|
50
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; }
|
|
@@ -54,8 +50,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
54
50
|
var prefix = "titaui-dynamic-align-item";
|
|
55
51
|
|
|
56
52
|
var DynamicAlign = function DynamicAlign(_ref) {
|
|
57
|
-
var _classNames;
|
|
58
|
-
|
|
59
53
|
var data = _ref.data,
|
|
60
54
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
61
55
|
|
|
@@ -68,11 +62,16 @@ var DynamicAlign = function DynamicAlign(_ref) {
|
|
|
68
62
|
parentPrincipalUser = data.parentPrincipalUser,
|
|
69
63
|
parentcycleName = data.parentcycleName,
|
|
70
64
|
cycleName = data.cycleName,
|
|
65
|
+
feedType = data.feedType,
|
|
71
66
|
publishUser = data.publishUser;
|
|
72
67
|
|
|
73
68
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
74
69
|
searchKeyWord = _useContext.searchKeyWord;
|
|
75
70
|
|
|
71
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
72
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
73
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
74
|
+
|
|
76
75
|
var handleClickTitle = function handleClickTitle(id, type) {
|
|
77
76
|
if (type === _constant.EObjType.Kr) {
|
|
78
77
|
_drawerManager["default"].open("krDetail", {
|
|
@@ -98,9 +97,14 @@ var DynamicAlign = function DynamicAlign(_ref) {
|
|
|
98
97
|
text = "".concat((0, _getLocale.getLocale)("Mod_Aligned")).concat((0, _getLocale.getLocale)("Mod_Objective"));
|
|
99
98
|
}
|
|
100
99
|
|
|
101
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
100
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
102
101
|
className: "".concat(prefix, "__operate-desc")
|
|
103
|
-
}, text)
|
|
102
|
+
}, text), /*#__PURE__*/_react["default"].createElement("span", {
|
|
103
|
+
className: "".concat(prefix, "-desc-operate-type"),
|
|
104
|
+
style: {
|
|
105
|
+
background: feedTypeColor
|
|
106
|
+
}
|
|
107
|
+
}, feedTypeText));
|
|
104
108
|
}, []);
|
|
105
109
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
110
|
className: prefix
|
|
@@ -115,15 +119,12 @@ var DynamicAlign = function DynamicAlign(_ref) {
|
|
|
115
119
|
className: "".concat(prefix, "__obj")
|
|
116
120
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
121
|
className: "".concat(prefix, "__obj-base-info")
|
|
118
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
119
|
-
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
|
-
className: "".concat(prefix, "__obj-base-info-right")
|
|
126
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
122
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
123
|
+
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-icon"), {
|
|
124
|
+
"tu-icon-okr": parentObjType === _constant.EObjType.O,
|
|
125
|
+
"tu-icon-KR": parentObjType === _constant.EObjType.Kr
|
|
126
|
+
})
|
|
127
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
127
128
|
className: "".concat(prefix, "__obj-title"),
|
|
128
129
|
onClick: function onClick() {
|
|
129
130
|
handleClickTitle(parentObjId, parentObjType);
|
|
@@ -134,32 +135,25 @@ var DynamicAlign = function DynamicAlign(_ref) {
|
|
|
134
135
|
str: parentObjName,
|
|
135
136
|
keyWord: searchKeyWord
|
|
136
137
|
})
|
|
137
|
-
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
138
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
138
139
|
className: "".concat(prefix, "__obj-principal-user")
|
|
139
140
|
}, parentPrincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
140
141
|
id: parentPrincipalUser.userId,
|
|
141
142
|
name: parentPrincipalUser.name
|
|
142
143
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
143
144
|
className: "".concat(prefix, "__obj-cycle")
|
|
144
|
-
}, parentcycleName)))
|
|
145
|
+
}, parentcycleName))), /*#__PURE__*/_react["default"].createElement("img", {
|
|
145
146
|
className: "".concat(prefix, "__align-img"),
|
|
146
|
-
src: _dynamicAlign["default"]
|
|
147
|
-
alt: ""
|
|
147
|
+
src: _dynamicAlign["default"]
|
|
148
148
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
149
|
className: "".concat(prefix, "__space")
|
|
150
150
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
151
151
|
className: "".concat(prefix, "__obj")
|
|
152
152
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
153
153
|
className: "".concat(prefix, "__obj-base-info")
|
|
154
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
155
|
-
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-
|
|
156
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
157
|
-
className: "".concat(prefix, "__obj-base-info-left-img"),
|
|
158
|
-
src: _dynamicAlignO["default"],
|
|
159
|
-
alt: ""
|
|
160
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
161
|
-
className: "".concat(prefix, "__obj-base-info-right")
|
|
162
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
154
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
155
|
+
className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-icon"), "tu-icon-okr")
|
|
156
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
163
157
|
className: "".concat(prefix, "__obj-title"),
|
|
164
158
|
onClick: function onClick() {
|
|
165
159
|
handleClickTitle(okrId, _constant.EObjType.O);
|
|
@@ -167,14 +161,14 @@ var DynamicAlign = function DynamicAlign(_ref) {
|
|
|
167
161
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
168
162
|
isPercent: true,
|
|
169
163
|
text: okrName
|
|
170
|
-
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
164
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
171
165
|
className: "".concat(prefix, "__obj-principal-user")
|
|
172
166
|
}, principalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
173
167
|
id: principalUser.userId,
|
|
174
168
|
name: principalUser.name
|
|
175
169
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
176
170
|
className: "".concat(prefix, "__obj-cycle")
|
|
177
|
-
}, cycleName)))))
|
|
171
|
+
}, cycleName)))));
|
|
178
172
|
};
|
|
179
173
|
|
|
180
174
|
var _default = DynamicAlign;
|
|
@@ -4,10 +4,25 @@
|
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-announcement-item__content {
|
|
6
6
|
font-size: 14px;
|
|
7
|
-
color: #
|
|
7
|
+
color: #3F4755;
|
|
8
8
|
line-height: 22px;
|
|
9
9
|
display: flex;
|
|
10
|
-
margin-left:
|
|
10
|
+
margin-left: 69px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.titaui-dynamic-announcement-item__content-quoto {
|
|
14
|
+
width: 12px;
|
|
15
|
+
height: 12px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-dynamic-announcement-item__content-quoto--left {
|
|
19
|
+
margin-right: 8px;
|
|
20
|
+
margin-top: -6px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-dynamic-announcement-item__content-quoto--right {
|
|
24
|
+
margin-left: 8px;
|
|
25
|
+
margin-top: 4px;
|
|
11
26
|
}
|
|
12
27
|
|
|
13
28
|
.titaui-dynamic-announcement-item__content b {
|
|
@@ -15,16 +30,29 @@
|
|
|
15
30
|
}
|
|
16
31
|
|
|
17
32
|
.titaui-dynamic-announcement-item__operate-desc {
|
|
18
|
-
font-size:
|
|
33
|
+
font-size: 14px;
|
|
19
34
|
font-weight: 400;
|
|
20
35
|
color: #89919f;
|
|
21
|
-
line-height:
|
|
22
|
-
margin
|
|
36
|
+
line-height: 22px;
|
|
37
|
+
margin: 0 8px 0 4px;
|
|
23
38
|
overflow: hidden;
|
|
24
39
|
}
|
|
25
40
|
|
|
41
|
+
.titaui-dynamic-announcement-item-desc-operate-type {
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
padding: 0 6px;
|
|
46
|
+
height: 18px;
|
|
47
|
+
min-width: 40px;
|
|
48
|
+
border-radius: 10px 10px 10px 2px;
|
|
49
|
+
font-size: 12px;
|
|
50
|
+
color: #ffffff;
|
|
51
|
+
line-height: 18px;
|
|
52
|
+
}
|
|
53
|
+
|
|
26
54
|
.titaui-dynamic-announcement-item__files {
|
|
27
|
-
margin-left:
|
|
55
|
+
margin-left: 69px;
|
|
28
56
|
margin-top: 12px;
|
|
29
57
|
}
|
|
30
58
|
|
|
@@ -9,6 +9,12 @@ 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");
|
|
@@ -17,9 +23,11 @@ var _tools = require("../../../../utils/tools");
|
|
|
17
23
|
|
|
18
24
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
19
25
|
|
|
20
|
-
var
|
|
26
|
+
var _util = require("../../util");
|
|
21
27
|
|
|
22
|
-
var
|
|
28
|
+
var _dangerousHtml = _interopRequireDefault(require("../../components/dangerous-html"));
|
|
29
|
+
|
|
30
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
23
31
|
|
|
24
32
|
require("./index.css");
|
|
25
33
|
|
|
@@ -49,10 +57,20 @@ var DynamicAnnouncement = function DynamicAnnouncement(_ref) {
|
|
|
49
57
|
searchKeyWord = _useContext.searchKeyWord;
|
|
50
58
|
|
|
51
59
|
var contentRef = (0, _react.useRef)();
|
|
60
|
+
|
|
61
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
62
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
63
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
64
|
+
|
|
52
65
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
53
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
66
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
54
67
|
className: "".concat(prefix, "__operate-desc")
|
|
55
|
-
}, (0, _getLocale.getLocale)("Feed_SsAnnounce"))
|
|
68
|
+
}, (0, _getLocale.getLocale)("Feed_SsAnnounce")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
|
+
className: "".concat(prefix, "-desc-operate-type"),
|
|
70
|
+
style: {
|
|
71
|
+
background: feedTypeColor
|
|
72
|
+
}
|
|
73
|
+
}, feedTypeText));
|
|
56
74
|
}, []);
|
|
57
75
|
(0, _react.useEffect)(function () {
|
|
58
76
|
(0, _tools.highLightWord)({
|
|
@@ -70,9 +88,17 @@ var DynamicAnnouncement = function DynamicAnnouncement(_ref) {
|
|
|
70
88
|
user: data.publishUser
|
|
71
89
|
}, restProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
90
|
className: "".concat(prefix, "__content")
|
|
73
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
92
|
+
className: (0, _classnames["default"])("".concat(prefix, "__content-quoto"), "".concat(prefix, "__content-quoto--left")),
|
|
93
|
+
src: _dynamicLeftQuoto["default"]
|
|
94
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
74
95
|
ref: contentRef
|
|
75
|
-
},
|
|
96
|
+
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
97
|
+
htmlText: data.content
|
|
98
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
99
|
+
className: (0, _classnames["default"])("".concat(prefix, "__content-quoto"), "".concat(prefix, "__content-quoto--right")),
|
|
100
|
+
src: _dynamicRightQuoto["default"]
|
|
101
|
+
}))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
102
|
className: "".concat(prefix, "__files")
|
|
77
103
|
}, /*#__PURE__*/_react["default"].createElement(_fileList["default"], {
|
|
78
104
|
data: data.attachments
|
|
@@ -3,60 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-assessment-item__content {
|
|
6
|
-
margin-left:
|
|
7
|
-
height: 64px;
|
|
8
|
-
background: rgba(246, 189, 22, 0.1);
|
|
9
|
-
border-radius: 12px;
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
padding: 8px 12px;
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.titaui-dynamic-assessment-item__content-info {
|
|
17
|
-
flex: 1;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-dynamic-assessment-item__content-title {
|
|
24
|
-
display: flex;
|
|
25
|
-
margin-bottom: 4px;
|
|
26
|
-
align-items: center;
|
|
27
|
-
flex: 1;
|
|
28
|
-
word-break: keep-all;
|
|
29
|
-
white-space: nowrap;
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
font-size: 16px;
|
|
32
|
-
font-weight: 600;
|
|
33
|
-
color: #3f4755;
|
|
34
|
-
line-height: 24px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.titaui-dynamic-assessment-item__content-title-type {
|
|
38
|
-
border-radius: 18px;
|
|
39
|
-
background: rgba(246, 189, 22, 0.6);
|
|
40
|
-
color: #ffffff;
|
|
41
|
-
margin-right: 8px;
|
|
42
|
-
font-size: 14px;
|
|
43
|
-
line-height: 20px;
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
padding: 0 6px;
|
|
48
|
-
font-weight: 400;
|
|
49
|
-
height: 20px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.titaui-dynamic-assessment-item__content-title-text {
|
|
53
|
-
flex: 1;
|
|
54
|
-
cursor: pointer;
|
|
55
|
-
overflow: hidden;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.titaui-dynamic-assessment-item__content-title-text:hover {
|
|
59
|
-
color: #2879ff;
|
|
6
|
+
margin-left: 69px;
|
|
60
7
|
}
|
|
61
8
|
|
|
62
9
|
.titaui-dynamic-assessment-item__infos {
|
|
@@ -65,22 +12,35 @@
|
|
|
65
12
|
font-size: 12px;
|
|
66
13
|
color: #89919f;
|
|
67
14
|
line-height: 18px;
|
|
15
|
+
margin-top: 8px;
|
|
68
16
|
}
|
|
69
17
|
|
|
70
18
|
.titaui-dynamic-assessment-item__infos-icon {
|
|
71
|
-
font-size: 14px;
|
|
72
19
|
margin-right: 4px;
|
|
73
20
|
}
|
|
74
21
|
|
|
75
22
|
.titaui-dynamic-assessment-item__infos-step-name {
|
|
76
|
-
margin-right:
|
|
23
|
+
margin-right: 20px;
|
|
77
24
|
}
|
|
78
25
|
|
|
79
26
|
.titaui-dynamic-assessment-item__operate-desc {
|
|
80
|
-
font-size:
|
|
27
|
+
font-size: 14px;
|
|
81
28
|
font-weight: 400;
|
|
82
29
|
color: #89919f;
|
|
83
|
-
line-height:
|
|
84
|
-
margin
|
|
30
|
+
line-height: 22px;
|
|
31
|
+
margin: 0 8px 0 4px;
|
|
85
32
|
overflow: hidden;
|
|
86
33
|
}
|
|
34
|
+
|
|
35
|
+
.titaui-dynamic-assessment-item-desc-operate-type {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
padding: 0 6px;
|
|
40
|
+
height: 18px;
|
|
41
|
+
min-width: 40px;
|
|
42
|
+
border-radius: 10px 10px 10px 2px;
|
|
43
|
+
font-size: 12px;
|
|
44
|
+
color: #ffffff;
|
|
45
|
+
line-height: 18px;
|
|
46
|
+
}
|
|
@@ -11,16 +11,14 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
15
15
|
|
|
16
16
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _util = require("../../util");
|
|
19
19
|
|
|
20
20
|
var _getLocale = require("../../../../utils/getLocale");
|
|
21
21
|
|
|
22
|
-
var _context = require("../../context");
|
|
23
|
-
|
|
24
22
|
require("./index.css");
|
|
25
23
|
|
|
26
24
|
var _excluded = ["data"];
|
|
@@ -43,22 +41,28 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
43
41
|
var data = _ref.data,
|
|
44
42
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
45
43
|
|
|
46
|
-
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
47
|
-
searchKeyWord = _useContext.searchKeyWord;
|
|
48
|
-
|
|
49
44
|
var currentStep = JSON.parse(data.step).find(function (item) {
|
|
50
45
|
return item.status === 2;
|
|
51
46
|
});
|
|
52
47
|
|
|
48
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
49
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
50
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
51
|
+
|
|
53
52
|
var handleClickTitle = function handleClickTitle() {
|
|
54
53
|
var assessId = data.url.split("assessId=")[1];
|
|
55
|
-
window.open(window.location.href.replace(
|
|
54
|
+
window.open(window.location.href.replace(location.hash, "#performance?reactRouterName=detail&formId=".concat(assessId)));
|
|
56
55
|
};
|
|
57
56
|
|
|
58
57
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
59
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
58
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
60
59
|
className: "".concat(prefix, "__operate-desc")
|
|
61
|
-
}, (0, _getLocale.getLocale)("Mod_sassessment"))
|
|
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));
|
|
62
66
|
}, []);
|
|
63
67
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
64
68
|
className: prefix
|
|
@@ -69,22 +73,10 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
69
73
|
user: data.principalUser
|
|
70
74
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
71
75
|
className: "".concat(prefix, "__content")
|
|
72
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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", {
|
|
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", {
|
|
88
80
|
className: "".concat(prefix, "__infos")
|
|
89
81
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
90
82
|
className: (0, _classnames["default"])("tu-icon-jixiaojieduan", "".concat(prefix, "__infos-icon"))
|
|
@@ -92,7 +84,7 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
92
84
|
className: "".concat(prefix, "__infos-step-name")
|
|
93
85
|
}, currentStep.stepName), /*#__PURE__*/_react["default"].createElement("i", {
|
|
94
86
|
className: (0, _classnames["default"])("tu-icon-deferred", "".concat(prefix, "__infos-icon"))
|
|
95
|
-
}), /*#__PURE__*/_react["default"].createElement("span", null, "".concat(data.startDate, "-").concat(data.deadline)))))
|
|
87
|
+
}), /*#__PURE__*/_react["default"].createElement("span", null, "".concat(data.startDate, "-").concat(data.deadline)))));
|
|
96
88
|
};
|
|
97
89
|
|
|
98
90
|
var _default = DynamicShare;
|