@titaui/pc 1.9.18 → 1.9.22
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 +24 -27
- package/lib/components/create-okr-modal/fields/index.css +1 -1
- package/lib/components/dialog-confirm/index.css +8 -3
- package/lib/components/dialog-confirm/index.js +17 -15
- package/lib/components/drawer/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +1 -3
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +2 -3
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -4
- package/lib/components/dynamic/dynamic-topping/index.css +1 -1
- package/lib/components/grid-layout/okr-align/index.js +1 -1
- package/lib/components/grid-layout/okr-progress/index.js +1 -1
- package/lib/components/menus/components/menu-tree/index.css +2 -2
- package/lib/components/menus/export-modules/okr-menus/depart-menus/index.css +1 -1
- package/lib/components/okr-detail/base-info/base-info.js +14 -13
- package/lib/components/okr-detail/base-info/o-desc/index.css +1 -1
- package/lib/components/okr-detail/components/header/index.css +4 -0
- package/lib/components/okr-detail/components/header/index.js +7 -3
- package/lib/components/okr-detail/components/header/o-score.js +163 -0
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +5 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +10 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +6 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.css +1 -1
- package/lib/components/okr-detail/detail-footer/index.css +1 -1
- package/lib/components/okr-detail/e-list/search-form/fields/index.css +1 -0
- package/lib/components/okr-detail/okr-list/index.css +2 -2
- package/lib/components/okr-detail/request-apis.js +11 -2
- package/lib/components/okr-progress-modal/helper.js +2 -2
- package/lib/components/okr-progress-modal/index.css +2 -2
- package/lib/components/okrcase-library/index.css +1 -1
- package/lib/components/pagination/select.css +1 -1
- package/lib/components/search-dropdown/index.css +1 -1
- package/lib/components/switch/index.css +1 -1
- package/lib/components/tabs/index.css +1 -1
- package/lib/components/tita-chart/charts/pie.js +3 -1
- package/lib/components/tooltip/tooltip-text/index.js +6 -5
- package/lib/components/user-selector/export-modules/duties-selector/index.js +69 -10
- package/lib/components/user-selector/request-apis.js +11 -2
- package/lib/components/version-change-modal/index.css +1 -1
- package/lib/components/weekly-report/index.css +1 -1
- package/lib/components-v1/confirm/index.js +1 -1
- package/lib/components-v1/dropDownSelector/styles/index.js +1 -1
- package/lib/pages/appointment-demo/index.css +1 -1
- package/lib/pages/group-management/page-view/importGroupStaff/index.css +2 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.css +1 -1
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +1 -1
- package/lib/pages/personal-info/components/base-info/index.js +8 -6
- package/lib/pages/personal-info/components/edit-base-info/index.js +26 -22
- package/lib/utils/i18n-front-translate.js +18 -0
- package/package.json +1 -1
- package/src/components/change-okr-modal/Item.tsx +9 -3
- package/src/components/create-okr-modal/fields/index.scss +1 -1
- package/src/components/dialog-confirm/index.js +95 -58
- package/src/components/dialog-confirm/index.scss +16 -12
- package/src/components/drawer/index.scss +1 -1
- package/src/components/dynamic/dynamic-item/dynamic-align/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-announcement/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-assessment/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-create-o/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-kr/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-milestone/index.scss +1 -3
- package/src/components/dynamic/dynamic-item/dynamic-okrs-communication/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-plan-communication/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-progress/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-project/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-relative/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-replay/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-report/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-reward/index.scss +2 -3
- package/src/components/dynamic/dynamic-item/dynamic-share/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-task/index.scss +2 -4
- package/src/components/dynamic/dynamic-topping/index.scss +1 -1
- package/src/components/form/form-fields/input/index.tsx +1 -1
- package/src/components/form/form-fields/textarea/index.tsx +2 -1
- package/src/components/grid-layout/okr-align/index.tsx +1 -1
- package/src/components/grid-layout/okr-progress/index.tsx +1 -1
- package/src/components/menus/components/menu-tree/index.scss +2 -2
- package/src/components/menus/export-modules/okr-menus/depart-menus/index.scss +1 -1
- package/src/components/okr-detail/base-info/base-info.tsx +39 -27
- package/src/components/okr-detail/base-info/o-desc/index.scss +1 -1
- package/src/components/okr-detail/components/header/index.js +4 -3
- package/src/components/okr-detail/components/header/index.scss +5 -0
- package/src/components/okr-detail/components/header/o-score.tsx +115 -0
- package/src/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.tsx +2 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.tsx +3 -3
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +2 -6
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.scss +1 -1
- package/src/components/okr-detail/detail-footer/index.scss +1 -1
- package/src/components/okr-detail/e-list/search-form/fields/index.scss +1 -0
- package/src/components/okr-detail/okr-list/index.scss +1 -1
- package/src/components/okr-detail/request-apis.ts +7 -0
- package/src/components/okr-progress-modal/helper.js +2 -2
- package/src/components/okr-progress-modal/index.scss +2 -2
- package/src/components/okrcase-library/index.scss +1 -1
- package/src/components/pagination/select.scss +1 -1
- package/src/components/search-dropdown/index.scss +1 -1
- package/src/components/switch/index.scss +1 -1
- package/src/components/tabs/index.scss +1 -1
- package/src/components/tita-chart/charts/pie.tsx +2 -1
- package/src/components/tooltip/tooltip-text/index.tsx +8 -6
- package/src/components/user-selector/export-modules/duties-selector/index.tsx +78 -18
- package/src/components/user-selector/request-apis.js +7 -0
- package/src/components/version-change-modal/index.scss +1 -1
- package/src/components/weekly-report/index.scss +1 -1
- package/src/components-v1/confirm/index.tsx +0 -1
- package/src/components-v1/dropDownSelector/styles/index.tsx +1 -1
- package/src/pages/appointment-demo/index.scss +1 -1
- package/src/pages/group-management/page-view/importGroupStaff/index.scss +2 -2
- package/src/pages/okr-map/export-modules/okr-map/header/index.scss +1 -1
- package/src/pages/okr-map/export-modules/share-okr-page/header/index.scss +1 -1
- package/src/pages/personal-info/components/base-info/index.tsx +42 -21
- package/src/pages/personal-info/components/edit-base-info/index.tsx +151 -141
- package/src/utils/i18n-front-translate.ts +8 -0
|
@@ -210,15 +210,14 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
210
210
|
isShowKr: isShowKr
|
|
211
211
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
212
212
|
isPercent: true,
|
|
213
|
-
overlayText: this.htmlToText(this.okrData.workName)
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
})), this.isObjectiveRelevanceKr && isShowKr && data.Krs.length > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
213
|
+
overlayText: this.htmlToText(this.okrData.workName)
|
|
214
|
+
}, /*#__PURE__*/_react["default"].createElement(_styledComponents.OkrName, {
|
|
215
|
+
isKr: false,
|
|
216
|
+
isShowKr: isShowKr,
|
|
217
|
+
dangerouslySetInnerHTML: {
|
|
218
|
+
__html: this.okrData.workName
|
|
219
|
+
}
|
|
220
|
+
}))), this.isObjectiveRelevanceKr && isShowKr && data.Krs.length > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
222
221
|
className: "".concat(this.state.isExpand ? "tu-icon-arrow-up" : 'tu-icon-arrow-down')
|
|
223
222
|
})), /*#__PURE__*/_react["default"].createElement(_styledComponents.ItemBottom, null, !isShowKr && [/*#__PURE__*/_react["default"].createElement("span", null, (0, _constant.getTypeMap)()[data.okrType]), /*#__PURE__*/_react["default"].createElement(_styledComponents.Separator, null)], /*#__PURE__*/_react["default"].createElement(_styledComponents.PricipleName, null, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
224
223
|
name: data.principalUser.name,
|
|
@@ -237,15 +236,14 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
237
236
|
isShowKr: isShowKr
|
|
238
237
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
239
238
|
isPercent: true,
|
|
240
|
-
overlayText: _this2.htmlToText(item.mileStoneName)
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}))) : active && item.mileStoneId == (active.workId || active.mileStoneId) ? /*#__PURE__*/_react["default"].createElement(_styledComponents.ItemTop, {
|
|
239
|
+
overlayText: _this2.htmlToText(item.mileStoneName)
|
|
240
|
+
}, /*#__PURE__*/_react["default"].createElement(_styledComponents.OkrName, {
|
|
241
|
+
isKr: true,
|
|
242
|
+
isShowKr: isShowKr,
|
|
243
|
+
dangerouslySetInnerHTML: {
|
|
244
|
+
__html: "KR".concat(index + 1, "\uFF1A").concat(item.mileStoneName)
|
|
245
|
+
}
|
|
246
|
+
})))) : active && item.mileStoneId == (active.workId || active.mileStoneId) ? /*#__PURE__*/_react["default"].createElement(_styledComponents.ItemTop, {
|
|
249
247
|
key: item.mileStoneId
|
|
250
248
|
}, /*#__PURE__*/_react["default"].createElement(_styledComponents.Radio, {
|
|
251
249
|
onClick: function onClick(e) {
|
|
@@ -256,15 +254,14 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
256
254
|
isShowKr: isShowKr
|
|
257
255
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
258
256
|
isPercent: true,
|
|
259
|
-
overlayText: _this2.htmlToText(item.mileStoneName)
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}))) : '';
|
|
257
|
+
overlayText: _this2.htmlToText(item.mileStoneName)
|
|
258
|
+
}, /*#__PURE__*/_react["default"].createElement(_styledComponents.OkrName, {
|
|
259
|
+
isKr: true,
|
|
260
|
+
isShowKr: isShowKr,
|
|
261
|
+
dangerouslySetInnerHTML: {
|
|
262
|
+
__html: "KR".concat(index + 1, "\uFF1A").concat(item.mileStoneName)
|
|
263
|
+
}
|
|
264
|
+
})))) : '';
|
|
268
265
|
})));
|
|
269
266
|
}
|
|
270
267
|
}]);
|
|
@@ -97,15 +97,19 @@
|
|
|
97
97
|
position: relative;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.titaui-dialog-confirm__body-
|
|
100
|
+
.titaui-dialog-confirm__body-title {
|
|
101
|
+
display: flex;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.titaui-dialog-confirm__body-title-icon {
|
|
101
105
|
display: inline-block;
|
|
102
106
|
font-size: 14px;
|
|
103
107
|
}
|
|
104
108
|
|
|
105
|
-
.titaui-dialog-confirm__body-title {
|
|
109
|
+
.titaui-dialog-confirm__body-title-text {
|
|
106
110
|
font-size: 16px;
|
|
107
111
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
108
|
-
font-weight:
|
|
112
|
+
font-weight: 600;
|
|
109
113
|
color: #141c28;
|
|
110
114
|
line-height: 24px;
|
|
111
115
|
display: inline-block;
|
|
@@ -121,4 +125,5 @@
|
|
|
121
125
|
color: #6f7886;
|
|
122
126
|
line-height: 22px;
|
|
123
127
|
padding-left: 20px;
|
|
128
|
+
margin-left: 6px;
|
|
124
129
|
}
|
|
@@ -25,7 +25,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
25
25
|
|
|
26
26
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
27
|
|
|
28
|
-
var preCls =
|
|
28
|
+
var preCls = "titaui-dialog-confirm";
|
|
29
29
|
|
|
30
30
|
var CancelButton = function CancelButton(props) {
|
|
31
31
|
var onClick = props.onClick,
|
|
@@ -82,43 +82,43 @@ var DialogConfirm = function DialogConfirm(props) {
|
|
|
82
82
|
var contentInstance;
|
|
83
83
|
|
|
84
84
|
_react["default"].Children.forEach(children, function (child) {
|
|
85
|
-
if (child.props.type ==
|
|
86
|
-
if (child.props.type ==
|
|
87
|
-
if (child.props.type ==
|
|
85
|
+
if (child.props.type == "button") footer.push(child);
|
|
86
|
+
if (child.props.type == "title") titleInstance = child;
|
|
87
|
+
if (child.props.type == "content") contentInstance = child;
|
|
88
88
|
});
|
|
89
89
|
|
|
90
90
|
var getConfirmIcon = function getConfirmIcon(type) {
|
|
91
91
|
switch (type) {
|
|
92
|
-
case
|
|
92
|
+
case "warning":
|
|
93
93
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
94
94
|
className: "tu-icon-tishi",
|
|
95
95
|
style: {
|
|
96
|
-
|
|
96
|
+
"color": "#FFBC00"
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
|
|
100
|
-
case
|
|
100
|
+
case "success":
|
|
101
101
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
102
102
|
className: "tu-icon-check",
|
|
103
103
|
style: {
|
|
104
|
-
|
|
104
|
+
"color": "#5AD8A6"
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
-
case
|
|
108
|
+
case "error":
|
|
109
109
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
110
110
|
className: "tu-icon-cross",
|
|
111
111
|
style: {
|
|
112
|
-
|
|
112
|
+
"color": "#F05E5E"
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
-
case
|
|
116
|
+
case "confirm":
|
|
117
117
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
118
118
|
className: "tu-icon-tishi"
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
case
|
|
121
|
+
case "info":
|
|
122
122
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
123
123
|
className: "tu-icon-warning"
|
|
124
124
|
});
|
|
@@ -138,11 +138,13 @@ var DialogConfirm = function DialogConfirm(props) {
|
|
|
138
138
|
maskClosable: false
|
|
139
139
|
}, restProps), /*#__PURE__*/_react["default"].createElement("div", {
|
|
140
140
|
className: (0, _classnames["default"])("".concat(preCls, "__body"))
|
|
141
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
142
|
+
className: (0, _classnames["default"])("".concat(preCls, "__body-title"))
|
|
141
143
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
142
|
-
className: (0, _classnames["default"])("".concat(preCls, "__body-icon"))
|
|
144
|
+
className: (0, _classnames["default"])("".concat(preCls, "__body-title-icon"))
|
|
143
145
|
}, getConfirmIcon(type)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
144
|
-
className: (0, _classnames["default"])("".concat(preCls, "__body-title"))
|
|
145
|
-
}, titleInstance), /*#__PURE__*/_react["default"].createElement("div", {
|
|
146
|
+
className: (0, _classnames["default"])("".concat(preCls, "__body-title-text"))
|
|
147
|
+
}, titleInstance)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
146
148
|
className: (0, _classnames["default"])("".concat(preCls, "__body-content"))
|
|
147
149
|
}, contentInstance)));
|
|
148
150
|
};
|
|
@@ -83,12 +83,10 @@
|
|
|
83
83
|
display: inline-flex;
|
|
84
84
|
align-items: center;
|
|
85
85
|
justify-content: center;
|
|
86
|
-
padding: 0
|
|
86
|
+
padding: 0 6px;
|
|
87
87
|
height: 18px;
|
|
88
88
|
min-width: 40px;
|
|
89
|
-
|
|
90
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
91
|
-
border-radius: 14px 10px 10px 4px;
|
|
89
|
+
border-radius: 10px 10px 10px 2px;
|
|
92
90
|
font-size: 12px;
|
|
93
91
|
color: #ffffff;
|
|
94
92
|
line-height: 18px;
|
|
@@ -42,12 +42,10 @@
|
|
|
42
42
|
display: inline-flex;
|
|
43
43
|
align-items: center;
|
|
44
44
|
justify-content: center;
|
|
45
|
-
padding: 0
|
|
45
|
+
padding: 0 6px;
|
|
46
46
|
height: 18px;
|
|
47
47
|
min-width: 40px;
|
|
48
|
-
|
|
49
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
50
|
-
border-radius: 14px 10px 10px 4px;
|
|
48
|
+
border-radius: 10px 10px 10px 2px;
|
|
51
49
|
font-size: 12px;
|
|
52
50
|
color: #ffffff;
|
|
53
51
|
line-height: 18px;
|
|
@@ -36,12 +36,10 @@
|
|
|
36
36
|
display: inline-flex;
|
|
37
37
|
align-items: center;
|
|
38
38
|
justify-content: center;
|
|
39
|
-
padding: 0
|
|
39
|
+
padding: 0 6px;
|
|
40
40
|
height: 18px;
|
|
41
41
|
min-width: 40px;
|
|
42
|
-
|
|
43
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
44
|
-
border-radius: 14px 10px 10px 4px;
|
|
42
|
+
border-radius: 10px 10px 10px 2px;
|
|
45
43
|
font-size: 12px;
|
|
46
44
|
color: #ffffff;
|
|
47
45
|
line-height: 18px;
|
|
@@ -84,12 +84,10 @@
|
|
|
84
84
|
display: inline-flex;
|
|
85
85
|
align-items: center;
|
|
86
86
|
justify-content: center;
|
|
87
|
-
padding: 0
|
|
87
|
+
padding: 0 6px;
|
|
88
88
|
height: 18px;
|
|
89
89
|
min-width: 40px;
|
|
90
|
-
|
|
91
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
92
|
-
border-radius: 14px 10px 10px 4px;
|
|
90
|
+
border-radius: 10px 10px 10px 2px;
|
|
93
91
|
font-size: 12px;
|
|
94
92
|
color: #ffffff;
|
|
95
93
|
line-height: 18px;
|
|
@@ -55,12 +55,10 @@
|
|
|
55
55
|
display: inline-flex;
|
|
56
56
|
align-items: center;
|
|
57
57
|
justify-content: center;
|
|
58
|
-
padding: 0
|
|
58
|
+
padding: 0 6px;
|
|
59
59
|
height: 18px;
|
|
60
60
|
min-width: 40px;
|
|
61
|
-
|
|
62
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
63
|
-
border-radius: 14px 10px 10px 4px;
|
|
61
|
+
border-radius: 10px 10px 10px 2px;
|
|
64
62
|
font-size: 12px;
|
|
65
63
|
color: #ffffff;
|
|
66
64
|
line-height: 18px;
|
|
@@ -108,9 +108,7 @@
|
|
|
108
108
|
padding: 0 6px;
|
|
109
109
|
height: 18px;
|
|
110
110
|
min-width: 40px;
|
|
111
|
-
|
|
112
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
113
|
-
border-radius: 14px 10px 10px 4px;
|
|
111
|
+
border-radius: 10px 10px 10px 2px;
|
|
114
112
|
font-size: 12px;
|
|
115
113
|
color: #ffffff;
|
|
116
114
|
line-height: 18px;
|
|
@@ -74,12 +74,10 @@
|
|
|
74
74
|
display: inline-flex;
|
|
75
75
|
align-items: center;
|
|
76
76
|
justify-content: center;
|
|
77
|
-
padding: 0
|
|
77
|
+
padding: 0 6px;
|
|
78
78
|
height: 18px;
|
|
79
79
|
min-width: 40px;
|
|
80
|
-
|
|
81
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
82
|
-
border-radius: 14px 10px 10px 4px;
|
|
80
|
+
border-radius: 10px 10px 10px 2px;
|
|
83
81
|
font-size: 12px;
|
|
84
82
|
color: #ffffff;
|
|
85
83
|
line-height: 18px;
|
|
@@ -74,12 +74,10 @@
|
|
|
74
74
|
display: inline-flex;
|
|
75
75
|
align-items: center;
|
|
76
76
|
justify-content: center;
|
|
77
|
-
padding: 0
|
|
77
|
+
padding: 0 6px;
|
|
78
78
|
height: 18px;
|
|
79
79
|
min-width: 40px;
|
|
80
|
-
|
|
81
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
82
|
-
border-radius: 14px 10px 10px 4px;
|
|
80
|
+
border-radius: 10px 10px 10px 2px;
|
|
83
81
|
font-size: 12px;
|
|
84
82
|
color: #ffffff;
|
|
85
83
|
line-height: 18px;
|
|
@@ -87,12 +87,10 @@
|
|
|
87
87
|
display: inline-flex;
|
|
88
88
|
align-items: center;
|
|
89
89
|
justify-content: center;
|
|
90
|
-
padding: 0
|
|
90
|
+
padding: 0 6px;
|
|
91
91
|
height: 18px;
|
|
92
92
|
min-width: 40px;
|
|
93
|
-
|
|
94
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
95
|
-
border-radius: 14px 10px 10px 4px;
|
|
93
|
+
border-radius: 10px 10px 10px 2px;
|
|
96
94
|
font-size: 12px;
|
|
97
95
|
color: #ffffff;
|
|
98
96
|
line-height: 18px;
|
|
@@ -85,12 +85,10 @@
|
|
|
85
85
|
display: inline-flex;
|
|
86
86
|
align-items: center;
|
|
87
87
|
justify-content: center;
|
|
88
|
-
padding: 0
|
|
88
|
+
padding: 0 6px;
|
|
89
89
|
height: 18px;
|
|
90
90
|
min-width: 40px;
|
|
91
|
-
|
|
92
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
93
|
-
border-radius: 14px 10px 10px 4px;
|
|
91
|
+
border-radius: 10px 10px 10px 2px;
|
|
94
92
|
font-size: 12px;
|
|
95
93
|
color: #ffffff;
|
|
96
94
|
line-height: 18px;
|
|
@@ -83,12 +83,10 @@
|
|
|
83
83
|
display: inline-flex;
|
|
84
84
|
align-items: center;
|
|
85
85
|
justify-content: center;
|
|
86
|
-
padding: 0
|
|
86
|
+
padding: 0 6px;
|
|
87
87
|
height: 18px;
|
|
88
88
|
min-width: 40px;
|
|
89
|
-
|
|
90
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
91
|
-
border-radius: 14px 10px 10px 4px;
|
|
89
|
+
border-radius: 10px 10px 10px 2px;
|
|
92
90
|
font-size: 12px;
|
|
93
91
|
color: #ffffff;
|
|
94
92
|
line-height: 18px;
|
|
@@ -126,12 +126,10 @@
|
|
|
126
126
|
display: inline-flex;
|
|
127
127
|
align-items: center;
|
|
128
128
|
justify-content: center;
|
|
129
|
-
padding: 0
|
|
129
|
+
padding: 0 6px;
|
|
130
130
|
height: 18px;
|
|
131
131
|
min-width: 40px;
|
|
132
|
-
|
|
133
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
134
|
-
border-radius: 14px 10px 10px 4px;
|
|
132
|
+
border-radius: 10px 10px 10px 2px;
|
|
135
133
|
font-size: 12px;
|
|
136
134
|
color: #ffffff;
|
|
137
135
|
line-height: 18px;
|
|
@@ -142,12 +142,10 @@
|
|
|
142
142
|
display: inline-flex;
|
|
143
143
|
align-items: center;
|
|
144
144
|
justify-content: center;
|
|
145
|
-
padding: 0
|
|
145
|
+
padding: 0 6px;
|
|
146
146
|
height: 18px;
|
|
147
147
|
min-width: 40px;
|
|
148
|
-
|
|
149
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
150
|
-
border-radius: 14px 10px 10px 4px;
|
|
148
|
+
border-radius: 10px 10px 10px 2px;
|
|
151
149
|
font-size: 12px;
|
|
152
150
|
color: #ffffff;
|
|
153
151
|
line-height: 18px;
|
|
@@ -68,9 +68,8 @@
|
|
|
68
68
|
width: 40px;
|
|
69
69
|
height: 18px;
|
|
70
70
|
min-width: 40px;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
border-radius: 14px 10px 10px 4px;
|
|
71
|
+
border-radius: 10px 10px 10px 2px;
|
|
72
|
+
padding: 0 6px;
|
|
74
73
|
font-size: 12px;
|
|
75
74
|
color: #ffffff;
|
|
76
75
|
line-height: 18px;
|
|
@@ -38,12 +38,10 @@
|
|
|
38
38
|
display: inline-flex;
|
|
39
39
|
align-items: center;
|
|
40
40
|
justify-content: center;
|
|
41
|
-
padding: 0
|
|
41
|
+
padding: 0 6px;
|
|
42
42
|
height: 18px;
|
|
43
43
|
min-width: 40px;
|
|
44
|
-
|
|
45
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
46
|
-
border-radius: 14px 10px 10px 4px;
|
|
44
|
+
border-radius: 10px 10px 10px 2px;
|
|
47
45
|
font-size: 12px;
|
|
48
46
|
color: #ffffff;
|
|
49
47
|
line-height: 18px;
|
|
@@ -105,12 +105,10 @@
|
|
|
105
105
|
display: inline-flex;
|
|
106
106
|
align-items: center;
|
|
107
107
|
justify-content: center;
|
|
108
|
-
padding: 0
|
|
108
|
+
padding: 0 6px;
|
|
109
109
|
height: 18px;
|
|
110
110
|
min-width: 40px;
|
|
111
|
-
|
|
112
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
113
|
-
border-radius: 14px 10px 10px 4px;
|
|
111
|
+
border-radius: 10px 10px 10px 2px;
|
|
114
112
|
font-size: 12px;
|
|
115
113
|
color: #ffffff;
|
|
116
114
|
line-height: 18px;
|
|
@@ -122,7 +122,7 @@ function OKRAlignComponent() {
|
|
|
122
122
|
}
|
|
123
123
|
}) : /*#__PURE__*/_react["default"].createElement(_commenComponents.CardFlexContent, null, /*#__PURE__*/_react["default"].createElement(_titaChart["default"].LiquidBall, {
|
|
124
124
|
PrePercentNum: 0,
|
|
125
|
-
name:
|
|
125
|
+
name: (0, _getLocale.getLocale)('HP_Alignmentrate'),
|
|
126
126
|
percentNum: alignPercent
|
|
127
127
|
}), /*#__PURE__*/_react["default"].createElement(_commenComponents.DataItem, {
|
|
128
128
|
num: hadAlignOkrNum,
|
|
@@ -138,7 +138,7 @@ function OKRProgressComponent() {
|
|
|
138
138
|
}) : /*#__PURE__*/_react["default"].createElement(_commenComponents.CardFlexContent, null, /*#__PURE__*/_react["default"].createElement(_titaChart["default"].LiquidBall, {
|
|
139
139
|
PrePercentNum: 0,
|
|
140
140
|
percentNum: UpdatePercent,
|
|
141
|
-
name:
|
|
141
|
+
name: (0, _getLocale.getLocale)('HP_Completiorate')
|
|
142
142
|
}), /*#__PURE__*/_react["default"].createElement(_commenComponents.DataItem, {
|
|
143
143
|
num: hadUpdateOkrNum,
|
|
144
144
|
updataNum: weekLatelyUpdatekrProgress,
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
opacity: 0;
|
|
16
16
|
background: #e9f1ff;
|
|
17
17
|
border-radius: 12px;
|
|
18
|
-
font-weight:
|
|
18
|
+
font-weight: 600;
|
|
19
19
|
will-change: opacity;
|
|
20
20
|
animation: selectMenuOpacity 0.4s 1 forwards;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.titaui-menus-tree .rc-tree-treenode-selected .titaui-menus-tree__menu-item-node-title {
|
|
24
24
|
color: #2879ff;
|
|
25
|
-
font-weight:
|
|
25
|
+
font-weight: 600;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.titaui-menus-tree .rc-tree-treenode-selected .titaui-menus-tree__sub-menu-item-node-title {
|
|
@@ -82,7 +82,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
82
82
|
okrInfo = _useContext2.okrInfo,
|
|
83
83
|
setOkrInfo = _useContext2.setOkrInfo;
|
|
84
84
|
|
|
85
|
-
var originDesc = decodeURI(encodeURI(okrInfo.description)) ===
|
|
85
|
+
var originDesc = decodeURI(encodeURI(okrInfo.description)) === "null" ? "" : decodeURI(encodeURI(okrInfo.description));
|
|
86
86
|
|
|
87
87
|
var _useState = (0, _react.useState)(originDesc || ""),
|
|
88
88
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -140,6 +140,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
140
140
|
var oldGeneralRoleTypeRef = (0, _react.useRef)(generalRoleType);
|
|
141
141
|
var loginUser = (0, _bsGlobal.getUserInfo)();
|
|
142
142
|
var setting = (0, _bsGlobal.getOkrAdvancedSetting)().KRSetting;
|
|
143
|
+
console.log(setting.TargetFollowers);
|
|
143
144
|
(0, _react.useEffect)(function () {
|
|
144
145
|
setOriginalDesc(okrInfo.description);
|
|
145
146
|
}, [okrInfo]);
|
|
@@ -147,7 +148,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
147
148
|
if (desc.trim().length > 5000) return;
|
|
148
149
|
(0, _requestApis.saveODesc)(okrInfo.workId, desc).then(function (resp) {
|
|
149
150
|
if (resp.Code === 1) {
|
|
150
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
151
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
|
|
151
152
|
canClose: false
|
|
152
153
|
});
|
|
153
154
|
|
|
@@ -164,7 +165,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
164
165
|
var handleChangePrincipalUser = (0, _react.useCallback)(function (user) {
|
|
165
166
|
(0, _requestApis.transferPrincipal)(okrInfo.workId, user.email, user.id).then(function (resp) {
|
|
166
167
|
if (resp.Code === 1) {
|
|
167
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
168
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
|
|
168
169
|
canClose: false
|
|
169
170
|
});
|
|
170
171
|
|
|
@@ -207,7 +208,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
207
208
|
var handleChangeClassify = (0, _react.useCallback)(function (classify) {
|
|
208
209
|
(0, _requestApis.updateOClassify)(classify, okrInfo.workId).then(function (resp) {
|
|
209
210
|
if (resp.Code === 1) {
|
|
210
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
211
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
|
|
211
212
|
canClose: false
|
|
212
213
|
});
|
|
213
214
|
|
|
@@ -231,7 +232,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
231
232
|
});
|
|
232
233
|
(0, _requestApis.updateVisibility)(okrInfo.workId, visiableValue, areaUserIds, areaOrgIds, areaGroupIds).then(function (resp) {
|
|
233
234
|
if (resp.Code === 1) {
|
|
234
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
235
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
|
|
235
236
|
canClose: false
|
|
236
237
|
});
|
|
237
238
|
|
|
@@ -346,7 +347,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
346
347
|
var userIndex = (0, _util.findUserIndex)(delUserType === 1 ? participant : followers, delUser.id || delUser.userId);
|
|
347
348
|
(0, _requestApis.deleteUser)(delUser.id, okrInfo.workId, delUserType === 1 ? 2 : 3).then(function (resp) {
|
|
348
349
|
if (resp.Code === 1) {
|
|
349
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
350
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Pro_detail_Deletsuccess"), {
|
|
350
351
|
canClose: false
|
|
351
352
|
});
|
|
352
353
|
|
|
@@ -427,13 +428,13 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
427
428
|
type: "warning"
|
|
428
429
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
429
430
|
type: "title"
|
|
430
|
-
}, "\u786E\u5B9A\u5220\u9664\u6B64", delUserType === 1 ? "参与" : (0, _getLocale.getLocale)(
|
|
431
|
+
}, "\u786E\u5B9A\u5220\u9664\u6B64", delUserType === 1 ? "参与" : (0, _getLocale.getLocale)("OKR_MyO_Butt_Follow"), "\u4EBA\u5417\uFF1F"), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
|
|
431
432
|
type: "button",
|
|
432
433
|
onClick: cancelDelPerson
|
|
433
|
-
}, (0, _getLocale.getLocale)(
|
|
434
|
+
}, (0, _getLocale.getLocale)("Mod_Cancel")), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.WarningButton, {
|
|
434
435
|
type: "button",
|
|
435
436
|
onClick: ensureDelPerson
|
|
436
|
-
}, (0, _getLocale.getLocale)(
|
|
437
|
+
}, (0, _getLocale.getLocale)("Mod_Delete")));
|
|
437
438
|
}, [showDialogConfirm, delUserType]);
|
|
438
439
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
439
440
|
className: "base-info__infos-wrapper"
|
|
@@ -460,16 +461,16 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
460
461
|
className: "base-info__person-block"
|
|
461
462
|
}, !canEditPerson && !canEditAllInfo && participant.length === 0 ? null : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
462
463
|
className: "base-info__person-block-title"
|
|
463
|
-
}, (0, _getLocale.getLocale)(
|
|
464
|
+
}, (0, _getLocale.getLocale)("Mod_Participants")), /*#__PURE__*/_react["default"].createElement(_person["default"], {
|
|
464
465
|
users: participant,
|
|
465
466
|
canEdit: canEditPerson,
|
|
466
467
|
onAddUser: handleAddUser,
|
|
467
468
|
onDelUser: handleDelParticipantUser
|
|
468
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
469
|
+
}))), setting.TargetFollowers && /*#__PURE__*/_react["default"].createElement("div", {
|
|
469
470
|
className: "base-info__person-block"
|
|
470
|
-
}, !canEditFocusPerson && !canEditAllInfo &&
|
|
471
|
+
}, !canEditFocusPerson && !canEditAllInfo && followers.length === 0 ? null : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
471
472
|
className: "base-info__person-block-title"
|
|
472
|
-
}, (0, _getLocale.getLocale)(
|
|
473
|
+
}, (0, _getLocale.getLocale)("Mod_Followers")), /*#__PURE__*/_react["default"].createElement(_person["default"], {
|
|
473
474
|
type: "followers",
|
|
474
475
|
users: followers,
|
|
475
476
|
canEdit: canEditFocusPerson,
|