@titaui/pc 1.15.77-beta.1 → 1.15.77-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -387,8 +387,7 @@ var BaseInfo = function BaseInfo(_ref) {
387
387
  }, [generalPrincipalUser, okrInfo]); // 判断是否有权限和是否上面可编辑
388
388
 
389
389
  (0, _react.useEffect)(function () {
390
- var inParticipant = (0, _util.findUser)(participant, loginUser.Id);
391
- var canEditParticipantAndFollowers = canEditAllInfo || inParticipant;
390
+ var canEditParticipantAndFollowers = canEditAllInfo || okrInfo.isParticipant;
392
391
  setCanEditPerson(!!canEditParticipantAndFollowers);
393
392
  }, [participant, canEditAllInfo]);
394
393
  (0, _react.useEffect)(function () {
@@ -456,13 +455,13 @@ var BaseInfo = function BaseInfo(_ref) {
456
455
  visiableLimit: generalVisibility.visibilityScope,
457
456
  canEdit: canEditAllInfo,
458
457
  okrId: okrId
459
- })), !canEditPerson && !canEditAllInfo && participant.length === 0 && followers.length === 0 ? null : /*#__PURE__*/_react["default"].createElement("div", {
458
+ })), !canEditPerson && !okrInfo.isParticipant && !canEditAllInfo && participant.length === 0 && followers.length === 0 ? null : /*#__PURE__*/_react["default"].createElement("div", {
460
459
  className: "base-info__divider"
461
460
  }), /*#__PURE__*/_react["default"].createElement("div", {
462
461
  className: "base-info__participant-followers-wrapper"
463
462
  }, /*#__PURE__*/_react["default"].createElement("div", {
464
463
  className: "base-info__person-block"
465
- }, !canEditPerson && !canEditAllInfo && participant.length === 0 ? null : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
464
+ }, !canEditPerson && !canEditAllInfo && !okrInfo.isParticipant && participant.length === 0 ? null : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
466
465
  className: "base-info__person-block-title"
467
466
  }, (0, _getLocale.getLocale)("Mod_Participants")), /*#__PURE__*/_react["default"].createElement(_person["default"], {
468
467
  users: participant,
@@ -191,6 +191,7 @@ function _default(props) {
191
191
  _useState26 = _slicedToArray(_useState25, 1),
192
192
  krCanEdit = _useState26[0];
193
193
 
194
+ var progressEdit = okrInfo.isParticipant || data.isParticipant || krCanEdit;
194
195
  var mentionInputRef = (0, _react.useRef)();
195
196
  (0, _react.useEffect)(function () {
196
197
  setKrNameData({
@@ -363,7 +364,7 @@ function _default(props) {
363
364
  };
364
365
 
365
366
  var onPrograssEditHandler = function onPrograssEditHandler() {
366
- if (!krCanEdit) return;
367
+ if (!progressEdit) return;
367
368
  setKrModalVsible(true);
368
369
  };
369
370
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.15.77-beta.1",
3
+ "version": "1.15.77-beta.2",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",