@titaui/pc 1.12.0-beta.1 → 1.12.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/name-avatar/index.css +1 -0
- package/lib/components/avatar/name-avatar/index.js +22 -13
- package/lib/components/avatar/text-avatar/index.css +2 -2
- package/lib/components/avatar/text-avatar/index.js +6 -6
- package/lib/components/button/rect-btn/index.css +45 -11
- package/lib/components/button/rect-btn/index.js +12 -6
- package/lib/components/change-okr-modal/index.js +7 -6
- package/lib/components/checkbox/index.css +3 -3
- package/lib/{pages/aha2021 → components/contact-kefu}/img/canceled.svg +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/kefu.svg +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/not-try.png +0 -0
- package/lib/components/contact-kefu/img/notice.png +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/try.png +0 -0
- package/lib/components/contact-kefu/index.css +85 -0
- package/lib/components/contact-kefu/index.js +102 -0
- package/lib/components/create-okr-modal/index.js +45 -41
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/dialog-confirm/index.css +2 -2
- package/lib/components/drawer/headerAction.js +5 -1
- package/lib/components/drawer/headerDrop.js +42 -4
- package/lib/components/drawer/index.css +33 -0
- package/lib/components/drawer/index.js +26 -3
- package/lib/components/dynamic/constant.js +38 -33
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +48 -10
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +4 -2
- package/lib/components/dynamic/new-ui.css +4 -4
- package/lib/components/dynamic/online-broadcast/data.js +19 -1
- package/lib/components/e-priority/index.css +4 -4
- package/lib/components/e-priority/index.js +10 -2
- package/lib/components/form/form-fields/radios/index.css +4 -0
- package/lib/components/form/form-fields/radios/index.js +4 -3
- package/lib/components/mblog/components/MblogContent.js +5 -2
- package/lib/components/nav-top/components/menu/img/new.svg +30 -0
- package/lib/components/nav-top/components/menu/img/wecome-temp.png +0 -0
- package/lib/components/nav-top/components/menu/index.css +91 -0
- package/lib/components/nav-top/components/menu/index.js +72 -24
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +2 -1
- package/lib/components/nav-top/components/user-message/components/todos/index.css +1 -0
- package/lib/components/nav-top/index.js +6 -2
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +20 -4
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +9 -1
- package/lib/components/okr-detail/components/base-okr-type/index.css +4 -0
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -0
- package/lib/components/okr-detail/components/header/index.js +10 -3
- package/lib/components/okr-detail/components/header/o-name.js +10 -3
- package/lib/components/okr-detail/components/o-classify.js +5 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +16 -16
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +10 -0
- package/lib/components/okr-detail/detail-header/constant.js +53 -0
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +111 -54
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +63 -0
- package/lib/components/okr-detail/detail-header/index.css +11 -0
- package/lib/components/okr-detail/detail-header/index.js +228 -234
- package/lib/components/okr-detail/helper.js +108 -0
- package/lib/components/okr-detail/index.js +21 -4
- package/lib/components/okr-detail/okr-list/index.js +13 -6
- package/lib/components/okr-detail/request-apis.js +14 -8
- package/lib/components/okr-flow/child-node/index.css +1 -1
- package/lib/components/okr-flow/export-modal/index.js +66 -3
- package/lib/components/okr-period-selector/index.js +9 -5
- package/lib/components/okr-period-selector/select-cycle.js +23 -19
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/radio/index.css +3 -3
- package/lib/components/survey-model/index.js +3 -0
- package/lib/components/task-relation-modal/index.js +0 -1
- package/lib/components/task-relation-modal/request-api.js +2 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +0 -11
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +1 -3
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +0 -6
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +0 -4
- package/lib/components/task-tree/index.js +1 -7
- package/lib/components/task-tree/task-item-node/constant.js +39 -22
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +38 -8
- package/lib/components/task-tree/task-item-node/e-task.js +24 -24
- package/lib/components/task-tree/task-item-node/index.css +28 -18
- package/lib/components/task-tree/task-tree.css +1 -1
- package/lib/components/textarea/index.css +142 -0
- package/lib/components/textarea/index.js +262 -0
- package/lib/components/time-picker/time-picker.js +34 -102
- package/lib/components/time-picker/timer-picker-input.js +0 -6
- package/lib/components/toast/index.js +5 -3
- package/lib/components/user-selector/empty/index.css +5 -0
- package/lib/components/user-selector/empty/index.js +9 -3
- package/lib/components/user-selector/export-modules/depart-search-selector/index.js +48 -17
- package/lib/components/user-selector/images/no-auth.png +0 -0
- package/lib/components/user-selector/searched-panel/index.js +1 -0
- package/lib/components-v1/radio/radio.js +1 -1
- package/lib/index.js +48 -0
- package/lib/pages/aha2021/index.css +1 -26
- package/lib/pages/aha2021/index.js +3 -82
- package/lib/pages/new-okr-list/header/common.js +52 -0
- package/lib/pages/new-okr-list/header/index.css +45 -0
- package/lib/pages/new-okr-list/header/index.js +40 -16
- package/lib/pages/new-okr-list/header/operate-record.js +136 -0
- package/lib/pages/new-okr-list/index.js +4 -2
- package/lib/pages/new-okr-list/list/index.js +19 -2
- package/lib/pages/new-okr-list/request-api.js +8 -2
- package/lib/pages/okr-map/unsupport-ie/index.js +3 -5
- package/lib/utils/format-time.js +8 -1
- package/lib/utils/open-data.js +5 -1
- package/package.json +1 -1
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +0 -38
- package/lib/components/task-tree/mock.js +0 -944
|
@@ -117,7 +117,9 @@ function CreateOkrModal(_ref, ref) {
|
|
|
117
117
|
_ref$visible = _ref.visible,
|
|
118
118
|
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
119
119
|
_ref$onClose = _ref.onClose,
|
|
120
|
-
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose
|
|
120
|
+
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
121
|
+
_ref$isFromAssess = _ref.isFromAssess,
|
|
122
|
+
isFromAssess = _ref$isFromAssess === void 0 ? false : _ref$isFromAssess;
|
|
121
123
|
|
|
122
124
|
var _useState = (0, _react.useState)(visible),
|
|
123
125
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -126,7 +128,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
126
128
|
|
|
127
129
|
|
|
128
130
|
var userId = BSGlobal.loginUserInfo.Id;
|
|
129
|
-
var setting = (0, _bsGlobal.getBSGlobal)(
|
|
131
|
+
var setting = (0, _bsGlobal.getBSGlobal)('OkrAdvancedSetting').KRSetting;
|
|
130
132
|
var openOkrType = setting.OkrTypeSetting;
|
|
131
133
|
var openClassify = setting.OkrClassify;
|
|
132
134
|
var openKrWeight = setting.KrWeight;
|
|
@@ -136,7 +138,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
136
138
|
Id = _ref2.Id,
|
|
137
139
|
UserAvatar = _ref2.UserAvatar;
|
|
138
140
|
|
|
139
|
-
var _useState3 = (0, _react.useState)(
|
|
141
|
+
var _useState3 = (0, _react.useState)(''),
|
|
140
142
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
141
143
|
okrName = _useState4[0],
|
|
142
144
|
setOkrName = _useState4[1]; // 目标名称
|
|
@@ -160,7 +162,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
160
162
|
|
|
161
163
|
var _useState9 = (0, _react.useState)({
|
|
162
164
|
departmentId: 0,
|
|
163
|
-
departmentName:
|
|
165
|
+
departmentName: ''
|
|
164
166
|
}),
|
|
165
167
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
166
168
|
dept = _useState10[0],
|
|
@@ -169,7 +171,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
169
171
|
|
|
170
172
|
var _useState11 = (0, _react.useState)({
|
|
171
173
|
groupId: 0,
|
|
172
|
-
groupName:
|
|
174
|
+
groupName: ''
|
|
173
175
|
}),
|
|
174
176
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
175
177
|
team = _useState12[0],
|
|
@@ -177,7 +179,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
177
179
|
|
|
178
180
|
|
|
179
181
|
var _useState13 = (0, _react.useState)({
|
|
180
|
-
typeName: (0, _getLocale.getLocale)(
|
|
182
|
+
typeName: (0, _getLocale.getLocale)('OKR_MyO_Pop_Individual'),
|
|
181
183
|
typeId: 1
|
|
182
184
|
}),
|
|
183
185
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
@@ -216,7 +218,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
216
218
|
principalName: Name,
|
|
217
219
|
userAvatar: UserAvatar,
|
|
218
220
|
krWeight: 100,
|
|
219
|
-
mileStoneName:
|
|
221
|
+
mileStoneName: '',
|
|
220
222
|
confidenceIndex: 5
|
|
221
223
|
}]),
|
|
222
224
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
@@ -226,7 +228,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
226
228
|
var _useState25 = (0, _react.useState)({
|
|
227
229
|
// 对其目标
|
|
228
230
|
parentWorkId: 0,
|
|
229
|
-
parentWorkName:
|
|
231
|
+
parentWorkName: '',
|
|
230
232
|
parentType: 0,
|
|
231
233
|
parentKrId: 0
|
|
232
234
|
}),
|
|
@@ -283,7 +285,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
283
285
|
tipIndex = _useState44[0],
|
|
284
286
|
setTipIndex = _useState44[1];
|
|
285
287
|
|
|
286
|
-
var _useState45 = (0, _react.useState)(
|
|
288
|
+
var _useState45 = (0, _react.useState)(''),
|
|
287
289
|
_useState46 = _slicedToArray(_useState45, 2),
|
|
288
290
|
userAvatarBase64Url = _useState46[0],
|
|
289
291
|
setUserAvatarBase64Url = _useState46[1];
|
|
@@ -307,7 +309,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
307
309
|
var modalRef = (0, _react.useRef)();
|
|
308
310
|
var oInputFoucsRef = (0, _react.useRef)(false);
|
|
309
311
|
var krInputFoucsRef = (0, _react.useRef)(false);
|
|
310
|
-
var downloadDomRef = (0, _react.useRef)(document.createElement(
|
|
312
|
+
var downloadDomRef = (0, _react.useRef)(document.createElement('div'));
|
|
311
313
|
var newOkrDataRef = (0, _react.useRef)(); // kr权重总计
|
|
312
314
|
|
|
313
315
|
var total = 0;
|
|
@@ -363,7 +365,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
363
365
|
setShowCreatedSuccessInfo(true);
|
|
364
366
|
setTipIndex(Math.floor(Math.random() * 6));
|
|
365
367
|
} else {
|
|
366
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
368
|
+
_toast["default"].Success((0, _getLocale.getLocale)('OKR_Db_Success'), {
|
|
367
369
|
duration: 3000
|
|
368
370
|
});
|
|
369
371
|
|
|
@@ -407,7 +409,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
407
409
|
break;
|
|
408
410
|
}
|
|
409
411
|
|
|
410
|
-
_toast["default"].Error((0, _getLocale.getLocale)(
|
|
412
|
+
_toast["default"].Error((0, _getLocale.getLocale)('OKR_MyO_Pop_Targetname'), {
|
|
411
413
|
canClose: false
|
|
412
414
|
});
|
|
413
415
|
|
|
@@ -419,7 +421,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
419
421
|
break;
|
|
420
422
|
}
|
|
421
423
|
|
|
422
|
-
_toast["default"].Error(
|
|
424
|
+
_toast["default"].Error('目标名称不能超过500字', {
|
|
423
425
|
canClose: false
|
|
424
426
|
});
|
|
425
427
|
|
|
@@ -431,7 +433,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
431
433
|
break;
|
|
432
434
|
}
|
|
433
435
|
|
|
434
|
-
_toast["default"].Error(
|
|
436
|
+
_toast["default"].Error('关键成果不能为空', {
|
|
435
437
|
canClose: false
|
|
436
438
|
});
|
|
437
439
|
|
|
@@ -448,7 +450,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
448
450
|
break;
|
|
449
451
|
}
|
|
450
452
|
|
|
451
|
-
_toast["default"].Error(
|
|
453
|
+
_toast["default"].Error('关键成果不能超过500字', {
|
|
452
454
|
canClose: false
|
|
453
455
|
});
|
|
454
456
|
|
|
@@ -462,7 +464,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
462
464
|
break;
|
|
463
465
|
}
|
|
464
466
|
|
|
465
|
-
_toast["default"].Error((0, _getLocale.getLocale)(
|
|
467
|
+
_toast["default"].Error((0, _getLocale.getLocale)('OKR_MyO_Pop_Totalkrnot100'), {
|
|
466
468
|
canClose: false
|
|
467
469
|
});
|
|
468
470
|
|
|
@@ -480,7 +482,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
480
482
|
handleCreatedClose();
|
|
481
483
|
visibilityArea = formatVisiableLimit();
|
|
482
484
|
_context.next = 24;
|
|
483
|
-
return (0, _requestApi.createWidthKr)(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
485
|
+
return (0, _requestApi.createWidthKr)(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
484
486
|
krInfos: krDatas.map(function (kr) {
|
|
485
487
|
return _objectSpread(_objectSpread({}, kr), {}, {
|
|
486
488
|
startDate: cycle.startDate,
|
|
@@ -492,14 +494,16 @@ function CreateOkrModal(_ref, ref) {
|
|
|
492
494
|
}, parent), {}, {
|
|
493
495
|
workType: 6,
|
|
494
496
|
visibility: visibility,
|
|
495
|
-
okrClassify: openClassify ? okrClassify :
|
|
496
|
-
okrType: openOkrType ? type.typeId :
|
|
497
|
+
okrClassify: openClassify ? okrClassify : '',
|
|
498
|
+
okrType: openOkrType ? type.typeId : ''
|
|
497
499
|
}, dept), team), {}, {
|
|
498
500
|
workRoles: [{
|
|
499
501
|
roleType: 1,
|
|
500
502
|
models: [user]
|
|
501
503
|
}]
|
|
502
|
-
}, visibilityArea)
|
|
504
|
+
}, visibilityArea), {}, {
|
|
505
|
+
CreateFromAssess: isFromAssess
|
|
506
|
+
}));
|
|
503
507
|
|
|
504
508
|
case 24:
|
|
505
509
|
data = _context.sent;
|
|
@@ -509,7 +513,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
509
513
|
break;
|
|
510
514
|
}
|
|
511
515
|
|
|
512
|
-
_toast["default"].Error(
|
|
516
|
+
_toast["default"].Error('创建失败,请重试', {
|
|
513
517
|
canClose: false
|
|
514
518
|
});
|
|
515
519
|
|
|
@@ -524,7 +528,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
524
528
|
krTotalLength = 0;
|
|
525
529
|
krDatas && krDatas.forEach(function (kr) {
|
|
526
530
|
// 计算平均长度要去掉百分号和数字
|
|
527
|
-
krTotalLength += kr.mileStoneName.replace(/(%|\d)/g,
|
|
531
|
+
krTotalLength += kr.mileStoneName.replace(/(%|\d)/g, '').length;
|
|
528
532
|
});
|
|
529
533
|
krAvarageLength = krDatas.length > 0 ? krTotalLength / krDatas.length : 0;
|
|
530
534
|
krMeasurableLength = krsCheckResult.friendlyResult.filter(function (kr) {
|
|
@@ -532,13 +536,13 @@ function CreateOkrModal(_ref, ref) {
|
|
|
532
536
|
}).length;
|
|
533
537
|
oHasVtWords = oNameCheckResult[0].result === _okrCreateSuggest.EOkrCreateSuggestResultType.correct;
|
|
534
538
|
callData = data;
|
|
535
|
-
callData.countSurpassPercentage = (0, _getCreateOkrSurpassPercent["default"])(okrName.replace(/(%|\d)/g,
|
|
539
|
+
callData.countSurpassPercentage = (0, _getCreateOkrSurpassPercent["default"])(okrName.replace(/(%|\d)/g, '').length, oHasVtWords, krNum, krMeasurableLength, Number.parseInt(krAvarageLength.toString()));
|
|
536
540
|
newOkrDataRef.current = callData;
|
|
537
541
|
handleOnSuccess();
|
|
538
542
|
} else {
|
|
539
543
|
workId = data.workId;
|
|
540
544
|
|
|
541
|
-
_drawerManager["default"].open(
|
|
545
|
+
_drawerManager["default"].open('okrDetail', {
|
|
542
546
|
okrId: workId
|
|
543
547
|
});
|
|
544
548
|
}
|
|
@@ -586,10 +590,10 @@ function CreateOkrModal(_ref, ref) {
|
|
|
586
590
|
principalName: Name,
|
|
587
591
|
userAvatar: UserAvatar,
|
|
588
592
|
krWeight: 100,
|
|
589
|
-
mileStoneName:
|
|
593
|
+
mileStoneName: '',
|
|
590
594
|
confidenceIndex: 5
|
|
591
595
|
}]);
|
|
592
|
-
setOkrName(
|
|
596
|
+
setOkrName('');
|
|
593
597
|
setUser({
|
|
594
598
|
name: Name,
|
|
595
599
|
id: Id,
|
|
@@ -598,10 +602,10 @@ function CreateOkrModal(_ref, ref) {
|
|
|
598
602
|
setIsCustomWeight(false);
|
|
599
603
|
setDept({
|
|
600
604
|
departmentId: 0,
|
|
601
|
-
departmentName:
|
|
605
|
+
departmentName: ''
|
|
602
606
|
});
|
|
603
607
|
setType({
|
|
604
|
-
typeName: (0, _getLocale.getLocale)(
|
|
608
|
+
typeName: (0, _getLocale.getLocale)('OKR_MyO_Pop_Individual'),
|
|
605
609
|
typeId: 1
|
|
606
610
|
});
|
|
607
611
|
setCycle(cycle);
|
|
@@ -609,7 +613,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
609
613
|
setVisibility(1);
|
|
610
614
|
setParent({
|
|
611
615
|
parentWorkId: 0,
|
|
612
|
-
parentWorkName:
|
|
616
|
+
parentWorkName: '',
|
|
613
617
|
parentType: 0,
|
|
614
618
|
parentKrId: 0
|
|
615
619
|
});
|
|
@@ -723,7 +727,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
723
727
|
var ModalTitle = (0, _react.useMemo)(function () {
|
|
724
728
|
return /*#__PURE__*/_react["default"].createElement(_style.Line, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
725
729
|
className: "create-modal__title"
|
|
726
|
-
}, (0, _getLocale.getLocale)(
|
|
730
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Pop_Title_Newobjective')), /*#__PURE__*/_react["default"].createElement(_okrCase["default"], {
|
|
727
731
|
okrTemplateEnabled: true,
|
|
728
732
|
onOkrApply: OnOkRApplyTplHandler
|
|
729
733
|
}));
|
|
@@ -765,7 +769,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
765
769
|
|
|
766
770
|
setShowCreatedSuccessInfo(false);
|
|
767
771
|
|
|
768
|
-
_drawerManager["default"].open(
|
|
772
|
+
_drawerManager["default"].open('okrDetail', {
|
|
769
773
|
okrId: workId
|
|
770
774
|
});
|
|
771
775
|
|
|
@@ -784,10 +788,10 @@ function CreateOkrModal(_ref, ref) {
|
|
|
784
788
|
|
|
785
789
|
var trackAction = function trackAction() {
|
|
786
790
|
// @ts-ignore
|
|
787
|
-
window.titaTracker && window.titaTracker(
|
|
788
|
-
actionName:
|
|
789
|
-
actionGroup: (0, _getLocale.getLocale)(
|
|
790
|
-
productName: (0, _getLocale.getLocale)(
|
|
791
|
+
window.titaTracker && window.titaTracker('action').record({
|
|
792
|
+
actionName: '点击【教你写OKR】',
|
|
793
|
+
actionGroup: (0, _getLocale.getLocale)('OKR_MyO_Collr_Butt_CreatOKR'),
|
|
794
|
+
productName: (0, _getLocale.getLocale)('Menu_Title_OKRs')
|
|
791
795
|
});
|
|
792
796
|
};
|
|
793
797
|
|
|
@@ -797,7 +801,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
797
801
|
}
|
|
798
802
|
return /*#__PURE__*/_react["default"].createElement("a", {
|
|
799
803
|
className: "teact-write-okr",
|
|
800
|
-
href: (0, _helpers.isDingDing)() ?
|
|
804
|
+
href: (0, _helpers.isDingDing)() ? 'https://wiki.tita.com/pages/viewpage.action?pageId=15696093' : 'https://docs.tita.com/question/okr-write/',
|
|
801
805
|
target: "_blank",
|
|
802
806
|
onClick: trackAction,
|
|
803
807
|
rel: "noreferrer"
|
|
@@ -806,7 +810,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
806
810
|
src: _teachOkr["default"]
|
|
807
811
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
808
812
|
className: "teact-write-okr__text"
|
|
809
|
-
}, (0, _getLocale.getLocale)(
|
|
813
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Pop_TeachwriteOKR')));
|
|
810
814
|
}, []);
|
|
811
815
|
(0, _react.useEffect)(function () {
|
|
812
816
|
// @ts-ignore
|
|
@@ -820,8 +824,8 @@ function CreateOkrModal(_ref, ref) {
|
|
|
820
824
|
mask: true,
|
|
821
825
|
centered: true,
|
|
822
826
|
onOk: onModalOkHandler,
|
|
823
|
-
okText: (0, _getLocale.getLocale)(
|
|
824
|
-
cancelText: (0, _getLocale.getLocale)(
|
|
827
|
+
okText: (0, _getLocale.getLocale)('OKR_MyO_Pop_Createnow'),
|
|
828
|
+
cancelText: (0, _getLocale.getLocale)('Mod_Cancel'),
|
|
825
829
|
title: ModalTitle,
|
|
826
830
|
visible: isVisible,
|
|
827
831
|
onCancel: hideCreateOkrModal,
|
|
@@ -829,7 +833,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
829
833
|
footerLeftContent: renderFooterTeachWriteOKr,
|
|
830
834
|
zIndex: 1200,
|
|
831
835
|
bodyStyle: {
|
|
832
|
-
flexBasis:
|
|
836
|
+
flexBasis: 'auto'
|
|
833
837
|
}
|
|
834
838
|
}, /*#__PURE__*/_react["default"].createElement(_style.Wrapper, {
|
|
835
839
|
ref: wrapperRef
|
|
@@ -857,7 +861,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
857
861
|
setIsInputContent: setIsInputContent
|
|
858
862
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
859
863
|
className: "create-modal__title-line"
|
|
860
|
-
}, /*#__PURE__*/_react["default"].createElement(_style.BlueBar, null), (0, _getLocale.getLocale)(
|
|
864
|
+
}, /*#__PURE__*/_react["default"].createElement(_style.BlueBar, null), (0, _getLocale.getLocale)('Per_Ass_New_Appr_detail_moreS')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
861
865
|
className: "space-between-row"
|
|
862
866
|
}, /*#__PURE__*/_react["default"].createElement(_okrParent["default"], {
|
|
863
867
|
parent: parent,
|
|
@@ -46,7 +46,7 @@ var createWidthKr = /*#__PURE__*/function () {
|
|
|
46
46
|
while (1) {
|
|
47
47
|
switch (_context.prev = _context.next) {
|
|
48
48
|
case 0:
|
|
49
|
-
url = "".concat(requestDomain(), "/api/
|
|
49
|
+
url = "".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/okr/createWithKr");
|
|
50
50
|
_context.next = 3;
|
|
51
51
|
return _axios["default"].post(url, _objectSpread({
|
|
52
52
|
workType: 6
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
|
|
34
34
|
.titaui-dialog-confirm__btn-cancel {
|
|
35
35
|
background: #ffffff;
|
|
36
|
-
border: 1px solid #dfe3ea;
|
|
36
|
+
border: 1px solid #dfe3ea !important;
|
|
37
37
|
color: #6f7886;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.titaui-dialog-confirm__btn-cancel:hover {
|
|
41
41
|
color: #2879ff;
|
|
42
|
-
border: 1px solid #2879ff;
|
|
42
|
+
border: 1px solid #2879ff !important;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.titaui-dialog-confirm__btn-cancel-text {
|
|
@@ -49,7 +49,9 @@ function HeaderAction(_ref) {
|
|
|
49
49
|
_onClick = _ref.onClick,
|
|
50
50
|
className = _ref.className,
|
|
51
51
|
title = _ref.title,
|
|
52
|
-
children = _ref.children
|
|
52
|
+
children = _ref.children,
|
|
53
|
+
approvalSetting = _ref.approvalSetting,
|
|
54
|
+
detailInfo = _ref.detailInfo;
|
|
53
55
|
|
|
54
56
|
var _useState = (0, _react.useState)(false),
|
|
55
57
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -99,6 +101,8 @@ function HeaderAction(_ref) {
|
|
|
99
101
|
if (children && children.length > 0) {
|
|
100
102
|
content = /*#__PURE__*/_react["default"].createElement(_headerDrop["default"], {
|
|
101
103
|
visible: dropVisible,
|
|
104
|
+
detailInfo: detailInfo,
|
|
105
|
+
approvalSetting: approvalSetting,
|
|
102
106
|
onVisibleChange: function onVisibleChange(visible) {
|
|
103
107
|
active.current = visible;
|
|
104
108
|
!visible && setDropVisible(false);
|
|
@@ -9,6 +9,8 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _helper = require("../okr-detail/helper");
|
|
13
|
+
|
|
12
14
|
var _popup = _interopRequireDefault(require("../popup"));
|
|
13
15
|
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -44,7 +46,9 @@ var HeaderDropItem = function HeaderDropItem(_ref) {
|
|
|
44
46
|
colorInDrop = _ref.colorInDrop,
|
|
45
47
|
hoverColorInDrop = _ref.hoverColorInDrop,
|
|
46
48
|
_onClick = _ref.onClick,
|
|
47
|
-
onClose = _ref.onClose
|
|
49
|
+
onClose = _ref.onClose,
|
|
50
|
+
approvalSetting = _ref.approvalSetting,
|
|
51
|
+
detailInfo = _ref.detailInfo;
|
|
48
52
|
|
|
49
53
|
var _useState = (0, _react.useState)(false),
|
|
50
54
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -52,7 +56,37 @@ var HeaderDropItem = function HeaderDropItem(_ref) {
|
|
|
52
56
|
setHover = _useState2[1];
|
|
53
57
|
|
|
54
58
|
var hasIcon = !!icon && typeof icon === "string";
|
|
55
|
-
|
|
59
|
+
var applyState = detailInfo === null || detailInfo === void 0 ? void 0 : detailInfo.applyState;
|
|
60
|
+
var OkrAndKrApprovalTypes = detailInfo === null || detailInfo === void 0 ? void 0 : detailInfo.OkrAndKrApprovalTypes;
|
|
61
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, icon === 'tu-icon-del' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, (0, _helper.getApprovalOkr)(approvalSetting, 'deleteOkr', applyState, OkrAndKrApprovalTypes) ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
|
+
className: "header-drop-item",
|
|
63
|
+
style: {
|
|
64
|
+
color: hover ? hoverColorInDrop || hoverColor : colorInDrop || color
|
|
65
|
+
},
|
|
66
|
+
onClick: function onClick(e) {
|
|
67
|
+
_onClick && _onClick(e);
|
|
68
|
+
onClose(false);
|
|
69
|
+
},
|
|
70
|
+
onMouseOver: function onMouseOver() {
|
|
71
|
+
return setHover(true);
|
|
72
|
+
},
|
|
73
|
+
onMouseOut: function onMouseOut() {
|
|
74
|
+
return setHover(false);
|
|
75
|
+
}
|
|
76
|
+
}, hasIcon && /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
+
className: "header-drop-item-icon",
|
|
78
|
+
style: {
|
|
79
|
+
color: hover ? hoverIconColorInDrop || hoverColorInDrop || hoverColor : iconColorInDrop || colorInDrop || color
|
|
80
|
+
}
|
|
81
|
+
}, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
82
|
+
className: icon
|
|
83
|
+
}) : icon), title) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
|
+
className: "header-drop-item-approval"
|
|
85
|
+
}, hasIcon && /*#__PURE__*/_react["default"].createElement("div", {
|
|
86
|
+
className: "header-drop-item-icon"
|
|
87
|
+
}, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
88
|
+
className: icon
|
|
89
|
+
}) : icon), title)) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
56
90
|
className: "header-drop-item",
|
|
57
91
|
style: {
|
|
58
92
|
color: hover ? hoverColorInDrop || hoverColor : colorInDrop || color
|
|
@@ -74,19 +108,23 @@ var HeaderDropItem = function HeaderDropItem(_ref) {
|
|
|
74
108
|
}
|
|
75
109
|
}, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
76
110
|
className: icon
|
|
77
|
-
}) : icon), title);
|
|
111
|
+
}) : icon), title));
|
|
78
112
|
};
|
|
79
113
|
|
|
80
114
|
var HeaderDrop = function HeaderDrop(_ref2) {
|
|
81
115
|
var visible = _ref2.visible,
|
|
82
116
|
onVisibleChange = _ref2.onVisibleChange,
|
|
83
117
|
items = _ref2.items,
|
|
84
|
-
children = _ref2.children
|
|
118
|
+
children = _ref2.children,
|
|
119
|
+
approvalSetting = _ref2.approvalSetting,
|
|
120
|
+
detailInfo = _ref2.detailInfo;
|
|
85
121
|
var renderDrop = (0, _react.useMemo)(function () {
|
|
86
122
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
123
|
className: "titaui-drawer-header-action-drop-wrapper"
|
|
88
124
|
}, items.map(function (item) {
|
|
89
125
|
return /*#__PURE__*/_react["default"].createElement(HeaderDropItem, _extends({}, item, {
|
|
126
|
+
detailInfo: detailInfo,
|
|
127
|
+
approvalSetting: approvalSetting,
|
|
90
128
|
onClose: function onClose() {
|
|
91
129
|
return onVisibleChange(false);
|
|
92
130
|
}
|
|
@@ -164,6 +164,39 @@
|
|
|
164
164
|
background-repeat: no-repeat;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
+
.titaui-drawer-header-action-drop-wrapper .header-drop-item-approval {
|
|
168
|
+
height: 32px;
|
|
169
|
+
display: flex;
|
|
170
|
+
align-items: center;
|
|
171
|
+
padding: 0 23px;
|
|
172
|
+
cursor: pointer;
|
|
173
|
+
color: #BFC7D5;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.titaui-drawer-header-action-drop-wrapper .header-drop-item-approval-icon {
|
|
177
|
+
font-size: 18px;
|
|
178
|
+
color: inherit;
|
|
179
|
+
width: 18px;
|
|
180
|
+
height: 18px;
|
|
181
|
+
cursor: pointer;
|
|
182
|
+
margin-right: 10px;
|
|
183
|
+
background-size: contain;
|
|
184
|
+
background-position: center center;
|
|
185
|
+
background-repeat: no-repeat;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.titaui-drawer-header-action-drop-wrapper .header-drop-item-approval-icon > span {
|
|
189
|
+
display: flex;
|
|
190
|
+
align-items: center;
|
|
191
|
+
justify-content: center;
|
|
192
|
+
color: inherit;
|
|
193
|
+
width: 18px;
|
|
194
|
+
height: 18px;
|
|
195
|
+
background-size: contain;
|
|
196
|
+
background-position: center center;
|
|
197
|
+
background-repeat: no-repeat;
|
|
198
|
+
}
|
|
199
|
+
|
|
167
200
|
.drawer-left .drawer-content-wrapper,
|
|
168
201
|
.drawer-right .drawer-content-wrapper,
|
|
169
202
|
.drawer-left .drawer-content,
|
|
@@ -25,7 +25,9 @@ require("./index.css");
|
|
|
25
25
|
|
|
26
26
|
var _context = _interopRequireDefault(require("../drawer-manager/context"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _dom = require("./utils/dom");
|
|
29
|
+
|
|
30
|
+
var _excluded = ["visible", "placement", "children", "mask", "width", "className", "contentWrapperStyle", "onClose", "style", "afterVisibleChange", "destroyOnClose", "bodyStyle", "zIndex", "autoClosable"];
|
|
29
31
|
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
33
|
|
|
@@ -70,6 +72,8 @@ var Drawer = function Drawer(props) {
|
|
|
70
72
|
bodyStyle = props.bodyStyle,
|
|
71
73
|
_props$zIndex = props.zIndex,
|
|
72
74
|
zIndex = _props$zIndex === void 0 ? 1200 : _props$zIndex,
|
|
75
|
+
_props$autoClosable = props.autoClosable,
|
|
76
|
+
autoClosable = _props$autoClosable === void 0 ? false : _props$autoClosable,
|
|
73
77
|
rest = _objectWithoutProperties(props, _excluded);
|
|
74
78
|
|
|
75
79
|
var handleAfterVisibleChange = (0, _react.useCallback)(function (opened) {
|
|
@@ -89,6 +93,20 @@ var Drawer = function Drawer(props) {
|
|
|
89
93
|
return children;
|
|
90
94
|
}
|
|
91
95
|
|
|
96
|
+
var autoClose = function autoClose(e) {
|
|
97
|
+
if ((0, _dom.hasAncestorElement)(e.target, 'document-mouse-event-ignore,rc-tooltip,titaui-popup,rc-dialog-root,common-modal,in-modal,task-hot-add')) return;
|
|
98
|
+
onClose();
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
(0, _react.useEffect)(function () {
|
|
102
|
+
if (autoClosable) {
|
|
103
|
+
document.addEventListener('mousedown', autoClose);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return function () {
|
|
107
|
+
document.removeEventListener('mousedown', autoClose);
|
|
108
|
+
};
|
|
109
|
+
}, []);
|
|
92
110
|
return /*#__PURE__*/_react["default"].createElement(DrawerContext.Provider, {
|
|
93
111
|
value: {
|
|
94
112
|
close: function close() {
|
|
@@ -123,7 +141,10 @@ function DrawerHeader(_ref) {
|
|
|
123
141
|
content = _ref.content,
|
|
124
142
|
style = _ref.style,
|
|
125
143
|
onClose = _ref.onClose,
|
|
126
|
-
actionComponent = _ref.actionComponent
|
|
144
|
+
actionComponent = _ref.actionComponent,
|
|
145
|
+
onlyShowContent = _ref.onlyShowContent,
|
|
146
|
+
approvalSetting = _ref.approvalSetting,
|
|
147
|
+
detailInfo = _ref.detailInfo;
|
|
127
148
|
var drawer = (0, _react.useContext)(DrawerContext);
|
|
128
149
|
var manager = (0, _react.useContext)(_context["default"]);
|
|
129
150
|
var showClose = closable && (!!onClose || !!drawer);
|
|
@@ -152,9 +173,11 @@ function DrawerHeader(_ref) {
|
|
|
152
173
|
style: {
|
|
153
174
|
flex: 1
|
|
154
175
|
}
|
|
155
|
-
}), /*#__PURE__*/_react["default"].createElement("div", null, actionComponent), displayActions.map(function (action) {
|
|
176
|
+
}), /*#__PURE__*/_react["default"].createElement("div", null, onlyShowContent), /*#__PURE__*/_react["default"].createElement("div", null, actionComponent), displayActions.map(function (action) {
|
|
156
177
|
return /*#__PURE__*/_react["default"].createElement(_headerAction["default"], action);
|
|
157
178
|
}), !!collapsedActions.length && /*#__PURE__*/_react["default"].createElement(_headerAction["default"], {
|
|
179
|
+
approvalSetting: approvalSetting,
|
|
180
|
+
detailInfo: detailInfo,
|
|
158
181
|
title: (0, _getLocale.getLocale)('Mod_MoreOperate'),
|
|
159
182
|
icon: "tu-icon-10",
|
|
160
183
|
children: collapsedActions
|
|
@@ -3,26 +3,26 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getObjTypeMapText = exports.PlanReportType = exports.OkrRiskMapping = exports.ObjectType = exports.EStatusStatus2ClassType = exports.EShareType = exports.EObjType = exports.EFeedType = void 0;
|
|
6
|
+
exports.getObjTypeMapText = exports.PlanReportType = exports.PlanReportTrackActionNameMap = exports.OkrRiskMapping = exports.ObjectType = exports.EStatusStatus2ClassType = exports.EShareType = exports.EObjType = exports.EFeedType = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("../../utils/getLocale");
|
|
9
9
|
|
|
10
10
|
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; }
|
|
11
11
|
|
|
12
12
|
var OkrRiskMapping = {
|
|
13
|
-
0:
|
|
13
|
+
0: "normal",
|
|
14
14
|
// 正常推进
|
|
15
|
-
1:
|
|
15
|
+
1: "normal",
|
|
16
16
|
// 正常推进
|
|
17
|
-
2:
|
|
17
|
+
2: "risk",
|
|
18
18
|
// 注意风险
|
|
19
|
-
3:
|
|
19
|
+
3: "delay",
|
|
20
20
|
// 已有风险
|
|
21
|
-
4:
|
|
21
|
+
4: "end",
|
|
22
22
|
// kr及o全都完成
|
|
23
|
-
5:
|
|
23
|
+
5: "delay",
|
|
24
24
|
// 延期完成
|
|
25
|
-
6:
|
|
25
|
+
6: "normal" // 正常推进
|
|
26
26
|
|
|
27
27
|
};
|
|
28
28
|
exports.OkrRiskMapping = OkrRiskMapping;
|
|
@@ -82,7 +82,7 @@ exports.EObjType = EObjType;
|
|
|
82
82
|
var getObjTypeMapText = function getObjTypeMapText(key) {
|
|
83
83
|
var _data;
|
|
84
84
|
|
|
85
|
-
var data = (_data = {}, _defineProperty(_data, EObjType.Project, (0, _getLocale.getLocale)(
|
|
85
|
+
var data = (_data = {}, _defineProperty(_data, EObjType.Project, (0, _getLocale.getLocale)("Menu_Title_Projects")), _defineProperty(_data, EObjType.Task, (0, _getLocale.getLocale)("Mod_Tasks")), _defineProperty(_data, EObjType.O, (0, _getLocale.getLocale)("Mod_Objective")), _defineProperty(_data, EObjType.Kr, (0, _getLocale.getLocale)("Mod_KeyResults")), _defineProperty(_data, EObjType.MileStone, (0, _getLocale.getLocale)("Pro_page_Plan_Milestone")), _defineProperty(_data, EObjType.KanBan, (0, _getLocale.getLocale)("Pro_page_V_Tab_Kanban")), _defineProperty(_data, EObjType.Report, "总结"), _data);
|
|
86
86
|
return data[key];
|
|
87
87
|
};
|
|
88
88
|
|
|
@@ -90,34 +90,39 @@ exports.getObjTypeMapText = getObjTypeMapText;
|
|
|
90
90
|
|
|
91
91
|
var ObjectType = function ObjectType() {
|
|
92
92
|
return {
|
|
93
|
-
1: (0, _getLocale.getLocale)(
|
|
94
|
-
4: (0, _getLocale.getLocale)(
|
|
95
|
-
5: (0, _getLocale.getLocale)(
|
|
96
|
-
6: (0, _getLocale.getLocale)(
|
|
97
|
-
7: (0, _getLocale.getLocale)(
|
|
98
|
-
8: (0, _getLocale.getLocale)(
|
|
99
|
-
10: (0, _getLocale.getLocale)(
|
|
100
|
-
11: (0, _getLocale.getLocale)(
|
|
101
|
-
12: (0, _getLocale.getLocale)(
|
|
102
|
-
62: (0, _getLocale.getLocale)(
|
|
103
|
-
65: (0, _getLocale.getLocale)(
|
|
104
|
-
70: (0, _getLocale.getLocale)(
|
|
105
|
-
79: (0, _getLocale.getLocale)(
|
|
106
|
-
80: (0, _getLocale.getLocale)(
|
|
107
|
-
42: (0, _getLocale.getLocale)(
|
|
93
|
+
1: (0, _getLocale.getLocale)("Mod_sannouncement"),
|
|
94
|
+
4: (0, _getLocale.getLocale)("Menu_Title_Projects"),
|
|
95
|
+
5: (0, _getLocale.getLocale)("Mod_sPerformanceForm"),
|
|
96
|
+
6: (0, _getLocale.getLocale)("Mod_sPerformanceGoals"),
|
|
97
|
+
7: (0, _getLocale.getLocale)("Mod_stasks"),
|
|
98
|
+
8: (0, _getLocale.getLocale)("Mod_sDailySummary"),
|
|
99
|
+
10: (0, _getLocale.getLocale)("Feed_sFeed"),
|
|
100
|
+
11: (0, _getLocale.getLocale)("Pro_page_Plan"),
|
|
101
|
+
12: (0, _getLocale.getLocale)("Feed_OperationTasks"),
|
|
102
|
+
62: (0, _getLocale.getLocale)("Mod_sobjective"),
|
|
103
|
+
65: (0, _getLocale.getLocale)("Feed_Keyresults"),
|
|
104
|
+
70: (0, _getLocale.getLocale)("OKR_MyO_KRP_Review"),
|
|
105
|
+
79: (0, _getLocale.getLocale)("Mod_skeyprogress"),
|
|
106
|
+
80: (0, _getLocale.getLocale)("Feed_sAnnouncement"),
|
|
107
|
+
42: (0, _getLocale.getLocale)("OKR_MyO_E_Reward")
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
exports.ObjectType = ObjectType;
|
|
112
112
|
var EStatusStatus2ClassType = {
|
|
113
|
-
2:
|
|
114
|
-
1:
|
|
115
|
-
4:
|
|
116
|
-
3:
|
|
117
|
-
6:
|
|
118
|
-
0:
|
|
119
|
-
5:
|
|
113
|
+
2: "tu-icon-finished",
|
|
114
|
+
1: "tu-icon-running",
|
|
115
|
+
4: "tu-icon-canceled",
|
|
116
|
+
3: "tu-icon-deferred",
|
|
117
|
+
6: "tu-icon-paused",
|
|
118
|
+
0: "tu-icon-notstart",
|
|
119
|
+
5: "tu-icon-jiantou-right"
|
|
120
120
|
};
|
|
121
121
|
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
122
|
-
var PlanReportType = [
|
|
123
|
-
exports.PlanReportType = PlanReportType;
|
|
122
|
+
var PlanReportType = ["titaPlanReport", "titaPlanManagerReport"];
|
|
123
|
+
exports.PlanReportType = PlanReportType;
|
|
124
|
+
var PlanReportTrackActionNameMap = {
|
|
125
|
+
titaPlanReport: "动态日报推送",
|
|
126
|
+
titaPlanManagerReport: "动态日报推送-管理者"
|
|
127
|
+
};
|
|
128
|
+
exports.PlanReportTrackActionNameMap = PlanReportTrackActionNameMap;
|