@titaui/pc 1.12.33 → 1.12.36

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.
@@ -116,11 +116,13 @@ var EvaluationDialog = function EvaluationDialog(props) {
116
116
  };
117
117
  (0, _api.setSummaryEvaluate)(params).then(function (res) {
118
118
  if (res.Code === 1) {
119
+ var _res$Data;
120
+
119
121
  closeDialog({
120
122
  remark: remark,
121
123
  type: Number(evaluateType),
122
124
  value: value,
123
- user: res === null || res === void 0 ? void 0 : res.userV2
125
+ user: res === null || res === void 0 ? void 0 : (_res$Data = res.Data) === null || _res$Data === void 0 ? void 0 : _res$Data.user
124
126
  });
125
127
 
126
128
  _toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"));
@@ -136,18 +138,18 @@ var EvaluationDialog = function EvaluationDialog(props) {
136
138
  toUserId: toUserId
137
139
  };
138
140
  (0, _api.getSummaryEvaluate)(params).then(function (res) {
139
- var _res$Data, _res$Data2, _res$Data4;
141
+ var _res$Data2, _res$Data3, _res$Data5;
140
142
 
141
- setRemark(res === null || res === void 0 ? void 0 : (_res$Data = res.Data) === null || _res$Data === void 0 ? void 0 : _res$Data.remark);
143
+ setRemark(res === null || res === void 0 ? void 0 : (_res$Data2 = res.Data) === null || _res$Data2 === void 0 ? void 0 : _res$Data2.remark);
142
144
 
143
- if ((res === null || res === void 0 ? void 0 : (_res$Data2 = res.Data) === null || _res$Data2 === void 0 ? void 0 : _res$Data2.type) === 1) {
144
- var _res$Data3;
145
+ if ((res === null || res === void 0 ? void 0 : (_res$Data3 = res.Data) === null || _res$Data3 === void 0 ? void 0 : _res$Data3.type) === 1) {
146
+ var _res$Data4;
145
147
 
146
- setRatingScore(Number(res === null || res === void 0 ? void 0 : (_res$Data3 = res.Data) === null || _res$Data3 === void 0 ? void 0 : _res$Data3.value) / 2);
147
- } else if ((res === null || res === void 0 ? void 0 : (_res$Data4 = res.Data) === null || _res$Data4 === void 0 ? void 0 : _res$Data4.type) === 2) {
148
- var _res$Data5;
148
+ setRatingScore(Number(res === null || res === void 0 ? void 0 : (_res$Data4 = res.Data) === null || _res$Data4 === void 0 ? void 0 : _res$Data4.value) / 2);
149
+ } else if ((res === null || res === void 0 ? void 0 : (_res$Data5 = res.Data) === null || _res$Data5 === void 0 ? void 0 : _res$Data5.type) === 2) {
150
+ var _res$Data6;
149
151
 
150
- setEencourageState(res === null || res === void 0 ? void 0 : (_res$Data5 = res.Data) === null || _res$Data5 === void 0 ? void 0 : _res$Data5.value);
152
+ setEencourageState(res === null || res === void 0 ? void 0 : (_res$Data6 = res.Data) === null || _res$Data6 === void 0 ? void 0 : _res$Data6.value);
151
153
  }
152
154
  });
153
155
  }
@@ -51,6 +51,8 @@ var prefix = 'titaui-okr-progress';
51
51
  var isImport = false;
52
52
 
53
53
  var OkrProgress = function OkrProgress(_ref) {
54
+ var _rowsData$Rows;
55
+
54
56
  var data = _ref.data,
55
57
  reportType = _ref.reportType;
56
58
 
@@ -142,7 +144,7 @@ var OkrProgress = function OkrProgress(_ref) {
142
144
  setRowsData(JSON.parse(data || '{}'));
143
145
  }
144
146
  }, [data]);
145
- if (!(rowsData !== null && rowsData !== void 0 && rowsData.Rows.length)) return null;
147
+ if (!(rowsData !== null && rowsData !== void 0 && (_rowsData$Rows = rowsData.Rows) !== null && _rowsData$Rows !== void 0 && _rowsData$Rows.length)) return null;
146
148
  return /*#__PURE__*/_react["default"].createElement("div", {
147
149
  className: prefix
148
150
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -192,11 +192,12 @@ var DynamicReply = function DynamicReply(_ref) {
192
192
  alt: ""
193
193
  }))), dailyContent.map(function (item) {
194
194
  if (item.contentType === _constant.dailyContentType.richText) {
195
- return item.richContent !== "" && typeof item.richContent === "string" && /*#__PURE__*/_react["default"].createElement("div", {
195
+ return item.content !== '' && typeof item.richContent === "string" && /*#__PURE__*/_react["default"].createElement("div", {
196
196
  className: "".concat(prefix, "__work")
197
197
  }, item.title === "工作总结" ? (0, _getLocale.getLocale)('Tasks_Tab_MyS_JobSummary') : (0, _getLocale.getLocale)('Rep_Tab_Mys_NextWorkPlans'), /*#__PURE__*/_react["default"].createElement(_richEditor["default"], null, /*#__PURE__*/_react["default"].createElement(_richEditor.EditorComponent, {
198
198
  editable: false,
199
- initialState: JSON.parse(item.richContent || '{}')
199
+ initialState: JSON.parse(item.richContent || '{}'),
200
+ placeholder: (0, _getLocale.getLocale)('Rep_NewS_Notfilled')
200
201
  })));
201
202
  }
202
203
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.12.33",
3
+ "version": "1.12.36",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",