@titaui/pc 1.15.77-beta.2 → 1.15.77-beta.3
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.
|
@@ -92,7 +92,7 @@ var EKrNode = function EKrNode(props) {
|
|
|
92
92
|
var onlySuperCreateWork = (_window = window) === null || _window === void 0 ? void 0 : (_window$BSGlobal = _window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$Work = _window$BSGlobal.WorkAdvancedSetting) === null || _window$BSGlobal$Work === void 0 ? void 0 : (_window$BSGlobal$Work2 = _window$BSGlobal$Work.WorkFunctionSetting) === null || _window$BSGlobal$Work2 === void 0 ? void 0 : _window$BSGlobal$Work2.WorkCreate; //开启后,仅超管、目标管理员、老板/助理可创建项目
|
|
93
93
|
|
|
94
94
|
var canCreateWork = baseAuth.isBoss() || baseAuth.isManager() || baseAuth.isWorkManager() || baseAuth.isAssistant() || !onlySuperCreateWork;
|
|
95
|
-
var isParticipant = ((_okrInfo$authority = okrInfo.authority) === null || _okrInfo$authority === void 0 ? void 0 : _okrInfo$authority.roleRelation) && okrInfo.authority.roleRelation.roleType === 2;
|
|
95
|
+
var isParticipant = ((_okrInfo$authority = okrInfo.authority) === null || _okrInfo$authority === void 0 ? void 0 : _okrInfo$authority.roleRelation) && okrInfo.authority.roleRelation.roleType === 2 || okrInfo.isParticipant;
|
|
96
96
|
var hasRelativeAuth;
|
|
97
97
|
|
|
98
98
|
if (isOTask) {
|
|
@@ -430,7 +430,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
430
430
|
onCreateKr: function onCreateKr() {
|
|
431
431
|
return setCreateKrShow(true);
|
|
432
432
|
},
|
|
433
|
-
canEditOkr: canEditOkr || isInnerUser,
|
|
433
|
+
canEditOkr: canEditOkr || isInnerUser || okrInfo.isParticipant,
|
|
434
434
|
style: isShowAlignOkr ? {
|
|
435
435
|
padding: '40px 0 24px 0'
|
|
436
436
|
} : {
|
|
@@ -449,7 +449,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
449
449
|
okrInfo: okrInfo,
|
|
450
450
|
draggable: canEditOkr && (okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.applyState) !== _helper.EApproveStatus.UnderApproval,
|
|
451
451
|
onDrop: onOkrItemDropHandler
|
|
452
|
-
}))), (canEditOkr || isInnerUser) && (0, _helper.getApprovalOkr)(approvalSetting, 'createOkr', okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.applyState, okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
452
|
+
}))), (canEditOkr || isInnerUser || okrInfo.isParticipant) && (0, _helper.getApprovalOkr)(approvalSetting, 'createOkr', okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.applyState, okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
453
453
|
ref: wrapperRef,
|
|
454
454
|
className: (0, _classnames["default"])("".concat(preCls, "__addkr"))
|
|
455
455
|
}, /*#__PURE__*/_react["default"].createElement(_paddingLayout["default"], null, createKrShow ? /*#__PURE__*/_react["default"].createElement(_createKrItem["default"], {
|