@titaui/pc 1.12.94 → 1.12.96
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/dynamic/dynamic-item/dynamic-new-report/index.js +13 -21
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +54 -57
- package/lib/components/menus/export-modules/summary-menus/menus.js +1 -1
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +4 -2
- package/package.json +1 -1
|
@@ -13,8 +13,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _richEditor = _interopRequireWildcard(require("@titaui/rich-editor"));
|
|
15
15
|
|
|
16
|
-
var _reactIntersectionObserver = require("react-intersection-observer");
|
|
17
|
-
|
|
18
16
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
19
17
|
|
|
20
18
|
var _context = require("../../context");
|
|
@@ -176,24 +174,18 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
176
174
|
setShowDelete(true);
|
|
177
175
|
setShowEdit(true);
|
|
178
176
|
}
|
|
179
|
-
}, []);
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
return /*#__PURE__*/_react["default"].createElement(_reactIntersectionObserver.InView, {
|
|
193
|
-
triggerOnce: true,
|
|
194
|
-
onChange: handleInView,
|
|
195
|
-
threshold: 0.5
|
|
196
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
177
|
+
}, []); // const handleInView = (inview) => {
|
|
178
|
+
// if (inview) {
|
|
179
|
+
// window.titaTracker("planAction").record({
|
|
180
|
+
// actionName: "查看日报",
|
|
181
|
+
// actionGroup: "动态-查看日报",
|
|
182
|
+
// productName: "动态",
|
|
183
|
+
// feedId,
|
|
184
|
+
// });
|
|
185
|
+
// }
|
|
186
|
+
// }
|
|
187
|
+
|
|
188
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
197
189
|
className: prefix
|
|
198
190
|
}, /*#__PURE__*/_react["default"].createElement(_summaryHeader["default"], _extends({
|
|
199
191
|
data: data
|
|
@@ -264,7 +256,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
264
256
|
feedId: feedId,
|
|
265
257
|
publishUser: publishUser,
|
|
266
258
|
canEvaluate: canEvaluate
|
|
267
|
-
})))
|
|
259
|
+
})));
|
|
268
260
|
};
|
|
269
261
|
|
|
270
262
|
var _default = DynamicReply;
|
|
@@ -11,8 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var _reactIntersectionObserver = require("react-intersection-observer");
|
|
15
|
-
|
|
16
14
|
var _context = require("../../context");
|
|
17
15
|
|
|
18
16
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
@@ -108,61 +106,60 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
108
106
|
parentDom: workPlanRichTextRef.current,
|
|
109
107
|
keyWord: searchKeyWord
|
|
110
108
|
});
|
|
111
|
-
}, [data, searchKeyWord]);
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}))))));
|
|
109
|
+
}, [data, searchKeyWord]); // const handleInView = (inview) => {
|
|
110
|
+
// if (inview) {
|
|
111
|
+
// window.titaTracker("planAction").record({
|
|
112
|
+
// actionName: "查看日报",
|
|
113
|
+
// actionGroup: "动态-查看日报",
|
|
114
|
+
// productName: "动态",
|
|
115
|
+
// feedId,
|
|
116
|
+
// });
|
|
117
|
+
// }
|
|
118
|
+
// }
|
|
119
|
+
|
|
120
|
+
return (
|
|
121
|
+
/*#__PURE__*/
|
|
122
|
+
// <InView triggerOnce={true} onChange={handleInView} threshold={0.5}>
|
|
123
|
+
_react["default"].createElement("div", {
|
|
124
|
+
className: prefix
|
|
125
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
126
|
+
data: data
|
|
127
|
+
}, restProps, {
|
|
128
|
+
desc: renderDesc,
|
|
129
|
+
user: publishUser,
|
|
130
|
+
suffixContent: renderSuffix
|
|
131
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
|
+
className: "".concat(prefix, "__content")
|
|
133
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
|
+
className: "".concat(prefix, "__content-title")
|
|
135
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
136
|
+
content: (0, _tools.htmlDecodeByRegExp)(data.name),
|
|
137
|
+
onClickTitle: handleClickTitle,
|
|
138
|
+
type: getEReportType(reportType),
|
|
139
|
+
typeBgColor: "rgba(92, 142, 255, 0.5)",
|
|
140
|
+
titleBgColor: "rgba(92, 142, 255, 0.1)",
|
|
141
|
+
contentColor: "#5C8EFF"
|
|
142
|
+
})), data.contentRichText && /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
+
className: "".concat(prefix, "__summary")
|
|
144
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
|
+
className: "".concat(prefix, "__block-title")
|
|
146
|
+
}, (0, _getLocale.getLocale)("Rep_Tab_Mys_Summaryobsta")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
|
+
className: "".concat(prefix, "__content-text"),
|
|
148
|
+
ref: contentRichTextRef
|
|
149
|
+
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
150
|
+
htmlText: data.contentRichText
|
|
151
|
+
}))), data.workPlanRichText && /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
|
+
className: "".concat(prefix, "__work-plan")
|
|
153
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
|
+
className: "".concat(prefix, "__block-title")
|
|
155
|
+
}, (0, _getLocale.getLocale)("Rep_Tab_Mys_NextWorkPlans")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
156
|
+
className: "".concat(prefix, "__content-text"),
|
|
157
|
+
ref: workPlanRichTextRef
|
|
158
|
+
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
159
|
+
htmlText: data.workPlanRichText
|
|
160
|
+
}))))) // </InView>
|
|
161
|
+
|
|
162
|
+
);
|
|
166
163
|
};
|
|
167
164
|
|
|
168
165
|
var _default = DynamicReply;
|
|
@@ -80,6 +80,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
80
80
|
setIsShowShare = _useState8[1];
|
|
81
81
|
|
|
82
82
|
var isShowDepartment = baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager() || baseAuth.isDepartmentLeader() || baseAuth.isHrbp();
|
|
83
|
+
var isShowDashboard = baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager() || baseAuth.isHrbp();
|
|
83
84
|
var flipRef = (0, _react.useRef)({
|
|
84
85
|
next: function next() {},
|
|
85
86
|
goback: function goback() {}
|
|
@@ -206,11 +207,12 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
206
207
|
(0, _react.useEffect)(function () {
|
|
207
208
|
var newMenu = new _menus["default"]({
|
|
208
209
|
isShowShare: isShowShare,
|
|
209
|
-
isShowDept: isShowDepartment
|
|
210
|
+
isShowDept: isShowDepartment,
|
|
211
|
+
isShowDashboard: isShowDashboard
|
|
210
212
|
});
|
|
211
213
|
summaryMenusData.current = newMenu;
|
|
212
214
|
setMenus(newMenu.getMenus());
|
|
213
|
-
}, [isShowShare, isShowDepartment]);
|
|
215
|
+
}, [isShowShare, isShowDepartment, isShowDashboard]);
|
|
214
216
|
(0, _react.useEffect)(function () {
|
|
215
217
|
(0, _requestApi.getShareStatus)().then(function (resp) {
|
|
216
218
|
if (resp.Code === 1) {
|