@titaui/pc 1.5.69-beta.5 → 1.5.69-beta.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/avatar/icon-avatar/index.js +1 -1
- package/lib/components/avatar/index.js +5 -1
- package/lib/components/avatar/num-avatar/index.css +12 -0
- package/lib/components/avatar/num-avatar/index.js +34 -0
- package/lib/components/communication/CommunicationRecord.js +106 -162
- package/lib/components/communication/index.js +27 -24
- package/lib/components/dynamic/components/condition-render/index.js +20 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +6 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +2 -1
- package/lib/components/dynamic/components/obj-status/index.css +22 -0
- package/lib/components/dynamic/components/obj-status/index.js +38 -0
- package/lib/components/dynamic/components/percent/index.css +21 -0
- package/lib/components/dynamic/components/percent/index.js +38 -0
- package/lib/components/dynamic/components/title/index.css +35 -0
- package/lib/components/dynamic/{dynamic-item/components/publish-content → components/title}/index.js +27 -31
- package/lib/components/dynamic/constant.js +19 -2
- package/lib/components/dynamic/dynamic-item/components/{dynamic-item-header → header}/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/components/{dynamic-item-header → header}/index.js +23 -16
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +10 -0
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +35 -0
- package/lib/components/dynamic/dynamic-item/{components/align → dynamic-align}/img/dynamic-align.svg +0 -0
- package/lib/components/dynamic/dynamic-item/{components/align → dynamic-align}/img/dynamic-relative.svg +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +161 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +51 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +92 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +48 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +88 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +94 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +168 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +85 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +140 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +213 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project → dynamic-project}/constant.js +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-project}/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +91 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +124 -0
- package/lib/components/dynamic/dynamic-item/{components/relative → dynamic-relative}/img/dynamic-relative.svg +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +180 -0
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +134 -0
- package/lib/components/dynamic/dynamic-item/{components/replay → dynamic-replay}/index.js +73 -11
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +94 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +137 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +97 -0
- package/lib/components/dynamic/dynamic-item/{components/common-dynamic → dynamic-reward}/index.js +91 -37
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +51 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +92 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/constant.js +13 -3
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-unstart.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +162 -0
- package/lib/components/dynamic/dynamic-item/index.css +11 -2
- package/lib/components/dynamic/dynamic-item/index.js +125 -76
- package/lib/components/dynamic/dynamic-like-ranking/index.js +65 -19
- package/lib/components/dynamic/dynamic-like-ranking/item.js +20 -38
- package/lib/components/dynamic/dynamic-liking/index.js +10 -4
- package/lib/components/dynamic/dynamic-liking/item.js +37 -12
- package/lib/components/dynamic/dynamic-list/index.js +9 -3
- package/lib/components/dynamic/dynamic-topping/index.js +1 -1
- package/lib/components/dynamic/dynamic-topping/item.js +2 -2
- package/lib/components/dynamic/dynamic.css +1 -1
- package/lib/components/dynamic/dynamic.js +49 -15
- package/lib/components/dynamic/request-api.js +13 -1
- package/lib/components/dynamic/util.js +16 -2
- package/lib/components/grid-page/personal-info/index.js +4 -4
- package/lib/pages/like-ranking/column.js +18 -5
- package/lib/pages/like-ranking/filter-buttons/department.js +19 -12
- package/lib/pages/like-ranking/filter-buttons/index.js +8 -23
- package/lib/pages/like-ranking/filter-buttons/modular.js +27 -25
- package/lib/pages/like-ranking/filter-buttons/name.js +6 -8
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +17 -0
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +8 -2
- package/lib/pages/like-ranking/filter-buttons/timer.js +10 -11
- package/lib/pages/like-ranking/index.css +14 -2
- package/lib/pages/like-ranking/index.js +64 -89
- package/lib/utils/bs-global.js +2 -1
- package/lib/utils/format-time.js +35 -2
- package/lib/utils/tools.js +50 -25
- package/package.json +1 -1
- package/lib/components/dynamic/components/common-title/index.css +0 -106
- package/lib/components/dynamic/components/common-title/index.js +0 -129
- package/lib/components/dynamic/dynamic-item/components/align/index.css +0 -66
- package/lib/components/dynamic/dynamic-item/components/align/index.js +0 -110
- package/lib/components/dynamic/dynamic-item/components/assessment/index.css +0 -20
- package/lib/components/dynamic/dynamic-item/components/assessment/index.js +0 -48
- package/lib/components/dynamic/dynamic-item/components/common-dynamic/index.css +0 -34
- package/lib/components/dynamic/dynamic-item/components/create-o/index.css +0 -52
- package/lib/components/dynamic/dynamic-item/components/create-o/index.js +0 -104
- package/lib/components/dynamic/dynamic-item/components/dynamic-desc/index.css +0 -62
- package/lib/components/dynamic/dynamic-item/components/dynamic-desc/index.js +0 -257
- package/lib/components/dynamic/dynamic-item/components/publish-content/index.css +0 -22
- package/lib/components/dynamic/dynamic-item/components/relative/index.css +0 -66
- package/lib/components/dynamic/dynamic-item/components/relative/index.js +0 -124
- package/lib/components/dynamic/dynamic-item/components/replay/index.css +0 -93
- package/lib/components/dynamic/dynamic-item/components/report/index.css +0 -32
- package/lib/components/dynamic/dynamic-item/components/report/index.js +0 -82
- package/lib/components/dynamic/dynamic-item/components/task-project/index.css +0 -57
- package/lib/components/dynamic/dynamic-item/components/task-project/index.js +0 -87
- package/lib/components/dynamic/dynamic-item/components/task-project-icon/index.css +0 -20
- package/lib/components/dynamic/dynamic-item/components/task-project-icon/index.js +0 -40
- package/lib/components/dynamic/dynamic-topping/mock.js +0 -1
- package/lib/pages/like-ranking/tab-bar/index.css +0 -22
- package/lib/pages/like-ranking/tab-bar/index.js +0 -65
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _context = require("../../context");
|
|
15
|
+
|
|
16
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
|
+
|
|
18
|
+
var _dangerousHtml = _interopRequireDefault(require("../../components/dangerous-html"));
|
|
19
|
+
|
|
20
|
+
var _tools = require("../../../../utils/tools");
|
|
21
|
+
|
|
22
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
23
|
+
|
|
24
|
+
var _util = require("../../util");
|
|
25
|
+
|
|
26
|
+
require("./index.css");
|
|
27
|
+
|
|
28
|
+
var _excluded = ["data"];
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
+
|
|
32
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
|
+
|
|
34
|
+
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; }
|
|
35
|
+
|
|
36
|
+
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); }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
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; }
|
|
43
|
+
|
|
44
|
+
var EReportType = {
|
|
45
|
+
8: "日报:",
|
|
46
|
+
26: "周报:",
|
|
47
|
+
27: "月报:"
|
|
48
|
+
};
|
|
49
|
+
var prefix = "titaui-dynamic-report-item";
|
|
50
|
+
|
|
51
|
+
var DynamicReply = function DynamicReply(_ref) {
|
|
52
|
+
var data = _ref.data,
|
|
53
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
54
|
+
|
|
55
|
+
var contentRichTextRef = (0, _react.useRef)();
|
|
56
|
+
var workPlanRichTextRef = (0, _react.useRef)();
|
|
57
|
+
|
|
58
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
59
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
60
|
+
|
|
61
|
+
var submitState = data.submitState,
|
|
62
|
+
feedId = data.feedId,
|
|
63
|
+
feedType = data.feedType;
|
|
64
|
+
|
|
65
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
66
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
67
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
68
|
+
|
|
69
|
+
var handleClickTitle = function handleClickTitle() {
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
Talent.app.vent.trigger("global-daily-detail-pull-screen", feedId);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
var renderSuffix = (0, _react.useMemo)(function () {
|
|
75
|
+
var _classNames, _classNames2;
|
|
76
|
+
|
|
77
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
78
|
+
className: (0, _classnames["default"])(prefix + "__complete-type", (_classNames = {}, _defineProperty(_classNames, prefix + "__complete-type--normal", submitState === 1), _defineProperty(_classNames, prefix + "__complete-type--delay", submitState === 2), _classNames))
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
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))
|
|
81
|
+
}), submitState === 1 ? "按" : "延", "\u65F6\u63D0\u4EA4");
|
|
82
|
+
}, []);
|
|
83
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
84
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
85
|
+
className: prefix + "__operate-desc"
|
|
86
|
+
}, "\u7684\u603B\u7ED3"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
|
+
className: prefix + "-desc-operate-type",
|
|
88
|
+
style: {
|
|
89
|
+
background: feedTypeColor
|
|
90
|
+
}
|
|
91
|
+
}, feedTypeText));
|
|
92
|
+
}, []);
|
|
93
|
+
(0, _react.useEffect)(function () {
|
|
94
|
+
(0, _tools.highLightWord)({
|
|
95
|
+
parentDom: contentRichTextRef.current,
|
|
96
|
+
keyWord: searchKeyWord
|
|
97
|
+
});
|
|
98
|
+
(0, _tools.highLightWord)({
|
|
99
|
+
parentDom: workPlanRichTextRef.current,
|
|
100
|
+
keyWord: searchKeyWord
|
|
101
|
+
});
|
|
102
|
+
}, [data, searchKeyWord]);
|
|
103
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
+
className: prefix
|
|
105
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
106
|
+
data: data
|
|
107
|
+
}, restProps, {
|
|
108
|
+
desc: renderDesc
|
|
109
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
|
+
className: prefix + "__content"
|
|
111
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
112
|
+
content: EReportType[data.reportType] + data.name,
|
|
113
|
+
onClickTitle: handleClickTitle,
|
|
114
|
+
suffixContent: renderSuffix
|
|
115
|
+
}), data.contentRichText && /*#__PURE__*/_react["default"].createElement("div", {
|
|
116
|
+
className: prefix + "__summary"
|
|
117
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
118
|
+
className: prefix + "__block-title"
|
|
119
|
+
}, "\u603B\u7ED3\u4E0E\u969C\u788D"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
+
className: prefix + "__content-text",
|
|
121
|
+
ref: contentRichTextRef
|
|
122
|
+
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
123
|
+
htmlText: data.contentRichText
|
|
124
|
+
}))), data.workPlanRichText && /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
|
+
className: prefix + "__work-plan"
|
|
126
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
127
|
+
className: prefix + "__block-title"
|
|
128
|
+
}, "\u4E0B\u4E00\u6B65\u5DE5\u4F5C\u8BA1\u5212"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
|
+
className: prefix + "__content-text",
|
|
130
|
+
ref: workPlanRichTextRef
|
|
131
|
+
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
132
|
+
htmlText: data.workPlanRichText
|
|
133
|
+
})))));
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
var _default = DynamicReply;
|
|
137
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
.titaui-dynamic-reward-item {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-dynamic-reward-item__content {
|
|
6
|
+
margin-left: 69px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-dynamic-reward-item__title {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.titaui-dynamic-reward-item__description {
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
color: #3f4755;
|
|
18
|
+
line-height: 22px;
|
|
19
|
+
display: flex;
|
|
20
|
+
margin-top: 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-dynamic-reward-item__description-quoto {
|
|
24
|
+
width: 12px;
|
|
25
|
+
height: 12px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.titaui-dynamic-reward-item__description-quoto--left {
|
|
29
|
+
margin-right: 8px;
|
|
30
|
+
margin-top: -6px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-dynamic-reward-item__description-quoto--right {
|
|
34
|
+
margin-left: 8px;
|
|
35
|
+
margin-top: 4px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.titaui-dynamic-reward-item__status-left {
|
|
39
|
+
margin-left: 12px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.titaui-dynamic-reward-item__percent-left {
|
|
43
|
+
margin-left: 8px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.titaui-dynamic-reward-item__reward-tag {
|
|
47
|
+
display: inline-block;
|
|
48
|
+
padding: 1px 12px;
|
|
49
|
+
font-size: 12px;
|
|
50
|
+
line-height: 18px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.titaui-dynamic-reward-item__operate-desc {
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
color: #89919f;
|
|
57
|
+
line-height: 22px;
|
|
58
|
+
margin: 0 8px 0 4px;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.titaui-dynamic-reward-item-desc-operate-type {
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
width: 40px;
|
|
67
|
+
height: 18px;
|
|
68
|
+
min-width: 40px;
|
|
69
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
70
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
71
|
+
border-radius: 14px 10px 10px 4px;
|
|
72
|
+
font-size: 12px;
|
|
73
|
+
color: #ffffff;
|
|
74
|
+
line-height: 18px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.titaui-dynamic-reward-item__reward-img {
|
|
78
|
+
width: 25px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.titaui-dynamic-reward-item__reward-user {
|
|
82
|
+
font-size: 14px;
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
color: #3f4755;
|
|
85
|
+
line-height: 22px;
|
|
86
|
+
margin: 0 4px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.titaui-dynamic-reward-item__reward-user:hover {
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
color: #2879ff;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.titaui-dynamic-reward-item__reward-user--not-link:hover {
|
|
95
|
+
cursor: default !important;
|
|
96
|
+
color: #3f4755 !important;
|
|
97
|
+
}
|
package/lib/components/dynamic/dynamic-item/{components/common-dynamic → dynamic-reward}/index.js
RENAMED
|
@@ -11,49 +11,66 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _manager = _interopRequireDefault(require("../../../drawer/manager"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _context = require("../../context");
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
27
27
|
|
|
28
|
-
var _constant = require("
|
|
28
|
+
var _constant = require("../../constant");
|
|
29
|
+
|
|
30
|
+
var _tools = require("../../../../utils/tools");
|
|
31
|
+
|
|
32
|
+
var _openData = require("../../../../utils/open-data");
|
|
33
|
+
|
|
34
|
+
var _util = require("../../util");
|
|
29
35
|
|
|
30
36
|
require("./index.css");
|
|
31
37
|
|
|
38
|
+
var _excluded = ["data"];
|
|
39
|
+
|
|
32
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
41
|
|
|
34
42
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
43
|
|
|
36
44
|
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; }
|
|
37
45
|
|
|
38
|
-
var
|
|
46
|
+
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); }
|
|
39
47
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
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; }
|
|
49
|
+
|
|
50
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
51
|
+
|
|
52
|
+
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; }
|
|
53
|
+
|
|
54
|
+
var prefix = "titaui-dynamic-reward-item";
|
|
55
|
+
|
|
56
|
+
var DynamicReward = function DynamicReward(_ref) {
|
|
57
|
+
var data = _ref.data,
|
|
58
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
59
|
+
|
|
60
|
+
var rewardContent = data.rewardContent,
|
|
48
61
|
rewardTags = data.rewardTags,
|
|
62
|
+
obj = data.obj,
|
|
63
|
+
classify = data.classify,
|
|
49
64
|
feedType = data.feedType,
|
|
50
|
-
|
|
51
|
-
krId = data.krId,
|
|
52
|
-
classify = data.classify;
|
|
65
|
+
rewardUser = data.rewardUser;
|
|
53
66
|
|
|
54
67
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
55
68
|
searchKeyWord = _useContext.searchKeyWord;
|
|
56
69
|
|
|
70
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
71
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
72
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
73
|
+
|
|
57
74
|
var handleClickTitle = function handleClickTitle() {
|
|
58
75
|
if (!obj) {
|
|
59
76
|
return;
|
|
@@ -62,9 +79,9 @@ var CommonDynamic = function CommonDynamic(_ref) {
|
|
|
62
79
|
var objType = obj.objType,
|
|
63
80
|
objId = obj.objId;
|
|
64
81
|
|
|
65
|
-
if (objType === _constant.EObjType.Kr
|
|
82
|
+
if (objType === _constant.EObjType.Kr) {
|
|
66
83
|
_manager["default"].open("krDetail", {
|
|
67
|
-
krId:
|
|
84
|
+
krId: objId
|
|
68
85
|
});
|
|
69
86
|
} else if (objType === _constant.EObjType.O) {
|
|
70
87
|
_manager["default"].open("okrDetail", {
|
|
@@ -88,8 +105,8 @@ var CommonDynamic = function CommonDynamic(_ref) {
|
|
|
88
105
|
var objType = obj.objType,
|
|
89
106
|
objName = obj.objName;
|
|
90
107
|
|
|
91
|
-
if (objType === _constant.EObjType.Kr
|
|
92
|
-
return "KR:" +
|
|
108
|
+
if (objType === _constant.EObjType.Kr) {
|
|
109
|
+
return "KR:" + objName;
|
|
93
110
|
}
|
|
94
111
|
|
|
95
112
|
if (objType === _constant.EObjType.O) {
|
|
@@ -110,28 +127,65 @@ var CommonDynamic = function CommonDynamic(_ref) {
|
|
|
110
127
|
|
|
111
128
|
return "";
|
|
112
129
|
}, []);
|
|
130
|
+
var Classify = (0, _react.useMemo)(function () {
|
|
131
|
+
var _classNames;
|
|
132
|
+
|
|
133
|
+
if (!classify || Number(classify) == 0) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
138
|
+
className: (0, _classnames["default"])("".concat(prefix, "__classify"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__classify--desire"), classify === 1), _defineProperty(_classNames, "".concat(prefix, "__classify--promise"), classify === 2), _classNames))
|
|
139
|
+
});
|
|
140
|
+
}, [classify]);
|
|
141
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
142
|
+
var url = (0, _tools.getUrlForUserPage)({
|
|
143
|
+
userId: rewardUser.name,
|
|
144
|
+
userType: rewardUser.userType
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
var handleOpenUserPage = function handleOpenUserPage() {
|
|
148
|
+
window.open(url, "_blank");
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
152
|
+
className: prefix + "__operate-desc"
|
|
153
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
154
|
+
className: prefix + "__reward"
|
|
155
|
+
}, "\u83B7\u5F97", /*#__PURE__*/_react["default"].createElement("span", {
|
|
156
|
+
className: (0, _classnames["default"])(prefix + "__reward-user", _defineProperty({}, prefix + "__reward-user--not-link", !url)),
|
|
157
|
+
onClick: handleOpenUserPage
|
|
158
|
+
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
159
|
+
name: rewardUser.name,
|
|
160
|
+
id: rewardUser.userId
|
|
161
|
+
})), "\u6253\u8D4F")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
162
|
+
className: prefix + "-desc-operate-type",
|
|
163
|
+
style: {
|
|
164
|
+
background: feedTypeColor
|
|
165
|
+
}
|
|
166
|
+
}, feedTypeText));
|
|
167
|
+
}, []);
|
|
113
168
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
169
|
className: prefix
|
|
170
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
171
|
+
data: data
|
|
172
|
+
}, restProps, {
|
|
173
|
+
desc: renderDesc
|
|
174
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
175
|
+
className: prefix + "__content"
|
|
115
176
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
116
177
|
className: prefix + "__title"
|
|
117
|
-
},
|
|
178
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
118
179
|
content: renderTitle,
|
|
119
|
-
showPercent: true,
|
|
120
|
-
percent: progress,
|
|
121
|
-
growPercent: progressGrow,
|
|
122
|
-
showStatusIcon: true,
|
|
123
|
-
oStatus: 1,
|
|
124
|
-
riskLevel: riskLevel,
|
|
125
180
|
onClickTitle: handleClickTitle,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
})), (progressDescription || rewardContent) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
181
|
+
suffixContent: Classify
|
|
182
|
+
})), rewardContent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
183
|
className: prefix + "__description"
|
|
130
184
|
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
131
185
|
className: (0, _classnames["default"])(prefix + "__description-quoto", prefix + "__description-quoto--left"),
|
|
132
186
|
src: _dynamicLeftQuoto["default"]
|
|
133
187
|
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
134
|
-
str:
|
|
188
|
+
str: rewardContent,
|
|
135
189
|
keyWord: searchKeyWord
|
|
136
190
|
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
137
191
|
className: (0, _classnames["default"])(prefix + "__description-quoto", prefix + "__description-quoto--right"),
|
|
@@ -144,8 +198,8 @@ var CommonDynamic = function CommonDynamic(_ref) {
|
|
|
144
198
|
color: reward.color
|
|
145
199
|
}
|
|
146
200
|
}, reward.tagName);
|
|
147
|
-
}))));
|
|
201
|
+
})))));
|
|
148
202
|
};
|
|
149
203
|
|
|
150
|
-
var _default =
|
|
204
|
+
var _default = DynamicReward;
|
|
151
205
|
exports["default"] = _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.titaui-dynamic-share-item {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-dynamic-share-item__content {
|
|
6
|
+
display: flex;
|
|
7
|
+
font-size: 14px;
|
|
8
|
+
color: #3f4755;
|
|
9
|
+
line-height: 22px;
|
|
10
|
+
margin-bottom: 12px;
|
|
11
|
+
margin-left: 69px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.titaui-dynamic-share-item__content-quoto {
|
|
15
|
+
width: 12px;
|
|
16
|
+
height: 12px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.titaui-dynamic-share-item__content-quoto--left {
|
|
20
|
+
margin-right: 8px;
|
|
21
|
+
margin-top: -6px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.titaui-dynamic-share-item__content-quoto--right {
|
|
25
|
+
margin-left: 8px;
|
|
26
|
+
margin-top: 4px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.titaui-dynamic-share-item__operate-desc {
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
font-weight: 400;
|
|
32
|
+
color: #89919f;
|
|
33
|
+
line-height: 22px;
|
|
34
|
+
margin: 0 8px 0 4px;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.titaui-dynamic-share-item-desc-operate-type {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
width: 40px;
|
|
43
|
+
height: 18px;
|
|
44
|
+
min-width: 40px;
|
|
45
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
46
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
47
|
+
border-radius: 14px 10px 10px 4px;
|
|
48
|
+
font-size: 12px;
|
|
49
|
+
color: #ffffff;
|
|
50
|
+
line-height: 18px;
|
|
51
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
15
|
+
|
|
16
|
+
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
17
|
+
|
|
18
|
+
var _fileList = _interopRequireDefault(require("../../../file-list"));
|
|
19
|
+
|
|
20
|
+
var _context = require("../../context");
|
|
21
|
+
|
|
22
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
23
|
+
|
|
24
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
25
|
+
|
|
26
|
+
require("./index.css");
|
|
27
|
+
|
|
28
|
+
var _util = require("../../util");
|
|
29
|
+
|
|
30
|
+
var _excluded = ["data"];
|
|
31
|
+
|
|
32
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
|
+
|
|
34
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
|
+
|
|
36
|
+
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; }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
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; }
|
|
43
|
+
|
|
44
|
+
var prefix = "titaui-dynamic-share-item";
|
|
45
|
+
|
|
46
|
+
var DynamicShare = function DynamicShare(_ref) {
|
|
47
|
+
var data = _ref.data,
|
|
48
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
49
|
+
|
|
50
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
51
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
52
|
+
|
|
53
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
54
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
55
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
56
|
+
|
|
57
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
58
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
59
|
+
className: prefix + "__operate-desc"
|
|
60
|
+
}, "\u53D1\u5E03\u7684\u5206\u4EAB"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
61
|
+
className: prefix + "-desc-operate-type",
|
|
62
|
+
style: {
|
|
63
|
+
background: feedTypeColor
|
|
64
|
+
}
|
|
65
|
+
}, feedTypeText));
|
|
66
|
+
}, []);
|
|
67
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
|
+
className: prefix
|
|
69
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
70
|
+
data: data
|
|
71
|
+
}, restProps, {
|
|
72
|
+
desc: renderDesc
|
|
73
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
74
|
+
className: prefix + "__content"
|
|
75
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
76
|
+
className: (0, _classnames["default"])(prefix + "__content-quoto", prefix + "__content-quoto--left"),
|
|
77
|
+
src: _dynamicLeftQuoto["default"]
|
|
78
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
79
|
+
str: data.content,
|
|
80
|
+
keyWord: searchKeyWord
|
|
81
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
82
|
+
className: (0, _classnames["default"])(prefix + "__content-quoto", prefix + "__content-quoto--right"),
|
|
83
|
+
src: _dynamicRightQuoto["default"]
|
|
84
|
+
}))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
|
+
className: prefix + "__files"
|
|
86
|
+
}, /*#__PURE__*/_react["default"].createElement(_fileList["default"], {
|
|
87
|
+
data: data.attachments
|
|
88
|
+
})));
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
var _default = DynamicShare;
|
|
92
|
+
exports["default"] = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.EStatusClass2StatusTypeText = exports.TaskStatusIconMapping = void 0;
|
|
7
7
|
|
|
8
8
|
var _taskCancel = _interopRequireDefault(require("./img/task-cancel.png"));
|
|
9
9
|
|
|
@@ -21,7 +21,7 @@ var _taskUnstart = _interopRequireDefault(require("./img/task-unstart.png"));
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var TaskStatusIconMapping = {
|
|
25
25
|
2: _taskDone["default"],
|
|
26
26
|
// 已完成
|
|
27
27
|
1: _taskProgress["default"],
|
|
@@ -37,4 +37,14 @@ var taskStatusMapping = {
|
|
|
37
37
|
5: _taskUnaccept["default"] // 未接受
|
|
38
38
|
|
|
39
39
|
};
|
|
40
|
-
exports.
|
|
40
|
+
exports.TaskStatusIconMapping = TaskStatusIconMapping;
|
|
41
|
+
var EStatusClass2StatusTypeText = {
|
|
42
|
+
2: '已完成',
|
|
43
|
+
1: '进行中',
|
|
44
|
+
4: '已取消',
|
|
45
|
+
3: '已延迟',
|
|
46
|
+
6: '暂停中',
|
|
47
|
+
0: '未开始',
|
|
48
|
+
5: '未接受'
|
|
49
|
+
};
|
|
50
|
+
exports.EStatusClass2StatusTypeText = EStatusClass2StatusTypeText;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|