@titaui/pc 1.11.47 → 1.12.0-beta.1
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 +0 -1
- package/lib/components/avatar/name-avatar/index.js +13 -22
- 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 +11 -45
- package/lib/components/button/rect-btn/index.js +6 -12
- package/lib/components/change-okr-modal/index.js +6 -7
- package/lib/components/checkbox/index.css +3 -3
- package/lib/components/create-okr-modal/index.js +41 -45
- 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 +1 -5
- package/lib/components/drawer/headerDrop.js +4 -42
- package/lib/components/drawer/index.css +0 -33
- package/lib/components/drawer/index.js +3 -26
- package/lib/components/dynamic/constant.js +33 -38
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +10 -48
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +2 -4
- package/lib/components/dynamic/new-ui.css +4 -4
- package/lib/components/dynamic/online-broadcast/data.js +1 -19
- package/lib/components/e-priority/index.css +4 -4
- package/lib/components/e-priority/index.js +2 -10
- package/lib/components/mblog/components/MblogContent.js +2 -5
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +11 -9
- package/lib/components/nav-top/components/menu/index.css +0 -91
- package/lib/components/nav-top/components/menu/index.js +24 -72
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -2
- package/lib/components/nav-top/components/user-message/components/todos/index.css +0 -1
- package/lib/components/nav-top/index.js +2 -6
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +4 -20
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -9
- package/lib/components/okr-detail/components/header/index.js +3 -10
- package/lib/components/okr-detail/components/header/o-name.js +3 -10
- package/lib/components/okr-detail/components/o-classify.js +1 -5
- 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 +0 -10
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +54 -111
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +38 -0
- package/lib/components/okr-detail/detail-header/index.css +0 -11
- package/lib/components/okr-detail/detail-header/index.js +234 -228
- package/lib/components/okr-detail/index.js +4 -21
- package/lib/components/okr-detail/okr-list/index.js +6 -13
- package/lib/components/okr-detail/request-apis.js +8 -14
- package/lib/components/okr-flow/child-node/index.css +1 -1
- package/lib/components/okr-flow/export-modal/index.js +3 -66
- package/lib/components/okr-period-selector/index.js +5 -9
- package/lib/components/okr-period-selector/select-cycle.js +19 -23
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/survey-model/index.js +0 -3
- package/lib/components/task-relation-modal/index.js +1 -0
- package/lib/components/task-relation-modal/request-api.js +1 -2
- package/lib/components/task-tree/index.js +7 -1
- package/lib/components/task-tree/mock.js +944 -0
- package/lib/components/task-tree/task-item-node/constant.js +22 -39
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +8 -38
- package/lib/components/task-tree/task-item-node/e-task.js +24 -24
- package/lib/components/task-tree/task-item-node/index.css +18 -28
- package/lib/components/task-tree/task-tree.css +1 -1
- package/lib/components/time-picker/time-picker.js +102 -34
- package/lib/components/time-picker/timer-picker-input.js +6 -0
- package/lib/components/toast/index.js +3 -5
- package/lib/index.js +0 -40
- package/lib/pages/new-okr-list/header/index.css +0 -45
- package/lib/pages/new-okr-list/header/index.js +16 -40
- package/lib/pages/new-okr-list/index.js +2 -4
- package/lib/pages/new-okr-list/list/index.js +2 -19
- package/lib/pages/new-okr-list/request-api.js +2 -8
- package/lib/pages/okr-map/unsupport-ie/index.js +5 -3
- package/lib/utils/format-time.js +1 -8
- package/lib/utils/open-data.js +1 -5
- package/package.json +1 -1
- package/lib/components/nav-top/components/menu/img/new.svg +0 -30
- package/lib/components/nav-top/components/menu/img/wecome-temp.png +0 -0
- package/lib/components/okr-detail/detail-header/constant.js +0 -53
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +0 -59
- package/lib/components/okr-detail/helper.js +0 -108
- package/lib/components/textarea/index.css +0 -142
- package/lib/components/textarea/index.js +0 -259
- package/lib/pages/new-okr-list/header/common.js +0 -52
- package/lib/pages/new-okr-list/header/operate-record.js +0 -136
|
@@ -168,7 +168,6 @@ var Toast = /*#__PURE__*/function () {
|
|
|
168
168
|
var options,
|
|
169
169
|
key,
|
|
170
170
|
ins,
|
|
171
|
-
canClose,
|
|
172
171
|
_args3 = arguments;
|
|
173
172
|
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
174
173
|
while (1) {
|
|
@@ -181,15 +180,14 @@ var Toast = /*#__PURE__*/function () {
|
|
|
181
180
|
|
|
182
181
|
case 4:
|
|
183
182
|
ins = _context3.sent;
|
|
184
|
-
canClose = options.canClose !== undefined ? options.canClose : false;
|
|
185
183
|
ins.notice({
|
|
186
|
-
content: (0, _SuccessRender.RenderError)(msg, key, canClose, ins),
|
|
184
|
+
content: (0, _SuccessRender.RenderError)(msg, key, options.canClose, ins),
|
|
187
185
|
style: options.style,
|
|
188
|
-
duration: options.duration || canClose === false ? 3 : 3000,
|
|
186
|
+
duration: options.duration || options.canClose === false ? 3 : 3000,
|
|
189
187
|
key: key
|
|
190
188
|
});
|
|
191
189
|
|
|
192
|
-
case
|
|
190
|
+
case 6:
|
|
193
191
|
case "end":
|
|
194
192
|
return _context3.stop();
|
|
195
193
|
}
|
package/lib/index.js
CHANGED
|
@@ -51,12 +51,6 @@ Object.defineProperty(exports, "Communication", {
|
|
|
51
51
|
return _communication["default"];
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
Object.defineProperty(exports, "ConditionRender", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _conditionRender["default"];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
54
|
Object.defineProperty(exports, "Confidence", {
|
|
61
55
|
enumerable: true,
|
|
62
56
|
get: function get() {
|
|
@@ -69,12 +63,6 @@ Object.defineProperty(exports, "CreateOkrModal", {
|
|
|
69
63
|
return _createOkrModal["default"];
|
|
70
64
|
}
|
|
71
65
|
});
|
|
72
|
-
Object.defineProperty(exports, "DangerousHtml", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function get() {
|
|
75
|
-
return _dangerousHtml["default"];
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
66
|
Object.defineProperty(exports, "DatePicker", {
|
|
79
67
|
enumerable: true,
|
|
80
68
|
get: function get() {
|
|
@@ -171,12 +159,6 @@ Object.defineProperty(exports, "Form", {
|
|
|
171
159
|
return _form["default"];
|
|
172
160
|
}
|
|
173
161
|
});
|
|
174
|
-
Object.defineProperty(exports, "FormatTime", {
|
|
175
|
-
enumerable: true,
|
|
176
|
-
get: function get() {
|
|
177
|
-
return _formatTime["default"];
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
162
|
Object.defineProperty(exports, "GridLayout", {
|
|
181
163
|
enumerable: true,
|
|
182
164
|
get: function get() {
|
|
@@ -393,12 +375,6 @@ Object.defineProperty(exports, "Progress", {
|
|
|
393
375
|
return _progress["default"];
|
|
394
376
|
}
|
|
395
377
|
});
|
|
396
|
-
Object.defineProperty(exports, "PublishDynamicModal", {
|
|
397
|
-
enumerable: true,
|
|
398
|
-
get: function get() {
|
|
399
|
-
return _publishDynamicModal["default"];
|
|
400
|
-
}
|
|
401
|
-
});
|
|
402
378
|
Object.defineProperty(exports, "Radio", {
|
|
403
379
|
enumerable: true,
|
|
404
380
|
get: function get() {
|
|
@@ -501,12 +477,6 @@ Object.defineProperty(exports, "TaskRelationModal", {
|
|
|
501
477
|
return _taskRelationModal["default"];
|
|
502
478
|
}
|
|
503
479
|
});
|
|
504
|
-
Object.defineProperty(exports, "Textarea", {
|
|
505
|
-
enumerable: true,
|
|
506
|
-
get: function get() {
|
|
507
|
-
return _textarea["default"];
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
480
|
Object.defineProperty(exports, "TitaChart", {
|
|
511
481
|
enumerable: true,
|
|
512
482
|
get: function get() {
|
|
@@ -632,8 +602,6 @@ var _button = _interopRequireDefault(require("./components/button"));
|
|
|
632
602
|
|
|
633
603
|
var _bookDemo = _interopRequireDefault(require("./components/book-demo"));
|
|
634
604
|
|
|
635
|
-
var _conditionRender = _interopRequireDefault(require("./components/condition-render"));
|
|
636
|
-
|
|
637
605
|
var _confidence = _interopRequireDefault(require("./components/confidence"));
|
|
638
606
|
|
|
639
607
|
var _communication = _interopRequireDefault(require("./components/communication"));
|
|
@@ -648,8 +616,6 @@ var _createOkrModal = _interopRequireDefault(require("./components/create-okr-mo
|
|
|
648
616
|
|
|
649
617
|
var _dialog = _interopRequireDefault(require("./components/dialog"));
|
|
650
618
|
|
|
651
|
-
var _dangerousHtml = _interopRequireDefault(require("./components/dangerous-html"));
|
|
652
|
-
|
|
653
619
|
var _datePicker = _interopRequireDefault(require("./components/date-picker"));
|
|
654
620
|
|
|
655
621
|
var _demoFree = _interopRequireDefault(require("./pages/demo-free"));
|
|
@@ -676,8 +642,6 @@ var _errorBoundary = _interopRequireDefault(require("./components/error-boundary
|
|
|
676
642
|
|
|
677
643
|
var _errorLevel = _interopRequireDefault(require("./utils/error-level"));
|
|
678
644
|
|
|
679
|
-
var _formatTime = _interopRequireDefault(require("./utils/format-time"));
|
|
680
|
-
|
|
681
645
|
var _fileList = _interopRequireDefault(require("./components/file-list"));
|
|
682
646
|
|
|
683
647
|
var _firework = _interopRequireDefault(require("./components/firework"));
|
|
@@ -750,8 +714,6 @@ var _periodSelector = _interopRequireDefault(require("./components/period-select
|
|
|
750
714
|
|
|
751
715
|
var _pagination = _interopRequireDefault(require("./components/pagination"));
|
|
752
716
|
|
|
753
|
-
var _publishDynamicModal = _interopRequireDefault(require("./components/publish-dynamic-modal"));
|
|
754
|
-
|
|
755
717
|
var _passwordInput = _interopRequireDefault(require("./components/password-input"));
|
|
756
718
|
|
|
757
719
|
var _photoCard = _interopRequireDefault(require("./components/photo-card"));
|
|
@@ -806,8 +768,6 @@ var _titaChart = _interopRequireDefault(require("./components/tita-chart"));
|
|
|
806
768
|
|
|
807
769
|
var _tooltip = _interopRequireDefault(require("./components/tooltip"));
|
|
808
770
|
|
|
809
|
-
var _textarea = _interopRequireDefault(require("./components/textarea"));
|
|
810
|
-
|
|
811
771
|
var _tooltipText = _interopRequireDefault(require("./components/tooltip/tooltip-text"));
|
|
812
772
|
|
|
813
773
|
var _userSelector = _interopRequireDefault(require("./components/user-selector"));
|
|
@@ -36,51 +36,6 @@
|
|
|
36
36
|
color: #2879ff;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.tita-okr-list-v2__header-record {
|
|
40
|
-
display: flex;
|
|
41
|
-
box-sizing: border-box;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
align-items: center;
|
|
44
|
-
transform: rotate(90deg);
|
|
45
|
-
background: #fff;
|
|
46
|
-
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
47
|
-
width: 36px;
|
|
48
|
-
height: 36px;
|
|
49
|
-
margin-left: 12px;
|
|
50
|
-
border-radius: 18px;
|
|
51
|
-
font-size: 20px;
|
|
52
|
-
cursor: pointer;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.tita-okr-list-v2__header-record-popup {
|
|
56
|
-
padding: 16px 12px;
|
|
57
|
-
box-sizing: border-box;
|
|
58
|
-
background: #ffffff;
|
|
59
|
-
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
60
|
-
border-radius: 12px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.tita-okr-list-v2__header-record-item {
|
|
64
|
-
display: flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
padding: 5px 8px;
|
|
67
|
-
box-sizing: border-box;
|
|
68
|
-
font-size: 14px;
|
|
69
|
-
color: #3f4755;
|
|
70
|
-
line-height: 22px;
|
|
71
|
-
cursor: pointer;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.tita-okr-list-v2__header-record-item:hover {
|
|
75
|
-
color: #2879ff;
|
|
76
|
-
background: #f7f8fa;
|
|
77
|
-
border-radius: 8px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.tita-okr-list-v2__header-record-item-content {
|
|
81
|
-
margin-left: 8px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
39
|
.tita-okr-list-v2__header-filter {
|
|
85
40
|
box-sizing: border-box;
|
|
86
41
|
height: 36px;
|
|
@@ -29,16 +29,12 @@ var _filter = _interopRequireDefault(require("./filter"));
|
|
|
29
29
|
|
|
30
30
|
var _comments = _interopRequireDefault(require("./comments"));
|
|
31
31
|
|
|
32
|
-
var _operateRecord = _interopRequireDefault(require("./operate-record"));
|
|
33
|
-
|
|
34
32
|
var _context = require("../context");
|
|
35
33
|
|
|
36
34
|
var _requestApi = require("../request-api");
|
|
37
35
|
|
|
38
36
|
var _getLocale = require("../../../utils/getLocale");
|
|
39
37
|
|
|
40
|
-
var _tools = require("../../../utils/tools");
|
|
41
|
-
|
|
42
38
|
require("./index.css");
|
|
43
39
|
|
|
44
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -69,7 +65,6 @@ function Header(props, ref) {
|
|
|
69
65
|
cycleType = _useContext.cycleType,
|
|
70
66
|
yqmNum = _useContext.yqmNum;
|
|
71
67
|
|
|
72
|
-
var relationShip = parseInt(relation, 10);
|
|
73
68
|
var onSearch = props.onSearch,
|
|
74
69
|
onFrontAddOKR = props.onFrontAddOKR;
|
|
75
70
|
|
|
@@ -89,26 +84,21 @@ function Header(props, ref) {
|
|
|
89
84
|
setUserInfo = _useState6[1];
|
|
90
85
|
|
|
91
86
|
(0, _react.useEffect)(function () {
|
|
92
|
-
if (toUserId !== undefined ||
|
|
87
|
+
if (toUserId !== undefined || relation == 1) {
|
|
93
88
|
var userId = toUserId;
|
|
94
|
-
if (
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
setUserInfo(res.Data);
|
|
99
|
-
});
|
|
100
|
-
}
|
|
89
|
+
if (relation == 1) userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
90
|
+
userId && (0, _requestApi.getUserInfoById)(userId).then(function (res) {
|
|
91
|
+
setUserInfo(res.Data);
|
|
92
|
+
});
|
|
101
93
|
}
|
|
102
94
|
}, [toUserId, relation]);
|
|
103
95
|
(0, _react.useEffect)(function () {
|
|
104
96
|
setInit(true);
|
|
105
97
|
}, []);
|
|
106
98
|
(0, _react.useEffect)(function () {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
});
|
|
111
|
-
}
|
|
99
|
+
init && onSearch({
|
|
100
|
+
onlyThisDept: onlyThisDept
|
|
101
|
+
});
|
|
112
102
|
}, [onlyThisDept]);
|
|
113
103
|
var createOkrRef = (0, _react.useRef)();
|
|
114
104
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
@@ -135,7 +125,7 @@ function Header(props, ref) {
|
|
|
135
125
|
};
|
|
136
126
|
var searchType = "company";
|
|
137
127
|
|
|
138
|
-
if (departmentId && departmentId
|
|
128
|
+
if (departmentId && departmentId != -1) {
|
|
139
129
|
rootNode.rootId = departmentId;
|
|
140
130
|
rootNode.rootName = departmentName || "";
|
|
141
131
|
searchType = "depart";
|
|
@@ -151,7 +141,7 @@ function Header(props, ref) {
|
|
|
151
141
|
level2Selected.name = userInfo.name || "";
|
|
152
142
|
}
|
|
153
143
|
|
|
154
|
-
if (
|
|
144
|
+
if (relation == 1) {
|
|
155
145
|
rootNode.rootId = (0, _bsGlobal.getUserInfo)().Id;
|
|
156
146
|
rootNode.rootName = (0, _bsGlobal.getUserInfo)().Name || "";
|
|
157
147
|
searchType = "user";
|
|
@@ -164,18 +154,18 @@ function Header(props, ref) {
|
|
|
164
154
|
annualNum: annualNum,
|
|
165
155
|
yqmNum: yqmNum
|
|
166
156
|
})), "rootNode=".concat(JSON.stringify(rootNode)), "level2Selected=".concat(JSON.stringify(level2Selected))].join("&");
|
|
167
|
-
var origin = window.location.href.split(
|
|
157
|
+
var origin = window.location.href.split('#')[0];
|
|
168
158
|
window.location.href = "".concat(origin, "/#okr/map?").concat(urlQuery);
|
|
169
159
|
};
|
|
170
160
|
|
|
171
161
|
var getTitle = function getTitle() {
|
|
172
|
-
if (
|
|
162
|
+
if (relation == 1) {
|
|
173
163
|
return /*#__PURE__*/_react["default"].createElement(_userTitle["default"], {
|
|
174
164
|
toUserId: (0, _bsGlobal.getUserInfo)().Id
|
|
175
165
|
});
|
|
176
166
|
}
|
|
177
167
|
|
|
178
|
-
if (
|
|
168
|
+
if (relation == 2 || relation == 3) {
|
|
179
169
|
return /*#__PURE__*/_react["default"].createElement(_relationTitle["default"], {
|
|
180
170
|
relation: relation
|
|
181
171
|
});
|
|
@@ -207,11 +197,11 @@ function Header(props, ref) {
|
|
|
207
197
|
className: "".concat(_precls.precls, "__header-item")
|
|
208
198
|
}, getTitle())), /*#__PURE__*/_react["default"].createElement("div", {
|
|
209
199
|
className: "".concat(_precls.precls, "__header-right")
|
|
210
|
-
},
|
|
200
|
+
}, departmentId == 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
211
201
|
className: "".concat(_precls.precls, "__header-item")
|
|
212
202
|
}, /*#__PURE__*/_react["default"].createElement(_keywordSearch["default"], {
|
|
213
203
|
onSearch: onSearch
|
|
214
|
-
})),
|
|
204
|
+
})), relation != 2 && relation != 3 &&
|
|
215
205
|
/*#__PURE__*/
|
|
216
206
|
// 我关注的 我参与的 没有创建按钮
|
|
217
207
|
_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -231,24 +221,10 @@ function Header(props, ref) {
|
|
|
231
221
|
className: "tu-icon-yangshi-ditu"
|
|
232
222
|
}))))), /*#__PURE__*/_react["default"].createElement(_comments["default"], {
|
|
233
223
|
toUserId: toUserId,
|
|
234
|
-
relation:
|
|
224
|
+
relation: relation,
|
|
235
225
|
userInfo: userInfo
|
|
236
226
|
}), /*#__PURE__*/_react["default"].createElement(_filter["default"], {
|
|
237
227
|
onSearch: onSearch
|
|
238
|
-
}), Number(cycleType) !== -1 && (Number(relation) === 1 || Object.keys((0, _tools.getQueryString)()).length === 0) && /*#__PURE__*/_react["default"].createElement(_operateRecord["default"], {
|
|
239
|
-
toUserId: toUserId,
|
|
240
|
-
userInfo: userInfo,
|
|
241
|
-
relation: relationShip,
|
|
242
|
-
okrFeedParams: {
|
|
243
|
-
objId: departmentId === undefined ? Number(toUserId || (0, _bsGlobal.getUserInfo)().Id) : Number(departmentId),
|
|
244
|
-
// 人员或部门Id
|
|
245
|
-
objType: departmentId === undefined ? 1 : 2,
|
|
246
|
-
// 1:负责人,2:部门
|
|
247
|
-
cycleType: Number(cycleType),
|
|
248
|
-
// 目标周期:0-自定义,1-年度,2-季度,3-月度
|
|
249
|
-
yqmNum: Number(yqmNum),
|
|
250
|
-
annualNum: Number(annualNum)
|
|
251
|
-
}
|
|
252
228
|
})));
|
|
253
229
|
}
|
|
254
230
|
|
|
@@ -85,8 +85,7 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
85
85
|
var OkrListCmp = props.OkrListCmp,
|
|
86
86
|
OkrCommunicationPush = props.OkrCommunicationPush,
|
|
87
87
|
Empty = props.Empty,
|
|
88
|
-
SetCycleModal = props.SetCycleModal
|
|
89
|
-
OkrOperateRecordDrawer = props.OkrOperateRecordDrawer;
|
|
88
|
+
SetCycleModal = props.SetCycleModal;
|
|
90
89
|
var useLocalStorage = new _localStorage.LocalStorage();
|
|
91
90
|
var formFieldValues = useLocalStorage.getItem("okr-filter-values") || {
|
|
92
91
|
targetType: "",
|
|
@@ -255,7 +254,7 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
255
254
|
};
|
|
256
255
|
|
|
257
256
|
var isShowPrincple = (0, _react.useMemo)(function () {
|
|
258
|
-
return !toUserId &&
|
|
257
|
+
return !toUserId && relation !== 1;
|
|
259
258
|
}, [toUserId, relation]);
|
|
260
259
|
var isShowPeriod = (0, _react.useMemo)(function () {
|
|
261
260
|
return Number(query.cycleType) === -1;
|
|
@@ -317,7 +316,6 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
317
316
|
return /*#__PURE__*/_react["default"].createElement(_context.Context.Provider, {
|
|
318
317
|
value: _objectSpread({
|
|
319
318
|
OkrCommunicationPush: OkrCommunicationPush,
|
|
320
|
-
OkrOperateRecordDrawer: OkrOperateRecordDrawer,
|
|
321
319
|
relation: relation,
|
|
322
320
|
departmentName: departmentName,
|
|
323
321
|
departmentId: departmentId,
|
|
@@ -1,19 +1,13 @@
|
|
|
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
|
});
|
|
8
6
|
exports["default"] = void 0;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
11
|
-
|
|
12
|
-
var _context = require("../context");
|
|
13
|
-
|
|
14
|
-
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); }
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
9
|
|
|
16
|
-
function
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
11
|
|
|
18
12
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
19
13
|
|
|
@@ -37,19 +31,8 @@ function List(props) {
|
|
|
37
31
|
refreshList = props.refreshList,
|
|
38
32
|
replaceOkr = props.replaceOkr;
|
|
39
33
|
var OkrListCmp = props.OkrListCmp;
|
|
40
|
-
|
|
41
|
-
var _useContext = (0, _react.useContext)(_context.Context),
|
|
42
|
-
annualNum = _useContext.annualNum,
|
|
43
|
-
cycleType = _useContext.cycleType,
|
|
44
|
-
yqmNum = _useContext.yqmNum;
|
|
45
|
-
|
|
46
34
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(OkrListCmp, {
|
|
47
35
|
okrData: okrs,
|
|
48
|
-
cycle: {
|
|
49
|
-
annualNum: annualNum,
|
|
50
|
-
cycleType: cycleType,
|
|
51
|
-
yqmNum: yqmNum
|
|
52
|
-
},
|
|
53
36
|
addOkr: function addOkr(okr) {
|
|
54
37
|
setOkrs([].concat(_toConsumableArray(okrs), [okr]));
|
|
55
38
|
},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.visitOkrCyclePag = exports.okrSearch = exports.okrList = exports.okrCrowd = exports.getUserInfoById = exports.
|
|
6
|
+
exports.visitOkrCyclePag = exports.okrSearch = exports.okrList = exports.okrCrowd = exports.getUserInfoById = exports.getOkrInfoWithListData = exports.getCycleSetting = void 0;
|
|
7
7
|
|
|
8
8
|
var _request = require("../../utils/request");
|
|
9
9
|
|
|
@@ -224,10 +224,4 @@ var getCycleSetting = /*#__PURE__*/function () {
|
|
|
224
224
|
};
|
|
225
225
|
}();
|
|
226
226
|
|
|
227
|
-
exports.getCycleSetting = getCycleSetting;
|
|
228
|
-
|
|
229
|
-
var getOperateRecordAuth = function getOperateRecordAuth(toUserId) {
|
|
230
|
-
return (0, _request.rget)('v1')("okr/cycleComment/checkRole?touser_id=".concat(toUserId));
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
exports.getOperateRecordAuth = getOperateRecordAuth;
|
|
227
|
+
exports.getCycleSetting = getCycleSetting;
|
|
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _importOkrFlow = _interopRequireDefault(require("&/components/import-okr-flow"));
|
|
15
15
|
|
|
16
16
|
require("./index.css");
|
|
17
17
|
|
|
@@ -61,8 +61,10 @@ function _default(props) {
|
|
|
61
61
|
isIE && setIsIE(true);
|
|
62
62
|
setLoading(false);
|
|
63
63
|
} else {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
(0, _importOkrFlow["default"])().then(function (okrmap) {
|
|
65
|
+
okrMapCmp.current = okrmap.OkrSearchPanel;
|
|
66
|
+
setLoading(false);
|
|
67
|
+
});
|
|
66
68
|
}
|
|
67
69
|
}, []);
|
|
68
70
|
if (loading) return /*#__PURE__*/_react["default"].createElement("span", null);
|
package/lib/utils/format-time.js
CHANGED
|
@@ -167,12 +167,5 @@ var showNextMonthFirstDay = function showNextMonthFirstDay() {
|
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
exports.showNextMonthFirstDay = showNextMonthFirstDay;
|
|
170
|
-
var _default =
|
|
171
|
-
getTimeString: getTimeString,
|
|
172
|
-
timeFormat: timeFormat,
|
|
173
|
-
showWeekFirstDay: showWeekFirstDay,
|
|
174
|
-
showMonthFirstDay: showMonthFirstDay,
|
|
175
|
-
showNextWeekFirstDay: showNextWeekFirstDay,
|
|
176
|
-
showNextMonthFirstDay: showNextMonthFirstDay
|
|
177
|
-
};
|
|
170
|
+
var _default = getTimeString;
|
|
178
171
|
exports["default"] = _default;
|
package/lib/utils/open-data.js
CHANGED
|
@@ -356,10 +356,6 @@ exports.parseHtmlAndTextTag = parseHtmlAndTextTag;
|
|
|
356
356
|
var _default = {
|
|
357
357
|
OpenUserName: OpenUserName,
|
|
358
358
|
OpenDepartmentName: OpenDepartmentName,
|
|
359
|
-
isWechat: isWechat
|
|
360
|
-
isPlatform: isPlatform,
|
|
361
|
-
parseString: parseString,
|
|
362
|
-
parseTag: parseTag,
|
|
363
|
-
parseHtmlAndTextTag: parseHtmlAndTextTag
|
|
359
|
+
isWechat: isWechat
|
|
364
360
|
};
|
|
365
361
|
exports["default"] = _default;
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="36px" height="26px" viewBox="0 0 36 26" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>气泡</title>
|
|
4
|
-
<defs>
|
|
5
|
-
<path d="M26.0757238,0 C26.0757238,0 26.5924276,0.590963041 26.752784,2.04150869 C26.8839846,3.22831876 26.7408566,3.5759702 26.6844729,3.66315551 L26.6693863,3.6833642 L26.6693863,3.6833642 C26.6636971,3.68904201 27.2516704,3.6353181 27.3942094,3.25925071 C27.5358931,2.88547554 28.1011492,5.62102555 27.2497105,6.55512322 C27.2725189,6.60410922 27.2788178,6.63812034 27.2701648,6.65847289 C27.7385548,7.67365164 28,8.80629392 28,10 C28,14.418278 24.418278,18 20,18 L8,18 C3.581722,18 5.41083001e-16,14.418278 0,10 C-5.41083001e-16,5.581722 3.581722,2 8,2 L20,2 C20.4454205,2 20.8823388,2.03640207 21.3079422,2.10639354 C21.2551772,2.04616026 21.2417596,2.01501277 21.2749755,2.02035937 C21.4000713,1.99627315 21.6377016,1.90182651 22.0846325,1.61171738 C22.9398664,1.05657029 23.1002227,0.823766663 23.1002227,0.823766663 C23.1002227,0.823766663 23.2249443,1.19983405 23.1714922,1.53113152 C23.1180401,1.86242898 23.064588,2.05941666 23.064588,2.05941666 C23.064588,2.05941666 24.2583519,1.98778477 24.9888641,1.27146594 C25.7193764,0.555147099 26.0757238,0 26.0757238,0 Z" id="path-1"></path>
|
|
6
|
-
<filter x="-25.0%" y="-27.8%" width="150.0%" height="177.8%" filterUnits="objectBoundingBox" id="filter-2">
|
|
7
|
-
<feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
|
8
|
-
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
|
9
|
-
<feColorMatrix values="0 0 0 0 0.941176471 0 0 0 0 0.368627451 0 0 0 0 0.368627451 0 0 0 0.4 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
|
10
|
-
</filter>
|
|
11
|
-
</defs>
|
|
12
|
-
<g id="控件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
13
|
-
<g id="top-面谈" transform="translate(-797.000000, -7.000000)">
|
|
14
|
-
<g id="一级菜单" transform="translate(204.000000, 3.000000)">
|
|
15
|
-
<g id="气泡" transform="translate(597.000000, 6.000000)">
|
|
16
|
-
<text id="new" font-family="Arial-BoldMT, Arial" font-size="12" font-weight="bold" line-spacing="18" fill="#FFFFFF">
|
|
17
|
-
<tspan x="1" y="11">new</tspan>
|
|
18
|
-
</text>
|
|
19
|
-
<g id="hot" fill-rule="nonzero">
|
|
20
|
-
<g id="形状">
|
|
21
|
-
<use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
|
|
22
|
-
<use fill="#F05E5E" xlink:href="#path-1"></use>
|
|
23
|
-
</g>
|
|
24
|
-
<path d="M4.61115455,12.8702703 L4.61115455,10.2702703 C4.61115455,9.62882883 4.65224568,9.18918919 4.73442794,8.95135135 C4.8166102,8.71351351 4.96855182,8.52252252 5.1902528,8.37837838 C5.41195378,8.23423423 5.662323,8.16216216 5.94136044,8.16216216 C6.15923899,8.16216216 6.34558249,8.21261261 6.50039093,8.31351351 C6.65519937,8.41441441 6.76700547,8.55585586 6.83580923,8.73783784 C6.90461298,8.91981982 6.93901486,9.32072072 6.93901486,9.94054054 L6.93901486,9.94054054 L6.93901486,12.8702703 L8.5501694,12.8702703 L8.5501694,9.3027027 C8.5501694,8.85945946 8.52054557,8.51891892 8.46129789,8.28108108 C8.40205021,8.04324324 8.29693337,7.83063063 8.14594735,7.64324324 C7.99496134,7.45585586 7.77230475,7.3018018 7.47797759,7.18108108 C7.18365042,7.06036036 6.85874381,7 6.50325775,7 C5.69672487,7 5.0277995,7.32432432 4.49648163,7.97297297 L4.49648163,7.97297297 L4.49648163,7.12972973 L3,7.12972973 L3,12.8702703 L4.61115455,12.8702703 Z M12.6669273,13 C13.3358527,13 13.8929719,12.854955 14.3382851,12.5648649 C14.7835983,12.2747748 15.1094605,11.8522523 15.3158718,11.2972973 L15.3158718,11.2972973 L13.7104509,11.0432432 C13.622535,11.3315315 13.4925723,11.5405405 13.3205629,11.6702703 C13.1485536,11.8 12.9364087,11.8648649 12.6841282,11.8648649 C12.3133524,11.8648649 12.0037356,11.7396396 11.7552776,11.4891892 C11.5068196,11.2387387 11.3768569,10.8882883 11.3653896,10.4378378 L11.3653896,10.4378378 L15.4018765,10.4378378 C15.4248111,9.27387387 15.1744418,8.40990991 14.6507688,7.84594595 C14.1270958,7.28198198 13.4123013,7 12.5063852,7 C11.6998523,7 11.0328382,7.26936937 10.5053427,7.80810811 C9.97784728,8.34684685 9.71409956,9.09189189 9.71409956,10.0432432 C9.71409956,10.8396396 9.91477717,11.4990991 10.3161324,12.0216216 C10.8245157,12.6738739 11.608114,13 12.6669273,13 Z M13.8021892,9.50810811 L11.3940579,9.50810811 C11.3902354,9.09369369 11.5029971,8.76576577 11.732343,8.52432432 C11.9616888,8.28288288 12.2521936,8.16216216 12.6038572,8.16216216 C12.9325862,8.16216216 13.2116237,8.27657658 13.4409695,8.50540541 C13.6703154,8.73423423 13.7907219,9.06846847 13.8021892,9.50810811 L13.8021892,9.50810811 Z M19.4154287,12.8702703 L20.447485,9.17837838 L21.4967422,12.8702703 L23.0448267,12.8702703 L25,7.12972973 L23.41178,7.12972973 L22.2478499,10.8918919 L21.2329945,7.12972973 L19.6791764,7.12972973 L18.6299192,10.8918919 L17.4889236,7.12972973 L15.9236383,7.12972973 L17.8501433,12.8702703 L19.4154287,12.8702703 Z" id="new" fill="#FFFFFF"></path>
|
|
25
|
-
</g>
|
|
26
|
-
</g>
|
|
27
|
-
</g>
|
|
28
|
-
</g>
|
|
29
|
-
</g>
|
|
30
|
-
</svg>
|
|
Binary file
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getApproveStatusTextMap = exports.ApproveStatusColor = exports.ApproveStatus = void 0;
|
|
7
|
-
|
|
8
|
-
var _getLocale = require("../../../utils/getLocale");
|
|
9
|
-
|
|
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
|
-
|
|
12
|
-
var ApproveStatus;
|
|
13
|
-
exports.ApproveStatus = ApproveStatus;
|
|
14
|
-
|
|
15
|
-
(function (ApproveStatus) {
|
|
16
|
-
ApproveStatus[ApproveStatus["None"] = 0] = "None";
|
|
17
|
-
ApproveStatus[ApproveStatus["WaitCommit"] = 6] = "WaitCommit";
|
|
18
|
-
ApproveStatus[ApproveStatus["Rejected"] = 3] = "Rejected";
|
|
19
|
-
ApproveStatus[ApproveStatus["UnderApproval"] = 1] = "UnderApproval";
|
|
20
|
-
ApproveStatus[ApproveStatus["ApproveAgree"] = 2] = "ApproveAgree";
|
|
21
|
-
ApproveStatus[ApproveStatus["WithDraw"] = 4] = "WithDraw";
|
|
22
|
-
ApproveStatus[ApproveStatus["Done"] = 5] = "Done";
|
|
23
|
-
})(ApproveStatus || (exports.ApproveStatus = ApproveStatus = {}));
|
|
24
|
-
|
|
25
|
-
var getApproveStatusTextMap = function getApproveStatusTextMap(status) {
|
|
26
|
-
var _ApproveStatusTextMap;
|
|
27
|
-
|
|
28
|
-
var ApproveStatusTextMap = (_ApproveStatusTextMap = {}, _defineProperty(_ApproveStatusTextMap, ApproveStatus.WaitCommit, (0, _getLocale.getLocale)('OKR_MyO_Tobesubmitted')), _defineProperty(_ApproveStatusTextMap, ApproveStatus.Rejected, (0, _getLocale.getLocale)('OKR_MyO_Tobesubmitted')), _defineProperty(_ApproveStatusTextMap, ApproveStatus.UnderApproval, (0, _getLocale.getLocale)('Pro_detail_Approval')), _defineProperty(_ApproveStatusTextMap, ApproveStatus.ApproveAgree, ''), _defineProperty(_ApproveStatusTextMap, ApproveStatus.WithDraw, ''), _defineProperty(_ApproveStatusTextMap, ApproveStatus.None, ''), _defineProperty(_ApproveStatusTextMap, ApproveStatus.Done, ''), _ApproveStatusTextMap);
|
|
29
|
-
return ApproveStatusTextMap[status];
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
exports.getApproveStatusTextMap = getApproveStatusTextMap;
|
|
33
|
-
|
|
34
|
-
var ApproveStatusColor = function ApproveStatusColor(status) {
|
|
35
|
-
var _ApprovalStatusColorM;
|
|
36
|
-
|
|
37
|
-
var ApprovalStatusColorMap = (_ApprovalStatusColorM = {}, _defineProperty(_ApprovalStatusColorM, ApproveStatus.WaitCommit, {
|
|
38
|
-
color: '#F0A326',
|
|
39
|
-
bgColor: 'rgba(240, 163, 38, 0.1)'
|
|
40
|
-
}), _defineProperty(_ApprovalStatusColorM, ApproveStatus.Rejected, {
|
|
41
|
-
color: '#F0A326',
|
|
42
|
-
bgColor: 'rgba(240, 163, 38, 0.1)'
|
|
43
|
-
}), _defineProperty(_ApprovalStatusColorM, ApproveStatus.UnderApproval, {
|
|
44
|
-
color: '#2879FF',
|
|
45
|
-
bgColor: 'rgba(40, 121, 255, 0.1)'
|
|
46
|
-
}), _defineProperty(_ApprovalStatusColorM, ApproveStatus.ApproveAgree, {
|
|
47
|
-
color: '#ffffff',
|
|
48
|
-
bgColor: '#ffffff'
|
|
49
|
-
}), _ApprovalStatusColorM);
|
|
50
|
-
return ApprovalStatusColorMap[status];
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
exports.ApproveStatusColor = ApproveStatusColor;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
.okr-detail-delete-confirm__option {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
display: flex;
|
|
4
|
-
margin-top: 10px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.okr-detail-delete-confirm__option-text {
|
|
8
|
-
font-size: 14px;
|
|
9
|
-
color: #3F4755;
|
|
10
|
-
line-height: 22px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.okr-detail-delete-confirm__icon {
|
|
14
|
-
font-size: 12px;
|
|
15
|
-
color: #89919f;
|
|
16
|
-
vertical-align: middle;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.okr-detail-delete-confirm__icon.tu-icon-singlebox-have, .okr-detail-delete-confirm__icon.tu-icon-singlebox-avtive {
|
|
20
|
-
margin-top: 4px;
|
|
21
|
-
font-size: 16px;
|
|
22
|
-
color: #2879ff;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.okr-detail-delete-confirm__icon.tu-icon-singlebox-have {
|
|
26
|
-
color: #BFC7D5;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.okr-detail-delete-confirm__icon.tu-icon-wiki {
|
|
30
|
-
display: inline-block;
|
|
31
|
-
font-size: 16px;
|
|
32
|
-
color: #acb7bf;
|
|
33
|
-
margin-left: 4px;
|
|
34
|
-
margin-bottom: 2px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.okr-detail-delete-confirm .form-field-radio__radios-item {
|
|
38
|
-
margin-top: 10px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.isApprovalDisabled {
|
|
42
|
-
margin-bottom: 0;
|
|
43
|
-
padding: 5px 24px;
|
|
44
|
-
font-size: 14px;
|
|
45
|
-
line-height: 22px;
|
|
46
|
-
transition: all .3s ease-in;
|
|
47
|
-
color: #BFC7D5;
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
display: flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
white-space: nowrap;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.isApprovalDisabled .options-icon {
|
|
55
|
-
margin-right: 12px;
|
|
56
|
-
font-size: 14px;
|
|
57
|
-
transition: all .3s ease-in;
|
|
58
|
-
color: #89919f;
|
|
59
|
-
}
|