@titaui/pc 1.11.4-6 → 1.11.4-7

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.
@@ -138,7 +138,7 @@ function ETaskNode(props) {
138
138
  setDataInfo = _useState14[1];
139
139
 
140
140
  var _useState15 = (0, _react.useState)(function () {
141
- return (0, _bsGlobal.getBSGlobal)("TaskAdvancedSetting").TaskFunctionSetting.TaskPriority;
141
+ return (0, _bsGlobal.getBSGlobal)('TaskAdvancedSetting').TaskFunctionSetting.TaskPriority;
142
142
  }),
143
143
  _useState16 = _slicedToArray(_useState15, 1),
144
144
  isShowPriority = _useState16[0]; // const { okrInfo } = useContext(CommonContext);
@@ -154,10 +154,11 @@ function ETaskNode(props) {
154
154
  // }).hasAuth()
155
155
 
156
156
 
157
- var hasEditAuth = (new _auth.EAuth({
157
+ var hasEditAuth = new _auth.EAuth({
158
158
  principalUser: data.principalUser,
159
159
  user: data.user
160
- }).hasAuth() || extraEditAuth) && data.status !== 5;
160
+ }).hasAuth() && // || extraEditAuth
161
+ data.status !== 5;
161
162
  var isParticipant = ((_okrInfo$authority = okrInfo.authority) === null || _okrInfo$authority === void 0 ? void 0 : _okrInfo$authority.roleRelation) && okrInfo.authority.roleRelation.roleType === 2;
162
163
  var hasRelativeAuth = new _auth.KRAuth({
163
164
  user: krUser,
@@ -178,7 +179,7 @@ function ETaskNode(props) {
178
179
  if (data.Code === 1) {
179
180
  setUser(user.data);
180
181
 
181
- _toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
182
+ _toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'), {
182
183
  canClose: false
183
184
  });
184
185
  } else {
@@ -187,7 +188,7 @@ function ETaskNode(props) {
187
188
  });
188
189
  }
189
190
  })["catch"](function () {
190
- _toast["default"].Error("网络异常", {
191
+ _toast["default"].Error('网络异常', {
191
192
  canClose: false
192
193
  });
193
194
  });
@@ -199,7 +200,7 @@ function ETaskNode(props) {
199
200
  status: _constant.EStatusClass2StatusType[statusType]
200
201
  }).then(function (resp) {
201
202
  if (resp.Code === 1) {
202
- _toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
203
+ _toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'), {
203
204
  canClose: false
204
205
  });
205
206
 
@@ -214,7 +215,7 @@ function ETaskNode(props) {
214
215
  });
215
216
  }
216
217
  })["catch"](function () {
217
- _toast["default"].Error("网络异常", {
218
+ _toast["default"].Error('网络异常', {
218
219
  canClose: false
219
220
  });
220
221
  });
@@ -228,7 +229,7 @@ function ETaskNode(props) {
228
229
  taskId: data.taskId
229
230
  }).then(function (resp) {
230
231
  if (resp.Code === 1) {
231
- _toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
232
+ _toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'), {
232
233
  canClose: false
233
234
  });
234
235
 
@@ -239,7 +240,7 @@ function ETaskNode(props) {
239
240
  });
240
241
  }
241
242
  })["catch"](function () {
242
- _toast["default"].Error("网络异常", {
243
+ _toast["default"].Error('网络异常', {
243
244
  canClose: false
244
245
  });
245
246
  })["finally"](setUnConnectVisible(false));
@@ -285,7 +286,7 @@ function ETaskNode(props) {
285
286
  status: resp.Data.status
286
287
  }));
287
288
 
288
- _toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
289
+ _toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'), {
289
290
  canClose: false
290
291
  });
291
292
  } else {
@@ -294,7 +295,7 @@ function ETaskNode(props) {
294
295
  });
295
296
  }
