@titaui/pc 1.12.49 → 1.12.50

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.
@@ -2,12 +2,7 @@
2
2
  padding: 12px 0;
3
3
  }
4
4
 
5
- .titaui-okr-progress:hover .titaui-okr-progress__title-arrow {
6
- opacity: 1;
7
- }
8
-
9
5
  .titaui-okr-progress__title {
10
- position: relative;
11
6
  font-size: 18px;
12
7
  font-weight: 600;
13
8
  color: #141c28;
@@ -35,49 +30,12 @@
35
30
  opacity: 0.8;
36
31
  }
37
32
 
38
- .titaui-okr-progress__title-arrow {
39
- opacity: 0;
40
- transition: all 0.3s;
41
- position: absolute;
42
- left: -28px;
43
- display: inline-flex;
44
- align-items: center;
45
- justify-content: center;
46
- width: 24px;
47
- height: 24px;
48
- border-radius: 8px;
49
- cursor: pointer;
50
- }
51
-
52
- .titaui-okr-progress__title-arrow--show {
53
- opacity: 1;
54
- }
55
-
56
- .titaui-okr-progress__title-arrow:hover {
57
- background: #F0F4FA;
58
- }
59
-
60
- .titaui-okr-progress__title-arrow-icon {
61
- font-size: 16px;
62
- transform: scale(0.5);
63
- transition: all 0.3s;
64
- }
65
-
66
- .titaui-okr-progress__title-arrow-icon--rotate {
67
- transform: rotate(-90deg) scale(0.5);
68
- transition: all 0.3s;
69
- }
70
-
71
33
  .titaui-okr-progress__table {
72
34
  border: 1px solid #dfe3ea;
73
35
  border-radius: 12px;
74
36
  margin-top: 12px;
75
37
  }
76
38
 
77
- .titaui-okr-progress__table--hide {
78
- display: none;
79
- }
80
-
81
39
  .titaui-okr-progress__table-obj {
82
40
  padding: 8px 0;
83
41
  }
@@ -29,16 +29,12 @@ var _interface = require("../task-progress/interface");
29
29
 
30
30
  require("./index.css");
31
31
 
32
- var _classnames = _interopRequireDefault(require("classnames"));
33
-
34
32
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
35
33
 
36
34
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
37
35
 
38
36
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
39
37
 
40
- 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; }
41
-
42
38
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
43
39
 
44
40
  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."); }
@@ -65,25 +61,16 @@ var OkrProgress = function OkrProgress(_ref) {
65
61
  rowsData = _useState2[0],
66
62
  setRowsData = _useState2[1];
67
63
 
68
- var _useState3 = (0, _react.useState)(true),
69
- _useState4 = _slicedToArray(_useState3, 2),
70
- tableVisible = _useState4[0],
71
- setTableVisible = _useState4[1];
72
-
73
- var handleClickToHideTable = function handleClickToHideTable() {
74
- setTableVisible(!tableVisible);
75
- };
76
-
77
64
  var renderTitle = (0, _react.useMemo)(function () {
78
65
  if (reportType === _interface.EReportType.Daily) {
79
- return (0, _getLocale.getLocale)('Rep_NewS_ToOKRpro');
66
+ return (0, _getLocale.getLocale)("Rep_NewS_ToOKRpro");
80
67
  } else if (reportType === _interface.EReportType.Weekly) {
81
- return (0, _getLocale.getLocale)('Rep_NewS_ThisOKRprogr');
68
+ return (0, _getLocale.getLocale)("Rep_NewS_ThisOKRprogr");
82
69
  } else if (reportType === _interface.EReportType.Month) {
83
- return (0, _getLocale.getLocale)('Rep_NewS_TmonOKRpro');
70
+ return (0, _getLocale.getLocale)("Rep_NewS_TmonOKRpro");
84
71
  }
85
72
 
86
- return '';
73
+ return "";
87
74
  }, [reportType]);
88
75
  var krOrder = 0;
89
76
  var renderTable = (0, _react.useMemo)(function () {
@@ -162,13 +149,8 @@ var OkrProgress = function OkrProgress(_ref) {
162
149
  className: prefix
163
150
  }, /*#__PURE__*/_react["default"].createElement("div", {
164
151
  className: "".concat(prefix, "__title")
165
- }, /*#__PURE__*/_react["default"].createElement("div", {
166
- className: (0, _classnames["default"])("".concat(prefix, "__title-arrow"), _defineProperty({}, "".concat(prefix, "__title-arrow--show"), !tableVisible)),
167
- onClick: handleClickToHideTable
168
- }, /*#__PURE__*/_react["default"].createElement("i", {
169
- className: (0, _classnames["default"])('tu-icon-caret-down', "".concat(prefix, "__title-arrow-icon"), _defineProperty({}, "".concat(prefix, "__title-arrow-icon--rotate"), !tableVisible))
170
- })), renderTitle), /*#__PURE__*/_react["default"].createElement("div", {
171
- className: (0, _classnames["default"])("".concat(prefix, "__table"), _defineProperty({}, "".concat(prefix, "__table--hide"), !tableVisible))
152
+ }, renderTitle), /*#__PURE__*/_react["default"].createElement("div", {
153
+ className: "".concat(prefix, "__table")
172
154
  }, renderTable));
173
155
  };
174
156
 
@@ -369,24 +369,6 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
369
369
  onClick: handleShowDropSelector
370
370
  })
