@titaui/pc 1.12.7-beta.2 → 1.12.7-beta.22
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/change-okr-modal/index.js +2 -4
- package/lib/components/color-date-picker/index.css +7 -0
- package/lib/components/color-date-picker/index.js +13 -7
- package/lib/components/common-share/publishMblog.js +2 -4
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +2 -4
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +2 -4
- package/lib/components/create-okr-modal/index.js +2 -4
- package/lib/components/create-okr-modal/request-api.js +12 -16
- package/lib/components/create-okr-modal/utils/helper.js +2 -6
- package/lib/components/dialog-confirm/index.css +1 -0
- package/lib/components/dialog-confirm/index.js +5 -3
- package/lib/components/dialog-upload/index.js +2 -4
- package/lib/components/dialog-upload/uploaded-preview.js +4 -4
- package/lib/components/drawer-manager/drawerWrapper.js +2 -4
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.js +12 -8
- package/lib/components/dynamic/dynamic-item/components/header/index.js +1 -5
- package/lib/components/dynamic/dynamic-item/components/okr-progress/constant.js +31 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +88 -57
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +2 -4
- package/lib/components/dynamic/dynamic-item/components/summary-header/constant.js +45 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +51 -21
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +76 -84
- 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 +105 -34
- package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +20 -3
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +37 -1
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +18 -11
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +12 -6
- 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.css +16 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +99 -23
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/util.js +30 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -2
- package/lib/components/dynamic/dynamic-item/index.css +1 -0
- package/lib/components/dynamic/dynamic-item/index.js +5 -3
- package/lib/components/firework/index.js +2 -6
- package/lib/components/form/form-fields/input-verification-code/index.js +2 -4
- package/lib/components/grid-layout/util/network.js +6 -10
- package/lib/components/import-modal/import-okr-modal/index.js +4 -1
- package/lib/components/import-modal/import-task-modal/index.js +2 -1
- package/lib/components/import-modal/tree/okr-tree/index.js +2 -4
- 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/base-info/other-infos/principal/index.js +2 -4
- package/lib/components/okr-detail/components/ao-nice/index.js +4 -6
- package/lib/components/okr-detail/components/header/edit-name.js +2 -4
- package/lib/components/okr-detail/components/header/o-avatar.js +2 -4
- package/lib/components/okr-detail/components/o-classify.js +2 -4
- package/lib/components/okr-detail/components/o-progress-update/index.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +6 -8
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +2 -4
- package/lib/components/okr-detail/detail-footer/index.js +2 -4
- package/lib/components/okr-detail/detail-header/index.js +10 -12
- package/lib/components/okr-detail/okr-list/index.js +2 -4
- package/lib/components/okr-detail/request-apis.js +2 -6
- package/lib/components/okr-flow/child-node/fields/creator.js +2 -4
- package/lib/components/okr-flow/child-node/work-node.js +2 -4
- package/lib/components/okr-flow/export-modal/index.js +23 -4
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +8 -10
- package/lib/components/okr-flow/request-apis.js +2 -6
- package/lib/components/okr-flow/root-node/index.js +2 -4
- package/lib/components/okr-progress/components/o-progress-update/index.js +2 -4
- package/lib/components/okr-progress-modal/index.js +2 -4
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +2 -4
- package/lib/components/okr-share/common-painter/darwAvatar.js +4 -8
- package/lib/components/okr-share/common-painter/openDataPainter.js +2 -6
- package/lib/components/okr-share/pink-card/drawDepartmentName.js +2 -6
- package/lib/components/okr-share/pink-card/drawQuote.js +2 -6
- package/lib/components/okr-share/pink-card/drawUserName.js +2 -6
- package/lib/components/okr-share/pink-card/index.js +2 -6
- package/lib/components/okr-share/publishMblog.js +2 -4
- package/lib/components/okr-share/shareCardSelector.js +4 -6
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
- package/lib/components/okrcase-library/server/network.js +20 -24
- package/lib/components/open-data-painter/index.js +2 -6
- package/lib/components/period-selector/helper/index.js +2 -6
- 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/picker-trigger/index.js +2 -47
- 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/rate/index.css +111 -0
- package/lib/components/rate/index.js +1 -1
- package/lib/components/rich-editor/schemas/list.js +0 -1
- package/lib/components/rich-editor-at/index.js +9 -4
- package/lib/components/rich-editor-upload/index.js +3 -0
- package/lib/components/select-tags/index.js +7 -1
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +2 -6
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +4 -8
- package/lib/components/survey-model/request-api.js +2 -6
- package/lib/components/task-relation-modal/index.js +4 -6
- package/lib/components/task-relation-modal/tree/category-tree/index.js +2 -4
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +2 -4
- package/lib/components/task-relation-modal/tree/work-tree/index.js +2 -4
- package/lib/components/task-relation-modal/work-relation/index.js +4 -6
- package/lib/components/task-tree/task-item-node/e-project.js +2 -4
- package/lib/components/task-tree/task-item-node/e-task.js +2 -4
- package/lib/components/toast/index.js +8 -12
- package/lib/components/upvote/index.js +4 -6
- package/lib/components/version-change-modal/index.js +4 -6
- package/lib/components/version-change-modal/request-api.js +2 -6
- package/lib/components/weekly-report/card.js +12 -4
- package/lib/components/weekly-report/common-painter/darwAvatar.js +6 -10
- package/lib/components/weekly-report/common-painter/drawName.js +2 -6
- package/lib/components/weekly-report/common-painter/openDataPainter.js +2 -6
- package/lib/components/weekly-report/index.js +4 -6
- package/lib/components/write-summary-modal/index.css +79 -0
- package/lib/components/write-summary-modal/index.js +167 -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/index.js +16 -0
- package/lib/pages/group-management/groupInterface.js +2 -6
- package/lib/pages/new-okr-list/request-api.js +14 -18
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +2 -4
- package/lib/pages/okr-map/request-apis.js +2 -6
- package/lib/utils/constant.js +8 -2
- package/lib/utils/request-v1.js +2 -6
- package/lib/utils/request.js +2 -6
- package/package.json +1 -1
|
@@ -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
|
});
|
|
@@ -15,6 +13,14 @@ var _getLocale = require("../../../../../utils/getLocale");
|
|
|
15
13
|
|
|
16
14
|
var _progress = _interopRequireDefault(require("../progress"));
|
|
17
15
|
|
|
16
|
+
var _schedule = _interopRequireDefault(require("../schedule"));
|
|
17
|
+
|
|
18
|
+
var _tableRowOProject = _interopRequireDefault(require("../table-row-o-project"));
|
|
19
|
+
|
|
20
|
+
var _constant = require("./constant");
|
|
21
|
+
|
|
22
|
+
var _utils = require("./utils");
|
|
23
|
+
|
|
18
24
|
require("./index.css");
|
|
19
25
|
|
|
20
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -23,51 +29,116 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
29
|
|
|
24
30
|
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; }
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
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); }
|
|
33
|
+
|
|
34
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
|
+
|
|
36
|
+
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."); }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
|
+
|
|
46
|
+
var prefix = 'titaui-dynamic-summary-task-progress';
|
|
47
|
+
var isImport = true;
|
|
27
48
|
|
|
28
49
|
var TaskProgress = function TaskProgress(_ref) {
|
|
29
|
-
var
|
|
30
|
-
|
|
50
|
+
var data = _ref.data,
|
|
51
|
+
_ref$type = _ref.type,
|
|
52
|
+
type = _ref$type === void 0 ? 'day' : _ref$type;
|
|
53
|
+
|
|
54
|
+
var _useState = (0, _react.useState)(),
|
|
55
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
56
|
+
rowsData = _useState2[0],
|
|
57
|
+
setRowsData = _useState2[1];
|
|
58
|
+
|
|
59
|
+
var _useState3 = (0, _react.useState)((0, _utils.getStatusStatistic)([])),
|
|
60
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
61
|
+
statusStatistic = _useState4[0],
|
|
62
|
+
setStatusStatistic = _useState4[1];
|
|
63
|
+
|
|
64
|
+
var handleShowTaskDetail = function handleShowTaskDetail(item) {
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
window.Talent.app.vent.trigger("global-pull-screen", item.id, "task");
|
|
67
|
+
};
|
|
68
|
+
|
|
31
69
|
var renderTitle = (0, _react.useMemo)(function () {
|
|
32
|
-
if (type ===
|
|
33
|
-
return (0, _getLocale.getLocale)(
|
|
34
|
-
} else if (type ===
|
|
35
|
-
return (0, _getLocale.getLocale)(
|
|
36
|
-
} else if (type ===
|
|
37
|
-
return (0, _getLocale.getLocale)(
|
|
70
|
+
if (type === 'day') {
|
|
71
|
+
return (0, _getLocale.getLocale)('Rep_NewS_Toworkasks');
|
|
72
|
+
} else if (type === 'week') {
|
|
73
|
+
return (0, _getLocale.getLocale)('Rep_NewS_Thisetasks');
|
|
74
|
+
} else if (type === 'month') {
|
|
75
|
+
return (0, _getLocale.getLocale)('Rep_NewS_Taskormonth');
|
|
38
76
|
}
|
|
39
77
|
|
|
40
|
-
return
|
|
78
|
+
return '';
|
|
41
79
|
}, [type]);
|
|
42
80
|
var renderTable = (0, _react.useMemo)(function () {
|
|
43
81
|
return /*#__PURE__*/_react["default"].createElement("table", null, /*#__PURE__*/_react["default"].createElement("thead", null, /*#__PURE__*/_react["default"].createElement("tr", {
|
|
44
82
|
className: "".concat(prefix, "__table-title")
|
|
45
83
|
}, /*#__PURE__*/_react["default"].createElement("td", {
|
|
46
84
|
className: "".concat(prefix, "__table-title-okrs")
|
|
47
|
-
}, (0, _getLocale.getLocale)(
|
|
85
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Title_Taskname')), /*#__PURE__*/_react["default"].createElement("td", {
|
|
48
86
|
className: "".concat(prefix, "__table-title-progress")
|
|
49
|
-
}, (0, _getLocale.getLocale)(
|
|
87
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Progresss1')), /*#__PURE__*/_react["default"].createElement("td", {
|
|
50
88
|
className: "".concat(prefix, "__table-title-progress-desc")
|
|
51
|
-
}, (0, _getLocale.getLocale)(
|
|
52
|
-
overlay: (0, _getLocale.getLocale)(
|
|
89
|
+
}, (0, _getLocale.getLocale)('Feed_Tab_Title_Progress'), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
90
|
+
overlay: (0, _getLocale.getLocale)('Rep_Tab_Mys_FillOKRsync'),
|
|
53
91
|
placement: "top",
|
|
54
92
|
align: {
|
|
55
93
|
offset: [0, 5]
|
|
56
94
|
}
|
|
57
95
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
58
96
|
className: "tu-icon-wiki ".concat(prefix, "__table-title-progress-desc-icon")
|
|
59
|
-
}))))), /*#__PURE__*/_react["default"].createElement("tbody", null,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
97
|
+
}))))), /*#__PURE__*/_react["default"].createElement("tbody", null, rowsData && rowsData.Rows.map(function (item) {
|
|
98
|
+
if (isImport) {
|
|
99
|
+
var _item$LastContent;
|
|
100
|
+
|
|
101
|
+
return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
|
+
className: "".concat(prefix, "__table-row-title"),
|
|
103
|
+
onClick: function onClick() {
|
|
104
|
+
return handleShowTaskDetail(item);
|
|
105
|
+
}
|
|
106
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
107
|
+
className: "".concat(prefix, "__table-row-title-icon ").concat(_constant.EStatusStatus2ClassType[item.Status])
|
|
108
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
109
|
+
className: "".concat(prefix, "__table-row-title-text")
|
|
110
|
+
}, item.Name))), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_progress["default"], {
|
|
111
|
+
id: "".concat(item.Id),
|
|
112
|
+
type: "task",
|
|
113
|
+
status: item.Status === 1 ? "normal" : "risk",
|
|
114
|
+
value: item.Progress,
|
|
115
|
+
editable: false,
|
|
116
|
+
riskLevel: item.Status
|
|
117
|
+
})), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
|
|
118
|
+
value: (item === null || item === void 0 ? void 0 : (_item$LastContent = item.LastContent) === null || _item$LastContent === void 0 ? void 0 : _item$LastContent.trim()) || '',
|
|
119
|
+
date: item.LastContentTime,
|
|
120
|
+
editable: false,
|
|
121
|
+
id: item.Id
|
|
122
|
+
})));
|
|
123
|
+
} else {
|
|
124
|
+
return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", {
|
|
125
|
+
colSpan: 4
|
|
126
|
+
}, /*#__PURE__*/_react["default"].createElement(_tableRowOProject["default"], {
|
|
127
|
+
id: item.Id // isO={item.Type === EObjType.O}
|
|
128
|
+
,
|
|
129
|
+
extraClass: "".concat(prefix, "__table-obj"),
|
|
130
|
+
text: item.Name
|
|
131
|
+
})));
|
|
132
|
+
}
|
|
133
|
+
})));
|
|
134
|
+
}, [rowsData]);
|
|
135
|
+
(0, _react.useEffect)(function () {
|
|
136
|
+
if (_typeof(data) !== 'object' && data !== '') {
|
|
137
|
+
setRowsData(JSON.parse(data));
|
|
138
|
+
setStatusStatistic((0, _utils.getStatusStatistic)(JSON.parse(data).Rows));
|
|
139
|
+
}
|
|
140
|
+
}, [data]);
|
|
141
|
+
if (!(rowsData !== null && rowsData !== void 0 && rowsData.Rows.length)) return null;
|
|
71
142
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
143
|
className: prefix
|
|
73
144
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -76,17 +147,17 @@ var TaskProgress = function TaskProgress(_ref) {
|
|
|
76
147
|
className: "".concat(prefix, "__statistic")
|
|
77
148
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
78
149
|
className: "".concat(prefix, "__statistic-item ").concat(prefix, "__statistic-item--finished")
|
|
79
|
-
}, (0, _getLocale.getLocale)(
|
|
150
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_From_Completed'), ' ', /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
151
|
className: "".concat(prefix, "__statistic-item--finished-text")
|
|
81
|
-
},
|
|
152
|
+
}, statusStatistic.doing)), /*#__PURE__*/_react["default"].createElement("span", {
|
|
82
153
|
className: "".concat(prefix, "__statistic-item ").concat(prefix, "__statistic-item--processing")
|
|
83
|
-
}, (0, _getLocale.getLocale)(
|
|
154
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Butt_Inprogress'), ' ', /*#__PURE__*/_react["default"].createElement("span", {
|
|
84
155
|
className: "".concat(prefix, "__statistic-item--processing-text")
|
|
85
|
-
},
|
|
156
|
+
}, statusStatistic.doing)), /*#__PURE__*/_react["default"].createElement("span", {
|
|
86
157
|
className: "".concat(prefix, "__statistic-item ").concat(prefix, "__statistic-item--overdue")
|
|
87
|
-
}, (0, _getLocale.getLocale)(
|
|
158
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_Overdue'), ' ', /*#__PURE__*/_react["default"].createElement("span", {
|
|
88
159
|
className: "".concat(prefix, "__statistic-item--overdue-text")
|
|
89
|
-
},
|
|
160
|
+
}, statusStatistic.overDue))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
161
|
className: "".concat(prefix, "__table")
|
|
91
162
|
}, renderTable));
|
|
92
163
|
};
|
|
@@ -3,8 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.getStatusStatistic = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var getStatusStatistic = function getStatusStatistic(data) {
|
|
9
|
+
var result = {
|
|
10
|
+
done: 0,
|
|
11
|
+
doing: 0,
|
|
12
|
+
overDue: 0
|
|
13
|
+
};
|
|
14
|
+
data.forEach(function (item) {
|
|
15
|
+
// 1 进行中 2 已完成 3 已延期
|
|
16
|
+
if (item.status === 1) {
|
|
17
|
+
result.doing = result.doing + 1;
|
|
18
|
+
} else if (item.status === 2) {
|
|
19
|
+
result.done = result.done + 1;
|
|
20
|
+
} else if (item.status === 3) {
|
|
21
|
+
result.overDue = result.overDue + 1;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
9
26
|
|
|
10
|
-
exports.
|
|
27
|
+
exports.getStatusStatistic = getStatusStatistic;
|
|
@@ -52,7 +52,8 @@ var DynamicKr = function DynamicKr(_ref) {
|
|
|
52
52
|
|
|
53
53
|
var name = data.name,
|
|
54
54
|
krId = data.krId,
|
|
55
|
-
principalUser = data.principalUser
|
|
55
|
+
principalUser = data.principalUser,
|
|
56
|
+
publishUser = data.publishUser;
|
|
56
57
|
|
|
57
58
|
var handleClickKrTitle = function handleClickKrTitle() {
|
|
58
59
|
_drawerManager["default"].open('krDetail', {
|
|
@@ -85,7 +86,7 @@ var DynamicKr = function DynamicKr(_ref) {
|
|
|
85
86
|
data: data
|
|
86
87
|
}, restProps, {
|
|
87
88
|
desc: renderDesc,
|
|
88
|
-
user: principalUser
|
|
89
|
+
user: principalUser || publishUser
|
|
89
90
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
91
|
className: "".concat(prefix, "__content")
|
|
91
92
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.titaui-dynamic-summary__evalute-card {
|
|
2
|
+
position: relative;
|
|
2
3
|
width: 100%;
|
|
3
|
-
height: 102px;
|
|
4
4
|
background: rgba(240, 163, 38, 0.12);
|
|
5
5
|
border-radius: 12px;
|
|
6
6
|
margin-top: 20px;
|
|
@@ -30,3 +30,39 @@
|
|
|
30
30
|
margin-left: 4px;
|
|
31
31
|
color: #F0A326;
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
.titaui-dynamic-summary__evalute-card__head-medal {
|
|
35
|
+
position: relative;
|
|
36
|
+
height: 18px;
|
|
37
|
+
padding: 0 8px 0 16px;
|
|
38
|
+
background: rgba(246, 189, 22, 0.16);
|
|
39
|
+
border-radius: 0px 14px 14px 0px;
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
font-family: OPPOSans-R, OPPOSans;
|
|
42
|
+
font-weight: normal;
|
|
43
|
+
color: #BD7500;
|
|
44
|
+
line-height: 18px;
|
|
45
|
+
margin-left: 20px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.titaui-dynamic-summary__evalute-card__head-medal-img {
|
|
49
|
+
position: absolute;
|
|
50
|
+
left: -12px;
|
|
51
|
+
top: -6px;
|
|
52
|
+
width: 24px;
|
|
53
|
+
height: 24px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.titaui-dynamic-summary__evalute-card__bgc-img {
|
|
57
|
+
position: absolute;
|
|
58
|
+
width: 82px;
|
|
59
|
+
height: 86px;
|
|
60
|
+
right: 8px;
|
|
61
|
+
top: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.titaui-dynamic-summary__evalute-card__remark {
|
|
65
|
+
font-size: 14px;
|
|
66
|
+
color: #3F4755;
|
|
67
|
+
line-height: 22px;
|
|
68
|
+
}
|
|
@@ -7,19 +7,23 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _rate = _interopRequireDefault(require("../../../../../rate"));
|
|
11
|
-
|
|
12
10
|
var _getLocale = require("../../../../../../utils/getLocale");
|
|
13
11
|
|
|
14
12
|
var _fighting = _interopRequireDefault(require("../../img/fighting.png"));
|
|
15
13
|
|
|
14
|
+
var _veryGoodBig = _interopRequireDefault(require("./img/very-good-big.png"));
|
|
15
|
+
|
|
16
|
+
var _veryGoodSmall = _interopRequireDefault(require("./img/very-good-small.png"));
|
|
17
|
+
|
|
16
18
|
require("./index.css");
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
22
|
var preCls = 'titaui-dynamic-summary__evalute-card';
|
|
21
23
|
|
|
22
|
-
var EvaluteCard = function EvaluteCard() {
|
|
24
|
+
var EvaluteCard = function EvaluteCard(props) {
|
|
25
|
+
// const { evaluation } = props
|
|
26
|
+
// const { value, type, remark } = evaluation
|
|
23
27
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
24
28
|
className: preCls
|
|
25
29
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -29,14 +33,17 @@ var EvaluteCard = function EvaluteCard() {
|
|
|
29
33
|
className: "".concat(preCls, "__head-img")
|
|
30
34
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
31
35
|
className: "".concat(preCls, "__head-name")
|
|
32
|
-
}, "cnjsk"), (0, _getLocale.getLocale)('Rep_NewS_EvaluationOF'), /*#__PURE__*/_react["default"].createElement(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
,
|
|
36
|
-
|
|
37
|
-
}), /*#__PURE__*/_react["default"].createElement("
|
|
38
|
-
className: "".concat(preCls, "
|
|
39
|
-
}, "
|
|
36
|
+
}, "cnjsk"), (0, _getLocale.getLocale)('Rep_NewS_EvaluationOF'), /*#__PURE__*/_react["default"].createElement("div", {
|
|
37
|
+
className: "".concat(preCls, "__head-medal")
|
|
38
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
39
|
+
src: _veryGoodSmall["default"],
|
|
40
|
+
className: "".concat(preCls, "__head-medal-img")
|
|
41
|
+
}), "\u592A\u68D2\u4E86")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
42
|
+
className: "".concat(preCls, "__remark")
|
|
43
|
+
}, "mjncj"), /*#__PURE__*/_react["default"].createElement("img", {
|
|
44
|
+
src: _veryGoodBig["default"],
|
|
45
|
+
className: "".concat(preCls, "__bgc-img")
|
|
46
|
+
}));
|
|
40
47
|
};
|
|
41
48
|
|
|
42
49
|
var _default = EvaluteCard;
|
package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css
CHANGED
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
margin-top: 25px;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
.titaui-dynamic-summary__remind-view .titaui-pc-avator-container {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
}
|
|
8
|
+
|
|
5
9
|
.titaui-dynamic-summary__remind-view__title {
|
|
6
10
|
font-size: 18px;
|
|
7
11
|
font-weight: 600;
|
|
8
|
-
color: #
|
|
12
|
+
color: #141c28;
|
|
9
13
|
line-height: 26px;
|
|
10
14
|
}
|
|
11
15
|
|
|
@@ -21,17 +25,19 @@
|
|
|
21
25
|
display: inline-flex;
|
|
22
26
|
align-items: center;
|
|
23
27
|
height: 32px;
|
|
24
|
-
background: #
|
|
28
|
+
background: #f0f4fa;
|
|
25
29
|
border-radius: 16px;
|
|
26
|
-
padding:
|
|
30
|
+
padding: 5px 8px 5px 4px;
|
|
27
31
|
box-sizing: border-box;
|
|
28
32
|
font-size: 14px;
|
|
29
|
-
color: #
|
|
33
|
+
color: #3f4755;
|
|
30
34
|
line-height: 22px;
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
.titaui-dynamic-summary__remind-view__user-avatar {
|
|
34
|
-
width: 24px;
|
|
35
|
-
height: 24px;
|
|
36
38
|
border-radius: 15px;
|
|
37
39
|
}
|
|
40
|
+
|
|
41
|
+
.titaui-dynamic-summary__remind-view__user-name {
|
|
42
|
+
margin-left: 6px;
|
|
43
|
+
}
|
package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js
CHANGED
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _avatar = _interopRequireDefault(require("../../../../../../components/avatar"));
|
|
11
|
+
|
|
10
12
|
var _getLocale = require("../../../../../../utils/getLocale");
|
|
11
13
|
|
|
12
14
|
var _fighting = _interopRequireDefault(require("../../img/fighting.png"));
|
|
@@ -58,20 +60,26 @@ var userInfo = [{
|
|
|
58
60
|
avatar: _fighting["default"]
|
|
59
61
|
}];
|
|
60
62
|
|
|
61
|
-
var RemindUserView = function RemindUserView() {
|
|
63
|
+
var RemindUserView = function RemindUserView(props) {
|
|
64
|
+
var data = props.data;
|
|
65
|
+
if (!data || !data.length) return null;
|
|
62
66
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
67
|
className: preCls
|
|
64
68
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
69
|
className: "".concat(preCls, "__title")
|
|
66
70
|
}, (0, _getLocale.getLocale)('OKR_MyO_himher')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
71
|
className: "".concat(preCls, "__list")
|
|
68
|
-
},
|
|
72
|
+
}, data.map(function (item) {
|
|
69
73
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
74
|
className: "".concat(preCls, "__user")
|
|
71
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
76
|
+
userId: item.userId,
|
|
77
|
+
name: item.name,
|
|
78
|
+
src: item.avatar.medium,
|
|
79
|
+
color: item.avatar.color
|
|
80
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
81
|
+
className: "".concat(preCls, "__user-name")
|
|
82
|
+
}, item.name));
|
|
75
83
|
})));
|
|
76
84
|
};
|
|
77
85
|
|
|
@@ -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;
|
|
@@ -75,6 +75,10 @@
|
|
|
75
75
|
line-height: 1.5;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
.titaui-dynamic-new-report-item__upload {
|
|
79
|
+
margin-top: 16px;
|
|
80
|
+
}
|
|
81
|
+
|
|
78
82
|
.titaui-dynamic-new-report-item__summary {
|
|
79
83
|
margin-bottom: 16px;
|
|
80
84
|
margin-top: 12px;
|
|
@@ -153,3 +157,15 @@
|
|
|
153
157
|
margin-left: 4px;
|
|
154
158
|
overflow: hidden;
|
|
155
159
|
}
|
|
160
|
+
|
|
161
|
+
.titaui-dynamic-new-report-item__work {
|
|
162
|
+
margin-top: 16px;
|
|
163
|
+
font-size: 18px;
|
|
164
|
+
font-weight: 600;
|
|
165
|
+
color: #141c28;
|
|
166
|
+
line-height: 26px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.titaui-dynamic-new-report-item__work .tita-rich-editor {
|
|
170
|
+
min-height: auto;
|
|
171
|
+
}
|