@titaui/pc 1.11.30 → 1.11.31-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 +1 -0
- package/lib/components/avatar/name-avatar/index.js +22 -13
- 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 +2 -1
- package/lib/components/checkbox/index.css +3 -3
- package/lib/components/create-okr-modal/index.js +3 -1
- 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/dynamic-list/index.js +14 -6
- package/lib/components/dynamic/index.js +9 -12
- package/lib/components/dynamic/request-api.js +7 -68
- package/lib/components/nav-top/index.js +8 -4
- 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/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 +12 -7
- package/lib/components/okr-detail/detail-header/constant.js +53 -0
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +98 -43
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +55 -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 -2
- package/lib/components/okr-detail/okr-list/index.js +8 -3
- package/lib/components/okr-detail/request-apis.js +10 -4
- package/lib/components/okr-flow/export-modal/index.js +1 -1
- 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/publish-dynamic-modal/publish-dynamic-modal.js +16 -10
- package/lib/components/task-relation-modal/request-api.js +2 -1
- package/lib/components/textarea/index.css +142 -0
- package/lib/components/textarea/index.js +259 -0
- package/lib/components/toast/index.js +5 -3
- package/lib/index.js +40 -0
- 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 +38 -16
- package/lib/{components/dynamic/dynamic-liking/index.js → pages/new-okr-list/header/operate-record.js} +91 -39
- package/lib/pages/new-okr-list/index.js +3 -1
- 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 +2 -2
- package/lib/components/dynamic/advertise/components/next-btn/index.css +0 -27
- package/lib/components/dynamic/advertise/components/next-btn/index.js +0 -32
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +0 -26
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +0 -32
- package/lib/components/dynamic/advertise/index.css +0 -21
- package/lib/components/dynamic/advertise/index.js +0 -126
- package/lib/components/dynamic/advertise/interface.js +0 -5
- package/lib/components/dynamic/advertise/util.js +0 -28
- package/lib/components/dynamic/components/dynamic-search-input/index.css +0 -81
- package/lib/components/dynamic/components/dynamic-search-input/index.js +0 -203
- package/lib/components/dynamic/components/first-level-tabs/index.css +0 -101
- package/lib/components/dynamic/components/first-level-tabs/index.js +0 -131
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +0 -23
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +0 -146
- package/lib/components/dynamic/dynamic-like-ranking/index.js +0 -180
- package/lib/components/dynamic/dynamic-like-ranking/item.js +0 -105
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +0 -30
- package/lib/components/dynamic/dynamic-liking/index.css +0 -81
- package/lib/components/dynamic/dynamic-liking/item.js +0 -75
- package/lib/components/dynamic/dynamic-liking/mock.js +0 -83
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +0 -16
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +0 -30
- package/lib/components/dynamic/dynamic-topping/index.css +0 -141
- package/lib/components/dynamic/dynamic-topping/index.js +0 -82
- package/lib/components/dynamic/dynamic-topping/interface.js +0 -5
- package/lib/components/dynamic/dynamic-topping/item.js +0 -153
- package/lib/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/lib/components/dynamic/dynamic.css +0 -173
- package/lib/components/dynamic/dynamic.js +0 -428
- package/lib/components/dynamic/export-module/index.js +0 -37
- package/lib/components/dynamic/img/dynamic-top.svg +0 -14
- package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
- package/lib/components/dynamic/my-team/img/line.png +0 -0
- package/lib/components/dynamic/my-team/img/team.png +0 -0
- package/lib/components/dynamic/my-team/index.css +0 -184
- package/lib/components/dynamic/my-team/index.js +0 -263
- package/lib/components/dynamic/my-team/request-api.js +0 -52
- package/lib/components/dynamic/my-team/util.js +0 -20
- package/lib/components/dynamic/new-ui.css +0 -192
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +0 -58
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +0 -68
- package/lib/components/dynamic/online-broadcast/data.js +0 -77
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +0 -14
- package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
- package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
- package/lib/components/dynamic/online-broadcast/index.css +0 -46
- package/lib/components/dynamic/online-broadcast/index.js +0 -61
- package/lib/components/dynamic/online-broadcast/interfact.js +0 -5
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +0 -44
- package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +0 -51
- package/lib/components/dynamic/quick-operation/index.js +0 -120
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +0 -38
|
@@ -3,105 +3,44 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.topDynamic = exports.
|
|
6
|
+
exports.topDynamic = exports.deleteDynamic = exports.collectDynamic = exports.cancelTopDynamic = exports.cancelCollectDynamic = void 0;
|
|
7
7
|
|
|
8
8
|
var _request = require("../../utils/request");
|
|
9
9
|
|
|
10
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
-
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
|
|
14
|
-
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; }
|
|
15
|
-
|
|
16
10
|
// @ts-ignore
|
|
17
11
|
var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
|
|
18
12
|
|
|
19
13
|
var topDynamic = function topDynamic(_ref) {
|
|
20
14
|
var feedId = _ref.feedId;
|
|
21
|
-
return (0, _request.rget)(
|
|
15
|
+
return (0, _request.rget)('v2')("user/feednew/setTop?feedId=".concat(feedId));
|
|
22
16
|
};
|
|
23
17
|
|
|
24
18
|
exports.topDynamic = topDynamic;
|
|
25
19
|
|
|
26
20
|
var cancelTopDynamic = function cancelTopDynamic(_ref2) {
|
|
27
21
|
var feedId = _ref2.feedId;
|
|
28
|
-
return (0, _request.rget)(
|
|
22
|
+
return (0, _request.rget)('v2')("user/feednew/cancelTop?feedId=".concat(feedId));
|
|
29
23
|
};
|
|
30
24
|
|
|
31
25
|
exports.cancelTopDynamic = cancelTopDynamic;
|
|
32
26
|
|
|
33
27
|
var collectDynamic = function collectDynamic(_ref3) {
|
|
34
28
|
var feedId = _ref3.feedId;
|
|
35
|
-
return (0, _request.rput)(
|
|
29
|
+
return (0, _request.rput)('v2')("user/feed/Collect?feed_id=".concat(feedId));
|
|
36
30
|
};
|
|
37
31
|
|
|
38
32
|
exports.collectDynamic = collectDynamic;
|
|
39
33
|
|
|
40
34
|
var cancelCollectDynamic = function cancelCollectDynamic(_ref4) {
|
|
41
35
|
var feedId = _ref4.feedId;
|
|
42
|
-
return (0, _request.rdelete)(
|
|
36
|
+
return (0, _request.rdelete)('v2')("user/feed/CancelCollect?feed_id=".concat(feedId));
|
|
43
37
|
};
|
|
44
38
|
|
|
45
39
|
exports.cancelCollectDynamic = cancelCollectDynamic;
|
|
46
40
|
|
|
47
41
|
var deleteDynamic = function deleteDynamic(_ref5) {
|
|
48
42
|
var feedId = _ref5.feedId;
|
|
49
|
-
return (0, _request.rdelete)(
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
exports.deleteDynamic = deleteDynamic;
|
|
53
|
-
|
|
54
|
-
var getPraise = function getPraise(_ref6) {
|
|
55
|
-
var objId = _ref6.objId,
|
|
56
|
-
_ref6$start = _ref6.start,
|
|
57
|
-
start = _ref6$start === void 0 ? "" : _ref6$start,
|
|
58
|
-
_ref6$count = _ref6.count,
|
|
59
|
-
count = _ref6$count === void 0 ? 5 : _ref6$count,
|
|
60
|
-
_ref6$objType = _ref6.objType,
|
|
61
|
-
objType = _ref6$objType === void 0 ? 10 : _ref6$objType;
|
|
62
|
-
return (0, _request.rget)("v1")("praise/get?objId=".concat(objId, "&start=&count=").concat(count, "&objType=").concat(objType));
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
exports.getPraise = getPraise;
|
|
66
|
-
|
|
67
|
-
var getRanking = function getRanking(data) {
|
|
68
|
-
return (0, _request.rpost)("v1")("praise/getRanking", data);
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
exports.getRanking = getRanking;
|
|
72
|
-
|
|
73
|
-
var getLeastPariseInfo = function getLeastPariseInfo() {
|
|
74
|
-
return (0, _request.rget)("v1")("praise/getLeastPariseInfo?count=10");
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
exports.getLeastPariseInfo = getLeastPariseInfo;
|
|
78
|
-
|
|
79
|
-
var getMenu = function getMenu() {
|
|
80
|
-
return (0, _request.rget)("v2")("feed/FeedTabMenus");
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
exports.getMenu = getMenu;
|
|
84
|
-
|
|
85
|
-
var getDynamicFeedList = function getDynamicFeedList() {
|
|
86
|
-
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
87
|
-
PageSize: 20,
|
|
88
|
-
PageNum: 1,
|
|
89
|
-
KeyWord: "",
|
|
90
|
-
ChannelIds: "",
|
|
91
|
-
Domain: "",
|
|
92
|
-
TitaHost: "",
|
|
93
|
-
RequestSource: 0,
|
|
94
|
-
CommentCount: 3
|
|
95
|
-
};
|
|
96
|
-
return (0, _request.rpost)("v2")("feed/feeds", _objectSpread(_objectSpread({}, data), {}, {
|
|
97
|
-
CommentCount: 3
|
|
98
|
-
}));
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
exports.getDynamicFeedList = getDynamicFeedList;
|
|
102
|
-
|
|
103
|
-
var getAdvertise = function getAdvertise() {
|
|
104
|
-
return (0, _request.rget)("v1")("operationAd/getByTerminalType?terminalType=1");
|
|
43
|
+
return (0, _request.rdelete)('v2')("user/feed/Delete?feed_id=".concat(feedId));
|
|
105
44
|
};
|
|
106
45
|
|
|
107
|
-
exports.
|
|
46
|
+
exports.deleteDynamic = deleteDynamic;
|
|
@@ -15,6 +15,8 @@ var _bsGlobal = require("../../utils/bs-global");
|
|
|
15
15
|
|
|
16
16
|
var _userOwnMenu = _interopRequireDefault(require("./components/user-own-menu"));
|
|
17
17
|
|
|
18
|
+
var _useGlobalValue = _interopRequireDefault(require("./useGlobalValue"));
|
|
19
|
+
|
|
18
20
|
var _menu = _interopRequireDefault(require("./components/menu"));
|
|
19
21
|
|
|
20
22
|
var _userMessage = _interopRequireDefault(require("./components/user-message"));
|
|
@@ -25,12 +27,12 @@ var _version = _interopRequireDefault(require("./components/version"));
|
|
|
25
27
|
|
|
26
28
|
var _utils = require("./utils");
|
|
27
29
|
|
|
28
|
-
require("./index.css");
|
|
29
|
-
|
|
30
30
|
var _request = require("../../utils/request");
|
|
31
31
|
|
|
32
32
|
var _toast = _interopRequireDefault(require("../toast"));
|
|
33
33
|
|
|
34
|
+
require("./index.css");
|
|
35
|
+
|
|
34
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
37
|
|
|
36
38
|
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); }
|
|
@@ -170,5 +172,7 @@ var NavTop = function NavTop() {
|
|
|
170
172
|
}, /*#__PURE__*/_react["default"].createElement(_userOwnMenu["default"], null)));
|
|
171
173
|
};
|
|
172
174
|
|
|
173
|
-
var _default = NavTop;
|
|
174
|
-
|
|
175
|
+
var _default = NavTop; // @ts-ignore
|
|
176
|
+
|
|
177
|
+
exports["default"] = _default;
|
|
178
|
+
NavTop.useGlobalValue = _useGlobalValue["default"];
|
|
@@ -13,6 +13,10 @@ var _okrPeriodSelector = _interopRequireDefault(require("../../../../okr-period-
|
|
|
13
13
|
|
|
14
14
|
var _getLocale = require("../../../../../utils/getLocale");
|
|
15
15
|
|
|
16
|
+
var _context = require("../../../context");
|
|
17
|
+
|
|
18
|
+
var _helper = require("../../../helper");
|
|
19
|
+
|
|
16
20
|
require("./index.css");
|
|
17
21
|
|
|
18
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -40,14 +44,22 @@ var DateCycle = function DateCycle(_ref) {
|
|
|
40
44
|
_ref$canEdit = _ref.canEdit,
|
|
41
45
|
canEdit = _ref$canEdit === void 0 ? false : _ref$canEdit;
|
|
42
46
|
|
|
47
|
+
var _useContext = (0, _react.useContext)(_context.CommonContext),
|
|
48
|
+
okrInfo = _useContext.okrInfo,
|
|
49
|
+
approvalSetting = _useContext.approvalSetting;
|
|
50
|
+
|
|
51
|
+
var canCycleEdit = canEdit && (0, _helper.getApprovalOkr)(approvalSetting, "changeOkrTime", okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.applyState, okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes);
|
|
52
|
+
|
|
43
53
|
var _useState = (0, _react.useState)(false),
|
|
44
54
|
_useState2 = _slicedToArray(_useState, 2),
|
|
45
55
|
isFocus = _useState2[0],
|
|
46
56
|
setIsFocus = _useState2[1];
|
|
47
57
|
|
|
48
58
|
var handleButtonFocus = (0, _react.useCallback)(function () {
|
|
49
|
-
|
|
50
|
-
|
|
59
|
+
if (canCycleEdit) {
|
|
60
|
+
setIsFocus(true);
|
|
61
|
+
}
|
|
62
|
+
}, [canCycleEdit]);
|
|
51
63
|
var handleButtonBlur = (0, _react.useCallback)(function () {
|
|
52
64
|
setIsFocus(false);
|
|
53
65
|
}, []);
|
|
@@ -57,9 +69,10 @@ var DateCycle = function DateCycle(_ref) {
|
|
|
57
69
|
clickCallback = _ref2.clickCallback,
|
|
58
70
|
text = _ref2.text;
|
|
59
71
|
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
72
|
+
type: "button",
|
|
60
73
|
onFocus: handleButtonFocus,
|
|
61
74
|
onBlur: handleButtonBlur,
|
|
62
|
-
className: "base-info-date-cycle__button ".concat(isFocus ? "base-info-date-cycle__button--focus" : "", " ").concat(!
|
|
75
|
+
className: "base-info-date-cycle__button ".concat(isFocus ? "base-info-date-cycle__button--focus" : "", " ").concat(!canCycleEdit && "base-info-date-cycle__button--disable"),
|
|
63
76
|
ref: btnRef,
|
|
64
77
|
onClick: clickCallback
|
|
65
78
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -78,10 +91,13 @@ var DateCycle = function DateCycle(_ref) {
|
|
|
78
91
|
cycle: cycle,
|
|
79
92
|
setCycle: setCycle,
|
|
80
93
|
okrId: okrId,
|
|
81
|
-
canEdit:
|
|
94
|
+
canEdit: canCycleEdit,
|
|
82
95
|
getCycleRange: true
|
|
83
96
|
}));
|
|
84
97
|
};
|
|
85
98
|
|
|
99
|
+
DateCycle.defaultProps = {
|
|
100
|
+
canEdit: false
|
|
101
|
+
};
|
|
86
102
|
var _default = DateCycle;
|
|
87
103
|
exports["default"] = _default;
|
|
@@ -21,6 +21,10 @@ var _popConfirm = _interopRequireDefault(require("../../../../../components-v1/p
|
|
|
21
21
|
|
|
22
22
|
var _getLocale = require("../../../../../utils/getLocale");
|
|
23
23
|
|
|
24
|
+
var _context2 = require("../../../context");
|
|
25
|
+
|
|
26
|
+
var _helper = require("../../../helper");
|
|
27
|
+
|
|
24
28
|
require("./index.css");
|
|
25
29
|
|
|
26
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -60,6 +64,10 @@ var Principal = function Principal(_ref) {
|
|
|
60
64
|
selectUser = _useState2[0],
|
|
61
65
|
setSelectUser = _useState2[1];
|
|
62
66
|
|
|
67
|
+
var _useContext = (0, _react.useContext)(_context2.CommonContext),
|
|
68
|
+
okrInfo = _useContext.okrInfo,
|
|
69
|
+
approvalSetting = _useContext.approvalSetting;
|
|
70
|
+
|
|
63
71
|
var handleSelected = function handleSelected(_ref2) {
|
|
64
72
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
65
73
|
user = _ref3[0];
|
|
@@ -114,7 +122,7 @@ var Principal = function Principal(_ref) {
|
|
|
114
122
|
}, (0, _getLocale.getLocale)("Mod_Owner")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
123
|
className: "base-info-other-infos__principal-user",
|
|
116
124
|
ref: selectUserRef
|
|
117
|
-
}, canEdit ? /*#__PURE__*/_react["default"].createElement(_popConfirm["default"], {
|
|
125
|
+
}, canEdit && (0, _helper.getApprovalOkr)(approvalSetting, "changeOkrName", okrInfo.applyState, okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes) ? /*#__PURE__*/_react["default"].createElement(_popConfirm["default"], {
|
|
118
126
|
ref: popConfirmRef,
|
|
119
127
|
showArrow: false,
|
|
120
128
|
style: {
|
|
@@ -31,6 +31,8 @@ var _progress = _interopRequireDefault(require("../../../progress"));
|
|
|
31
31
|
|
|
32
32
|
var _utils = require("../../../progress/utils");
|
|
33
33
|
|
|
34
|
+
var _helper = require("../../helper");
|
|
35
|
+
|
|
34
36
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
35
37
|
|
|
36
38
|
var _auth = require("../../../../utils/auth");
|
|
@@ -85,6 +87,8 @@ function Header(props) {
|
|
|
85
87
|
setGeneralOkrClassify = _useContext.setGeneralOkrClassify,
|
|
86
88
|
showOkrEvalute = _useContext.showOkrEvalute;
|
|
87
89
|
|
|
90
|
+
var commonContext = (0, _react.useContext)(_context.CommonContext);
|
|
91
|
+
var approvalSetting = commonContext.approvalSetting;
|
|
88
92
|
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;
|
|
89
93
|
var _okrInfo$progressGrow = okrInfo.progressGrow,
|
|
90
94
|
progressGrow = _okrInfo$progressGrow === void 0 ? 0 : _okrInfo$progressGrow,
|
|
@@ -156,7 +160,7 @@ function Header(props) {
|
|
|
156
160
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
157
161
|
className: "".concat(precls, "__avatar")
|
|
158
162
|
}, /*#__PURE__*/_react["default"].createElement(_oAvatar["default"], {
|
|
159
|
-
editable: editable,
|
|
163
|
+
editable: editable && (okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.applyState) !== 1,
|
|
160
164
|
okrId: okrInfo.workId
|
|
161
165
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
162
166
|
className: "".concat(precls, "__content")
|
|
@@ -164,7 +168,10 @@ function Header(props) {
|
|
|
164
168
|
editable: editable,
|
|
165
169
|
okrName: okrName,
|
|
166
170
|
setIsEdit: setIsEdit,
|
|
167
|
-
okrStatus: okrInfo.status
|
|
171
|
+
okrStatus: okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.status,
|
|
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
|
|
168
175
|
}, /*#__PURE__*/_react["default"].createElement(_oClassify["default"], {
|
|
169
176
|
editable: editable,
|
|
170
177
|
okrId: okrInfo.workId,
|
|
@@ -187,7 +194,7 @@ function Header(props) {
|
|
|
187
194
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
188
195
|
className: "".concat(precls, "__action-item")
|
|
189
196
|
}, /*#__PURE__*/_react["default"].createElement(_oCycle["default"], {
|
|
190
|
-
editable: editable,
|
|
197
|
+
editable: editable && (0, _helper.getApprovalOkr)(approvalSetting, "changeOkrTime", okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.applyState, okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes),
|
|
191
198
|
okrId: okrInfo.workId
|
|
192
199
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
193
200
|
className: "".concat(precls, "__action-item")
|
|
@@ -13,6 +13,8 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
13
13
|
|
|
14
14
|
var _tools = require("../../../../utils/tools");
|
|
15
15
|
|
|
16
|
+
var _helper = require("../../helper");
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
19
|
|
|
18
20
|
function OName(props) {
|
|
@@ -20,11 +22,16 @@ function OName(props) {
|
|
|
20
22
|
okrName = props.okrName,
|
|
21
23
|
setIsEdit = props.setIsEdit,
|
|
22
24
|
okrStatus = props.okrStatus,
|
|
23
|
-
children = props.children
|
|
25
|
+
children = props.children,
|
|
26
|
+
approvalSetting = props.approvalSetting,
|
|
27
|
+
applyState = props.applyState,
|
|
28
|
+
OkrAndKrApprovalTypes = props.OkrAndKrApprovalTypes;
|
|
24
29
|
|
|
25
30
|
var handleEditClick = function handleEditClick() {
|
|
26
|
-
if (
|
|
27
|
-
|
|
31
|
+
if ((0, _helper.getApprovalOkr)(approvalSetting, "changeOkrName", applyState, OkrAndKrApprovalTypes)) {
|
|
32
|
+
if (editable) {
|
|
33
|
+
setIsEdit(true);
|
|
34
|
+
}
|
|
28
35
|
}
|
|
29
36
|
};
|
|
30
37
|
|
|
@@ -47,6 +47,8 @@ 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
|
+
|
|
50
52
|
var _getLocale = require("../../../../../../utils/getLocale");
|
|
51
53
|
|
|
52
54
|
require("./index.css");
|
|
@@ -99,7 +101,8 @@ function _default(props) {
|
|
|
99
101
|
|
|
100
102
|
var _useContext = (0, _react.useContext)(_context2.CommonContext),
|
|
101
103
|
refreshAll = _useContext.refreshAll,
|
|
102
|
-
okrInfo = _useContext.okrInfo
|
|
104
|
+
okrInfo = _useContext.okrInfo,
|
|
105
|
+
approvalSetting = _useContext.approvalSetting;
|
|
103
106
|
|
|
104
107
|
var _useState = (0, _react.useState)(data.confidenceIndex),
|
|
105
108
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -301,7 +304,9 @@ function _default(props) {
|
|
|
301
304
|
_drawerManager["default"].open("krDetail", {
|
|
302
305
|
krId: data.mileStoneId
|
|
303
306
|
});
|
|
304
|
-
};
|
|
307
|
+
}; // console.log('okrInfo',okrInfo?.OkrAndKrApprovalTypes)
|
|
308
|
+
// console.log('data',data?.KrApprovalTypes)
|
|
309
|
+
|
|
305
310
|
|
|
306
311
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
307
312
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node"))
|
|
@@ -316,7 +321,7 @@ function _default(props) {
|
|
|
316
321
|
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
317
322
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-title"))
|
|
318
323
|
}, /*#__PURE__*/_react["default"].createElement(_editableInput["default"], {
|
|
319
|
-
editable: krCanEdit,
|
|
324
|
+
editable: krCanEdit && (0, _helper.getApprovalKr)(approvalSetting, "changeOkrName", okrInfo.applyState, okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes, data === null || data === void 0 ? void 0 : data.KrApprovalTypes),
|
|
320
325
|
defaultValue: krName,
|
|
321
326
|
emptyMessage: "KR\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",
|
|
322
327
|
onKeyDown: onKrNameChangeHandler,
|
|
@@ -330,10 +335,10 @@ function _default(props) {
|
|
|
330
335
|
name: user.name,
|
|
331
336
|
id: user.userId,
|
|
332
337
|
width: 68,
|
|
333
|
-
editable: krCanEdit,
|
|
338
|
+
editable: krCanEdit && okrInfo.applyState !== _helper.EApproveStatus.UnderApproval,
|
|
334
339
|
onEditUser: onEditUserHandler,
|
|
335
340
|
nameTips: function nameTips(name) {
|
|
336
|
-
return /*#__PURE__*/_react["default"].createElement("span", null,
|
|
341
|
+
return /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)('OKR_MyO_Text_Owner'), name);
|
|
337
342
|
}
|
|
338
343
|
})), showKrWeight && /*#__PURE__*/_react["default"].createElement(OkrRowColumn, {
|
|
339
344
|
width: 60,
|
|
@@ -349,7 +354,7 @@ function _default(props) {
|
|
|
349
354
|
marginLeft: 16
|
|
350
355
|
}, /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
351
356
|
data: data,
|
|
352
|
-
editable: krCanEdit
|
|
357
|
+
editable: krCanEdit && (0, _helper.getApprovalKr)(approvalSetting, "changeOkrTime", okrInfo.applyState, okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes, data === null || data === void 0 ? void 0 : data.KrApprovalTypes)
|
|
353
358
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
354
359
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-actions"))
|
|
355
360
|
}, showHeart && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -378,7 +383,7 @@ function _default(props) {
|
|
|
378
383
|
evaluateValue: evaluateValue,
|
|
379
384
|
setEvaluateValue: onEvaluateChangeHanler,
|
|
380
385
|
isEvaluate: isEvaluate
|
|
381
|
-
})), krCanEdit && /*#__PURE__*/_react["default"].createElement("div", {
|
|
386
|
+
})), krCanEdit && okrInfo.applyState !== _helper.EApproveStatus.UnderApproval && /*#__PURE__*/_react["default"].createElement("div", {
|
|
382
387
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-delete")),
|
|
383
388
|
onClick: function onClick() {
|
|
384
389
|
return setDeleteModalVisible(true);
|
|
@@ -0,0 +1,53 @@
|
|
|
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;
|
|
@@ -9,14 +9,16 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var _style = require("./style");
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
13
|
|
|
16
14
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
17
15
|
|
|
18
16
|
var _getLocale = require("../../../../utils/getLocale");
|
|
19
17
|
|
|
18
|
+
var _dialogConfirm = _interopRequireDefault(require("../../../dialog-confirm"));
|
|
19
|
+
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
23
|
|
|
22
24
|
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); }
|
|
@@ -35,61 +37,114 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
35
37
|
|
|
36
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
39
|
|
|
40
|
+
var prefix = 'okr-detail-delete-confirm';
|
|
41
|
+
|
|
38
42
|
var getDeleteOptions = function getDeleteOptions() {
|
|
39
43
|
return [{
|
|
40
44
|
id: 0,
|
|
41
|
-
text:
|
|
42
|
-
tips:
|
|
45
|
+
text: (0, _getLocale.getLocale)('OKR_MyO_Text_OdeletionNTask'),
|
|
46
|
+
tips: ''
|
|
43
47
|
}, {
|
|
44
48
|
id: 1,
|
|
45
|
-
text:
|
|
46
|
-
tips: (0, _getLocale.getLocale)(
|
|
49
|
+
text: (0, _getLocale.getLocale)('OKR_MyO_Text_OdeletionTask'),
|
|
50
|
+
tips: (0, _getLocale.getLocale)('Pro_detail_Tasksapproval')
|
|
47
51
|
}, {
|
|
48
52
|
id: 2,
|
|
49
|
-
text: (0, _getLocale.getLocale)(
|
|
50
|
-
tips: (0, _getLocale.getLocale)(
|
|
53
|
+
text: (0, _getLocale.getLocale)('Pro_detail_Attheametime'),
|
|
54
|
+
tips: (0, _getLocale.getLocale)('Pro_detail_Tasksapproval')
|
|
51
55
|
}];
|
|
52
56
|
};
|
|
53
57
|
|
|
54
|
-
function
|
|
55
|
-
var
|
|
56
|
-
|
|
58
|
+
var OkrDeletePop = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
59
|
+
var onCancel = _ref.onCancel,
|
|
60
|
+
onConfirm = _ref.onConfirm,
|
|
61
|
+
approvalSetting = _ref.approvalSetting,
|
|
62
|
+
okrInfo = _ref.okrInfo;
|
|
57
63
|
|
|
58
|
-
var _useState = (0, _react.useState)(
|
|
64
|
+
var _useState = (0, _react.useState)(false),
|
|
59
65
|
_useState2 = _slicedToArray(_useState, 2),
|
|
60
|
-
|
|
61
|
-
|
|
66
|
+
showConfirmPop = _useState2[0],
|
|
67
|
+
setShowConfirmPop = _useState2[1];
|
|
62
68
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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() {
|
|
69
|
+
var _useState3 = (0, _react.useState)(0),
|
|
70
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
71
|
+
selected = _useState4[0],
|
|
72
|
+
setSelected = _useState4[1];
|
|
73
|
+
|
|
74
|
+
var handleCancelClick = function handleCancelClick() {
|
|
75
|
+
if (onCancel) {
|
|
84
76
|
onCancel();
|
|
85
77
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
78
|
+
|
|
79
|
+
setShowConfirmPop(false);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
var handleConfirmClick = function handleConfirmClick() {
|
|
83
|
+
if (onConfirm) {
|
|
84
|
+
onConfirm(selected);
|
|
90
85
|
}
|
|
91
|
-
}, (0, _getLocale.getLocale)("Pro_detail_Submission"))));
|
|
92
|
-
}
|
|
93
86
|
|
|
94
|
-
|
|
87
|
+
setShowConfirmPop(false);
|
|
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;
|
|
95
150
|
exports["default"] = _default;
|