@titaui/pc 1.5.69-beta.4 → 1.5.69-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/button/default-button/index.css +49 -0
- package/lib/components/button/default-button/index.js +51 -0
- package/lib/components/button/index.js +8 -2
- package/lib/components/communication/CommunicationRecord.js +106 -162
- package/lib/components/communication/index.js +27 -24
- package/lib/components/dropdown-layer/index.js +15 -12
- 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/dynamic-reward/index.js +205 -0
- 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.css +1 -0
- 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.css +1 -0
- 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 +30 -0
- package/lib/components/dynamic/dynamic.js +61 -27
- package/lib/components/dynamic/quick-operation/index.js +14 -4
- package/lib/components/dynamic/request-api.js +13 -1
- package/lib/components/dynamic/util.js +16 -2
- 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/grid-page/personal-info/index.js +4 -4
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +56 -23
- package/lib/components/publish-dynamic-modal/requist-api.js +17 -2
- package/lib/components/upvote/index.js +15 -10
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +4 -0
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +8 -6
- package/lib/pages/like-ranking/column.js +21 -8
- package/lib/pages/like-ranking/filter-buttons/department.js +46 -10
- package/lib/pages/like-ranking/filter-buttons/index.css +4 -8
- package/lib/pages/like-ranking/filter-buttons/index.js +12 -11
- package/lib/pages/like-ranking/filter-buttons/modular.js +51 -28
- package/lib/pages/like-ranking/filter-buttons/name.js +33 -6
- 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 +26 -46
- package/lib/pages/like-ranking/index.css +37 -2
- package/lib/pages/like-ranking/index.js +121 -21
- package/lib/pages/like-ranking/request-api.js +15 -0
- package/lib/utils/bs-global.js +19 -2
- package/lib/utils/format-time.js +110 -8
- 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 -109
- 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/common-dynamic/index.js +0 -153
- 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
|
@@ -83,14 +83,14 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
83
83
|
okrFeedParams = _this$props.okrFeedParams;
|
|
84
84
|
var isShowAllCommunicationRecord = _this.state.isShowAllCommunicationRecord;
|
|
85
85
|
var url = commentType == 1 ? isShowAllCommunicationRecord ? (0, _requestV.getApiUrl2)("comment/Get?feed_id=".concat(feedId, "&comment_type=0")) : (0, _requestV.getApiUrl2)("user/feed/GetById?feed_id=".concat(feedId, "&comment_count=").concat(commentCount)) : (0, _requestV.getApiUrl)("okr/cycle/getFeed?objId=".concat(okrFeedParams && okrFeedParams.objId, "&objType=").concat(okrFeedParams && okrFeedParams.objType, "&cycleType=").concat(okrFeedParams && okrFeedParams.cycleType, "&yqmNum=").concat(okrFeedParams && okrFeedParams.yqmNum, "&annualNum=").concat(okrFeedParams && okrFeedParams.annualNum, "&commentCount=").concat(commentCount));
|
|
86
|
-
(0, _requestV.taker)(url,
|
|
86
|
+
(0, _requestV.taker)(url, "GET").then(function (res) {
|
|
87
87
|
if (res.Code === 1) {
|
|
88
88
|
var data = res.Data && (res.Data.feedComments || res.Data);
|
|
89
89
|
|
|
90
90
|
_this.setState({
|
|
91
91
|
communicationTrackList: data.comments ? data.comments : [],
|
|
92
92
|
communicationTrackTotal: data.total,
|
|
93
|
-
okrCommentFeedId: commentType == 2 ? res.Data.feedId :
|
|
93
|
+
okrCommentFeedId: commentType == 2 ? res.Data.feedId : ""
|
|
94
94
|
});
|
|
95
95
|
} else {
|
|
96
96
|
_this.setState({
|
|
@@ -130,15 +130,15 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
130
130
|
|
|
131
131
|
var communicationTrackList = _toConsumableArray(_this.state.communicationTrackList);
|
|
132
132
|
|
|
133
|
-
if (actionType ===
|
|
133
|
+
if (actionType === "delete") {
|
|
134
134
|
// 删除
|
|
135
135
|
var url = (0, _requestV.getApiUrl2)("comment/Delete?comment_id=".concat(communicationTrackList[index].commentId, "&feed_id=").concat(feedId || _this.state.okrCommentFeedId));
|
|
136
|
-
(0, _requestV.taker)(url,
|
|
136
|
+
(0, _requestV.taker)(url, "DELETE").then(function (res) {
|
|
137
137
|
if (res.Code === 1) {
|
|
138
138
|
isShowAllCommunicationRecord ? _this.getFeedInfo(feedId, communicationTrackTotal - 1) : _this.getFeedInfo(feedId, commentCount);
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
} else if (actionType ===
|
|
141
|
+
} else if (actionType === "reply") {
|
|
142
142
|
// 沟通里的回复
|
|
143
143
|
if (_this.props.useCustomMblog && _this.props.onComment) {
|
|
144
144
|
_this.props.onComment({
|
|
@@ -163,7 +163,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
163
163
|
replyUserId: communicationTrackList[index].publishUser.userId,
|
|
164
164
|
replyUserCommentId: communicationTrackList[index].commentId
|
|
165
165
|
});
|
|
166
|
-
} else if (actionType ===
|
|
166
|
+
} else if (actionType === "praise") {
|
|
167
167
|
// 沟通里的点赞
|
|
168
168
|
var isPraise = communicationTrackList[index].isPraise;
|
|
169
169
|
isPraise = !isPraise;
|
|
@@ -174,7 +174,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
174
174
|
|
|
175
175
|
var _url = isPraise ? (0, _requestV.getApiUrl)("praise/add?objId=".concat(communicationTrackList[index].commentId, "&objType=19&praiseType=1")) : (0, _requestV.getApiUrl)("praise/cancel?objId=".concat(communicationTrackList[index].commentId, "&objType=19"));
|
|
176
176
|
|
|
177
|
-
(0, _requestV.taker)(_url,
|
|
177
|
+
(0, _requestV.taker)(_url, "POST").then(function (res) {
|
|
178
178
|
if (res.Code === 1) {
|
|
179
179
|
var praiseTotal = communicationTrackList[index].praiseTotal;
|
|
180
180
|
communicationTrackList[index].isPraise = isPraise;
|
|
@@ -190,7 +190,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
|
-
} else if (actionType ===
|
|
193
|
+
} else if (actionType === "showPraiseRecord") {
|
|
194
194
|
// 显示点赞记录
|
|
195
195
|
_this.setState({
|
|
196
196
|
isShowPraiseRecordPop: true,
|
|
@@ -225,7 +225,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
225
225
|
communicationTrackTotal = _this$state3.communicationTrackTotal,
|
|
226
226
|
isShowAllCommunicationRecord = _this$state3.isShowAllCommunicationRecord;
|
|
227
227
|
|
|
228
|
-
if (submitType ===
|
|
228
|
+
if (submitType === "submit") {
|
|
229
229
|
// 发送
|
|
230
230
|
sentData.FeedId = feedId;
|
|
231
231
|
sentData.CommentId = 0;
|
|
@@ -240,8 +240,8 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
240
240
|
submitStatus: 2
|
|
241
241
|
});
|
|
242
242
|
|
|
243
|
-
var url = commentType == 1 ? (0, _requestV.getApiUrl2)(
|
|
244
|
-
(0, _requestV.taker)(url,
|
|
243
|
+
var url = commentType == 1 ? (0, _requestV.getApiUrl2)("comment/Add") : (0, _requestV.getApiUrl)("okr/cycle/addComment?objId=".concat(okrFeedParams && okrFeedParams.objId, "&objType=").concat(okrFeedParams && okrFeedParams.objType, "&cycleType=").concat(okrFeedParams && okrFeedParams.cycleType, "&yqmNum=").concat(okrFeedParams && okrFeedParams.yqmNum, "&annualNum=").concat(okrFeedParams && okrFeedParams.annualNum));
|
|
244
|
+
(0, _requestV.taker)(url, "POST", sentData).then(function (res) {
|
|
245
245
|
if (res.Code === 1) {
|
|
246
246
|
isShowAllCommunicationRecord ? _this.getFeedInfo(feedId, communicationTrackTotal + 1) : _this.getFeedInfo(feedId, commentCount);
|
|
247
247
|
|
|
@@ -277,17 +277,17 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
277
277
|
isShowAllCommunicationRecord: false,
|
|
278
278
|
// 是否显示所有记录
|
|
279
279
|
// 回复
|
|
280
|
-
replyUser:
|
|
281
|
-
replyUserId:
|
|
282
|
-
replyUserCommentId:
|
|
280
|
+
replyUser: "",
|
|
281
|
+
replyUserId: "",
|
|
282
|
+
replyUserCommentId: "0",
|
|
283
283
|
isShowReplyToUser: false,
|
|
284
284
|
// 是否显示回复谁
|
|
285
285
|
submitStatus: 0,
|
|
286
286
|
praiseStatus: 0,
|
|
287
287
|
// 点赞记录
|
|
288
|
-
praiseObjId:
|
|
288
|
+
praiseObjId: "",
|
|
289
289
|
isShowPraiseRecordPop: false,
|
|
290
|
-
okrCommentFeedId:
|
|
290
|
+
okrCommentFeedId: ""
|
|
291
291
|
};
|
|
292
292
|
return _this;
|
|
293
293
|
}
|
|
@@ -347,16 +347,18 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
347
347
|
showAtAll = _this$props8.showAtAll,
|
|
348
348
|
useCustomMblog = _this$props8.useCustomMblog,
|
|
349
349
|
_this$props8$submitTe = _this$props8.submitText,
|
|
350
|
-
submitText = _this$props8$submitTe === void 0 ?
|
|
350
|
+
submitText = _this$props8$submitTe === void 0 ? "回复" : _this$props8$submitTe,
|
|
351
|
+
_this$props8$highLigh = _this$props8.highLightKeyWord,
|
|
352
|
+
highLightKeyWord = _this$props8$highLigh === void 0 ? '' : _this$props8$highLigh;
|
|
351
353
|
return /*#__PURE__*/_react["default"].createElement(_style.CommunicationWrapper, {
|
|
352
354
|
className: "communcation-wrapper ".concat(className)
|
|
353
355
|
}, /*#__PURE__*/_react["default"].createElement("div", null, communicationTrackTotal > 0 && /*#__PURE__*/_react["default"].createElement(_style.CommunicationRecordTotal, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
354
|
-
className: prefix +
|
|
356
|
+
className: prefix + "__communication-total",
|
|
355
357
|
onMouseDown: function onMouseDown() {
|
|
356
358
|
return _this2.handlerSwitchShowRecord();
|
|
357
359
|
}
|
|
358
360
|
}, "\u5168\u90E8\u6C9F\u901A\xA0", /*#__PURE__*/_react["default"].createElement("span", null, communicationTrackTotal), /*#__PURE__*/_react["default"].createElement("i", {
|
|
359
|
-
className: (0, _classnames["default"])(prefix +
|
|
361
|
+
className: (0, _classnames["default"])(prefix + "__communication-total-icon", {
|
|
360
362
|
"tu-icon-APP-xi": isShowAllCommunicationRecord,
|
|
361
363
|
"tu-icon-arrow-down1": !isShowAllCommunicationRecord
|
|
362
364
|
})
|
|
@@ -365,6 +367,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
365
367
|
}, communicationTrackList.length > 0 && communicationTrackList.map(function (item, index) {
|
|
366
368
|
return /*#__PURE__*/_react["default"].createElement(_CommunicationRecord["default"], {
|
|
367
369
|
communicationTrack: item,
|
|
370
|
+
highLightKeyWord: highLightKeyWord,
|
|
368
371
|
index: index,
|
|
369
372
|
key: item.commentId,
|
|
370
373
|
praiseStatus: _this2.state.praiseStatus,
|
|
@@ -376,12 +379,12 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
376
379
|
}))), !useCustomMblog && /*#__PURE__*/_react["default"].createElement("div", {
|
|
377
380
|
className: "communication__reply__cintainer"
|
|
378
381
|
}, /*#__PURE__*/_react["default"].createElement(_style.ReplyToUser, {
|
|
379
|
-
height: isShowReplyToUser ?
|
|
380
|
-
padding: isShowReplyToUser ?
|
|
382
|
+
height: isShowReplyToUser ? "auto" : "0",
|
|
383
|
+
padding: isShowReplyToUser ? "3px 0" : "0"
|
|
381
384
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
382
385
|
style: {
|
|
383
|
-
position:
|
|
384
|
-
top:
|
|
386
|
+
position: "relative",
|
|
387
|
+
top: "2px"
|
|
385
388
|
}
|
|
386
389
|
}, "\u56DE\u590D"), /*#__PURE__*/_react["default"].createElement(_style.ReplyUser, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
387
390
|
className: "name"
|
|
@@ -413,7 +416,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
413
416
|
onSubmit: function onSubmit() {
|
|
414
417
|
return _this2.setState({
|
|
415
418
|
isShowPraiseRecordPop: false,
|
|
416
|
-
praiseObjId:
|
|
419
|
+
praiseObjId: ""
|
|
417
420
|
});
|
|
418
421
|
}
|
|
419
422
|
}));
|
|
@@ -21,7 +21,8 @@ require("./index.css");
|
|
|
21
21
|
|
|
22
22
|
var _iconItem = _interopRequireDefault(require("./icon-item"));
|
|
23
23
|
|
|
24
|
-
var _excluded = ["
|
|
24
|
+
var _excluded = ["name", "multi", "children", "onClick", "className"],
|
|
25
|
+
_excluded2 = ["trigger", "triggerIcon", "destroyPopupOnHide", "popupPlacement", "hideOnChange", "onChange", "canEdit"];
|
|
25
26
|
|
|
26
27
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
28
|
|
|
@@ -29,18 +30,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
29
30
|
|
|
30
31
|
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; }
|
|
31
32
|
|
|
32
|
-
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); }
|
|
33
|
-
|
|
34
|
-
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; }
|
|
35
|
-
|
|
36
|
-
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; }
|
|
37
|
-
|
|
38
33
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
39
34
|
|
|
40
35
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
41
36
|
|
|
42
37
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
43
38
|
|
|
39
|
+
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); }
|
|
40
|
+
|
|
44
41
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
45
42
|
|
|
46
43
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -53,6 +50,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
53
50
|
|
|
54
51
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
55
52
|
|
|
53
|
+
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
|
+
|
|
55
|
+
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; }
|
|
56
|
+
|
|
56
57
|
var preCls = 'titaui-dropdown-layer';
|
|
57
58
|
var IconItem = _iconItem["default"];
|
|
58
59
|
exports.IconItem = IconItem;
|
|
@@ -61,7 +62,9 @@ var Item = function Item(props) {
|
|
|
61
62
|
var name = props.name,
|
|
62
63
|
multi = props.multi,
|
|
63
64
|
children = props.children,
|
|
64
|
-
onClick = props.onClick
|
|
65
|
+
onClick = props.onClick,
|
|
66
|
+
className = props.className,
|
|
67
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
65
68
|
|
|
66
69
|
var _useState = (0, _react.useState)(props.checked),
|
|
67
70
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -77,11 +80,11 @@ var Item = function Item(props) {
|
|
|
77
80
|
onClick && onClick(name, !checked);
|
|
78
81
|
};
|
|
79
82
|
|
|
80
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
83
|
+
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
81
84
|
key: name,
|
|
82
|
-
className: (0, _classnames["default"])("".concat(preCls, "__operation-item")),
|
|
85
|
+
className: (0, _classnames["default"])("".concat(preCls, "__operation-item"), className),
|
|
83
86
|
onClick: onClickHandler
|
|
84
|
-
}, multi && /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
|
|
87
|
+
}, restProps), multi && /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
|
|
85
88
|
checked: checked
|
|
86
89
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
90
|
className: (0, _classnames["default"])("".concat(preCls, "__operation-item-text"))
|
|
@@ -137,7 +140,7 @@ var _default = function _default(props) {
|
|
|
137
140
|
onChange = props.onChange,
|
|
138
141
|
_props$canEdit = props.canEdit,
|
|
139
142
|
canEdit = _props$canEdit === void 0 ? true : _props$canEdit,
|
|
140
|
-
restProps = _objectWithoutProperties(props,
|
|
143
|
+
restProps = _objectWithoutProperties(props, _excluded2);
|
|
141
144
|
|
|
142
145
|
var _useState3 = (0, _react.useState)(false),
|
|
143
146
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var ConditionRender = function ConditionRender(_ref) {
|
|
9
|
+
var condition = _ref.condition,
|
|
10
|
+
children = _ref.children;
|
|
11
|
+
|
|
12
|
+
if (!condition) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return children;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
var _default = ConditionRender;
|
|
20
|
+
exports["default"] = _default;
|
|
@@ -156,7 +156,8 @@ var DynamicSearchInput = function DynamicSearchInput(_ref) {
|
|
|
156
156
|
className: prefix + "__input",
|
|
157
157
|
value: searchInputValue,
|
|
158
158
|
onChange: handleInputChange,
|
|
159
|
-
onKeyUp: handleKeyUp
|
|
159
|
+
onKeyUp: handleKeyUp,
|
|
160
|
+
placeholder: searchDynamicType === 'dynamic' ? '按关键词搜索' : '按姓名搜索'
|
|
160
161
|
}), isMouseEnter && searchInputValue && /*#__PURE__*/_react["default"].createElement("i", {
|
|
161
162
|
onClick: handleClearSearchValue,
|
|
162
163
|
className: (0, _classnames["default"])("tu-icon-circle", prefix + "__input-clear")
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.titaui-dynamic-obj-status {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
width: 18px;
|
|
4
|
+
height: 18px;
|
|
5
|
+
min-width: 18px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.titaui-dynamic-obj-status--delay {
|
|
9
|
+
background: url("../../img/dynamic-delay.svg");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.titaui-dynamic-obj-status--normal {
|
|
13
|
+
background: url("../../img/dynamic-normal.svg");
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.titaui-dynamic-obj-status--risk {
|
|
17
|
+
background: url("../../img/dynamic-risk.svg");
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.titaui-dynamic-obj-status--end {
|
|
21
|
+
background: url("../../img/dynamic-end.svg");
|
|
22
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _util = require("../../util");
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var prefix = "titaui-dynamic-obj-status";
|
|
19
|
+
var StateIconMapping = {
|
|
20
|
+
delay: "".concat(prefix, "--delay"),
|
|
21
|
+
normal: "".concat(prefix, "--normal"),
|
|
22
|
+
risk: "".concat(prefix, "--risk"),
|
|
23
|
+
end: "".concat(prefix, "--end")
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var DynamicObjStatus = function DynamicObjStatus(_ref) {
|
|
27
|
+
var _ref$oStatus = _ref.oStatus,
|
|
28
|
+
oStatus = _ref$oStatus === void 0 ? 1 : _ref$oStatus,
|
|
29
|
+
_ref$riskLevel = _ref.riskLevel,
|
|
30
|
+
riskLevel = _ref$riskLevel === void 0 ? 1 : _ref$riskLevel,
|
|
31
|
+
extraClass = _ref.extraClass;
|
|
32
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
33
|
+
className: (0, _classnames["default"])(extraClass, prefix, StateIconMapping[(0, _util.getProgressState)(oStatus, riskLevel)])
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var _default = DynamicObjStatus;
|
|
38
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.titaui-dynamic-percent {
|
|
2
|
+
font-size: 16px;
|
|
3
|
+
font-weight: 600;
|
|
4
|
+
color: #3f4755;
|
|
5
|
+
line-height: 24px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.titaui-dynamic-percent__grow {
|
|
9
|
+
font-size: 12px;
|
|
10
|
+
font-weight: 600;
|
|
11
|
+
line-height: 20px;
|
|
12
|
+
margin-left: 4px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.titaui-dynamic-percent__grow--increase {
|
|
16
|
+
color: #5ad8a6;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.titaui-dynamic-percent__grow--decrease {
|
|
20
|
+
color: #f05e5e;
|
|
21
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
require("./index.css");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
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; }
|
|
17
|
+
|
|
18
|
+
var prefix = "titaui-dynamic-percent";
|
|
19
|
+
|
|
20
|
+
var DynamicPercent = function DynamicPercent(_ref) {
|
|
21
|
+
var _classNames;
|
|
22
|
+
|
|
23
|
+
var _ref$percent = _ref.percent,
|
|
24
|
+
percent = _ref$percent === void 0 ? 0 : _ref$percent,
|
|
25
|
+
_ref$growPercent = _ref.growPercent,
|
|
26
|
+
growPercent = _ref$growPercent === void 0 ? 0 : _ref$growPercent,
|
|
27
|
+
extraClass = _ref.extraClass;
|
|
28
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
29
|
+
className: (0, _classnames["default"])(extraClass, prefix)
|
|
30
|
+
}, percent, "%", growPercent !== 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
31
|
+
className: (0, _classnames["default"])(prefix + "__grow", (_classNames = {}, _defineProperty(_classNames, prefix + "__grow--increase", growPercent > 0), _defineProperty(_classNames, prefix + "__grow--decrease", growPercent < 0), _classNames))
|
|
32
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
33
|
+
className: growPercent > 0 ? "tu-icon-simple-sort-up" : "tu-icon-simple-sort-down"
|
|
34
|
+
}), Math.abs(growPercent), "%"));
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var _default = DynamicPercent;
|
|
38
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.titaui-dynamic-title {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.titaui-dynamic-title__content {
|
|
7
|
+
display: flex;
|
|
8
|
+
height: 36px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
background: #f6f7f9;
|
|
12
|
+
border-radius: 18px 18px 18px 1px;
|
|
13
|
+
word-break: keep-all;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
padding: 7px 12px;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
line-height: 22px;
|
|
18
|
+
color: #3f4755;
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.titaui-dynamic-title__content-symbol {
|
|
23
|
+
color: #2879ff;
|
|
24
|
+
margin-right: 4px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.titaui-dynamic-title__content-text {
|
|
28
|
+
flex: 1;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-dynamic-title__content-text:hover {
|
|
34
|
+
color: #2879ff !important;
|
|
35
|
+
}
|
package/lib/components/dynamic/{dynamic-item/components/publish-content → components/title}/index.js
RENAMED
|
@@ -9,17 +9,11 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _tooltip = require("../../../tooltip");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
15
15
|
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var _fileList = _interopRequireDefault(require("../../../../file-list"));
|
|
19
|
-
|
|
20
|
-
var _context = require("../../../context");
|
|
21
|
-
|
|
22
|
-
var _searchKeyHandle = _interopRequireDefault(require("../../../../search-key-handle"));
|
|
16
|
+
var _context = require("../../context");
|
|
23
17
|
|
|
24
18
|
require("./index.css");
|
|
25
19
|
|
|
@@ -29,35 +23,37 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
29
23
|
|
|
30
24
|
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; }
|
|
31
25
|
|
|
32
|
-
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
var prefix = "titaui-dynamic-publish-content";
|
|
26
|
+
var prefix = "titaui-dynamic-title";
|
|
35
27
|
|
|
36
|
-
var
|
|
37
|
-
var
|
|
28
|
+
var DynamicTitle = function DynamicTitle(_ref) {
|
|
29
|
+
var content = _ref.content,
|
|
30
|
+
onClickTitle = _ref.onClickTitle,
|
|
31
|
+
suffixContent = _ref.suffixContent;
|
|
38
32
|
|
|
39
33
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
40
34
|
searchKeyWord = _useContext.searchKeyWord;
|
|
41
35
|
|
|
36
|
+
var onTitleClick = function onTitleClick() {
|
|
37
|
+
onClickTitle && onClickTitle();
|
|
38
|
+
};
|
|
39
|
+
|
|
42
40
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
43
41
|
className: prefix
|
|
44
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
45
|
-
className: prefix
|
|
46
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
47
|
-
className:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
data: data.attachments
|
|
59
|
-
})));
|
|
42
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
43
|
+
className: "".concat(prefix, "__content")
|
|
44
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
45
|
+
className: "".concat(prefix, "__content-symbol")
|
|
46
|
+
}, "#"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
47
|
+
className: "".concat(prefix, "__content-text"),
|
|
48
|
+
onClick: onTitleClick
|
|
49
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
50
|
+
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
51
|
+
str: content,
|
|
52
|
+
keyWord: searchKeyWord
|
|
53
|
+
}),
|
|
54
|
+
isPercent: true
|
|
55
|
+
})), suffixContent));
|
|
60
56
|
};
|
|
61
57
|
|
|
62
|
-
var _default =
|
|
58
|
+
var _default = DynamicTitle;
|
|
63
59
|
exports["default"] = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.EStatusStatus2ClassType = exports.ObjTypeMapText = exports.EObjType = exports.EFeedType = exports.OkrRiskMapping = void 0;
|
|
6
|
+
exports.EStatusStatus2ClassType = exports.ObjectType = exports.ObjTypeMapText = exports.EObjType = exports.EFeedType = exports.OkrRiskMapping = void 0;
|
|
7
7
|
|
|
8
8
|
var _ObjTypeMapText;
|
|
9
9
|
|
|
@@ -36,7 +36,7 @@ exports.EFeedType = EFeedType;
|
|
|
36
36
|
EFeedType[EFeedType["Report"] = 5] = "Report";
|
|
37
37
|
EFeedType[EFeedType["Assessment"] = 7] = "Assessment";
|
|
38
38
|
EFeedType[EFeedType["Project"] = 10] = "Project";
|
|
39
|
-
EFeedType[EFeedType["
|
|
39
|
+
EFeedType[EFeedType["Reward"] = 11] = "Reward";
|
|
40
40
|
EFeedType[EFeedType["WorkHour"] = 13] = "WorkHour";
|
|
41
41
|
EFeedType[EFeedType["Bless"] = 14] = "Bless";
|
|
42
42
|
EFeedType[EFeedType["Kr"] = 15] = "Kr";
|
|
@@ -66,6 +66,23 @@ exports.EObjType = EObjType;
|
|
|
66
66
|
|
|
67
67
|
var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project, '项目'), _defineProperty(_ObjTypeMapText, EObjType.Task, '任务'), _defineProperty(_ObjTypeMapText, EObjType.O, '目标'), _defineProperty(_ObjTypeMapText, EObjType.Kr, '关键成果'), _ObjTypeMapText);
|
|
68
68
|
exports.ObjTypeMapText = ObjTypeMapText;
|
|
69
|
+
var ObjectType = {
|
|
70
|
+
2: '租户',
|
|
71
|
+
3: '团队',
|
|
72
|
+
4: '项目',
|
|
73
|
+
5: '绩效考核表',
|
|
74
|
+
6: '绩效目标',
|
|
75
|
+
7: '任务',
|
|
76
|
+
8: '日报(总结)',
|
|
77
|
+
10: 'Feed',
|
|
78
|
+
11: '计划',
|
|
79
|
+
12: '计划表的操作记录',
|
|
80
|
+
62: '目标',
|
|
81
|
+
79: '关键成果进展',
|
|
82
|
+
80: '公告',
|
|
83
|
+
42: '打赏'
|
|
84
|
+
};
|
|
85
|
+
exports.ObjectType = ObjectType;
|
|
69
86
|
var EStatusStatus2ClassType = {
|
|
70
87
|
2: 'tu-icon-finished',
|
|
71
88
|
1: 'tu-icon-running',
|