@titaui/pc 1.15.96 → 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.
|
@@ -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.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() {}
|
|
@@ -79,8 +79,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
79
79
|
|
|
80
80
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
81
81
|
|
|
82
|
-
var cacheViewType = localStorage.getItem('cacheViewType');
|
|
83
|
-
|
|
84
82
|
function getOkrExcelData(okrData) {
|
|
85
83
|
var okrExcelData = [];
|
|
86
84
|
okrData.forEach(function (okrInfo) {
|
|
@@ -194,7 +192,7 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
194
192
|
isInit = _useState14[0],
|
|
195
193
|
setIsInit = _useState14[1];
|
|
196
194
|
|
|
197
|
-
var _useState15 = (0, _react.useState)(cacheViewType || _header.ViewType.Card),
|
|
195
|
+
var _useState15 = (0, _react.useState)(localStorage.getItem('cacheViewType') || _header.ViewType.Card),
|
|
198
196
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
199
197
|
viewType = _useState16[0],
|
|
200
198
|
setViewType = _useState16[1];
|