@titaui/pc 1.12.7-beta.2 → 1.12.7-beta.20
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/attachments-preview/index.js +4 -4
- package/lib/components/avatar/icon-avatar/index.js +1 -1
- package/lib/components/avatar/num-avatar/index.js +1 -1
- package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
- package/lib/components/button/default-button/index.js +1 -1
- package/lib/components/button/icon-btn/index.js +1 -1
- package/lib/components/cascader/index.js +1 -1
- package/lib/components/cascader/time.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +2 -2
- package/lib/components/change-okr-modal/Item.js +2 -2
- package/lib/components/change-okr-modal/filterTab.js +2 -2
- package/lib/components/change-okr-modal/index.js +2 -2
- package/lib/components/color-date-picker/index.js +4 -4
- package/lib/components/communication/CommunicationAttachments.js +2 -2
- package/lib/components/communication/ConvertUserName.js +2 -2
- package/lib/components/communication/index.js +2 -2
- package/lib/components/create-okr-modal/objectType.js +2 -2
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarBody.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/date-range-picker/index.js +2 -2
- package/lib/components/delete-confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +1 -0
- package/lib/components/dialog-confirm/index.js +6 -4
- package/lib/components/dialog-upload/uploaded-preview.js +4 -4
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +1 -1
- package/lib/components/drawer-manager/index.js +1 -1
- package/lib/components/drop-selector/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.js +12 -8
- package/lib/components/dynamic/dynamic-item/components/okr-progress/constant.js +31 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +90 -57
- package/lib/components/dynamic/dynamic-item/components/summary-header/constant.js +45 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +30 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +90 -101
- package/lib/components/dynamic/dynamic-item/components/summary-header/operate-record.js +49 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +116 -34
- package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +20 -3
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +4 -3
- package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +8 -5
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +14 -6
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/constant.js +45 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +87 -23
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/util.js +30 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -3
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.css +1 -0
- package/lib/components/dynamic/dynamic-item/index.js +5 -3
- package/lib/components/eReport/eReportListEmpty.js +2 -2
- package/lib/components/eReport/eReportLists/reportList.js +2 -2
- package/lib/components/eReport/eReportShare/index.js +2 -2
- package/lib/components/eReport/eReportShare/toast/index.js +2 -2
- package/lib/components/edit-kr-wight/EditKrWightModal.js +2 -2
- package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
- package/lib/components/emotions-selector/selector-content.js +2 -2
- package/lib/components/emotions-selector/selector-pop.js +2 -2
- package/lib/components/ereport-list/index.js +2 -2
- package/lib/components/error-boundary/index.js +2 -2
- package/lib/components/form/form-fields/date/index.js +1 -1
- package/lib/components/form/form-fields/dropdown/index.js +1 -1
- package/lib/components/form/form-fields/input/index.js +1 -1
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/import-modal/import-okr-modal/index.js +4 -1
- package/lib/components/import-modal/import-task-modal/index.js +3 -2
- package/lib/components/import-modal/tree-node/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +2 -2
- package/lib/components/mblog/components/MblogAction.js +2 -2
- package/lib/components/mblog/components/MblogContent.js +2 -2
- package/lib/components/mblog/index.js +2 -2
- package/lib/components/menus/components/menu-tree/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +7 -3
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +7 -3
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +59 -29
- package/lib/components/menus/export-modules/summary-menus/menus.js +42 -51
- package/lib/components/menus/export-modules/summary-menus/request-api.js +17 -0
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +50 -7
- package/lib/components/menus/request-apis.js +8 -2
- package/lib/components/new-confidence/index.js +5 -5
- package/lib/components/okr-detail/auth.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
- package/lib/components/okr-detail/components/header/o-score.js +1 -1
- package/lib/components/okr-detail/components/icon-text/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +2 -2
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
- package/lib/components/okr-review/ReviewPop/index.js +2 -2
- package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/okr-review/index.js +2 -2
- package/lib/components/operation-records/OperationRecordItem.js +2 -2
- package/lib/components/operation-records/index.js +2 -2
- package/lib/components/pagination/pagination.js +1 -1
- package/lib/components/period-selector/components/button/index.js +1 -1
- package/lib/components/picker/components/panels/date-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
- package/lib/components/picker/components/panels/week-panel/index.js +1 -1
- package/lib/components/picker/components/panels/week-panel/utils.js +81 -2
- package/lib/components/picker/components/panels/week-panel/week-body.js +29 -31
- package/lib/components/picker/components/panels/year-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
- package/lib/components/picker/components/picker-trigger/index.js +2 -47
- package/lib/components/picker/picker.js +1 -1
- package/lib/components/point-demo/drop-down-box/index.js +1 -1
- package/lib/components/point-demo/input/index.js +3 -3
- package/lib/components/point-demo/popup/index.js +1 -1
- package/lib/components/popup/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +2 -2
- package/lib/components/praise-record/index.js +2 -2
- package/lib/components/promise-confirm/index.css +0 -0
- package/lib/components/promise-confirm/index.js +117 -0
- package/lib/components/promise-confirm/interface.js +5 -0
- package/lib/components/range-picker-pop/index.js +3 -3
- package/lib/components/range-selector-pop/RangeList.js +2 -2
- package/lib/components/range-selector-pop/RangeSelectorPop.js +2 -2
- package/lib/components/rate/index.css +111 -0
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rich-editor/models/schema.js +2 -2
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/heading/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/lists/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +2 -2
- package/lib/components/rich-editor/plugins/core/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/color/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/em/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/link/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/strong/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +2 -2
- package/lib/components/rich-editor/react/reactNodeView.js +4 -4
- package/lib/components/rich-editor/react/uiProvider.js +2 -2
- package/lib/components/rich-editor/schemas/list.js +0 -1
- package/lib/components/rich-editor/ui/Popup/index.js +2 -2
- package/lib/components/rich-editor-at/index.js +9 -4
- package/lib/components/rich-editor-upload/index.js +3 -0
- package/lib/components/scroll-container/index.js +2 -2
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/scrollbar/simplebar-react.js +1 -1
- package/lib/components/search-dropdown/index.js +1 -1
- package/lib/components/select/Option.js +3 -3
- package/lib/components/select/index.js +3 -3
- package/lib/components/select-layer/index.js +1 -1
- package/lib/components/select-tags/index.js +8 -2
- package/lib/components/switch/index.js +1 -1
- package/lib/components/table/index.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation-modal/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/index.js +1 -1
- package/lib/components/task-relation-modal/work-relation/index.js +1 -1
- package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
- package/lib/components/task-tree/task-tree.js +1 -1
- package/lib/components/textarea/index.js +1 -1
- package/lib/components/time-picker/time-picker-selector.js +1 -1
- package/lib/components/time-picker/time-picker.js +1 -1
- package/lib/components/time-picker/timer-picker-input.js +1 -1
- package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
- package/lib/components/tita-chart/charts/pie.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +2 -2
- package/lib/components/tooltip/error-tip.js +1 -1
- package/lib/components/tooltip/tooltip.js +1 -1
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +2 -2
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upvote/index.js +1 -1
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
- package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
- package/lib/components/viewer/ImageListRender.js +2 -2
- package/lib/components/viewer/index.js +2 -2
- package/lib/components/write-summary-modal/index.css +79 -0
- package/lib/components/write-summary-modal/index.js +151 -0
- package/lib/components/write-summary-modal/interface.js +19 -0
- package/lib/components/write-summary-modal/request-api.js +18 -0
- package/lib/components/write-summary-modal/utils.js +31 -0
- package/lib/components-v1/animate/AnimateChild.js +2 -2
- package/lib/components-v1/animate/animate.js +2 -2
- package/lib/components-v1/avatar/index.js +2 -2
- package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
- package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
- package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
- package/lib/components-v1/confirm/index.js +2 -2
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +2 -2
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
- package/lib/components-v1/input/Input.js +3 -3
- package/lib/components-v1/input/InputNumber.js +2 -2
- package/lib/components-v1/placement/placement.js +2 -2
- package/lib/components-v1/placement/placementInner.js +2 -2
- package/lib/components-v1/pop/Pop.js +2 -2
- package/lib/components-v1/pop/PopInner.js +2 -2
- package/lib/components-v1/portals/Portals.js +2 -2
- package/lib/components-v1/progress/CircleProgress.js +2 -2
- package/lib/components-v1/progress/LineProgress.js +2 -2
- package/lib/components-v1/progress/index.js +2 -2
- package/lib/components-v1/radio/radio.js +2 -2
- package/lib/components-v1/radio/radioGroup.js +2 -2
- package/lib/components-v1/search/index.js +2 -2
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/select/index.js +3 -3
- package/lib/components-v1/tabs/index.js +2 -2
- package/lib/components-v1/textarea/index.js +2 -2
- package/lib/components-v1/transition/index.js +2 -2
- package/lib/components-v1/userSelector/UserSelectorPop.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/index.js +2 -2
- package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
- package/lib/components-v1/userSelector/components/SingleMode.js +2 -2
- package/lib/components-v1/userSelector/components/UserItem.js +2 -2
- package/lib/components-v1/userSelector/index.js +2 -2
- package/lib/index.js +16 -0
- package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +3 -3
- package/lib/pages/appointment-demo/popup/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +3 -3
- package/lib/pages/group-management/components/radio/index.js +1 -1
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
- package/lib/pages/group-management/tree/index.js +1 -1
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +1 -1
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/share-dialog/index.js +1 -1
- package/lib/utils/auth.js +2 -2
- package/lib/utils/constant.js +8 -2
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
37
37
|
|
|
38
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
39
|
|
|
40
|
-
function _extends() { _extends = Object.assign
|
|
40
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
41
41
|
|
|
42
42
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
43
43
|
|
|
@@ -43,13 +43,13 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
43
43
|
|
|
44
44
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
45
|
|
|
46
|
-
var precls =
|
|
46
|
+
var precls = "remind-dialog";
|
|
47
47
|
|
|
48
48
|
var RemindDialog = function RemindDialog(props) {
|
|
49
49
|
var visible = props.visible,
|
|
50
50
|
closeDialog = props.closeDialog;
|
|
51
51
|
|
|
52
|
-
var _useState = (0, _react.useState)(
|
|
52
|
+
var _useState = (0, _react.useState)(""),
|
|
53
53
|
_useState2 = _slicedToArray(_useState, 2),
|
|
54
54
|
comments = _useState2[0],
|
|
55
55
|
setComments = _useState2[1];
|
|
@@ -59,7 +59,7 @@ var RemindDialog = function RemindDialog(props) {
|
|
|
59
59
|
ratingScore = _useState4[0],
|
|
60
60
|
setRatingScore = _useState4[1];
|
|
61
61
|
|
|
62
|
-
var _useState5 = (0, _react.useState)(
|
|
62
|
+
var _useState5 = (0, _react.useState)(""),
|
|
63
63
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
64
64
|
encourageState = _useState6[0],
|
|
65
65
|
setEencourageState = _useState6[1];
|
|
@@ -72,10 +72,12 @@ var RemindDialog = function RemindDialog(props) {
|
|
|
72
72
|
|
|
73
73
|
var changeRate = function changeRate(v) {
|
|
74
74
|
setRatingScore(v);
|
|
75
|
+
setEencourageState("");
|
|
75
76
|
};
|
|
76
77
|
|
|
77
78
|
var changeEncourage = function changeEncourage(v) {
|
|
78
79
|
setEencourageState(v);
|
|
80
|
+
setRatingScore(0);
|
|
79
81
|
};
|
|
80
82
|
|
|
81
83
|
return /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
|
|
@@ -85,22 +87,24 @@ var RemindDialog = function RemindDialog(props) {
|
|
|
85
87
|
},
|
|
86
88
|
onCancel: closeDialog,
|
|
87
89
|
onOk: closeDialog,
|
|
88
|
-
|
|
90
|
+
noFooterLine: true,
|
|
91
|
+
noHeadLine: true,
|
|
92
|
+
title: (0, _getLocale.getLocale)("Rep_NewS_Evaluation"),
|
|
89
93
|
onClose: closeDialog
|
|
90
94
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
95
|
className: "".concat(precls, "-content")
|
|
92
96
|
}, /*#__PURE__*/_react["default"].createElement(_form["default"], null, /*#__PURE__*/_react["default"].createElement(_regulationSettingItem["default"], {
|
|
93
|
-
label: (0, _getLocale.getLocale)(
|
|
97
|
+
label: (0, _getLocale.getLocale)("Rep_NewS_OverallRating")
|
|
94
98
|
}, /*#__PURE__*/_react["default"].createElement(_rate["default"], {
|
|
95
99
|
ratingScore: ratingScore,
|
|
96
100
|
changeRate: changeRate
|
|
97
101
|
})), /*#__PURE__*/_react["default"].createElement(_regulationSettingItem["default"], {
|
|
98
|
-
label: (0, _getLocale.getLocale)(
|
|
102
|
+
label: (0, _getLocale.getLocale)("Rep_NewS_MedalEncour")
|
|
99
103
|
}, /*#__PURE__*/_react["default"].createElement(_encourage["default"], {
|
|
100
104
|
encourageState: encourageState,
|
|
101
105
|
changeEncourage: changeEncourage
|
|
102
106
|
})), /*#__PURE__*/_react["default"].createElement(_regulationSettingItem["default"], {
|
|
103
|
-
label: (0, _getLocale.getLocale)(
|
|
107
|
+
label: (0, _getLocale.getLocale)("Per_Ass_New_Appr_detail_Com")
|
|
104
108
|
}, /*#__PURE__*/_react["default"].createElement(_textarea["default"], {
|
|
105
109
|
maxLine: 4,
|
|
106
110
|
line: 4,
|
|
@@ -109,7 +113,7 @@ var RemindDialog = function RemindDialog(props) {
|
|
|
109
113
|
return _onChange(e.target.value);
|
|
110
114
|
},
|
|
111
115
|
wrapperClass: "textarea",
|
|
112
|
-
placeholder: (0, _getLocale.getLocale)(
|
|
116
|
+
placeholder: (0, _getLocale.getLocale)("Rep_NewS_PleaEnteCom"),
|
|
113
117
|
inputRef: inputRef
|
|
114
118
|
})))));
|
|
115
119
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.OkrType = exports.OkrRiskMapping = void 0;
|
|
7
|
+
var OkrType;
|
|
8
|
+
exports.OkrType = OkrType;
|
|
9
|
+
|
|
10
|
+
(function (OkrType) {
|
|
11
|
+
OkrType[OkrType["OType"] = 62] = "OType";
|
|
12
|
+
OkrType[OkrType["KRType"] = 65] = "KRType";
|
|
13
|
+
})(OkrType || (exports.OkrType = OkrType = {}));
|
|
14
|
+
|
|
15
|
+
var OkrRiskMapping = {
|
|
16
|
+
0: "normal",
|
|
17
|
+
// 正常推进
|
|
18
|
+
1: "normal",
|
|
19
|
+
// 正常推进
|
|
20
|
+
2: "risk",
|
|
21
|
+
// 注意风险
|
|
22
|
+
3: "delay",
|
|
23
|
+
// 已有风险
|
|
24
|
+
4: "end",
|
|
25
|
+
// kr及o全都完成
|
|
26
|
+
5: "delay",
|
|
27
|
+
// 延期完成
|
|
28
|
+
6: "normal" // 正常推进
|
|
29
|
+
|
|
30
|
+
};
|
|
31
|
+
exports.OkrRiskMapping = OkrRiskMapping;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
@@ -23,6 +21,8 @@ var _tableRowOkr = _interopRequireDefault(require("../table-row-okr"));
|
|
|
23
21
|
|
|
24
22
|
var _tableRowOProject = _interopRequireDefault(require("../table-row-o-project"));
|
|
25
23
|
|
|
24
|
+
var _constant = require("./constant");
|
|
25
|
+
|
|
26
26
|
require("./index.css");
|
|
27
27
|
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -31,21 +31,43 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
31
31
|
|
|
32
32
|
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; }
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
35
|
+
|
|
36
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
37
|
+
|
|
38
|
+
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."); }
|
|
39
|
+
|
|
40
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
41
|
+
|
|
42
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
43
|
+
|
|
44
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
45
|
+
|
|
46
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
|
+
|
|
48
|
+
var prefix = 'titaui-okr-progress';
|
|
49
|
+
var isImport = false;
|
|
35
50
|
|
|
36
51
|
var OkrProgress = function OkrProgress(_ref) {
|
|
37
|
-
var
|
|
38
|
-
|
|
52
|
+
var data = _ref.data,
|
|
53
|
+
_ref$type = _ref.type,
|
|
54
|
+
type = _ref$type === void 0 ? 'day' : _ref$type;
|
|
55
|
+
|
|
56
|
+
var _useState = (0, _react.useState)(),
|
|
57
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
58
|
+
rowsData = _useState2[0],
|
|
59
|
+
setRowsData = _useState2[1];
|
|
60
|
+
|
|
39
61
|
var renderTitle = (0, _react.useMemo)(function () {
|
|
40
|
-
if (type ===
|
|
41
|
-
return (0, _getLocale.getLocale)(
|
|
42
|
-
} else if (type ===
|
|
43
|
-
return (0, _getLocale.getLocale)(
|
|
44
|
-
} else if (type ===
|
|
45
|
-
return (0, _getLocale.getLocale)(
|
|
62
|
+
if (type === 'day') {
|
|
63
|
+
return (0, _getLocale.getLocale)('Rep_NewS_ToOKRpro');
|
|
64
|
+
} else if (type === 'week') {
|
|
65
|
+
return (0, _getLocale.getLocale)('Rep_NewS_ThisOKRprogr');
|
|
66
|
+
} else if (type === 'month') {
|
|
67
|
+
return (0, _getLocale.getLocale)('Rep_NewS_TmonOKRpro');
|
|
46
68
|
}
|
|
47
69
|
|
|
48
|
-
return
|
|
70
|
+
return '';
|
|
49
71
|
}, [type]);
|
|
50
72
|
var renderTable = (0, _react.useMemo)(function () {
|
|
51
73
|
return /*#__PURE__*/_react["default"].createElement("table", null, /*#__PURE__*/_react["default"].createElement("thead", null, /*#__PURE__*/_react["default"].createElement("tr", {
|
|
@@ -54,59 +76,70 @@ var OkrProgress = function OkrProgress(_ref) {
|
|
|
54
76
|
className: "".concat(prefix, "__table-title-okrs")
|
|
55
77
|
}, "OKRs"), /*#__PURE__*/_react["default"].createElement("td", {
|
|
56
78
|
className: "".concat(prefix, "__table-title-progress")
|
|
57
|
-
}, (0, _getLocale.getLocale)(
|
|
79
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Progresss1')), /*#__PURE__*/_react["default"].createElement("td", {
|
|
58
80
|
className: "".concat(prefix, "__table-title-confidence")
|
|
59
|
-
}, (0, _getLocale.getLocale)(
|
|
81
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_KRP_Confidence')), /*#__PURE__*/_react["default"].createElement("td", {
|
|
60
82
|
className: "".concat(prefix, "__table-title-progress-desc")
|
|
61
|
-
}, (0, _getLocale.getLocale)(
|
|
62
|
-
overlay: (0, _getLocale.getLocale)(
|
|
83
|
+
}, (0, _getLocale.getLocale)('Feed_Tab_Title_Progress'), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
84
|
+
overlay: (0, _getLocale.getLocale)('Rep_Tab_Mys_FillOKRsync'),
|
|
63
85
|
placement: "top",
|
|
64
86
|
align: {
|
|
65
87
|
offset: [0, 5]
|
|
66
88
|
}
|
|
67
89
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
68
90
|
className: "tu-icon-wiki ".concat(prefix, "__table-title-progress-desc-icon")
|
|
69
|
-
}))))), /*#__PURE__*/_react["default"].createElement("tbody", null,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
91
|
+
}))))), /*#__PURE__*/_react["default"].createElement("tbody", null, rowsData && rowsData.Rows.map(function (item) {
|
|
92
|
+
if (item.Type === _constant.OkrType.OType) {
|
|
93
|
+
return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_tableRowOkr["default"], {
|
|
94
|
+
text: "".concat(item.Name),
|
|
95
|
+
isO: true,
|
|
96
|
+
id: item.Id
|
|
97
|
+
})), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_progress["default"], {
|
|
98
|
+
type: "o",
|
|
99
|
+
status: _constant.OkrRiskMapping[item.Status],
|
|
100
|
+
value: item.Progress
|
|
101
|
+
})), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_newConfidence["default"], {
|
|
102
|
+
value: item.ConfidenceValue,
|
|
103
|
+
editable: false
|
|
104
|
+
})), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
|
|
105
|
+
value: item.LastContent,
|
|
106
|
+
date: item.LastContentTime,
|
|
107
|
+
id: item.Id
|
|
108
|
+
})));
|
|
109
|
+
} else if (item.Type === _constant.OkrType.KRType) {
|
|
110
|
+
return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_tableRowOkr["default"], {
|
|
111
|
+
text: "".concat(item.Name),
|
|
112
|
+
isO: false,
|
|
113
|
+
isFirstLevel: false,
|
|
114
|
+
id: item.Id
|
|
115
|
+
})), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_progress["default"], {
|
|
116
|
+
type: "kr",
|
|
117
|
+
status: _constant.OkrRiskMapping[item.Status],
|
|
118
|
+
value: item.Progress
|
|
119
|
+
})), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_newConfidence["default"], {
|
|
120
|
+
value: item.ConfidenceValue,
|
|
121
|
+
editable: false
|
|
122
|
+
})), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
|
|
123
|
+
value: item.LastContent,
|
|
124
|
+
date: item.LastContentTime,
|
|
125
|
+
id: item.Id
|
|
126
|
+
})));
|
|
127
|
+
} else if (isImport === false && item.Type === _constant.OkrType.KRType) {
|
|
128
|
+
return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", {
|
|
129
|
+
colSpan: 4
|
|
130
|
+
}, /*#__PURE__*/_react["default"].createElement(_tableRowOProject["default"], {
|
|
131
|
+
id: item.Id,
|
|
132
|
+
extraClass: "".concat(prefix, "__table-obj"),
|
|
133
|
+
text: item.Name
|
|
134
|
+
})));
|
|
135
|
+
}
|
|
136
|
+
})));
|
|
137
|
+
}, [rowsData]);
|
|
138
|
+
(0, _react.useEffect)(function () {
|
|
139
|
+
if (_typeof(data) !== 'object' && data !== '') {
|
|
140
|
+
setRowsData(JSON.parse(data));
|
|
141
|
+
}
|
|
142
|
+
}, [data]);
|
|
110
143
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
144
|
className: prefix
|
|
112
145
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Motion = exports.EEmotionType = void 0;
|
|
7
|
+
|
|
8
|
+
var _fighting = _interopRequireDefault(require("./img/fighting.png"));
|
|
9
|
+
|
|
10
|
+
var _happy = _interopRequireDefault(require("./img/happy.png"));
|
|
11
|
+
|
|
12
|
+
var _longStory = _interopRequireDefault(require("./img/long-story.png"));
|
|
13
|
+
|
|
14
|
+
var _pressure = _interopRequireDefault(require("./img/pressure.png"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var EEmotionType;
|
|
19
|
+
exports.EEmotionType = EEmotionType;
|
|
20
|
+
|
|
21
|
+
(function (EEmotionType) {
|
|
22
|
+
EEmotionType[EEmotionType["Unset"] = 0] = "Unset";
|
|
23
|
+
EEmotionType[EEmotionType["Happy"] = 1] = "Happy";
|
|
24
|
+
EEmotionType[EEmotionType["Fighting"] = 2] = "Fighting";
|
|
25
|
+
EEmotionType[EEmotionType["HardToPutWords"] = 3] = "HardToPutWords";
|
|
26
|
+
EEmotionType[EEmotionType["Stressful"] = 4] = "Stressful";
|
|
27
|
+
})(EEmotionType || (exports.EEmotionType = EEmotionType = {}));
|
|
28
|
+
|
|
29
|
+
var Motion = [{
|
|
30
|
+
id: EEmotionType.Unset,
|
|
31
|
+
img: ""
|
|
32
|
+
}, {
|
|
33
|
+
id: EEmotionType.Happy,
|
|
34
|
+
img: _happy["default"]
|
|
35
|
+
}, {
|
|
36
|
+
id: EEmotionType.Fighting,
|
|
37
|
+
img: _fighting["default"]
|
|
38
|
+
}, {
|
|
39
|
+
id: EEmotionType.HardToPutWords,
|
|
40
|
+
img: _longStory["default"]
|
|
41
|
+
}, {
|
|
42
|
+
id: EEmotionType.Stressful,
|
|
43
|
+
img: _pressure["default"]
|
|
44
|
+
}];
|
|
45
|
+
exports.Motion = Motion;
|
|
@@ -134,3 +134,33 @@
|
|
|
134
134
|
height: 22px;
|
|
135
135
|
margin-right: 4px;
|
|
136
136
|
}
|
|
137
|
+
|
|
138
|
+
.titaui-dynamic-new-summary__operate .drawer-content-wrapper {
|
|
139
|
+
width: 372px !important;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.titaui-dynamic-new-summary__operate__head {
|
|
143
|
+
height: 56px;
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: space-between;
|
|
147
|
+
padding: 16px 32px;
|
|
148
|
+
box-sizing: border-box;
|
|
149
|
+
border-bottom: 1px #E9ECF0 solid;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.titaui-dynamic-new-summary__operate__head-title {
|
|
153
|
+
font-size: 16px;
|
|
154
|
+
font-weight: 600;
|
|
155
|
+
color: #141C28;
|
|
156
|
+
line-height: 24px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.titaui-dynamic-new-summary__operate__head-icon {
|
|
160
|
+
font-size: 20px;
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.titaui-dynamic-new-summary__operate__content {
|
|
165
|
+
padding: 16px 32px;
|
|
166
|
+
}
|