371
371
  }, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
372
- condition: showEdit && data.isEdit
373
- }, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
374
- name: "edit",
375
- onClick: handleClickEdit
376
- }, /*#__PURE__*/_react["default"].createElement("div", {
377
- className: "".concat(prefix, "__more-operate-selection")
378
- }, /*#__PURE__*/_react["default"].createElement("i", {
379
- className: (0, _classnames["default"])('tu-icon-bianji3', "".concat(prefix, "__more-operate-selection-icon"))
380
- }), (0, _getLocale.getLocale)('Mod_Editor')))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
381
- condition: showDelete && data.isEdit
382
- }, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
383
- name: "delete",
384
- onClick: handleDeleteClick
385
- }, /*#__PURE__*/_react["default"].createElement("div", {
386
- className: "".concat(prefix, "__more-operate-selection")
387
- }, /*#__PURE__*/_react["default"].createElement("i", {
388
- className: (0, _classnames["default"])('tu-icon-del', "".concat(prefix, "__more-operate-selection-icon"))
389
- }), (0, _getLocale.getLocale)('Mod_Delete')))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
390
372
  condition: showCollect
391
373
  }, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
392
374
  name: "collect",
@@ -396,6 +378,15 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
396
378
  }, /*#__PURE__*/_react["default"].createElement("i", {
397
379
  className: (0, _classnames["default"])('tu-icon-APP-shoucang', "".concat(prefix, "__more-operate-selection-icon"))
398
380
  }), nowIsCollect ? (0, _getLocale.getLocale)('Mod_CancCollection') : (0, _getLocale.getLocale)('Mod_Collection')))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
381
+ condition: showEdit && data.isEdit
382
+ }, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
383
+ name: "edit",
384
+ onClick: handleClickEdit
385
+ }, /*#__PURE__*/_react["default"].createElement("div", {
386
+ className: "".concat(prefix, "__more-operate-selection")
387
+ }, /*#__PURE__*/_react["default"].createElement("i", {
388
+ className: (0, _classnames["default"])('tu-icon-bianji3', "".concat(prefix, "__more-operate-selection-icon"))
389
+ }), (0, _getLocale.getLocale)('Mod_Editor')))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
399
390
  condition: showOperateRecord
400
391
  }, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
401
392
  name: "record",
@@ -404,7 +395,16 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
404
395
  className: "".concat(prefix, "__more-operate-selection")
