@titaui/pc 1.5.69-beta.15 → 1.5.69-beta.19
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/communication/index.js +2 -1
- package/lib/components/communication/style.js +1 -1
- package/lib/components/create-okr/index.css +4 -0
- package/lib/components/create-okr/index.js +43 -31
- package/lib/components/dynamic/dynamic-item/components/header/index.js +8 -3
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +10 -29
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +7 -39
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +156 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +59 -0
- package/lib/components/dynamic/dynamic-item/index.css +23 -8
- package/lib/components/dynamic/dynamic-item/index.js +14 -5
- package/lib/components/dynamic/dynamic-like-ranking/index.css +5 -1
- package/lib/components/dynamic/dynamic.css +2 -0
- package/lib/components/dynamic/quick-operation/index.css +3 -1
- package/lib/components/dynamic/request-api.js +7 -7
- package/lib/components/file-list/components/single-file/index.css +3 -3
- package/lib/components/grid-page/image/{assistant.svg → Assistant.svg} +0 -0
- package/lib/components/grid-page/image/{boss.svg → Boss.svg} +0 -0
- package/lib/components/grid-page/image/{default-background.png → Default-background.png} +0 -0
- package/lib/components/img-viewer/index.css +1 -1
- package/lib/components/mblog/style.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +42 -33
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +8 -3
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upvote/index.js +14 -7
- package/lib/index.js +5 -1
- package/lib/pages/like-ranking/index.css +13 -0
- package/lib/pages/like-ranking/index.js +8 -6
- package/package.json +1 -1
|
@@ -0,0 +1,156 @@
|
|
|
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 _header = _interopRequireDefault(require("../components/header"));
|
|
15
|
+
|
|
16
|
+
var _icon = _interopRequireDefault(require("../components/icon"));
|
|
17
|
+
|
|
18
|
+
var _constant = require("./constant");
|
|
19
|
+
|
|
20
|
+
var _constant2 = require("../../constant");
|
|
21
|
+
|
|
22
|
+
var _context = require("../../context");
|
|
23
|
+
|
|
24
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
25
|
+
|
|
26
|
+
var _tooltip = require("../../../tooltip");
|
|
27
|
+
|
|
28
|
+
var _util = require("../../util");
|
|
29
|
+
|
|
30
|
+
var _manager = _interopRequireDefault(require("../../../drawer/manager"));
|
|
31
|
+
|
|
32
|
+
var _milestone = _interopRequireDefault(require("./img/milestone.png"));
|
|
33
|
+
|
|
34
|
+
require("./index.css");
|
|
35
|
+
|
|
36
|
+
var _excluded = ["data"];
|
|
37
|
+
|
|
38
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
39
|
+
|
|
40
|
+
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); }
|
|
41
|
+
|
|
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; }
|
|
43
|
+
|
|
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); }
|
|
45
|
+
|
|
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; }
|
|
47
|
+
|
|
48
|
+
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; }
|
|
49
|
+
|
|
50
|
+
var prefix = "titaui-dynamic-milestone-item";
|
|
51
|
+
|
|
52
|
+
var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
53
|
+
var data = _ref.data,
|
|
54
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
55
|
+
|
|
56
|
+
var status = data.status,
|
|
57
|
+
taskName = data.taskName,
|
|
58
|
+
startDate = data.startDate,
|
|
59
|
+
deadline = data.deadline,
|
|
60
|
+
feedType = data.feedType,
|
|
61
|
+
obj = data.obj;
|
|
62
|
+
|
|
63
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
64
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
65
|
+
|
|
66
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
67
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
68
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
69
|
+
|
|
70
|
+
var handleClickTaskTitle = function handleClickTaskTitle() {
|
|
71
|
+
window.Talent.app.vent.trigger("global-pull-screen", data.taskId, "task");
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
var handleClickTitle = function handleClickTitle() {
|
|
75
|
+
var objType = obj.objType,
|
|
76
|
+
objId = obj.objId;
|
|
77
|
+
|
|
78
|
+
if (objType === _constant2.EObjType.Kr) {
|
|
79
|
+
_manager["default"].open("krDetail", {
|
|
80
|
+
krId: objId
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (objType === _constant2.EObjType.O) {
|
|
85
|
+
_manager["default"].open("okrDetail", {
|
|
86
|
+
okrId: objId
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (objType === _constant2.EObjType.Project) {
|
|
91
|
+
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=" + objId));
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
var renderName = (0, _react.useMemo)(function () {
|
|
96
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
97
|
+
className: prefix + "__content-title-text",
|
|
98
|
+
onClick: handleClickTaskTitle
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
100
|
+
str: taskName,
|
|
101
|
+
keyWord: searchKeyWord
|
|
102
|
+
}));
|
|
103
|
+
}, [taskName, searchKeyWord]);
|
|
104
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
105
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
|
+
className: prefix + "__operate-desc"
|
|
107
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
108
|
+
className: prefix + "__operate-desc-wrapper"
|
|
109
|
+
}, "\u8D1F\u8D23\u4E86\u9879\u76EE", /*#__PURE__*/_react["default"].createElement("span", {
|
|
110
|
+
className: prefix + "__object-name",
|
|
111
|
+
onClick: handleClickTitle
|
|
112
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
113
|
+
text: obj.objName,
|
|
114
|
+
isPercent: true
|
|
115
|
+
})), "\u4E0B\u91CC\u7A0B\u7891")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
116
|
+
className: prefix + "-desc-operate-type",
|
|
117
|
+
style: {
|
|
118
|
+
background: feedTypeColor
|
|
119
|
+
}
|
|
120
|
+
}, feedTypeText));
|
|
121
|
+
}, []);
|
|
122
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
|
+
className: prefix
|
|
124
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
125
|
+
data: data
|
|
126
|
+
}, restProps, {
|
|
127
|
+
desc: renderDesc
|
|
128
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
|
+
className: "".concat(prefix, "__content")
|
|
130
|
+
}, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
|
|
131
|
+
background: "#5C8EFF",
|
|
132
|
+
boxShadow: "0px 2px 6px 0px rgba(92, 142, 255, 0.4)",
|
|
133
|
+
imgUrl: _milestone["default"]
|
|
134
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
|
+
className: prefix + "__content-info"
|
|
136
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
137
|
+
className: prefix + "__content-title"
|
|
138
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
139
|
+
isPercent: true,
|
|
140
|
+
text: renderName,
|
|
141
|
+
minusWidth: 30
|
|
142
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
+
className: prefix + "__content-status-and-time-range"
|
|
144
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
145
|
+
className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status])
|
|
146
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
147
|
+
className: prefix + "__content-status-text"
|
|
148
|
+
}, _constant.EStatusClass2StatusTypeText[status]), /*#__PURE__*/_react["default"].createElement("i", {
|
|
149
|
+
className: (0, _classnames["default"])("tu-icon-deferred")
|
|
150
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
151
|
+
className: prefix + "__content-time-range"
|
|
152
|
+
}, startDate, "-", deadline)))));
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
var _default = DynamicMilestone;
|
|
156
|
+
exports["default"] = _default;
|
|
@@ -4,6 +4,65 @@
|
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-report-item__content {
|
|
6
6
|
margin-left: 69px;
|
|
7
|
+
line-height: 24px;
|
|
8
|
+
word-wrap: break-word;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.titaui-dynamic-report-item__content ul {
|
|
12
|
+
list-style-type: disc;
|
|
13
|
+
padding-left: 20px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.titaui-dynamic-report-item__content ol {
|
|
17
|
+
list-style-type: decimal;
|
|
18
|
+
padding-left: 20px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.titaui-dynamic-report-item__content li {
|
|
22
|
+
list-style-type: inherit;
|
|
23
|
+
margin: 5px 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.titaui-dynamic-report-item__content table {
|
|
27
|
+
margin: 5px 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.titaui-dynamic-report-item__content table td {
|
|
31
|
+
border: 1px solid #999;
|
|
32
|
+
padding: 3px 5px;
|
|
33
|
+
min-width: 50px;
|
|
34
|
+
height: 20px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.titaui-dynamic-report-item__content p {
|
|
38
|
+
margin: 5px 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.titaui-dynamic-report-item__content blockquote {
|
|
42
|
+
display: block;
|
|
43
|
+
border-left: 4px solid #e3ecf1;
|
|
44
|
+
padding: 5px;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.titaui-dynamic-report-item__content p,
|
|
49
|
+
.titaui-dynamic-report-item__content li {
|
|
50
|
+
line-height: 1.7;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.titaui-dynamic-report-item__content a {
|
|
54
|
+
word-wrap: break-word;
|
|
55
|
+
word-break: break-all;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.titaui-dynamic-report-item__content pre {
|
|
59
|
+
padding: 10px;
|
|
60
|
+
margin: 5px 0px;
|
|
61
|
+
font-size: 0.8em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.titaui-dynamic-report-item__content pre code {
|
|
65
|
+
line-height: 1.5;
|
|
7
66
|
}
|
|
8
67
|
|
|
9
68
|
.titaui-dynamic-report-item__summary {
|
|
@@ -36,8 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.titaui-dynamic-item__footer {
|
|
39
|
-
margin:
|
|
40
|
-
border-top: 1px solid #E9ECF0;
|
|
39
|
+
margin: 12px 20px 0 68px;
|
|
41
40
|
height: 54px;
|
|
42
41
|
border-radius: 0px 0px 6px 6px;
|
|
43
42
|
display: flex;
|
|
@@ -84,6 +83,10 @@
|
|
|
84
83
|
user-select: none;
|
|
85
84
|
margin-right: 30px;
|
|
86
85
|
cursor: pointer;
|
|
86
|
+
font-size: 20px;
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
color: #a4acb9;
|
|
87
90
|
}
|
|
88
91
|
|
|
89
92
|
.titaui-dynamic-item__footer-icon:last-of-type {
|
|
@@ -94,20 +97,32 @@
|
|
|
94
97
|
color: #2879ff;
|
|
95
98
|
}
|
|
96
99
|
|
|
97
|
-
.titaui-dynamic-item__footer-icon:first-of-type:hover {
|
|
98
|
-
color: #89919F;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
100
|
.titaui-dynamic-item__footer-number {
|
|
102
101
|
margin-left: 8px;
|
|
102
|
+
font-size: 14px;
|
|
103
|
+
font-weight: 600;
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
.titaui-dynamic-item__icon {
|
|
106
107
|
margin-left: 4px;
|
|
107
|
-
|
|
108
|
+
margin-bottom: 4px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.titaui-dynamic-item__icon-up {
|
|
112
|
+
transform: rotate(180deg);
|
|
113
|
+
margin-bottom: 0;
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
.titaui-dynamic-item__communication {
|
|
111
117
|
padding: 12px 20px 20px 68px;
|
|
112
|
-
box-shadow: inset 0px
|
|
118
|
+
box-shadow: inset 0px 12px 12px -12px rgba(127, 145, 180, 0.14);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.titaui-dynamic-item__upvote-btn {
|
|
122
|
+
color: #a4acb9;
|
|
123
|
+
font-size: 20px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.titaui-dynamic-item__upvote-btn:hover {
|
|
127
|
+
color: #2879ff;
|
|
113
128
|
}
|
|
@@ -45,6 +45,8 @@ var _dynamicKr = _interopRequireDefault(require("./dynamic-kr"));
|
|
|
45
45
|
|
|
46
46
|
var _dynamicReward = _interopRequireDefault(require("./dynamic-reward"));
|
|
47
47
|
|
|
48
|
+
var _dynamicMilestone = _interopRequireDefault(require("./dynamic-milestone"));
|
|
49
|
+
|
|
48
50
|
var _bsGlobal = require("../../../utils/bs-global");
|
|
49
51
|
|
|
50
52
|
var _avatar = require("../../avatar");
|
|
@@ -234,6 +236,11 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
234
236
|
data: data
|
|
235
237
|
}, restProps));
|
|
236
238
|
|
|
239
|
+
case _constant.EFeedType.MileStone:
|
|
240
|
+
return /*#__PURE__*/_react["default"].createElement(_dynamicMilestone["default"], _extends({
|
|
241
|
+
data: data
|
|
242
|
+
}, restProps));
|
|
243
|
+
|
|
237
244
|
default:
|
|
238
245
|
return null;
|
|
239
246
|
}
|
|
@@ -293,22 +300,24 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
293
300
|
className: prefix + "__footer-fold",
|
|
294
301
|
onClick: handleFold
|
|
295
302
|
}, "\u6536\u8D77", /*#__PURE__*/_react["default"].createElement("i", {
|
|
296
|
-
className: (0, _classnames["default"])("tu-icon-arrow-
|
|
303
|
+
className: (0, _classnames["default"])("tu-icon-arrow-down", "".concat(prefix, "__icon"), "".concat(prefix, "__icon-up"))
|
|
297
304
|
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
298
305
|
onClick: handleCommentClick,
|
|
299
|
-
className: (0, _classnames["default"])("tu-icon-pinglun", prefix + "__footer-icon")
|
|
306
|
+
className: (0, _classnames["default"])("tu-icon-pinglun-m", prefix + "__footer-icon")
|
|
300
307
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
301
|
-
condition: feedComments.
|
|
308
|
+
condition: feedComments.total > 0
|
|
302
309
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
303
310
|
className: prefix + "__footer-number"
|
|
304
|
-
}, feedComments.
|
|
311
|
+
}, feedComments.total))), /*#__PURE__*/_react["default"].createElement(_upvote["default"], {
|
|
305
312
|
type: praiseType,
|
|
306
313
|
count: praiseUsers ? praiseUsers.length : 0,
|
|
307
314
|
feedId: feedId,
|
|
308
315
|
onChange: onChangeParse,
|
|
309
316
|
style: {
|
|
310
317
|
marginLeft: 30
|
|
311
|
-
}
|
|
318
|
+
},
|
|
319
|
+
buttonType: "tu-icon-tyle-column",
|
|
320
|
+
customUpvoteBtnCls: "".concat(prefix, "__upvote-btn")
|
|
312
321
|
}), /*#__PURE__*/_react["default"].createElement(_upvoteListModal["default"], {
|
|
313
322
|
feedId: feedId,
|
|
314
323
|
visible: upvoteModalVisible,
|
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
cursor: pointer;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
.danamic-like-ranking__header-right:hover {
|
|
39
|
+
color: #2879ff;
|
|
40
|
+
}
|
|
41
|
+
|
|
38
42
|
.danamic-like-ranking__content {
|
|
39
43
|
border-top: 1px solid #e9ecf0;
|
|
40
44
|
padding: 16px 0 0 0;
|
|
@@ -44,7 +48,7 @@
|
|
|
44
48
|
display: flex;
|
|
45
49
|
justify-content: space-between;
|
|
46
50
|
align-items: center;
|
|
47
|
-
margin-bottom:
|
|
51
|
+
margin-bottom: 9px;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
.danamic-like-ranking__item:last-of-type {
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
.titaui-pc-dynamic-quick-operation {
|
|
2
2
|
width: 278px;
|
|
3
3
|
height: 126px;
|
|
4
|
+
padding: 0 5px;
|
|
5
|
+
box-sizing: border-box;
|
|
4
6
|
display: flex;
|
|
5
7
|
align-items: center;
|
|
6
8
|
background: #ffffff;
|
|
7
9
|
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
8
10
|
border-radius: 12px;
|
|
9
11
|
font-size: 12px;
|
|
10
|
-
color: #
|
|
12
|
+
color: #3f4755;
|
|
11
13
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
12
14
|
}
|
|
13
15
|
|
|
@@ -14,7 +14,7 @@ var topDynamic = function topDynamic(_ref) {
|
|
|
14
14
|
var feedId = _ref.feedId,
|
|
15
15
|
_ref$titaObj_type = _ref.titaObj_type,
|
|
16
16
|
titaObj_type = _ref$titaObj_type === void 0 ? 2 : _ref$titaObj_type;
|
|
17
|
-
return (0, _request.rpost)("v2")("
|
|
17
|
+
return (0, _request.rpost)("v2")("user/feed/Top?feed_id=".concat(feedId, "&titaObj_type=").concat(titaObj_type, "&titaObj_id="));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
exports.topDynamic = topDynamic;
|
|
@@ -23,28 +23,28 @@ var cancelTopDynamic = function cancelTopDynamic(_ref2) {
|
|
|
23
23
|
var feedId = _ref2.feedId,
|
|
24
24
|
_ref2$titaObj_type = _ref2.titaObj_type,
|
|
25
25
|
titaObj_type = _ref2$titaObj_type === void 0 ? 2 : _ref2$titaObj_type;
|
|
26
|
-
return (0, _request.rdelete)("v2")("
|
|
26
|
+
return (0, _request.rdelete)("v2")("user/feed/CancelTop?feed_id=".concat(feedId, "&titaObj_type=").concat(titaObj_type, "&titaObj_id="));
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
exports.cancelTopDynamic = cancelTopDynamic;
|
|
30
30
|
|
|
31
31
|
var collectDynamic = function collectDynamic(_ref3) {
|
|
32
32
|
var feedId = _ref3.feedId;
|
|
33
|
-
return (0, _request.rput)("v2")("
|
|
33
|
+
return (0, _request.rput)("v2")("user/feed/Collect?feed_id=".concat(feedId));
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
exports.collectDynamic = collectDynamic;
|
|
37
37
|
|
|
38
38
|
var cancelCollectDynamic = function cancelCollectDynamic(_ref4) {
|
|
39
39
|
var feedId = _ref4.feedId;
|
|
40
|
-
return (0, _request.rdelete)("v2")("
|
|
40
|
+
return (0, _request.rdelete)("v2")("user/feed/CancelCollect?feed_id=".concat(feedId));
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
exports.cancelCollectDynamic = cancelCollectDynamic;
|
|
44
44
|
|
|
45
45
|
var deleteDynamic = function deleteDynamic(_ref5) {
|
|
46
46
|
var feedId = _ref5.feedId;
|
|
47
|
-
return (0, _request.rdelete)("v2")("
|
|
47
|
+
return (0, _request.rdelete)("v2")("user/feed/Delete?feed_id=".concat(feedId));
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
exports.deleteDynamic = deleteDynamic;
|
|
@@ -57,7 +57,7 @@ var getPraise = function getPraise(_ref6) {
|
|
|
57
57
|
count = _ref6$count === void 0 ? 5 : _ref6$count,
|
|
58
58
|
_ref6$objType = _ref6.objType,
|
|
59
59
|
objType = _ref6$objType === void 0 ? 10 : _ref6$objType;
|
|
60
|
-
return (0, _request.rget)("v1")("
|
|
60
|
+
return (0, _request.rget)("v1")("praise/get?objId=".concat(objId, "&start=&count=").concat(count, "&objType=").concat(objType));
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
exports.getPraise = getPraise;
|
|
@@ -75,7 +75,7 @@ var getLeastPariseInfo = function getLeastPariseInfo() {
|
|
|
75
75
|
exports.getLeastPariseInfo = getLeastPariseInfo;
|
|
76
76
|
|
|
77
77
|
var getMenu = function getMenu() {
|
|
78
|
-
return (0, _request.rget)("v2")("
|
|
78
|
+
return (0, _request.rget)("v2")("feed/FeedTabMenus");
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
exports.getMenu = getMenu;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
.titaui-new-file-list-single-file__file-preview {
|
|
7
7
|
width: 180px;
|
|
8
8
|
height: 180px;
|
|
9
|
-
border-radius:
|
|
9
|
+
border-radius: 8px;
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: center;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
.titaui-new-file-list-single-file__file-preview-img {
|
|
17
17
|
width: 180px;
|
|
18
18
|
height: 180px;
|
|
19
|
-
border-radius:
|
|
19
|
+
border-radius: 8px;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.titaui-new-file-list-single-file__file-preview-other-img {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
width: 180px;
|
|
38
38
|
height: 180px;
|
|
39
39
|
background: rgba(20, 28, 40, 0.3);
|
|
40
|
-
border-radius:
|
|
40
|
+
border-radius: 8px;
|
|
41
41
|
display: flex;
|
|
42
42
|
align-items: center;
|
|
43
43
|
justify-content: center;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -13,12 +13,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
13
13
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
|
|
16
|
-
var MBlogBox = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n .uploadFile__preview__list {\n padding-bottom: 10px;\n background: #ffffff;\n display: flex;\n flex-wrap: wrap;\n max-height: 300px;\n overflow-y: auto;\n\n .preview__content {\n margin-top: 10px;\n margin-right: 10px;\n border-radius:
|
|
16
|
+
var MBlogBox = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n .uploadFile__preview__list {\n padding-bottom: 10px;\n background: #ffffff;\n display: flex;\n flex-wrap: wrap;\n max-height: 300px;\n overflow-y: auto;\n\n .preview__content {\n margin-top: 10px;\n margin-right: 10px;\n border-radius: 8px;\n }\n }\n"]))); // MblogContent
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
exports.MBlogBox = MBlogBox;
|
|
20
20
|
|
|
21
|
-
var DivMblogContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 8px 10px 6px;\n border: 1px solid #E9ECF0;\n border-radius: 4px;\n background-color: #fff;\n position: relative;\n transition: all .2s ease-in-out;\n height: 124px;\n box-sizing: border-box;\n\n &.input_default-active {\n box-shadow: 0px 0px 4px 0px rgba(40, 121, 255, 0.3);\n border-color: #2879ff;\n }\n"])));
|
|
21
|
+
var DivMblogContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 8px 10px 6px;\n border: 1px solid #E9ECF0;\n border-radius: 4px;\n background-color: #fff;\n position: relative;\n transition: all .2s ease-in-out;\n height: 124px;\n box-sizing: border-box;\n\n &.input_default-active {\n box-shadow: inset 0px 0px 4px 0px rgba(40, 121, 255, 0.3);\n border-color: #2879ff;\n }\n"])));
|
|
22
22
|
|
|
23
23
|
exports.DivMblogContent = DivMblogContent;
|
|
24
24
|
|
|
@@ -70,43 +70,44 @@ var _default = function _default(props) {
|
|
|
70
70
|
|
|
71
71
|
var openCreate = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
72
72
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(name) {
|
|
73
|
-
var params;
|
|
74
73
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
75
74
|
while (1) {
|
|
76
75
|
switch (_context.prev = _context.next) {
|
|
77
76
|
case 0:
|
|
78
|
-
|
|
79
|
-
'objId': data.workId,
|
|
80
|
-
'objType': 4,
|
|
81
|
-
'AppId': 1,
|
|
82
|
-
'AppType': 1,
|
|
83
|
-
'TaskType': 0,
|
|
84
|
-
'WorkMileStoneId': data.mileStoneId
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
if (data.mileStoneId > 0) {
|
|
88
|
-
params.WorkMileStoneName = data.mileStoneName;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
if (name == 'addTask') {
|
|
77
|
+
if (name == "addTask") {
|
|
92
78
|
window.openCreateTaskPop(btnRef.current, {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
79
|
+
"createParams": {
|
|
80
|
+
"objId": data.workId,
|
|
81
|
+
"objType": 4,
|
|
82
|
+
"AppId": 1,
|
|
83
|
+
"AppType": 1,
|
|
84
|
+
"TaskType": 0,
|
|
85
|
+
"WorkMileStoneId": data.mileStoneId
|
|
86
|
+
},
|
|
87
|
+
"createTaskOption": {
|
|
88
|
+
"allowObjectOptions": false
|
|
96
89
|
}
|
|
97
90
|
}).then(function () {
|
|
98
|
-
|
|
91
|
+
_popDownNotification.Toast.Success("操作成功", {
|
|
92
|
+
canClose: false
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
setTimeout(refreshEList, 2000);
|
|
99
96
|
});
|
|
100
97
|
} else {
|
|
101
98
|
window.openCreateProjectFromOkrModal({
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
"okrId": data.workId,
|
|
100
|
+
"krId": data.mileStoneId
|
|
104
101
|
}).then(function () {
|
|
105
|
-
|
|
102
|
+
_popDownNotification.Toast.Success("操作成功", {
|
|
103
|
+
canClose: false
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
setTimeout(refreshEList, 2000);
|
|
106
107
|
});
|
|
107
108
|
}
|
|
108
109
|
|
|
109
|
-
case
|
|
110
|
+
case 1:
|
|
110
111
|
case "end":
|
|
111
112
|
return _context.stop();
|
|
112
113
|
}
|
|
@@ -119,12 +120,16 @@ var _default = function _default(props) {
|
|
|
119
120
|
};
|
|
120
121
|
}(), []);
|
|
121
122
|
var openRelatePop = (0, _react.useCallback)(function (name) {
|
|
122
|
-
if (name ==
|
|
123
|
+
if (name == "relateTask") {
|
|
123
124
|
window.openRelateTaskPop(btnRef.current, {
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
"okrId": data.workId,
|
|
126
|
+
"krId": data.mileStoneId
|
|
126
127
|
}).then(function () {
|
|
127
|
-
|
|
128
|
+
_popDownNotification.Toast.Success("操作成功", {
|
|
129
|
+
canClose: false
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
setTimeout(refreshEList, 2000);
|
|
128
133
|
})["catch"](function (e) {
|
|
129
134
|
_popDownNotification.Toast.Error(e.errorMsg, {
|
|
130
135
|
canClose: false
|
|
@@ -132,10 +137,14 @@ var _default = function _default(props) {
|
|
|
132
137
|
});
|
|
133
138
|
} else {
|
|
134
139
|
window.openRelateProjectPop(btnRef.current, {
|
|
135
|
-
|
|
136
|
-
|
|
140
|
+
"okrId": data.workId,
|
|
141
|
+
"krId": data.mileStoneId
|
|
137
142
|
}).then(function () {
|
|
138
|
-
|
|
143
|
+
_popDownNotification.Toast.Success("操作成功", {
|
|
144
|
+
canClose: false
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
setTimeout(refreshEList, 2000);
|
|
139
148
|
})["catch"](function (e) {
|
|
140
149
|
_popDownNotification.Toast.Error(e.errorMsg, {
|
|
141
150
|
canClose: false
|
|
@@ -151,7 +160,7 @@ var _default = function _default(props) {
|
|
|
151
160
|
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
152
161
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-kr-node-title")),
|
|
153
162
|
onClick: function onClick() {
|
|
154
|
-
data.mileStoneId && _manager["default"].open(
|
|
163
|
+
data.mileStoneId && _manager["default"].open("krDetail", {
|
|
155
164
|
krId: data.mileStoneId
|
|
156
165
|
});
|
|
157
166
|
}
|
|
@@ -162,7 +171,7 @@ var _default = function _default(props) {
|
|
|
162
171
|
})), okrInfo.status === 1 && (isParticipant || hasRelativeAuth) ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
163
172
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-kr-node-actions"))
|
|
164
173
|
}, /*#__PURE__*/_react["default"].createElement(_dropdownLayer["default"], {
|
|
165
|
-
popupPlacement:
|
|
174
|
+
popupPlacement: "bottomRight",
|
|
166
175
|
onChange: openCreate,
|
|
167
176
|
trigger: /*#__PURE__*/_react["default"].createElement("span", {
|
|
168
177
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-kr-node-actions-create")),
|
|
@@ -179,7 +188,7 @@ var _default = function _default(props) {
|
|
|
179
188
|
exIconClass: "e-kr-node-layer-icon",
|
|
180
189
|
name: "addProject"
|
|
181
190
|
}, /*#__PURE__*/_react["default"].createElement("span", null, "\u6DFB\u52A0\u9879\u76EE"))), /*#__PURE__*/_react["default"].createElement(_dropdownLayer["default"], {
|
|
182
|
-
popupPlacement:
|
|
191
|
+
popupPlacement: "bottomRight",
|
|
183
192
|
onChange: openRelatePop,
|
|
184
193
|
trigger: /*#__PURE__*/_react["default"].createElement("span", {
|
|
185
194
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-kr-node-actions-connect"))
|
|
@@ -61,12 +61,17 @@ var PublishDynamicModal = function PublishDynamicModal(_ref) {
|
|
|
61
61
|
isShare = _useState6[0],
|
|
62
62
|
setIsShare = _useState6[1];
|
|
63
63
|
|
|
64
|
-
var onMblogSubmit = function onMblogSubmit(submitType,
|
|
64
|
+
var onMblogSubmit = function onMblogSubmit(submitType, sendData) {
|
|
65
|
+
sendData['FileUrls'] = sendData['FileUrl'];
|
|
66
|
+
sendData['Visibility'] = sendData['visibility'];
|
|
67
|
+
delete sendData['FileUrl'];
|
|
68
|
+
delete sendData['visibility'];
|
|
69
|
+
|
|
65
70
|
if (submitType === "submit") {
|
|
66
71
|
setSubmitStatus(2);
|
|
67
72
|
|
|
68
73
|
if (isShare) {
|
|
69
|
-
(0, _requistApi.addShare)(
|
|
74
|
+
(0, _requistApi.addShare)(sendData).then(function (resp) {
|
|
70
75
|
if (resp.Code === 1) {
|
|
71
76
|
_popDownNotification.Toast.Success("发布成功", {
|
|
72
77
|
canClose: false
|
|
@@ -94,7 +99,7 @@ var PublishDynamicModal = function PublishDynamicModal(_ref) {
|
|
|
94
99
|
});
|
|
95
100
|
});
|
|
96
101
|
} else {
|
|
97
|
-
(0, _requistApi.addNotice)(
|
|
102
|
+
(0, _requistApi.addNotice)(sendData).then(function (resp) {
|
|
98
103
|
if (resp.Code === 1) {
|
|
99
104
|
_popDownNotification.Toast.Success("发布成功", {
|
|
100
105
|
canClose: false
|