@titaui/pc 1.11.39-beta.1 → 1.11.40
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 +1 -1
- package/lib/components/avatar/text-avatar/index.js +4 -4
- 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 +1 -2
- 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 +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/nav-top/components/user-message/components/inform/inform-item.js +2 -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 +14 -13
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +43 -98
- 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 +3 -8
- package/lib/components/okr-detail/request-apis.js +4 -10
- 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/task-relation-modal/request-api.js +1 -2
- package/lib/components/task-tree/task-item-node/constant.js +26 -21
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +26 -16
- package/lib/components/task-tree/task-item-node/e-task.js +21 -21
- package/lib/components/task-tree/task-item-node/index.css +2 -2
- 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 -38
- package/lib/pages/new-okr-list/index.js +1 -3
- 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/okr-detail/detail-header/constant.js +0 -53
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +0 -55
- 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 -131
|
@@ -31,8 +31,6 @@ var _progress = _interopRequireDefault(require("../../../progress"));
|
|
|
31
31
|
|
|
32
32
|
var _utils = require("../../../progress/utils");
|
|
33
33
|
|
|
34
|
-
var _helper = require("../../helper");
|
|
35
|
-
|
|
36
34
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
37
35
|
|
|
38
36
|
var _auth = require("../../../../utils/auth");
|
|
@@ -87,8 +85,6 @@ function Header(props) {
|
|
|
87
85
|
setGeneralOkrClassify = _useContext.setGeneralOkrClassify,
|
|
88
86
|
showOkrEvalute = _useContext.showOkrEvalute;
|
|
89
87
|
|
|
90
|
-
var commonContext = (0, _react.useContext)(_context.CommonContext);
|
|
91
|
-
var approvalSetting = commonContext.approvalSetting;
|
|
92
88
|
var showOScore = (_window = window) === null || _window === void 0 ? void 0 : (_window$BSGlobal = _window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$OkrA = _window$BSGlobal.OkrAdvancedSetting) === null || _window$BSGlobal$OkrA === void 0 ? void 0 : (_window$BSGlobal$OkrA2 = _window$BSGlobal$OkrA.KRSetting) === null || _window$BSGlobal$OkrA2 === void 0 ? void 0 : _window$BSGlobal$OkrA2.OScore;
|
|
93
89
|
var _okrInfo$progressGrow = okrInfo.progressGrow,
|
|
94
90
|
progressGrow = _okrInfo$progressGrow === void 0 ? 0 : _okrInfo$progressGrow,
|
|
@@ -160,7 +156,7 @@ function Header(props) {
|
|
|
160
156
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
161
157
|
className: "".concat(precls, "__avatar")
|
|
162
158
|
}, /*#__PURE__*/_react["default"].createElement(_oAvatar["default"], {
|
|
163
|
-
editable: editable
|
|
159
|
+
editable: editable,
|
|
164
160
|
okrId: okrInfo.workId
|
|
165
161
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
166
162
|
className: "".concat(precls, "__content")
|
|
@@ -168,10 +164,7 @@ function Header(props) {
|
|
|
168
164
|
editable: editable,
|
|
169
165
|
okrName: okrName,
|
|
170
166
|
setIsEdit: setIsEdit,
|
|
171
|
-
okrStatus: okrInfo
|
|
172
|
-
OkrAndKrApprovalTypes: okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes,
|
|
173
|
-
applyState: okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.applyState,
|
|
174
|
-
approvalSetting: approvalSetting
|
|
167
|
+
okrStatus: okrInfo.status
|
|
175
168
|
}, /*#__PURE__*/_react["default"].createElement(_oClassify["default"], {
|
|
176
169
|
editable: editable,
|
|
177
170
|
okrId: okrInfo.workId,
|
|
@@ -194,7 +187,7 @@ function Header(props) {
|
|
|
194
187
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
195
188
|
className: "".concat(precls, "__action-item")
|
|
196
189
|
}, /*#__PURE__*/_react["default"].createElement(_oCycle["default"], {
|
|
197
|
-
editable: editable
|
|
190
|
+
editable: editable,
|
|
198
191
|
okrId: okrInfo.workId
|
|
199
192
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
200
193
|
className: "".concat(precls, "__action-item")
|
|
@@ -13,8 +13,6 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
13
13
|
|
|
14
14
|
var _tools = require("../../../../utils/tools");
|
|
15
15
|
|
|
16
|
-
var _helper = require("../../helper");
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
17
|
|
|
20
18
|
function OName(props) {
|
|
@@ -22,16 +20,11 @@ function OName(props) {
|
|
|
22
20
|
okrName = props.okrName,
|
|
23
21
|
setIsEdit = props.setIsEdit,
|
|
24
22
|
okrStatus = props.okrStatus,
|
|
25
|
-
children = props.children
|
|
26
|
-
approvalSetting = props.approvalSetting,
|
|
27
|
-
applyState = props.applyState,
|
|
28
|
-
OkrAndKrApprovalTypes = props.OkrAndKrApprovalTypes;
|
|
23
|
+
children = props.children;
|
|
29
24
|
|
|
30
25
|
var handleEditClick = function handleEditClick() {
|
|
31
|
-
if (
|
|
32
|
-
|
|
33
|
-
setIsEdit(true);
|
|
34
|
-
}
|
|
26
|
+
if (editable) {
|
|
27
|
+
setIsEdit(true);
|
|
35
28
|
}
|
|
36
29
|
};
|
|
37
30
|
|
|
@@ -47,8 +47,6 @@ var _EditKrWightModal = _interopRequireDefault(require("../../../../../edit-kr-w
|
|
|
47
47
|
|
|
48
48
|
var _okrProgressModal = _interopRequireDefault(require("../../../../../okr-progress-modal"));
|
|
49
49
|
|
|
50
|
-
var _helper = require("../../../../helper");
|
|
51
|
-
|
|
52
50
|
var _getLocale = require("../../../../../../utils/getLocale");
|
|
53
51
|
|
|
54
52
|
require("./index.css");
|
|
@@ -101,8 +99,7 @@ function _default(props) {
|
|
|
101
99
|
|
|
102
100
|
var _useContext = (0, _react.useContext)(_context2.CommonContext),
|
|
103
101
|
refreshAll = _useContext.refreshAll,
|
|
104
|
-
okrInfo = _useContext.okrInfo
|
|
105
|
-
approvalSetting = _useContext.approvalSetting;
|
|
102
|
+
okrInfo = _useContext.okrInfo;
|
|
106
103
|
|
|
107
104
|
var _useState = (0, _react.useState)(data.confidenceIndex),
|
|
108
105
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -223,13 +220,17 @@ function _default(props) {
|
|
|
223
220
|
updateProgressWay: updateProgressWay
|
|
224
221
|
}).then(function (res) {
|
|
225
222
|
if (res.Code == 1) {
|
|
226
|
-
_toast["default"].Success(
|
|
223
|
+
_toast["default"].Success("修改成功", {
|
|
224
|
+
top: 60
|
|
225
|
+
});
|
|
227
226
|
|
|
228
227
|
refreshAll();
|
|
229
228
|
updateKrs();
|
|
230
229
|
setKrModalVsible(false);
|
|
231
230
|
} else {
|
|
232
|
-
_toast["default"].Error(res.Message
|
|
231
|
+
_toast["default"].Error(res.Message, {
|
|
232
|
+
top: 60
|
|
233
|
+
});
|
|
233
234
|
}
|
|
234
235
|
});
|
|
235
236
|
};
|
|
@@ -251,7 +252,7 @@ function _default(props) {
|
|
|
251
252
|
setDeleteModalVisible(false);
|
|
252
253
|
|
|
253
254
|
if (!Message) {
|
|
254
|
-
_toast["default"].Success((0, _getLocale.getLocale)("
|
|
255
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Pro_detail_Deletsuccess"));
|
|
255
256
|
|
|
256
257
|
setTimeout(function () {
|
|
257
258
|
refreshAll();
|
|
@@ -280,7 +281,7 @@ function _default(props) {
|
|
|
280
281
|
workId: data.workId,
|
|
281
282
|
workMileStoneId: data.mileStoneId
|
|
282
283
|
}).then(function () {
|
|
283
|
-
_toast["default"].Success(
|
|
284
|
+
_toast["default"].Success("修改成功");
|
|
284
285
|
});
|
|
285
286
|
};
|
|
286
287
|
|
|
@@ -315,7 +316,7 @@ function _default(props) {
|
|
|
315
316
|
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
316
317
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-title"))
|
|
317
318
|
}, /*#__PURE__*/_react["default"].createElement(_editableInput["default"], {
|
|
318
|
-
editable: krCanEdit
|
|
319
|
+
editable: krCanEdit,
|
|
319
320
|
defaultValue: krName,
|
|
320
321
|
emptyMessage: "KR\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",
|
|
321
322
|
onKeyDown: onKrNameChangeHandler,
|
|
@@ -329,10 +330,10 @@ function _default(props) {
|
|
|
329
330
|
name: user.name,
|
|
330
331
|
id: user.userId,
|
|
331
332
|
width: 68,
|
|
332
|
-
editable: krCanEdit
|
|
333
|
+
editable: krCanEdit,
|
|
333
334
|
onEditUser: onEditUserHandler,
|
|
334
335
|
nameTips: function nameTips(name) {
|
|
335
|
-
return /*#__PURE__*/_react["default"].createElement("span", null,
|
|
336
|
+
return /*#__PURE__*/_react["default"].createElement("span", null, "\u8D1F\u8D23\u4EBA\uFF1A", name);
|
|
336
337
|
}
|
|
337
338
|
})), showKrWeight && /*#__PURE__*/_react["default"].createElement(OkrRowColumn, {
|
|
338
339
|
width: 60,
|
|
@@ -348,7 +349,7 @@ function _default(props) {
|
|
|
348
349
|
marginLeft: 16
|
|
349
350
|
}, /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
350
351
|
data: data,
|
|
351
|
-
editable: krCanEdit
|
|
352
|
+
editable: krCanEdit
|
|
352
353
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
353
354
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-actions"))
|
|
354
355
|
}, showHeart && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -377,7 +378,7 @@ function _default(props) {
|
|
|
377
378
|
evaluateValue: evaluateValue,
|
|
378
379
|
setEvaluateValue: onEvaluateChangeHanler,
|
|
379
380
|
isEvaluate: isEvaluate
|
|
380
|
-
})), krCanEdit &&
|
|
381
|
+
})), krCanEdit && /*#__PURE__*/_react["default"].createElement("div", {
|
|
381
382
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-delete")),
|
|
382
383
|
onClick: function onClick() {
|
|
383
384
|
return setDeleteModalVisible(true);
|
|
@@ -9,16 +9,14 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _titaUi = require("tita-ui");
|
|
13
|
+
|
|
14
|
+
var _style = require("./style");
|
|
13
15
|
|
|
14
16
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
15
17
|
|
|
16
18
|
var _getLocale = require("../../../../utils/getLocale");
|
|
17
19
|
|
|
18
|
-
var _dialogConfirm = _interopRequireDefault(require("../../../dialog-confirm"));
|
|
19
|
-
|
|
20
|
-
require("./index.css");
|
|
21
|
-
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
21
|
|
|
24
22
|
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,114 +35,61 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
37
35
|
|
|
38
36
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
37
|
|
|
40
|
-
var prefix = 'okr-detail-delete-confirm';
|
|
41
|
-
|
|
42
38
|
var getDeleteOptions = function getDeleteOptions() {
|
|
43
39
|
return [{
|
|
44
40
|
id: 0,
|
|
45
|
-
text:
|
|
46
|
-
tips:
|
|
41
|
+
text: "不删除目标下的任务",
|
|
42
|
+
tips: ""
|
|
47
43
|
}, {
|
|
48
44
|
id: 1,
|
|
49
|
-
text:
|
|
50
|
-
tips: (0, _getLocale.getLocale)(
|
|
45
|
+
text: "同时删除目标下所有任务",
|
|
46
|
+
tips: (0, _getLocale.getLocale)("Pro_detail_Tasksapproval")
|
|
51
47
|
}, {
|
|
52
48
|
id: 2,
|
|
53
|
-
text: (0, _getLocale.getLocale)(
|
|
54
|
-
tips: (0, _getLocale.getLocale)(
|
|
49
|
+
text: (0, _getLocale.getLocale)("Pro_detail_Attheametime"),
|
|
50
|
+
tips: (0, _getLocale.getLocale)("Pro_detail_Tasksapproval")
|
|
55
51
|
}];
|
|
56
52
|
};
|
|
57
53
|
|
|
58
|
-
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
approvalSetting = _ref.approvalSetting,
|
|
62
|
-
okrInfo = _ref.okrInfo;
|
|
54
|
+
function OkrDeleteConfirm(_ref) {
|
|
55
|
+
var onConfirm = _ref.onConfirm,
|
|
56
|
+
onCancel = _ref.onCancel;
|
|
63
57
|
|
|
64
|
-
var _useState = (0, _react.useState)(
|
|
58
|
+
var _useState = (0, _react.useState)(0),
|
|
65
59
|
_useState2 = _slicedToArray(_useState, 2),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
var _useState3 = (0, _react.useState)(0),
|
|
70
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
71
|
-
selected = _useState4[0],
|
|
72
|
-
setSelected = _useState4[1];
|
|
60
|
+
selected = _useState2[0],
|
|
61
|
+
setSelected = _useState2[1];
|
|
73
62
|
|
|
74
|
-
|
|
75
|
-
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement(_style.DeleteWrapper, {
|
|
64
|
+
onClick: function onClick(e) {
|
|
65
|
+
return e.stopPropagation();
|
|
66
|
+
}
|
|
67
|
+
}, /*#__PURE__*/_react["default"].createElement(_style.DeleteTitle, null, "\u76EE\u6807\u5220\u9664\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\uFF01\u8BF7\u8C28\u614E\u64CD\u4F5C"), /*#__PURE__*/_react["default"].createElement("div", null, getDeleteOptions().map(function (option) {
|
|
68
|
+
return /*#__PURE__*/_react["default"].createElement(_style.Options, {
|
|
69
|
+
key: option.id,
|
|
70
|
+
onClick: function onClick() {
|
|
71
|
+
return setSelected(option.id);
|
|
72
|
+
}
|
|
73
|
+
}, /*#__PURE__*/_react["default"].createElement(_style.Icon, {
|
|
74
|
+
className: selected == option.id ? "tu-icon-singlebox-avtive" : "tu-icon-singlebox-have"
|
|
75
|
+
}), /*#__PURE__*/_react["default"].createElement("p", null, option.text), option.tips && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
76
|
+
overlay: option.tips,
|
|
77
|
+
placement: "top",
|
|
78
|
+
zIndex: 15000
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement(_style.Icon, {
|
|
80
|
+
className: "tu-icon-warning"
|
|
81
|
+
})));
|
|
82
|
+
})), /*#__PURE__*/_react["default"].createElement(_style.ButtonGroup, null, /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
|
|
83
|
+
onClick: function onClick() {
|
|
76
84
|
onCancel();
|
|
77
85
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
var handleConfirmClick = function handleConfirmClick() {
|
|
83
|
-
if (onConfirm) {
|
|
84
|
-
onConfirm(selected);
|
|
86
|
+
}, (0, _getLocale.getLocale)("Mod_Cancel")), /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
|
|
87
|
+
type: "primary",
|
|
88
|
+
onClick: function onClick() {
|
|
89
|
+
return onConfirm(selected);
|
|
85
90
|
}
|
|
91
|
+
}, (0, _getLocale.getLocale)("Pro_detail_Submission"))));
|
|
92
|
+
}
|
|
86
93
|
|
|
87
|
-
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
var show = function show() {
|
|
91
|
-
setShowConfirmPop(true);
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
var hide = function hide() {
|
|
95
|
-
setShowConfirmPop(false);
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
var showApprovalCmp = (0, _react.useMemo)(function () {
|
|
99
|
-
var _okrInfo$OkrAndKrAppr;
|
|
100
|
-
|
|
101
|
-
return approvalSetting.isOpen && !(okrInfo !== null && okrInfo !== void 0 && (_okrInfo$OkrAndKrAppr = okrInfo.OkrAndKrApprovalTypes) !== null && _okrInfo$OkrAndKrAppr !== void 0 && _okrInfo$OkrAndKrAppr.includes(53));
|
|
102
|
-
}, [approvalSetting, okrInfo]);
|
|
103
|
-
(0, _react.useImperativeHandle)(ref, function () {
|
|
104
|
-
return {
|
|
105
|
-
show: show,
|
|
106
|
-
hide: hide
|
|
107
|
-
};
|
|
108
|
-
});
|
|
109
|
-
var renderDialogConfirm = (0, _react.useMemo)(function () {
|
|
110
|
-
return /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"], {
|
|
111
|
-
zIndex: 1200,
|
|
112
|
-
visible: showConfirmPop,
|
|
113
|
-
type: "warning"
|
|
114
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
115
|
-
type: "title"
|
|
116
|
-
}, showApprovalCmp ? (0, _getLocale.getLocale)('OKR_MyO_Deleteoapproval') : (0, _getLocale.getLocale)('OKR_MyO_Determinedeletiono')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
117
|
-
type: "content"
|
|
118
|
-
}, !showApprovalCmp && (0, _getLocale.getLocale)('OKR_MyO_Text_Odeletion'), /*#__PURE__*/_react["default"].createElement("div", null, getDeleteOptions().map(function (option) {
|
|
119
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
-
className: "".concat(prefix, "__option"),
|
|
121
|
-
key: option.id,
|
|
122
|
-
onClick: function onClick() {
|
|
123
|
-
return setSelected(option.id);
|
|
124
|
-
}
|
|
125
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
126
|
-
className: (0, _classnames["default"])("".concat(prefix, "__icon"), {
|
|
127
|
-
'tu-icon-singlebox-avtive': selected == option.id,
|
|
128
|
-
'tu-icon-singlebox-have': selected != option.id
|
|
129
|
-
})
|
|
130
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
131
|
-
className: "".concat(prefix, "__option-text")
|
|
132
|
-
}, option.text, option.tips && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
133
|
-
overlay: option.tips,
|
|
134
|
-
placement: "top",
|
|
135
|
-
zIndex: 15000
|
|
136
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
137
|
-
className: "".concat(prefix, "__icon tu-icon-warning")
|
|
138
|
-
}))));
|
|
139
|
-
}))), /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"].CancelButton, {
|
|
140
|
-
type: "button",
|
|
141
|
-
onClick: handleCancelClick
|
|
142
|
-
}, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"].SureButton, {
|
|
143
|
-
type: "button",
|
|
144
|
-
onClick: handleConfirmClick
|
|
145
|
-
}, showApprovalCmp ? (0, _getLocale.getLocale)('OKR_MyO_Submittedapproval') : (0, _getLocale.getLocale)('Pro_detail_Submission')));
|
|
146
|
-
}, [showConfirmPop, selected]);
|
|
147
|
-
return renderDialogConfirm;
|
|
148
|
-
});
|
|
149
|
-
var _default = OkrDeletePop;
|
|
94
|
+
var _default = OkrDeleteConfirm;
|
|
150
95
|
exports["default"] = _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Options = exports.Icon = exports.DeleteWrapper = exports.DeleteTitle = exports.ButtonGroup = void 0;
|
|
7
|
+
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
|
+
|
|
16
|
+
var DeleteWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 300px;\n\n .tu-icon-warning {\n transition: all .3s ease-in;\n\n &:hover {\n color: #2879ff;\n }\n }\n"])));
|
|
17
|
+
|
|
18
|
+
exports.DeleteWrapper = DeleteWrapper;
|
|
19
|
+
|
|
20
|
+
var DeleteTitle = _styledComponents["default"].h2(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: 14px;\n color: #1F2329;\n"])));
|
|
21
|
+
|
|
22
|
+
exports.DeleteTitle = DeleteTitle;
|
|
23
|
+
|
|
24
|
+
var Options = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n cursor: pointer;\n display: flex;\n align-items: center;\n\n p {\n margin: 6px;\n font-size: 12px;\n transition: all .3s ease-in;\n color: #3e4e59;\n\n &:hover {\n color: #2879ff;\n }\n }\n"])));
|
|
25
|
+
|
|
26
|
+
exports.Options = Options;
|
|
27
|
+
|
|
28
|
+
var ButtonGroup = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-top: 5px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n\n button {\n min-width: 58px !important;\n height: 30px !important;\n margin-left: 10px;\n white-space: nowrap;\n }\n"])));
|
|
29
|
+
|
|
30
|
+
exports.ButtonGroup = ButtonGroup;
|
|
31
|
+
|
|
32
|
+
var Icon = _styledComponents["default"].span(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-size: 12px;\n color: ", ";\n\n &.tu-icon-diot {\n color: #a4acb9;\n }\n\n // &.okr-type {\n // font-size: 16px;\n // color: #7f91b4;\n // position: relative;\n // top: ", ";\n // }\n\n // &.tu-icon-bianji2 {\n // margin-left: 6px;\n // font-size: 14px;\n // color: #2879ff;\n // cursor: pointer;\n // }\n\n // &.tu-icon-heart-solid {\n // margin-right: 6px;\n // color: #ff8c00;\n // }\n\n &.execute-icon {\n font-size: 14px;\n cursor: pointer;\n position: relative;\n top: 2px;\n }\n\n &.tu-icon-singlebox-have,\n &.tu-icon-singlebox-avtive {\n font-size: 14px;\n color: #2879ff;\n }\n\n &.tu-icon-warning {\n font-size: 14px;\n color: #acb7bf;\n }\n\n &.tu-icon-more-diji {\n position: relative;\n\n &::after {\n content: '';\n \n }\n }\n"])), function (p) {
|
|
33
|
+
return p.color || "#89919F";
|
|
34
|
+
}, function (p) {
|
|
35
|
+
return p.top;
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
exports.Icon = Icon;
|
|
@@ -25,14 +25,3 @@
|
|
|
25
25
|
.okr-detail-head-parent > span:hover {
|
|
26
26
|
color: #2879ff;
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
.okr-detail-header-status {
|
|
30
|
-
display: inline-flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
border-radius: 16px;
|
|
34
|
-
width: 68px;
|
|
35
|
-
height: 28px;
|
|
36
|
-
margin-right: 18px;
|
|
37
|
-
font-size: 12px;
|
|
38
|
-
}
|