405
396
  }, /*#__PURE__*/_react["default"].createElement("i", {
406
397
  className: (0, _classnames["default"])('tu-icon-jinzhan-s', "".concat(prefix, "__more-operate-selection-icon"))
407
- }), (0, _getLocale.getLocale)('Per_details_OperationRecord'))))))), /*#__PURE__*/_react["default"].createElement("div", {
398
+ }), (0, _getLocale.getLocale)('Per_details_OperationRecord')))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
399
+ condition: showDelete && data.isEdit
400
+ }, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
401
+ name: "delete",
402
+ onClick: handleDeleteClick
403
+ }, /*#__PURE__*/_react["default"].createElement("div", {
404
+ className: "".concat(prefix, "__more-operate-selection")
405
+ }, /*#__PURE__*/_react["default"].createElement("i", {
406
+ className: (0, _classnames["default"])('tu-icon-del', "".concat(prefix, "__more-operate-selection-icon"))
407
+ }), (0, _getLocale.getLocale)('Mod_Delete'))))))), /*#__PURE__*/_react["default"].createElement("div", {
408
408
  className: "".concat(prefix, "-desc-time")
409
409
  }, createDate))), renderDialogConfirm, /*#__PURE__*/_react["default"].createElement(_commentsDialog["default"], {
410
410
  visible: evaluateVisible,
@@ -1,13 +1,8 @@
1
- .titaui-dynamic-task-progress {
1
+ .titaui-dynamic-summary-task-progress {
2
2
  padding: 12px 0;
3
3
  }
4
4
 
5
- .titaui-dynamic-task-progress:hover .titaui-dynamic-task-progress__title-arrow {
6
- opacity: 1;
7
- }
8
-
9
- .titaui-dynamic-task-progress__title {
10
- position: relative;
5
+ .titaui-dynamic-summary-task-progress__title {
11
6
  font-size: 18px;
12
7
  font-weight: 600;
13
8
  color: #141c28;
@@ -17,7 +12,7 @@
17
12
  align-items: center;
18
13
  }
19
14
 
20
- .titaui-dynamic-task-progress__title-update {
15
+ .titaui-dynamic-summary-task-progress__title-update {
21
16
  font-size: 14px;
22
17
  font-weight: 400;
23
18
  color: #2879ff;
@@ -26,65 +21,28 @@
26
21
  align-items: center;
27
22
  }
28
23
 
29
- .titaui-dynamic-task-progress__title-update-icon {
24
+ .titaui-dynamic-summary-task-progress__title-update-icon {
30
25
  margin-right: 4px;
31
26
  }
32
27
 
33
- .titaui-dynamic-task-progress__title-update:hover {
28
+ .titaui-dynamic-summary-task-progress__title-update:hover {
34
29
  cursor: pointer;
35
30
  opacity: 0.8;
36
31
  }
37
32
 
38
- .titaui-dynamic-task-progress__title-arrow {
39
- opacity: 0;
40
- transition: all 0.3s;
41
- position: absolute;
42
- left: -28px;
43
- display: inline-flex;
44
- align-items: center;
45
- justify-content: center;
46
- width: 24px;
47
- height: 24px;
48
- border-radius: 8px;
49
- cursor: pointer;
50
- }
51
-
52
- .titaui-dynamic-task-progress__title-arrow--show {
53
- opacity: 1;
54
- }
55
-
56
- .titaui-dynamic-task-progress__title-arrow:hover {
57
- background: #F0F4FA;
58
- }
59
-
60
- .titaui-dynamic-task-progress__title-arrow-icon {
61
- font-size: 16px;
62
- transform: scale(0.5);
63
- transition: all 0.3s;
64
- }
65
-
66
- .titaui-dynamic-task-progress__title-arrow-icon--rotate {
67
- transform: rotate(-90deg) scale(0.5);
68
- transition: all 0.3s;
69
- }
70
-
71
- .titaui-dynamic-task-progress__table {
33
+ .titaui-dynamic-summary-task-progress__table {
72
34
  border: 1px solid #dfe3ea;
73
35
  border-radius: 12px;
74
36
  margin-top: 12px;
75
37
  }
76
38
 
77
- .titaui-dynamic-task-progress__table--hide {
78
- display: none;
79
- }
80
-
81
- .titaui-dynamic-task-progress__table-row-title {
39
+ .titaui-dynamic-summary-task-progress__table-row-title {
82
40
  font-size: 14px;
83
41
  color: #141c28;
84
42
  padding: 8px 0;
85
43
  }
86
44
 
87
- .titaui-dynamic-task-progress__table-row-title-remain {
45
+ .titaui-dynamic-summary-task-progress__table-row-title-remain {
88
46
  background: rgba(240, 94, 94, 0.16);
89
47
  border-radius: 12px;
90
48
  padding: 0 8px;
@@ -96,7 +54,7 @@
96
54
  margin-left: 4px;
97
55
  }
98
56
 
99
- .titaui-dynamic-task-progress__table-row-title-worktime {
57
+ .titaui-dynamic-summary-task-progress__table-row-title-worktime {
100
58
  display: inline-flex;
101
59
  margin-left: 4px;
102
60
  height: 20px;
@@ -108,64 +66,64 @@
108
66
  line-height: 18px;
109
67
  }
110
68
 
111
- .titaui-dynamic-task-progress__table-row-title-icon {
69
+ .titaui-dynamic-summary-task-progress__table-row-title-icon {
112
70
  margin-right: 4px;
113
71
  vertical-align: middle;
114
72
  }
115
73
 
116
- .titaui-dynamic-task-progress__table-row-title-text {
74
+ .titaui-dynamic-summary-task-progress__table-row-title-text {
117
75
  font-size: 14px;
118
76
  font-weight: 600;
119
77
  color: #141c28;
120
78
  line-height: 22px;
121
79
  }
122
80
 
123
- .titaui-dynamic-task-progress__table-row-title-text:hover {
81
+ .titaui-dynamic-summary-task-progress__table-row-title-text:hover {
124
82
  cursor: pointer;
125
83
  color: #2879ff;
126
84
  }
127
85
 
128
- .titaui-dynamic-task-progress__table table {
86
+ .titaui-dynamic-summary-task-progress__table table {
129
87
  width: 100%;
130
88
  }
131
89
 
132
- .titaui-dynamic-task-progress__table table thead {
90
+ .titaui-dynamic-summary-task-progress__table table thead {
133
91
  width: 100%;
134
92
  }
135
93
 
136
- .titaui-dynamic-task-progress__table table tbody {
94
+ .titaui-dynamic-summary-task-progress__table table tbody {
137
95
  width: 100%;
138
96
  }
139
97
 
140
- .titaui-dynamic-task-progress__table table tbody tr {
98
+ .titaui-dynamic-summary-task-progress__table table tbody tr {
141
99
  border-bottom: 1px solid #dfe3ea;
142
100
  }
143
101
 
144
- .titaui-dynamic-task-progress__table table tbody tr:last-child {
102
+ .titaui-dynamic-summary-task-progress__table table tbody tr:last-child {
145
103
  border-bottom: unset;
146
104
  }
147
105
 
148
- .titaui-dynamic-task-progress__table table tbody tr td {
106
+ .titaui-dynamic-summary-task-progress__table table tbody tr td {
149
107
  box-sizing: border-box;
150
108
  padding: 0 12px;
151
109
  border-right: 1px solid #dfe3ea;
152
110
  }
153
111
 
154
- .titaui-dynamic-task-progress__table table tbody tr td:first-child {
112
+ .titaui-dynamic-summary-task-progress__table table tbody tr td:first-child {
155
113
  overflow: hidden;
156
114
  width: 282px;
157
115
  max-width: 282px;
158
116
  }
159
117
 
160
- .titaui-dynamic-task-progress__table table tbody tr td:last-child {
118
+ .titaui-dynamic-summary-task-progress__table table tbody tr td:last-child {
161
119
  border-right: unset;
162
120
  }
163
121
 
164
- .titaui-dynamic-task-progress__table table tbody tr td:nth-child(2) {
122
+ .titaui-dynamic-summary-task-progress__table table tbody tr td:nth-child(2) {
165
123
  padding: 0;
166
124
  }
167
125
 
168
- .titaui-dynamic-task-progress__table-title {
126
+ .titaui-dynamic-summary-task-progress__table-title {
169
127
  height: 40px;
170
128
  background: #f0f4fa;
171
129
  font-size: 13px;
@@ -173,48 +131,44 @@
173
131
  line-height: 18px;
174
132
  }
175
133
 
176
- .titaui-dynamic-task-progress__table-title td {
134
+ .titaui-dynamic-summary-task-progress__table-title td {
177
135
  text-align: center;
178
136
  padding: 0 12px;
179
137
  box-sizing: border-box;
180
138
  border-right: 1px solid #dfe3ea;
181
139
  }
182
140
 
183
- .titaui-dynamic-task-progress__table-title td:last-child {
141
+ .titaui-dynamic-summary-task-progress__table-title td:last-child {
184
142
  border-right: none;
185
143
  }
186
144
 
187
- .titaui-dynamic-task-progress__table-title-okrs {
145
+ .titaui-dynamic-summary-task-progress__table-title-okrs {
188
146
  overflow: hidden;
189
147
  border-top-left-radius: 12px;
190
148
  width: 282px;
191
149
  }
192
150
 
193
- .titaui-dynamic-task-progress__table-title-progress {
151
+ .titaui-dynamic-summary-task-progress__table-title-progress {
194
152
  width: 102px;
195
153
  }
196
154
 
197
- .titaui-dynamic-task-progress__table-title-progress-desc {
155
+ .titaui-dynamic-summary-task-progress__table-title-progress-desc {
198
156
  overflow: hidden;
199
157
  border-top-right-radius: 12px;
200
158
  }
201
159
 
202
- .titaui-dynamic-task-progress__table-title-progress-desc-icon {
160
+ .titaui-dynamic-summary-task-progress__table-title-progress-desc-icon {
203
161
  font-size: 14px;
204
162
  margin-left: 4px;
205
163
  vertical-align: text-top;
206
164
  }
207
165
 
208
- .titaui-dynamic-task-progress__statistic {
166
+ .titaui-dynamic-summary-task-progress__statistic {
209
167
  display: flex;
210
168
  margin-top: 12px;
211
169
  }
212
170
 
213
- .titaui-dynamic-task-progress__statistic--hide {
214
- display: none;
215
- }
216
-
217
- .titaui-dynamic-task-progress__statistic-item {
171
+ .titaui-dynamic-summary-task-progress__statistic-item {
218
172
  flex: 1;
219
173
  height: 48px;
220
174
  max-width: 349px;
@@ -233,24 +187,24 @@
233
187
  cursor: pointer;
234
188
  }
235
189
 
236
- .titaui-dynamic-task-progress__statistic-item:last-child {
190
+ .titaui-dynamic-summary-task-progress__statistic-item:last-child {
237
191
  margin-right: 0;
238
192
  }
239
193
 
240
- .titaui-dynamic-task-progress__statistic-item--finished {
194
+ .titaui-dynamic-summary-task-progress__statistic-item--finished {
241
195
  background: rgba(0, 214, 133, 0.1);
242
196
  }
243
197
 
244
- .titaui-dynamic-task-progress__statistic-item--finished-text {
198
+ .titaui-dynamic-summary-task-progress__statistic-item--finished-text {
245
199
  color: #00d685;
246
200
  font-size: 16px;
247
201
  }
248
202
 
249
- .titaui-dynamic-task-progress__statistic-item--finished-active {
203
+ .titaui-dynamic-summary-task-progress__statistic-item--finished-active {
250
204
  background: rgba(0, 214, 133, 0.3);
251
205
  }
252
206
 
253
- .titaui-dynamic-task-progress__statistic-item--finished-active::before {
207
+ .titaui-dynamic-summary-task-progress__statistic-item--finished-active::before {
254
208
  content: "";
255
209
  position: absolute;
256
210
  top: 0;
@@ -261,20 +215,20 @@
261
215
  border-radius: 12px 0 0 12px;
262
216
  }
263
217
 
264
- .titaui-dynamic-task-progress__statistic-item--processing {
218
+ .titaui-dynamic-summary-task-progress__statistic-item--processing {
265
219
  background: rgba(40, 121, 255, 0.1);
266
220
  }
267
221
 
268
- .titaui-dynamic-task-progress__statistic-item--processing-text {
222
+ .titaui-dynamic-summary-task-progress__statistic-item--processing-text {
269
223
  color: #2879ff;
270
224
  font-size: 16px;
271
225
  }
272
226
 
273
- .titaui-dynamic-task-progress__statistic-item--processing-active {
227
+ .titaui-dynamic-summary-task-progress__statistic-item--processing-active {
274
228
  background: rgba(40, 121, 255, 0.3);
275
229
  }
276
230
 
277
- .titaui-dynamic-task-progress__statistic-item--processing-active::before {
231
+ .titaui-dynamic-summary-task-progress__statistic-item--processing-active::before {
278
232
  content: "";
279
233
  position: absolute;
280
234
  top: 0;
@@ -285,20 +239,20 @@
285
239
  border-radius: 12px 0 0 12px;
286
240
  }
287
241
 
288
- .titaui-dynamic-task-progress__statistic-item--overdue {
242
+ .titaui-dynamic-summary-task-progress__statistic-item--overdue {
289
243
  background: rgba(240, 94, 94, 0.1);
290
244
  }
291
245
 
292
- .titaui-dynamic-task-progress__statistic-item--overdue-text {
246
+ .titaui-dynamic-summary-task-progress__statistic-item--overdue-text {
293
247
  color: #f05e5e;
294
248
  font-size: 16px;
295
249
  }
296
250
 
297
- .titaui-dynamic-task-progress__statistic-item--overdue-active {
251
+ .titaui-dynamic-summary-task-progress__statistic-item--overdue-active {
298
252
  background: rgba(240, 94, 94, 0.3);
299
253
  }
300
254
 
301
- .titaui-dynamic-task-progress__statistic-item--overdue-active::before {
255
+ .titaui-dynamic-summary-task-progress__statistic-item--overdue-active::before {
302
256
  content: "";
303
257
  position: absolute;
304
258
  top: 0;
@@ -43,7 +43,7 @@ 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 prefix = 'titaui-dynamic-task-progress';
46
+ var prefix = 'titaui-dynamic-summary-task-progress';
47
47
 
48
48
  var TaskProgress = function TaskProgress(_ref) {
49
49
  var data = _ref.data,
@@ -68,15 +68,6 @@ var TaskProgress = function TaskProgress(_ref) {
68
68
  activeId = _useState6[0],
69
69
  setActiveId = _useState6[1];
70
70
 
71
- var _useState7 = (0, _react.useState)(true),
72
- _useState8 = _slicedToArray(_useState7, 2),
73
- tableVisible = _useState8[0],
74
- setTableVisible = _useState8[1];
75
-
76
- var handleClickToHideTable = function handleClickToHideTable() {
77
- setTableVisible(!tableVisible);
78
- };
79
-
80
71
  var handleFilterDone = function handleFilterDone() {
81
72
  setActiveId(1);
82
73
  };
@@ -91,14 +82,14 @@ var TaskProgress = function TaskProgress(_ref) {
91
82
 
92
83
  var renderTitle = (0, _react.useMemo)(function () {
93
84
  if (reportType === _interface.EReportType.Daily) {
94
- return (0, _getLocale.getLocale)('Rep_NewS_Toworkasks');
85
+ return (0, _getLocale.getLocale)("Rep_NewS_Toworkasks");
95
86
  } else if (reportType === _interface.EReportType.Weekly) {
96
- return (0, _getLocale.getLocale)('Rep_NewS_Thisetasks');
87
+ return (0, _getLocale.getLocale)("Rep_NewS_Thisetasks");
97
88
  } else if (reportType === _interface.EReportType.Month) {
98
- return (0, _getLocale.getLocale)('Rep_NewS_Taskormonth');
89
+ return (0, _getLocale.getLocale)("Rep_NewS_Taskormonth");
99
90
  }
100
91
 
101
- return '';
92
+ return "";
102
93
  }, [reportType]);
103
94
  var renderTable = (0, _react.useMemo)(function () {
104
95
  return /*#__PURE__*/_react["default"].createElement("table", null, /*#__PURE__*/_react["default"].createElement("thead", null, /*#__PURE__*/_react["default"].createElement("tr", {
@@ -162,13 +153,8 @@ var TaskProgress = function TaskProgress(_ref) {
162
153
  className: prefix
163
154
  }, /*#__PURE__*/_react["default"].createElement("div", {
164
155
  className: "".concat(prefix, "__title")
165
- }, /*#__PURE__*/_react["default"].createElement("div", {
166
- className: (0, _classnames["default"])("".concat(prefix, "__title-arrow"), _defineProperty({}, "".concat(prefix, "__title-arrow--show"), !tableVisible)),
167
- onClick: handleClickToHideTable
168
- }, /*#__PURE__*/_react["default"].createElement("i", {
169
- className: (0, _classnames["default"])('tu-icon-caret-down', "".concat(prefix, "__title-arrow-icon"), _defineProperty({}, "".concat(prefix, "__title-arrow-icon--rotate"), !tableVisible))
170
- })), renderTitle), statusStatistic.done + statusStatistic.doing + statusStatistic.overDue > 0 && /*#__PURE__*/_react["default"].createElement("div", {
171
- className: (0, _classnames["default"])("".concat(prefix, "__statistic"), _defineProperty({}, "".concat(prefix, "__statistic--hide"), !tableVisible))
156
+ }, renderTitle), statusStatistic.done + statusStatistic.doing + statusStatistic.overDue > 0 && /*#__PURE__*/_react["default"].createElement("div", {
157
+ className: "".concat(prefix, "__statistic")
172
158
  }, statusStatistic.done > 0 && /*#__PURE__*/_react["default"].createElement("span", {
173
159
  onClick: handleFilterDone,
174
160
  className: (0, _classnames["default"])("".concat(prefix, "__statistic-item ").concat(prefix, "__statistic-item--finished"), _defineProperty({}, "".concat(prefix, "__statistic-item--finished-active"), activeId === 1))
@@ -185,7 +171,7 @@ var TaskProgress = function TaskProgress(_ref) {
185
171
  }, (0, _getLocale.getLocale)('OKR_MyO_E_Overdue'), /*#__PURE__*/_react["default"].createElement("span", {
186
172
  className: "".concat(prefix, "__statistic-item--overdue-text")
187
173
  }, statusStatistic.overDue))), (tableData[1].length > 0 || tableData[2].length > 0 || tableData[3].length > 0) && /*#__PURE__*/_react["default"].createElement("div", {
188
- className: (0, _classnames["default"])("".concat(prefix, "__table"), _defineProperty({}, "".concat(prefix, "__table--hide"), !tableVisible))
174
+ className: "".concat(prefix, "__table")
189
175
  }, renderTable));
190
176
  };
191
177
 
@@ -39,11 +39,9 @@ var _constant = require("./constant");
39
39
 
40
40
  var _util = require("./util");
41
41
 
42
- var _bsGlobal = require("../../../../utils/bs-global");
43
-
44
42
  require("./index.css");
45
43
 
46
- var _excluded = ["data"];
44
+ var _excluded = ["data", "showDelete"];
47
45
 
48
46
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
49
47
 
@@ -81,10 +79,11 @@ var getEReportType = function getEReportType(type) {
81
79
  };
82
80
 
83
81
  var prefix = "titaui-dynamic-new-report-item";
84
- var loginUserId = (0, _bsGlobal.getUserInfo)().Id;
85
82
 
86
83
  var DynamicReply = function DynamicReply(_ref) {
87
84
  var data = _ref.data,
85
+ _ref$showDelete = _ref.showDelete,
86
+ showDelete = _ref$showDelete === void 0 ? false : _ref$showDelete,
88
87
  restProps = _objectWithoutProperties(_ref, _excluded);
89
88
 
90
89
  var feedId = data.feedId,
@@ -103,26 +102,16 @@ var DynamicReply = function DynamicReply(_ref) {
103
102
  motionValue = _useState2[0],
104
103
  setMotionValue = _useState2[1];
105
104
 
106
- var _useState3 = (0, _react.useState)(false),
107
- _useState4 = _slicedToArray(_useState3, 2),
108
- showDelete = _useState4[0],
109
- setShowDelete = _useState4[1];
110
-
111
- var _useState5 = (0, _react.useState)(false),
112
- _useState6 = _slicedToArray(_useState5, 2),
113
- showEdit = _useState6[0],
114
- setShowEdit = _useState6[1];
115
-
116
105
  var contentRichTextRef = (0, _react.useRef)();
117
106
  var workPlanRichTextRef = (0, _react.useRef)();
118
107
 
119
108
  var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
120
109
  searchKeyWord = _useContext.searchKeyWord;
121
110
 
122
- var _useState7 = (0, _react.useState)(evaluates || []),
123
- _useState8 = _slicedToArray(_useState7, 2),
124
- currentEvalutes = _useState8[0],
125
- setCurrentEvalutes = _useState8[1];
111
+ var _useState3 = (0, _react.useState)(evaluates || []),
112
+ _useState4 = _slicedToArray(_useState3, 2),
113
+ currentEvalutes = _useState4[0],
114
+ setCurrentEvalutes = _useState4[1];
126
115
 
127
116
  var renderSuffix = (0, _react.useMemo)(function () {
128
117
  var _classNames;
@@ -170,12 +159,6 @@ var DynamicReply = function DynamicReply(_ref) {
170
159
  setMotionValue(motion);
171
160
  }
172
161
  }, [dailyContent]);
173
- (0, _react.useEffect)(function () {
174
- if (loginUserId === publishUser.userId) {
175
- setShowDelete(true);
176
- setShowEdit(true);
177
- }
178
- }, []);
179
162
  return /*#__PURE__*/_react["default"].createElement("div", {
180
163
  className: prefix
181
164
  }, /*#__PURE__*/_react["default"].createElement(_summaryHeader["default"], _extends({
@@ -185,7 +168,6 @@ var DynamicReply = function DynamicReply(_ref) {
185
168
  user: publishUser,
186
169
  suffixContent: renderSuffix,
187
170
  showDelete: showDelete,
188
- showEdit: showEdit,
189
171
  canEvaluate: canEvaluate && !currentEvalutes,
190
172
  setEvaluates: setCurrentEvalutes
191
173
  })), /*#__PURE__*/_react["default"].createElement("div", {
@@ -124,8 +124,8 @@ var _default = function _default() {
124
124
  });
125
125
  } else {
126
126
  (0, _requestApis.getMyDepartMent)().then(function (res) {
127
- location.href = "#/summary/manage?departmentName=".concat(res.Data.departments[0].name, "&departmentId=").concat(res.Data.departments[0].id);
128
- var rawTreeData = (0, _helper.translateDepartsToTreeNode)(res.Data.departments);
127
+ location.href = "#/summary/manage?departmentName=".concat(res.Data[0].name, "&departmentId=").concat(res.Data[0].id);
128
+ var rawTreeData = (0, _helper.translateDepartsToTreeNode)(res.Data);
129
129
  var rootNode = {
130
130
  async: true,
131
131
  data: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.12.49",
3
+ "version": "1.12.50",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",