@titaui/pc 1.10.59 → 1.10.60-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/change-okr-modal/Item.js +3 -1
- package/lib/components/dynamic/components/obj-status/utils.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +7 -2
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +2 -1
- package/lib/components/menus/export-modules/okr-menus/depart-menus/index.js +3 -1
- package/lib/components/nav-top/request.apis.js +1 -1
- package/lib/components/okr-detail/components/o-classify.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +3 -1
- package/lib/components/okr-detail/components/okr-type.js +3 -1
- package/lib/components/okr-detail/detail-header/actions.js +3 -1
- package/lib/components/okr-detail/index.js +4 -2
- package/lib/components/okr-flow/utils/config.js +4 -2
- package/lib/components/task-relation-modal/search/okr-type-select.js +3 -1
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +3 -1
- package/lib/pages/new-okr-list/index.js +3 -1
- package/package.json +1 -1
|
@@ -103,12 +103,14 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
103
103
|
// @ts-ignore
|
|
104
104
|
// const {data,keywords} = props
|
|
105
105
|
function Item(props) {
|
|
106
|
+
var _window$BSGlobal$OkrA;
|
|
107
|
+
|
|
106
108
|
var _this;
|
|
107
109
|
|
|
108
110
|
_classCallCheck(this, Item);
|
|
109
111
|
|
|
110
112
|
_this = _super.call(this, props);
|
|
111
|
-
_this.isObjectiveRelevanceKr = window.BSGlobal.OkrAdvancedSetting.KRSetting.ObjectiveRelevanceKr;
|
|
113
|
+
_this.isObjectiveRelevanceKr = (_window$BSGlobal$OkrA = window.BSGlobal.OkrAdvancedSetting.KRSetting) === null || _window$BSGlobal$OkrA === void 0 ? void 0 : _window$BSGlobal$OkrA.ObjectiveRelevanceKr;
|
|
112
114
|
|
|
113
115
|
_this.onSelect = function (e, pdata) {
|
|
114
116
|
e.stopPropagation();
|
|
@@ -9,7 +9,7 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
9
9
|
|
|
10
10
|
var getStatusTextMapping = function getStatusTextMapping(status) {
|
|
11
11
|
var statusMapText = {
|
|
12
|
-
delay: (0, _getLocale.getLocale)("
|
|
12
|
+
delay: (0, _getLocale.getLocale)("OKR_MyO_Postoned"),
|
|
13
13
|
normal: (0, _getLocale.getLocale)("Pro_page_Mil_Normal"),
|
|
14
14
|
risk: (0, _getLocale.getLocale)("Pro_page_Mil_Existingrisk"),
|
|
15
15
|
end: (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed")
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
display: flex;
|
|
7
7
|
font-size: 12px;
|
|
8
8
|
line-height: 18px;
|
|
9
|
-
margin-top:
|
|
9
|
+
margin-top: 8px;
|
|
10
10
|
position: relative;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -41,6 +41,11 @@
|
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
.titaui-dynamic-operation__operate-item-left {
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
margin-right: 12px;
|
|
47
|
+
}
|
|
48
|
+
|
|
44
49
|
.titaui-dynamic-operation__operate-item-right {
|
|
45
50
|
flex: 1;
|
|
46
51
|
}
|
|
@@ -57,7 +62,7 @@
|
|
|
57
62
|
|
|
58
63
|
.titaui-dynamic-operation__operate-user {
|
|
59
64
|
color: #3f4755;
|
|
60
|
-
margin:
|
|
65
|
+
margin-right: 8px;
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
.titaui-dynamic-operation__operate-content {
|
|
@@ -46,7 +46,8 @@ var DynamicOperation = function DynamicOperation(_ref) {
|
|
|
46
46
|
});
|
|
47
47
|
} else if (feedType === _constant.EFeedType.O) {
|
|
48
48
|
_drawerManager["default"].open("okrDetail", {
|
|
49
|
-
okrId: okrId
|
|
49
|
+
okrId: okrId,
|
|
50
|
+
activeTabKey: "cooperation"
|
|
50
51
|
});
|
|
51
52
|
} else if (feedType === _constant.EFeedType.Task) {
|
|
52
53
|
window.Talent.app.vent.trigger("global-pull-screen", taskId, "task");
|
|
@@ -60,6 +60,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
60
60
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
61
61
|
|
|
62
62
|
function _default() {
|
|
63
|
+
var _window$BSGlobal$OkrA;
|
|
64
|
+
|
|
63
65
|
var loadedNode = (0, _react.useRef)([]);
|
|
64
66
|
|
|
65
67
|
var _useState = (0, _react.useState)([]),
|
|
@@ -92,7 +94,7 @@ function _default() {
|
|
|
92
94
|
_useState12 = _slicedToArray(_useState11, 1),
|
|
93
95
|
itemHeight = _useState12[0];
|
|
94
96
|
|
|
95
|
-
var _useState13 = (0, _react.useState)(window.BSGlobal.OkrAdvancedSetting.KRSetting.OkrDepsShowUser),
|
|
97
|
+
var _useState13 = (0, _react.useState)((_window$BSGlobal$OkrA = window.BSGlobal.OkrAdvancedSetting.KRSetting) === null || _window$BSGlobal$OkrA === void 0 ? void 0 : _window$BSGlobal$OkrA.OkrDepsShowUser),
|
|
96
98
|
_useState14 = _slicedToArray(_useState13, 1),
|
|
97
99
|
isGetUser = _useState14[0];
|
|
98
100
|
|
|
@@ -36,7 +36,7 @@ var getData = function getData(url, saveData) {
|
|
|
36
36
|
exports.getData = getData;
|
|
37
37
|
|
|
38
38
|
var getReplys = function getReplys(pageNum) {
|
|
39
|
-
return (0, _request.rget)("v1")("comment/messages?page_num=".concat(pageNum, "&page_size=10&status=1"));
|
|
39
|
+
return (0, _request.rget)("v1")("comment/messages?page_num=".concat(pageNum, "&page_size=10&status=1&clear=0"));
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
exports.getReplys = getReplys;
|
|
@@ -50,7 +50,9 @@ function OClassify(props) {
|
|
|
50
50
|
onOkrClassifyChange = props.onOkrClassifyChange;
|
|
51
51
|
|
|
52
52
|
var _useState = (0, _react.useState)(function () {
|
|
53
|
-
|
|
53
|
+
var _window$BSGlobal$OkrA;
|
|
54
|
+
|
|
55
|
+
return (_window$BSGlobal$OkrA = window.BSGlobal.OkrAdvancedSetting.KRSetting) === null || _window$BSGlobal$OkrA === void 0 ? void 0 : _window$BSGlobal$OkrA.OkrClassify;
|
|
54
56
|
}),
|
|
55
57
|
_useState2 = _slicedToArray(_useState, 1),
|
|
56
58
|
OkrClassifySetting = _useState2[0];
|
|
@@ -91,6 +91,8 @@ function OkrRowColumn(_ref) {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
function _default(props) {
|
|
94
|
+
var _getBSGlobal$KRSettin, _getBSGlobal$KRSettin2;
|
|
95
|
+
|
|
94
96
|
var data = props.data,
|
|
95
97
|
index = props.index,
|
|
96
98
|
title = props.title,
|
|
@@ -135,12 +137,12 @@ function _default(props) {
|
|
|
135
137
|
krName = _useState14[0],
|
|
136
138
|
setKrName = _useState14[1];
|
|
137
139
|
|
|
138
|
-
var _useState15 = (0, _react.useState)((0, _bsGlobal.getBSGlobal)("OkrAdvancedSetting").KRSetting.ShowKrConfidence),
|
|
140
|
+
var _useState15 = (0, _react.useState)((_getBSGlobal$KRSettin = (0, _bsGlobal.getBSGlobal)("OkrAdvancedSetting").KRSetting) === null || _getBSGlobal$KRSettin === void 0 ? void 0 : _getBSGlobal$KRSettin.ShowKrConfidence),
|
|
139
141
|
_useState16 = _slicedToArray(_useState15, 1),
|
|
140
142
|
showHeart = _useState16[0]; // 高级功能: 关键成果信心指数
|
|
141
143
|
|
|
142
144
|
|
|
143
|
-
var _useState17 = (0, _react.useState)((0, _bsGlobal.getBSGlobal)("OkrAdvancedSetting").KRSetting.KrWeight),
|
|
145
|
+
var _useState17 = (0, _react.useState)((_getBSGlobal$KRSettin2 = (0, _bsGlobal.getBSGlobal)("OkrAdvancedSetting").KRSetting) === null || _getBSGlobal$KRSettin2 === void 0 ? void 0 : _getBSGlobal$KRSettin2.KrWeight),
|
|
144
146
|
_useState18 = _slicedToArray(_useState17, 1),
|
|
145
147
|
showKrWeight = _useState18[0]; // 高级功能: 关见成果权重
|
|
146
148
|
|
|
@@ -78,6 +78,8 @@ function OkrRowColumn(_ref) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
function _default(props) {
|
|
81
|
+
var _getBSGlobal$KRSettin;
|
|
82
|
+
|
|
81
83
|
var data = props.data,
|
|
82
84
|
index = props.index,
|
|
83
85
|
title = props.title;
|
|
@@ -98,7 +100,7 @@ function _default(props) {
|
|
|
98
100
|
krName = _useState4[0],
|
|
99
101
|
setKrName = _useState4[1];
|
|
100
102
|
|
|
101
|
-
var _useState5 = (0, _react.useState)((0, _bsGlobal.getBSGlobal)("OkrAdvancedSetting").KRSetting.KrWeight),
|
|
103
|
+
var _useState5 = (0, _react.useState)((_getBSGlobal$KRSettin = (0, _bsGlobal.getBSGlobal)("OkrAdvancedSetting").KRSetting) === null || _getBSGlobal$KRSettin === void 0 ? void 0 : _getBSGlobal$KRSettin.KrWeight),
|
|
102
104
|
_useState6 = _slicedToArray(_useState5, 1),
|
|
103
105
|
showKrWeight = _useState6[0]; // 高级功能: 关见成果权重
|
|
104
106
|
|
|
@@ -48,8 +48,10 @@ function OType(props) {
|
|
|
48
48
|
groupName = type.groupName;
|
|
49
49
|
|
|
50
50
|
var _useState = (0, _react.useState)(function () {
|
|
51
|
+
var _window$BSGlobal$OkrA;
|
|
52
|
+
|
|
51
53
|
return (// @ts-ignore
|
|
52
|
-
window.BSGlobal.OkrAdvancedSetting.KRSetting.OkrTypeSetting
|
|
54
|
+
(_window$BSGlobal$OkrA = window.BSGlobal.OkrAdvancedSetting.KRSetting) === null || _window$BSGlobal$OkrA === void 0 ? void 0 : _window$BSGlobal$OkrA.OkrTypeSetting
|
|
53
55
|
);
|
|
54
56
|
}),
|
|
55
57
|
_useState2 = _slicedToArray(_useState, 1),
|
|
@@ -91,12 +91,14 @@ var addVisibilityButton = function addVisibilityButton(_ref2, actions) {
|
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
var addFollowButton = function addFollowButton(_ref3, actions) {
|
|
94
|
+
var _getBSGlobal$KRSettin;
|
|
95
|
+
|
|
94
96
|
var roleType = _ref3.roleType,
|
|
95
97
|
detailInfo = _ref3.detailInfo,
|
|
96
98
|
onChangeOkrFollow = _ref3.onChangeOkrFollow;
|
|
97
99
|
|
|
98
100
|
// 未开启关注目标功能
|
|
99
|
-
if (!(0, _bsGlobal.getBSGlobal)("OkrAdvancedSetting").KRSetting.TargetFollowers) {
|
|
101
|
+
if (!((_getBSGlobal$KRSettin = (0, _bsGlobal.getBSGlobal)("OkrAdvancedSetting").KRSetting) !== null && _getBSGlobal$KRSettin !== void 0 && _getBSGlobal$KRSettin.TargetFollowers)) {
|
|
100
102
|
return;
|
|
101
103
|
} // 是负责人或是内部成员不能关注目标
|
|
102
104
|
|
|
@@ -51,6 +51,8 @@ var _getLocale = require("../../utils/getLocale");
|
|
|
51
51
|
|
|
52
52
|
require("./index.css");
|
|
53
53
|
|
|
54
|
+
var _BSGlobal$OkrAdvanced, _BSGlobal$OkrAdvanced2;
|
|
55
|
+
|
|
54
56
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
55
57
|
|
|
56
58
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -77,8 +79,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
77
79
|
|
|
78
80
|
var preCls = "okr-detail"; // E周报和复盘开关
|
|
79
81
|
|
|
80
|
-
var EWorkReport = BSGlobal.OkrAdvancedSetting ? BSGlobal.OkrAdvancedSetting.KRSetting.EWorkReport : false;
|
|
81
|
-
var OkrAnalyse = BSGlobal.OkrAdvancedSetting ? BSGlobal.OkrAdvancedSetting.KRSetting.OkrAnalyse : false;
|
|
82
|
+
var EWorkReport = BSGlobal.OkrAdvancedSetting ? (_BSGlobal$OkrAdvanced = BSGlobal.OkrAdvancedSetting.KRSetting) === null || _BSGlobal$OkrAdvanced === void 0 ? void 0 : _BSGlobal$OkrAdvanced.EWorkReport : false;
|
|
83
|
+
var OkrAnalyse = BSGlobal.OkrAdvancedSetting ? (_BSGlobal$OkrAdvanced2 = BSGlobal.OkrAdvancedSetting.KRSetting) === null || _BSGlobal$OkrAdvanced2 === void 0 ? void 0 : _BSGlobal$OkrAdvanced2.OkrAnalyse : false;
|
|
82
84
|
var source = window.BSGlobal.tenantInfo.Source;
|
|
83
85
|
|
|
84
86
|
function OkrDetail(props) {
|
|
@@ -6,13 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.OkrTypeSetting = exports.OkrClassifySetting = exports.KrWeightSetting = void 0;
|
|
7
7
|
exports.getBSGlobal = getBSGlobal;
|
|
8
8
|
|
|
9
|
+
var _getBSGlobal$KRSettin, _getBSGlobal$KRSettin2;
|
|
10
|
+
|
|
9
11
|
function getBSGlobal(name) {
|
|
10
12
|
return name ? BSGlobal && BSGlobal[name] : BSGlobal;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
var OkrTypeSetting = getBSGlobal("OkrAdvancedSetting").KRSetting.OkrTypeSetting;
|
|
14
16
|
exports.OkrTypeSetting = OkrTypeSetting;
|
|
15
|
-
var OkrClassifySetting = getBSGlobal("OkrAdvancedSetting").KRSetting.OkrClassify;
|
|
17
|
+
var OkrClassifySetting = (_getBSGlobal$KRSettin = getBSGlobal("OkrAdvancedSetting").KRSetting) === null || _getBSGlobal$KRSettin === void 0 ? void 0 : _getBSGlobal$KRSettin.OkrClassify;
|
|
16
18
|
exports.OkrClassifySetting = OkrClassifySetting;
|
|
17
|
-
var KrWeightSetting = getBSGlobal("OkrAdvancedSetting").KRSetting.KrWeight;
|
|
19
|
+
var KrWeightSetting = (_getBSGlobal$KRSettin2 = getBSGlobal("OkrAdvancedSetting").KRSetting) === null || _getBSGlobal$KRSettin2 === void 0 ? void 0 : _getBSGlobal$KRSettin2.KrWeight;
|
|
18
20
|
exports.KrWeightSetting = KrWeightSetting;
|
|
@@ -43,7 +43,9 @@ function OkrTypeSelect(props) {
|
|
|
43
43
|
setSelectText = _useState2[1];
|
|
44
44
|
|
|
45
45
|
var _useState3 = (0, _react.useState)(function () {
|
|
46
|
-
|
|
46
|
+
var _window$BSGlobal$OkrA;
|
|
47
|
+
|
|
48
|
+
return (_window$BSGlobal$OkrA = window.BSGlobal.OkrAdvancedSetting.KRSetting) === null || _window$BSGlobal$OkrA === void 0 ? void 0 : _window$BSGlobal$OkrA.OkrTypeSetting;
|
|
47
49
|
}),
|
|
48
50
|
_useState4 = _slicedToArray(_useState3, 1),
|
|
49
51
|
OkrTypeSetting = _useState4[0];
|
|
@@ -57,7 +57,9 @@ function ONode(props) {
|
|
|
57
57
|
var principalUser = data.principalUser;
|
|
58
58
|
|
|
59
59
|
var _useState = (0, _react.useState)(function () {
|
|
60
|
-
|
|
60
|
+
var _window$BSGlobal$OkrA;
|
|
61
|
+
|
|
62
|
+
return (_window$BSGlobal$OkrA = window.BSGlobal.OkrAdvancedSetting.KRSetting) === null || _window$BSGlobal$OkrA === void 0 ? void 0 : _window$BSGlobal$OkrA.OkrTypeSetting;
|
|
61
63
|
}),
|
|
62
64
|
_useState2 = _slicedToArray(_useState, 1),
|
|
63
65
|
OkrTypeSetting = _useState2[0];
|
|
@@ -82,6 +82,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
82
82
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
83
83
|
|
|
84
84
|
var NewOkrList = function NewOkrList(props) {
|
|
85
|
+
var _getBSGlobal$KRSettin;
|
|
86
|
+
|
|
85
87
|
var OkrListCmp = props.OkrListCmp,
|
|
86
88
|
OkrCommunicationPush = props.OkrCommunicationPush,
|
|
87
89
|
Empty = props.Empty,
|
|
@@ -114,7 +116,7 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
114
116
|
};
|
|
115
117
|
}();
|
|
116
118
|
|
|
117
|
-
var showWorkExecution = (0, _bsGlobal.getBSGlobal)("OkrAdvancedSetting").KRSetting.ShowWorkExecution;
|
|
119
|
+
var showWorkExecution = (_getBSGlobal$KRSettin = (0, _bsGlobal.getBSGlobal)("OkrAdvancedSetting").KRSetting) === null || _getBSGlobal$KRSettin === void 0 ? void 0 : _getBSGlobal$KRSettin.ShowWorkExecution;
|
|
118
120
|
|
|
119
121
|
var _useState = (0, _react.useState)(true),
|
|
120
122
|
_useState2 = _slicedToArray(_useState, 2),
|