296
297
  })["catch"](function () {
297
- _toast["default"].Error("网络异常", {
298
+ _toast["default"].Error('网络异常', {
298
299
  canClose: false
299
300
  });
300
301
  });
@@ -328,7 +329,7 @@ function ETaskNode(props) {
328
329
  };
329
330
 
330
331
  var handleShowTaskDetail = function handleShowTaskDetail() {
331
- if ((0, _platform.isPlatform)("dd")) {
332
+ if ((0, _platform.isPlatform)('dd')) {
332
333
  _drawerManager["default"].close();
333
334
  }
334
335
 
@@ -340,7 +341,7 @@ function ETaskNode(props) {
340
341
  refreshEList && refreshEList();
341
342
  }); // 任务:打开推屏
342
343
 
343
- window.Talent.app.vent.trigger("global-pull-screen", data.taskId, "task");
344
+ window.Talent.app.vent.trigger('global-pull-screen', data.taskId, 'task');
344
345
  } else {
345
346
  window.open("//".concat(window.location.host).concat(window.location.pathname, "#more/taskinfo?id=").concat(data.taskId));
346
347
  }
@@ -363,7 +364,7 @@ function ETaskNode(props) {
363
364
  hasAuth: hasEditAuth,
364
365
  status: data.status
365
366
  })), /*#__PURE__*/_react["default"].createElement("span", {
366
- className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-title ").concat(isCancel ? "".concat(_precls["default"], "__e-project-node-gray") : "")),
367
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-title ").concat(isCancel ? "".concat(_precls["default"], "__e-project-node-gray") : '')),
367
368
  onClick: handleShowTaskDetail
368
369
  }, /*#__PURE__*/_react["default"].createElement(TooltipText, {
369
370
  text: (0, _helpers.escapeHtml)(title),
@@ -396,11 +397,11 @@ function ETaskNode(props) {
396
397
  percent: progress,
397
398
  linear: true,
398
399
  linearId: data.taskId,
399
- linearStartColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, "linearStartColor", dataInfo.status),
400
- linearEndColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, "linearEndColor", dataInfo.status),
401
- backgroundColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, "backgroundColor", dataInfo.status)
400
+ linearStartColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, 'linearStartColor', dataInfo.status),
401
+ linearEndColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, 'linearEndColor', dataInfo.status),
402
+ backgroundColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, 'backgroundColor', dataInfo.status)
402
403
  })), okrInfo.status === 1 && hasRelation && (hasRelativeAuth || isParticipant) ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
403
- overlay: (0, _getLocale.getLocale)("OKR_MyO_Text_Cancel"),
404
+ overlay: (0, _getLocale.getLocale)('OKR_MyO_Text_Cancel'),
404
405
  placement: "top"
405
406
  }, /*#__PURE__*/_react["default"].createElement("span", {
406
407
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions-connect")),
@@ -414,17 +415,17 @@ function ETaskNode(props) {
414
415
  type: "warning"
415
416
  }, /*#__PURE__*/_react["default"].createElement("span", {
416
417
  type: "title"
417
- }, (0, _getLocale.getLocale)("OKR_MyO_Text_Cancelass")), /*#__PURE__*/_react["default"].createElement("span", {
418
+ }, (0, _getLocale.getLocale)('OKR_MyO_Text_Cancelass')), /*#__PURE__*/_react["default"].createElement("span", {
418
419
  type: "content"
419
- }, (0, _getLocale.getLocale)("OKR_MyO_Text_TtasknotO")), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
420
+ }, (0, _getLocale.getLocale)('OKR_MyO_Text_TtasknotO')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
420
421
  type: "button",
421
422
  onClick: function onClick() {
422
423
  return setUnConnectVisible(false);
423
424
  }
424
- }, (0, _getLocale.getLocale)("Mod_Cancel")), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.SureButton, {
425
+ }, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.SureButton, {
425
426
  type: "button",
426
427
  onClick: onSureUnConnectHandler
427
- }, (0, _getLocale.getLocale)("OKR_MyO_Butt_Determine"))));
428
+ }, (0, _getLocale.getLocale)('OKR_MyO_Butt_Determine'))));
428
429
  }
429
430
 
430
431
  var _default = ETaskNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.11.4-6",
3
+ "version": "1.11.4-7",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",