@titaui/pc 1.15.98 → 1.15.99
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.
|
@@ -176,7 +176,7 @@ var _default = function _default() {
|
|
|
176
176
|
deWeightData[item.id] = item;
|
|
177
177
|
});
|
|
178
178
|
var result = Object.values(deWeightData);
|
|
179
|
-
setRawTreeData(
|
|
179
|
+
setRawTreeData([].concat(result));
|
|
180
180
|
setTreeData((0, _utils.toTree)(rawTreeData));
|
|
181
181
|
resolve(true);
|
|
182
182
|
});
|
|
@@ -29,6 +29,8 @@ var _context = require("../../context");
|
|
|
29
29
|
|
|
30
30
|
var _auth = require("../../../../utils/auth");
|
|
31
31
|
|
|
32
|
+
var _helpers = require("../../../../utils/helpers");
|
|
33
|
+
|
|
32
34
|
require("../../index.css");
|
|
33
35
|
|
|
34
36
|
require("./index.css");
|
|
@@ -92,7 +94,8 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
92
94
|
setIsShowTemplate = _useState12[1];
|
|
93
95
|
|
|
94
96
|
var isShowDepartment = baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager() || baseAuth.isDepartmentLeader() || baseAuth.isHrbp();
|
|
95
|
-
var isShowDashboard = baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager() || baseAuth.isDepartmentLeader() || baseAuth.isHrbp();
|
|
97
|
+
var isShowDashboard = (baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager() || baseAuth.isDepartmentLeader() || baseAuth.isHrbp()) && !(0, _helpers.getTenantInfo)().isLocal; // isLocal = 本地化部署,不展示仪表盘
|
|
98
|
+
|
|
96
99
|
var flipRef = (0, _react.useRef)({
|
|
97
100
|
next: function next() {},
|
|
98
101
|
goback: function goback() {}
|