@titaui/pc 1.16.19 → 1.16.20-beta.1
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/create-okr-modal/fields/okr-visibility-detail.js +8 -4
- package/lib/components/create-okr-modal/fields/okr-visibility.js +10 -4
- package/lib/components/create-okr-modal/index.js +2 -2
- package/lib/components/okr-detail/base-info/other-infos/visibility/index.js +10 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +0 -1
- package/lib/components/okr-excel/renders.js +1 -4
- package/lib/components/okr-excel-create/components/okr-visibility/index.js +13 -7
- package/lib/components/okr-excel-create/components-new/okr-visibility/index.js +13 -7
- package/lib/components/okr-excel-create/utils.js +1 -1
- package/package.json +1 -1
|
@@ -52,9 +52,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
52
52
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
53
53
|
|
|
54
54
|
var visibilityList = [{
|
|
55
|
-
value: 1,
|
|
56
|
-
lable: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
|
|
57
|
-
}, {
|
|
58
55
|
value: 2,
|
|
59
56
|
lable: (0, _getLocale.getLocale)("OKR_MyO_From_Associatedmem")
|
|
60
57
|
}, {
|
|
@@ -65,12 +62,19 @@ var visibilityList = [{
|
|
|
65
62
|
lable: (0, _getLocale.getLocale)("OKR_MyO_Pop_Specified")
|
|
66
63
|
}];
|
|
67
64
|
|
|
65
|
+
if (window.BSGlobal.tenantInfo.isOpenInfo) {
|
|
66
|
+
visibilityList.unshift({
|
|
67
|
+
value: 1,
|
|
68
|
+
lable: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
68
72
|
function _default(_ref) {
|
|
69
73
|
var _ref$canEdit = _ref.canEdit,
|
|
70
74
|
canEdit = _ref$canEdit === void 0 ? false : _ref$canEdit,
|
|
71
75
|
workId = _ref.workId,
|
|
72
76
|
_ref$visibilityProp = _ref.visibilityProp,
|
|
73
|
-
visibilityProp = _ref$visibilityProp === void 0 ?
|
|
77
|
+
visibilityProp = _ref$visibilityProp === void 0 ? 2 : _ref$visibilityProp,
|
|
74
78
|
_ref$visiableScopePro = _ref.visiableScopeProp,
|
|
75
79
|
visiableScopeProp = _ref$visiableScopePro === void 0 ? {} : _ref$visiableScopePro,
|
|
76
80
|
onSave = _ref.onSave;
|
|
@@ -29,10 +29,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
29
29
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
30
30
|
|
|
31
31
|
var visibilityList = function visibilityList() {
|
|
32
|
-
|
|
33
|
-
value: 1,
|
|
34
|
-
lable: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
|
|
35
|
-
}, {
|
|
32
|
+
var visibility = [{
|
|
36
33
|
value: 2,
|
|
37
34
|
lable: (0, _getLocale.getLocale)("OKR_MyO_From_Associatedmem")
|
|
38
35
|
}, {
|
|
@@ -42,6 +39,15 @@ var visibilityList = function visibilityList() {
|
|
|
42
39
|
value: 4,
|
|
43
40
|
lable: (0, _getLocale.getLocale)("OKR_MyO_Pop_Specified")
|
|
44
41
|
}];
|
|
42
|
+
|
|
43
|
+
if (window.BSGlobal.tenantInfo.isOpenInfo) {
|
|
44
|
+
visibility.unshift({
|
|
45
|
+
value: 1,
|
|
46
|
+
lable: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return visibility;
|
|
45
51
|
};
|
|
46
52
|
|
|
47
53
|
var visibilityMapText = function visibilityMapText() {
|
|
@@ -219,7 +219,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
219
219
|
setOkrClassify = _useState20[1]; // 目标类别
|
|
220
220
|
|
|
221
221
|
|
|
222
|
-
var _useState21 = (0, _react.useState)(
|
|
222
|
+
var _useState21 = (0, _react.useState)(2),
|
|
223
223
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
224
224
|
visibility = _useState22[0],
|
|
225
225
|
setVisibility = _useState22[1]; // 可见性
|
|
@@ -678,7 +678,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
678
678
|
});
|
|
679
679
|
setCycle(cycle);
|
|
680
680
|
setOkrClassify(undefined);
|
|
681
|
-
setVisibility(
|
|
681
|
+
setVisibility(2);
|
|
682
682
|
setParent({
|
|
683
683
|
parentWorkId: 0,
|
|
684
684
|
parentWorkName: '',
|
|
@@ -40,10 +40,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
40
40
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
41
|
|
|
42
42
|
var getVisibilityList = function getVisibilityList() {
|
|
43
|
-
|
|
44
|
-
value: 1,
|
|
45
|
-
label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
|
|
46
|
-
}, {
|
|
43
|
+
var visibility = [{
|
|
47
44
|
value: 2,
|
|
48
45
|
label: (0, _getLocale.getLocale)("OKR_MyO_From_Associatedmem")
|
|
49
46
|
}, {
|
|
@@ -53,6 +50,15 @@ var getVisibilityList = function getVisibilityList() {
|
|
|
53
50
|
value: 4,
|
|
54
51
|
label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Specified")
|
|
55
52
|
}];
|
|
53
|
+
|
|
54
|
+
if (window.BSGlobal.tenantInfo.isOpenInfo) {
|
|
55
|
+
visibility.unshift({
|
|
56
|
+
value: 1,
|
|
57
|
+
label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return visibility;
|
|
56
62
|
};
|
|
57
63
|
|
|
58
64
|
var getVisibilityMapText = function getVisibilityMapText() {
|
|
@@ -186,7 +186,6 @@ function _default(props) {
|
|
|
186
186
|
});
|
|
187
187
|
};
|
|
188
188
|
|
|
189
|
-
console.log(999, data, krName);
|
|
190
189
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
191
190
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-parent-node"))
|
|
192
191
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -98,10 +98,7 @@ var OkrNameRenderer = function OkrNameRenderer(showCycle, onRefresh) {
|
|
|
98
98
|
onClick: onOpendrawer
|
|
99
99
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
100
100
|
className: "".concat(preCls, "__okr-icon tu-icon-H5-O-s")
|
|
101
|
-
}), /*#__PURE__*/_react["default"].createElement(
|
|
102
|
-
overlay: (0, _openData.parseString)(params.value),
|
|
103
|
-
placement: "top"
|
|
104
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _openData.parseString)(params.value))), showCycle && /*#__PURE__*/_react["default"].createElement(_tag["default"], {
|
|
101
|
+
}), (0, _openData.parseString)(params.value), showCycle && /*#__PURE__*/_react["default"].createElement(_tag["default"], {
|
|
105
102
|
backgroundColor: "rgba(40,121,255,.16)",
|
|
106
103
|
color: "#3f4755"
|
|
107
104
|
}, formatCycleData(period, false)), /*#__PURE__*/_react["default"].createElement(_okrTypeIcon["default"], {
|
|
@@ -40,19 +40,25 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
40
40
|
var prefix = 'tita-okr-excel-create-visibility';
|
|
41
41
|
|
|
42
42
|
var getVisibilityList = function getVisibilityList() {
|
|
43
|
-
|
|
44
|
-
value: 1,
|
|
45
|
-
label: (0, _getLocale.getLocale)('OKR_MyO_Pop_Public')
|
|
46
|
-
}, {
|
|
43
|
+
var visibility = [{
|
|
47
44
|
value: 2,
|
|
48
|
-
label: (0, _getLocale.getLocale)(
|
|
45
|
+
label: (0, _getLocale.getLocale)("OKR_MyO_From_Associatedmem")
|
|
49
46
|
}, {
|
|
50
47
|
value: 3,
|
|
51
|
-
label: (0, _getLocale.getLocale)(
|
|
48
|
+
label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Directrep")
|
|
52
49
|
}, {
|
|
53
50
|
value: 4,
|
|
54
|
-
label: (0, _getLocale.getLocale)(
|
|
51
|
+
label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Specified")
|
|
55
52
|
}];
|
|
53
|
+
|
|
54
|
+
if (window.BSGlobal.tenantInfo.isOpenInfo) {
|
|
55
|
+
visibility.unshift({
|
|
56
|
+
value: 1,
|
|
57
|
+
label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return visibility;
|
|
56
62
|
};
|
|
57
63
|
|
|
58
64
|
var getVisibilityMapText = function getVisibilityMapText() {
|
|
@@ -40,19 +40,25 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
40
40
|
var prefix = 'tita-okr-excel-create-visibility';
|
|
41
41
|
|
|
42
42
|
var getVisibilityList = function getVisibilityList() {
|
|
43
|
-
|
|
44
|
-
value: 1,
|
|
45
|
-
label: (0, _getLocale.getLocale)('OKR_MyO_Pop_Public')
|
|
46
|
-
}, {
|
|
43
|
+
var visibility = [{
|
|
47
44
|
value: 2,
|
|
48
|
-
label: (0, _getLocale.getLocale)(
|
|
45
|
+
label: (0, _getLocale.getLocale)("OKR_MyO_From_Associatedmem")
|
|
49
46
|
}, {
|
|
50
47
|
value: 3,
|
|
51
|
-
label: (0, _getLocale.getLocale)(
|
|
48
|
+
label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Directrep")
|
|
52
49
|
}, {
|
|
53
50
|
value: 4,
|
|
54
|
-
label: (0, _getLocale.getLocale)(
|
|
51
|
+
label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Specified")
|
|
55
52
|
}];
|
|
53
|
+
|
|
54
|
+
if (window.BSGlobal.tenantInfo.isOpenInfo) {
|
|
55
|
+
visibility.unshift({
|
|
56
|
+
value: 1,
|
|
57
|
+
label: (0, _getLocale.getLocale)("OKR_MyO_Pop_Public")
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return visibility;
|
|
56
62
|
};
|
|
57
63
|
|
|
58
64
|
var getVisibilityMapText = function getVisibilityMapText() {
|
|
@@ -114,7 +114,7 @@ var getIitData = function getIitData(_ref) {
|
|
|
114
114
|
workName: '',
|
|
115
115
|
isSaved: false,
|
|
116
116
|
workNameRichText: '',
|
|
117
|
-
visibility:
|
|
117
|
+
visibility: 2,
|
|
118
118
|
visibilityScope: undefined,
|
|
119
119
|
departmentId: loginUser.DepartmentId,
|
|
120
120
|
departmentName: loginUser.Department,
|