@titaui/pc 1.16.9 → 1.16.11
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.
|
@@ -72,7 +72,9 @@ function ImportOKRModal(props) {
|
|
|
72
72
|
var selectedRef = (0, _react.useRef)(selected); // 解决闭包
|
|
73
73
|
|
|
74
74
|
var onOkHandler = function onOkHandler() {
|
|
75
|
-
|
|
75
|
+
var _selectedRef$current;
|
|
76
|
+
|
|
77
|
+
if (((_selectedRef$current = selectedRef.current) === null || _selectedRef$current === void 0 ? void 0 : _selectedRef$current.length) < 1) {
|
|
76
78
|
_toast["default"].Error((0, _getLocale.getLocale)('OKR_MyO_Selectaleastone'));
|
|
77
79
|
|
|
78
80
|
return;
|
|
@@ -170,8 +170,7 @@ var OkrTree = function OkrTree(_ref) {
|
|
|
170
170
|
|
|
171
171
|
var getTreeNodes = /*#__PURE__*/function () {
|
|
172
172
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
173
|
-
var
|
|
174
|
-
|
|
173
|
+
var data, works, total;
|
|
175
174
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
176
175
|
while (1) {
|
|
177
176
|
switch (_context.prev = _context.next) {
|
|
@@ -184,13 +183,19 @@ var OkrTree = function OkrTree(_ref) {
|
|
|
184
183
|
}, query));
|
|
185
184
|
|
|
186
185
|
case 2:
|
|
187
|
-
|
|
188
|
-
works =
|
|
189
|
-
total =
|
|
186
|
+
data = _context.sent;
|
|
187
|
+
works = [];
|
|
188
|
+
total = 0;
|
|
189
|
+
|
|
190
|
+
if (data) {
|
|
191
|
+
works = data.works;
|
|
192
|
+
total = data.total;
|
|
193
|
+
}
|
|
194
|
+
|
|
190
195
|
setWorks(works || []);
|
|
191
196
|
setTotal(total);
|
|
192
197
|
|
|
193
|
-
case
|
|
198
|
+
case 8:
|
|
194
199
|
case "end":
|
|
195
200
|
return _context.stop();
|
|
196
201
|
}
|
|
@@ -12,8 +12,18 @@ var _getBSGlobal2, _getBSGlobal3;
|
|
|
12
12
|
var openFullscreen = function openFullscreen() {
|
|
13
13
|
// 隐藏侧边栏和头部
|
|
14
14
|
// if (!getBSGlobal("tenantInfo")?.isNewIndex) {
|
|
15
|
-
document.querySelector(".tu-page-nav")
|
|
16
|
-
|
|
15
|
+
if (document.querySelector(".tu-page-nav")) {
|
|
16
|
+
document.querySelector(".tu-page-nav").style.display = "none";
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (document.querySelector(".tu-page-header")) {
|
|
20
|
+
document.querySelector(".tu-page-header").style.display = "none";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (document.querySelector('.titaui-nav-top__version')) {
|
|
24
|
+
document.querySelector(".titaui-nav-top__version").style.display = "none";
|
|
25
|
+
} // }
|
|
26
|
+
|
|
17
27
|
};
|
|
18
28
|
|
|
19
29
|
exports.openFullscreen = openFullscreen;
|
|
@@ -22,8 +32,17 @@ var closeFullscreen = function closeFullscreen() {
|
|
|
22
32
|
var _getBSGlobal;
|
|
23
33
|
|
|
24
34
|
if (!((_getBSGlobal = getBSGlobal("tenantInfo")) !== null && _getBSGlobal !== void 0 && _getBSGlobal.isNewIndex)) {
|
|
25
|
-
document.querySelector(".tu-page-nav")
|
|
26
|
-
|
|
35
|
+
if (document.querySelector(".tu-page-nav")) {
|
|
36
|
+
document.querySelector(".tu-page-nav").style.display = "block";
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (document.querySelector(".tu-page-header")) {
|
|
40
|
+
document.querySelector(".tu-page-header").style.display = "block";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (document.querySelector('.titaui-nav-top__version')) {
|
|
45
|
+
document.querySelector(".titaui-nav-top__version").style.display = "block";
|
|
27
46
|
}
|
|
28
47
|
};
|
|
29
48
|
|