@titaui/pc 1.9.15 → 1.9.19
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 +41 -18
- package/lib/components/change-okr-modal/styledComponents.js +1 -1
- package/lib/components/create-okr-modal/fields/index.css +1 -1
- package/lib/components/create-okr-modal/index.css +1 -0
- package/lib/components/create-okr-modal/index.js +2 -2
- package/lib/components/create-okr-modal/request-api.js +1 -7
- 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/img-viewer/index.js +3 -3
- package/lib/components/menus/components/flip-menu-card/index.js +12 -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/okr-tree/tree-node/e-node/e-project.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -2
- 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-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 +3 -1
- 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/package.json +1 -1
- package/src/components/change-okr-modal/Item.tsx +11 -3
- package/src/components/change-okr-modal/styledComponents.ts +0 -1
- package/src/components/create-okr-modal/fields/index.scss +1 -1
- package/src/components/create-okr-modal/index.scss +1 -0
- package/src/components/create-okr-modal/index.tsx +2 -2
- package/src/components/create-okr-modal/request-api.ts +2 -3
- 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/grid-layout/okr-align/index.tsx +1 -1
- package/src/components/grid-layout/okr-progress/index.tsx +1 -1
- package/src/components/img-viewer/index.tsx +3 -3
- package/src/components/menus/components/flip-menu-card/index.tsx +8 -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/okr-tree/tree-node/e-node/e-project.js +2 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -2
- 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-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 +4 -1
- 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
|
@@ -58,7 +58,10 @@ const BaseInfo: FC<IBaseInfoProps> = ({ okrId }) => {
|
|
|
58
58
|
|
|
59
59
|
const { okrInfo, setOkrInfo } = useContext(CommonContext);
|
|
60
60
|
|
|
61
|
-
const originDesc =
|
|
61
|
+
const originDesc =
|
|
62
|
+
decodeURI(encodeURI(okrInfo.description)) === "null"
|
|
63
|
+
? ""
|
|
64
|
+
: decodeURI(encodeURI(okrInfo.description));
|
|
62
65
|
const [originalDesc, setOriginalDesc] = useState(originDesc || "");
|
|
63
66
|
const [participant, setParticipant] = useState<IUser[]>([]);
|
|
64
67
|
const [followers, setFollowers] = useState<IUser[]>([]);
|
|
@@ -82,6 +85,7 @@ const BaseInfo: FC<IBaseInfoProps> = ({ okrId }) => {
|
|
|
82
85
|
const oldGeneralRoleTypeRef = useRef(generalRoleType);
|
|
83
86
|
const loginUser = getUserInfo();
|
|
84
87
|
const setting = getOkrAdvancedSetting().KRSetting;
|
|
88
|
+
console.log(setting.TargetFollowers);
|
|
85
89
|
|
|
86
90
|
useEffect(() => {
|
|
87
91
|
setOriginalDesc(okrInfo.description);
|
|
@@ -92,7 +96,7 @@ const BaseInfo: FC<IBaseInfoProps> = ({ okrId }) => {
|
|
|
92
96
|
if (desc.trim().length > 5000) return;
|
|
93
97
|
saveODesc(okrInfo.workId, desc).then((resp) => {
|
|
94
98
|
if (resp.Code === 1) {
|
|
95
|
-
Toast.Success(getLocale(
|
|
99
|
+
Toast.Success(getLocale("Mod_Successfuloperat"), { canClose: false });
|
|
96
100
|
setOkrInfo({ ...okrInfo, description: desc });
|
|
97
101
|
} else {
|
|
98
102
|
Toast.Error("操作失败", { canClose: false });
|
|
@@ -106,7 +110,7 @@ const BaseInfo: FC<IBaseInfoProps> = ({ okrId }) => {
|
|
|
106
110
|
(user) => {
|
|
107
111
|
transferPrincipal(okrInfo.workId, user.email, user.id).then((resp) => {
|
|
108
112
|
if (resp.Code === 1) {
|
|
109
|
-
Toast.Success(getLocale(
|
|
113
|
+
Toast.Success(getLocale("Mod_Successfuloperat"), { canClose: false });
|
|
110
114
|
let tempParticipant = [...participant];
|
|
111
115
|
// 当前登录的是有权限的人,将负责人转为参与人或者关注人中的一个
|
|
112
116
|
const isParticipantIndex = findUserIndex(tempParticipant, user.id);
|
|
@@ -144,7 +148,7 @@ const BaseInfo: FC<IBaseInfoProps> = ({ okrId }) => {
|
|
|
144
148
|
const handleChangeClassify = useCallback((classify) => {
|
|
145
149
|
updateOClassify(classify, okrInfo.workId).then((resp) => {
|
|
146
150
|
if (resp.Code === 1) {
|
|
147
|
-
Toast.Success(getLocale(
|
|
151
|
+
Toast.Success(getLocale("Mod_Successfuloperat"), { canClose: false });
|
|
148
152
|
setGeneralOkrClassify(classify);
|
|
149
153
|
} else {
|
|
150
154
|
Toast.Error(resp.Message, { canClose: false });
|
|
@@ -170,7 +174,7 @@ const BaseInfo: FC<IBaseInfoProps> = ({ okrId }) => {
|
|
|
170
174
|
areaGroupIds
|
|
171
175
|
).then((resp) => {
|
|
172
176
|
if (resp.Code === 1) {
|
|
173
|
-
Toast.Success(getLocale(
|
|
177
|
+
Toast.Success(getLocale("Mod_Successfuloperat"), { canClose: false });
|
|
174
178
|
setGeneralVisibility({
|
|
175
179
|
visibility: visiableValue,
|
|
176
180
|
visibilityScope: data,
|
|
@@ -287,7 +291,9 @@ const BaseInfo: FC<IBaseInfoProps> = ({ okrId }) => {
|
|
|
287
291
|
deleteUser(delUser.id, okrInfo.workId, delUserType === 1 ? 2 : 3)
|
|
288
292
|
.then((resp) => {
|
|
289
293
|
if (resp.Code === 1) {
|
|
290
|
-
Toast.Success(getLocale(
|
|
294
|
+
Toast.Success(getLocale("Pro_detail_Deletsuccess"), {
|
|
295
|
+
canClose: false,
|
|
296
|
+
});
|
|
291
297
|
setGeneralRoleType(delUser.id === loginUser.Id ? 0 : generalRoleType);
|
|
292
298
|
if (delUserType === 1) {
|
|
293
299
|
participant.splice(userIndex, 1);
|
|
@@ -371,13 +377,14 @@ const BaseInfo: FC<IBaseInfoProps> = ({ okrId }) => {
|
|
|
371
377
|
<DialogConfirm visible={showDialogConfirm} type="warning">
|
|
372
378
|
{/* @ts-ignore */}
|
|
373
379
|
<span type="title">
|
|
374
|
-
确定删除此
|
|
380
|
+
确定删除此
|
|
381
|
+
{delUserType === 1 ? "参与" : getLocale("OKR_MyO_Butt_Follow")}人吗?
|
|
375
382
|
</span>
|
|
376
383
|
<CancelButton type="button" onClick={cancelDelPerson}>
|
|
377
|
-
{getLocale(
|
|
384
|
+
{getLocale("Mod_Cancel")}
|
|
378
385
|
</CancelButton>
|
|
379
386
|
<WarningButton type="button" onClick={ensureDelPerson}>
|
|
380
|
-
{getLocale(
|
|
387
|
+
{getLocale("Mod_Delete")}
|
|
381
388
|
</WarningButton>
|
|
382
389
|
</DialogConfirm>
|
|
383
390
|
);
|
|
@@ -418,7 +425,9 @@ const BaseInfo: FC<IBaseInfoProps> = ({ okrId }) => {
|
|
|
418
425
|
!canEditAllInfo &&
|
|
419
426
|
participant.length === 0 ? null : (
|
|
420
427
|
<>
|
|
421
|
-
<span className="base-info__person-block-title">
|
|
428
|
+
<span className="base-info__person-block-title">
|
|
429
|
+
{getLocale("Mod_Participants")}
|
|
430
|
+
</span>
|
|
422
431
|
<Person
|
|
423
432
|
users={participant}
|
|
424
433
|
canEdit={canEditPerson}
|
|
@@ -428,23 +437,26 @@ const BaseInfo: FC<IBaseInfoProps> = ({ okrId }) => {
|
|
|
428
437
|
</>
|
|
429
438
|
)}
|
|
430
439
|
</div>
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
440
|
+
{setting.TargetFollowers && (
|
|
441
|
+
<div className="base-info__person-block">
|
|
442
|
+
{!canEditFocusPerson &&
|
|
443
|
+
!canEditAllInfo &&
|
|
444
|
+
followers.length === 0 ? null : (
|
|
445
|
+
<>
|
|
446
|
+
<span className="base-info__person-block-title">
|
|
447
|
+
{getLocale("Mod_Followers")}
|
|
448
|
+
</span>
|
|
449
|
+
<Person
|
|
450
|
+
type="followers"
|
|
451
|
+
users={followers}
|
|
452
|
+
canEdit={canEditFocusPerson}
|
|
453
|
+
onAddUser={handleAddUser}
|
|
454
|
+
onDelUser={handleDelFollower}
|
|
455
|
+
/>
|
|
456
|
+
</>
|
|
457
|
+
)}
|
|
458
|
+
</div>
|
|
459
|
+
)}
|
|
448
460
|
</div>
|
|
449
461
|
{renderDialogConfirm}
|
|
450
462
|
</div>
|
|
@@ -103,8 +103,8 @@ export default props => {
|
|
|
103
103
|
</div>
|
|
104
104
|
|
|
105
105
|
<DialogConfirm visible={unConnectVisible} type="warning">
|
|
106
|
-
<span type="title"
|
|
107
|
-
<span type="content"
|
|
106
|
+
<span type="title">{getLocale('OKR_MyO_Text_Cancelass')}</span>
|
|
107
|
+
<span type="content">{getLocale('OKR_MyO_Text_TitemnotO')}</span>
|
|
108
108
|
<CancelButton type="button" onClick={() => setUnConnectVisible(false)}>{getLocale('Mod_Cancel')}</CancelButton>
|
|
109
109
|
<SureButton type="button" onClick={onSureUnConnectHandler}>{getLocale('OKR_MyO_Butt_Determine')}</SureButton>
|
|
110
110
|
</DialogConfirm>
|
|
@@ -282,8 +282,8 @@ export default (props) => {
|
|
|
282
282
|
) : null}
|
|
283
283
|
</span>
|
|
284
284
|
<DialogConfirm visible={unConnectVisible} type="warning">
|
|
285
|
-
<span type="title"
|
|
286
|
-
<span type="content"
|
|
285
|
+
<span type="title">{getLocale('OKR_MyO_Text_Cancelass')}</span>
|
|
286
|
+
<span type="content">{getLocale('OKR_MyO_Text_TtasknotO')}</span>
|
|
287
287
|
<CancelButton type="button" onClick={() => setUnConnectVisible(false)}>
|
|
288
288
|
{getLocale('Mod_Cancel')}
|
|
289
289
|
</CancelButton>
|
|
@@ -285,8 +285,8 @@ export default (props) => {
|
|
|
285
285
|
</span>
|
|
286
286
|
|
|
287
287
|
<DialogConfirm visible={unConnectVisible} type="warning">
|
|
288
|
-
<span type="title"
|
|
289
|
-
<span type="content"
|
|
288
|
+
<span type="title">{getLocale('OKR_MyO_Text_Cancelass')}</span>
|
|
289
|
+
<span type="content">{getLocale('OKR_MyO_Text_TtasknotO')}</span>
|
|
290
290
|
<CancelButton type="button" onClick={() => setUnConnectVisible(false)}>
|
|
291
291
|
{getLocale('Mod_Cancel')}
|
|
292
292
|
</CancelButton>
|
package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { PureComponent } from 'react'
|
|
2
2
|
import Popup from '../../../../../../popup';
|
|
3
3
|
import styled from 'styled-components'
|
|
4
|
-
import { getLocale } from "../../../../../../../utils/getLocale";
|
|
4
|
+
import { getLocale, isEn } from "../../../../../../../utils/getLocale";
|
|
5
5
|
|
|
6
6
|
const Wrapper = styled.div`
|
|
7
7
|
min-width: 343px;
|
|
@@ -207,7 +207,7 @@ export default class EditPop extends PureComponent<Props> {
|
|
|
207
207
|
</Header>
|
|
208
208
|
<Body>
|
|
209
209
|
<Line>
|
|
210
|
-
<InputName style={type == 'line' ?
|
|
210
|
+
<InputName style={type == 'line' ? {width: isEn ? '75px' : '30px'} : { position: 'relative', top: '3px' ,width: isEn ? '75px' : '30px'}}>{inputName}</InputName>
|
|
211
211
|
{
|
|
212
212
|
type == 'line' &&
|
|
213
213
|
<LineInputWrapper style={showError ? { borderColor: '#D0021B' } : undefined}>
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
AvatarWrapper,
|
|
18
18
|
IconEdit
|
|
19
19
|
} from './style';
|
|
20
|
-
import { getLocale } from "../../../../../../../utils/getLocale";
|
|
20
|
+
import { getLocale, isEn } from "../../../../../../../utils/getLocale";
|
|
21
21
|
|
|
22
22
|
interface Props {
|
|
23
23
|
setRefInParent: Function
|
|
@@ -219,7 +219,7 @@ export default class Score extends PureComponent<Props, State> {
|
|
|
219
219
|
information: (this.state.showScoreInfoError ?
|
|
220
220
|
|
|
221
221
|
<ScoreInfoWrapperError data-length={`已输入 ${this.state.areaLength} 个字,最多可输入 1000 个字`}>
|
|
222
|
-
<ScoreInfoSpanText>{getLocale('OKR_MyO_Description')}</ScoreInfoSpanText>
|
|
222
|
+
<ScoreInfoSpanText style={{minWidth: isEn ? '75px' : '30px'}}>{getLocale('OKR_MyO_Description')}</ScoreInfoSpanText>
|
|
223
223
|
<ScoreInfoSpanTextareaError
|
|
224
224
|
ref={this.state.scoreInfoErrorRef}
|
|
225
225
|
placeholder={getLocale('OKR_MyO_scoredescription')}
|
|
@@ -227,7 +227,7 @@ export default class Score extends PureComponent<Props, State> {
|
|
|
227
227
|
value={htmlDecodeByRegExp(this.state.scoreInfoText)} />
|
|
228
228
|
</ScoreInfoWrapperError> :
|
|
229
229
|
<ScoreInfoWrapper>
|
|
230
|
-
<ScoreInfoSpanText>{getLocale('OKR_MyO_Description')}</ScoreInfoSpanText>
|
|
230
|
+
<ScoreInfoSpanText style={{minWidth: isEn ? '75px' : '30px'}}>{getLocale('OKR_MyO_Description')}</ScoreInfoSpanText>
|
|
231
231
|
<ScoreInfoSpanTextarea
|
|
232
232
|
ref={this.state.scoreInfoRef}
|
|
233
233
|
placeholder={getLocale('OKR_MyO_scoredescription')}
|
package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js
CHANGED
|
@@ -17,14 +17,12 @@ export const ExtraWrapper = styled.div`
|
|
|
17
17
|
新增评分弹层的div --start
|
|
18
18
|
*/
|
|
19
19
|
export const ScoreInfoWrapper = styled.div`
|
|
20
|
-
width: 312px;
|
|
21
20
|
height: 75px;
|
|
22
21
|
display: flex;
|
|
23
22
|
margin-bottom: 20px;
|
|
24
23
|
`;
|
|
25
24
|
|
|
26
25
|
export const ScoreInfoWrapperError = styled.div`
|
|
27
|
-
width: 312px;
|
|
28
26
|
height: 75px;
|
|
29
27
|
display: flex;
|
|
30
28
|
margin-bottom: 20px;
|
|
@@ -43,14 +41,13 @@ export const ScoreInfoWrapperError = styled.div`
|
|
|
43
41
|
export const ScoreInfoSpanText = styled.span`
|
|
44
42
|
width: 30px;
|
|
45
43
|
height: 20px;
|
|
46
|
-
font-family: PingFangSC-Regular;
|
|
47
44
|
font-size: 14px;
|
|
48
45
|
color: #83898F;
|
|
49
46
|
margin-right: 4px;
|
|
50
47
|
`;
|
|
51
48
|
|
|
52
49
|
export const ScoreInfoSpanTextarea = styled.textarea`
|
|
53
|
-
width:
|
|
50
|
+
width: 100%;
|
|
54
51
|
box-sizing: border-box;
|
|
55
52
|
padding: 1px 7px;
|
|
56
53
|
border: 1px solid #F0F2F5;
|
|
@@ -60,7 +57,7 @@ export const ScoreInfoSpanTextarea = styled.textarea`
|
|
|
60
57
|
`;
|
|
61
58
|
|
|
62
59
|
export const ScoreInfoSpanTextareaError = styled.textarea`
|
|
63
|
-
width:
|
|
60
|
+
width: 100%;
|
|
64
61
|
box-sizing: border-box;
|
|
65
62
|
padding: 1px 7px;
|
|
66
63
|
border: 1px solid #F0F2F5;
|
|
@@ -74,7 +71,6 @@ export const ScoreInfoSpanTextareaError = styled.textarea`
|
|
|
74
71
|
新增评分弹层的div --end
|
|
75
72
|
*/
|
|
76
73
|
export const CallSomeoneSpan = styled.span`
|
|
77
|
-
font-family: PingFangSC-Regular;
|
|
78
74
|
font-size: 14px;
|
|
79
75
|
color: #83898F;
|
|
80
76
|
padding-right: 15px;
|
|
@@ -96,7 +96,7 @@ $font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-ser
|
|
|
96
96
|
margin-left: 8px;
|
|
97
97
|
font-size: 14px;
|
|
98
98
|
font-family: $font-family;
|
|
99
|
-
font-weight:
|
|
99
|
+
font-weight: 600;
|
|
100
100
|
color: #3f4755;
|
|
101
101
|
line-height: 22px;
|
|
102
102
|
vertical-align: top;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
.okr-detail-drawer-bottom-mblog-wrapper {
|
|
22
22
|
background: #FFFFFF;
|
|
23
23
|
box-shadow: 0px -2px 8px 0px rgba(127, 145, 180, 0.15);
|
|
24
|
-
padding: 18px 32px
|
|
24
|
+
padding: 18px 32px 20px;
|
|
25
25
|
z-index: 11;
|
|
26
26
|
.okr-detail-reply-to-user {
|
|
27
27
|
// height: ${(p: any) => p.height};
|
|
@@ -25,7 +25,7 @@ export const getO_SETTING = () => {
|
|
|
25
25
|
const { childOkrProgress, childkrProgress } = recommandProgressObj;
|
|
26
26
|
const textArr = [];
|
|
27
27
|
childkrProgress !== -1 && textArr.push(`${getLocale('OKR_MyO_Pop_Upd_KRCom')}${childkrProgress}${getLocale('OKR_MyO_Pop_Upd_Percentage')}`);
|
|
28
|
-
childOkrProgress !== -1 && textArr.push(
|
|
28
|
+
childOkrProgress !== -1 && textArr.push(`${getLocale('OKR_MyO_Ew_SubobjCom')}${childOkrProgress}${getLocale('OKR_MyO_Pop_Upd_Percentage')}`);
|
|
29
29
|
if (textArr.length == 0) return '';
|
|
30
30
|
return (
|
|
31
31
|
<Fragment>
|
|
@@ -62,7 +62,7 @@ export const getKR_SETTING = () => {
|
|
|
62
62
|
const { childOkrProgress, childEProgress } = recommandProgressObj;
|
|
63
63
|
const textArr = [];
|
|
64
64
|
childEProgress !== -1 && textArr.push(`${getLocale('OKR_MyO_Ecompletion')}${childEProgress}${getLocale('OKR_MyO_Pop_Upd_Percentage')}`);
|
|
65
|
-
childOkrProgress !== -1 && textArr.push(
|
|
65
|
+
childOkrProgress !== -1 && textArr.push(`${getLocale('OKR_MyO_Ew_SubobjCom')}${childOkrProgress}${getLocale('OKR_MyO_Pop_Upd_Percentage')}`);
|
|
66
66
|
if (textArr.length == 0) return '';
|
|
67
67
|
return (
|
|
68
68
|
<Fragment>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
margin-bottom: 0;
|
|
6
6
|
margin-right: 16px;
|
|
7
7
|
font-size: 14px;
|
|
8
|
-
font-weight:
|
|
8
|
+
font-weight: 600;
|
|
9
9
|
line-height: 20px;
|
|
10
10
|
color: #3f4755;
|
|
11
11
|
text-align: right;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
border-color: #E9ECF0;
|
|
29
29
|
}
|
|
30
30
|
input {
|
|
31
|
-
color: #
|
|
31
|
+
color: #A4ACB9 !important;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
&__suffix {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PieChart from '../plots/pie';
|
|
3
|
+
import { getLocale } from '../../../utils/getLocale';
|
|
3
4
|
|
|
4
5
|
interface Props {
|
|
5
6
|
size?: React.CSSProperties;//容器样式
|
|
@@ -71,7 +72,7 @@ export default function TitaPieChart(props: Props) {
|
|
|
71
72
|
fontSize: '12px'
|
|
72
73
|
},
|
|
73
74
|
offsetY: -10,
|
|
74
|
-
content: '
|
|
75
|
+
content: getLocale('HP_Onumber')
|
|
75
76
|
},
|
|
76
77
|
content: {
|
|
77
78
|
style: {
|
|
@@ -4,16 +4,19 @@ import "./index.scss";
|
|
|
4
4
|
|
|
5
5
|
interface ITooltipTextProps {
|
|
6
6
|
text: any;
|
|
7
|
+
overlayText?: any;
|
|
7
8
|
maxWidth?: number;
|
|
8
9
|
exClass?: string;
|
|
9
10
|
isPercent?: boolean;
|
|
10
11
|
minusWidth?: number;
|
|
11
12
|
overlayClassName?: string;
|
|
12
13
|
mouseEnterDelay?: number;
|
|
14
|
+
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
const TooltipText: FC<ITooltipTextProps> = ({
|
|
16
18
|
text,
|
|
19
|
+
overlayText="",
|
|
17
20
|
maxWidth = 0,
|
|
18
21
|
exClass,
|
|
19
22
|
isPercent = false,
|
|
@@ -56,7 +59,7 @@ const TooltipText: FC<ITooltipTextProps> = ({
|
|
|
56
59
|
{hasTooltip && (
|
|
57
60
|
<Tooltip
|
|
58
61
|
overlayClassName={overlayClassName}
|
|
59
|
-
overlay={text}
|
|
62
|
+
overlay={!!overlayText?overlayText:text}
|
|
60
63
|
placement="top"
|
|
61
64
|
mouseEnterDelay={mouseEnterDelay}
|
|
62
65
|
>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
&-download{
|
|
5
5
|
&-template{
|
|
6
6
|
font-size: 14px;
|
|
7
|
-
font-weight:
|
|
7
|
+
font-weight: 600;
|
|
8
8
|
color: #3F4755;
|
|
9
9
|
display: flex;
|
|
10
10
|
justify-content: space-between;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
border-radius: 3px;
|
|
18
18
|
border: 1px solid #2879FF;
|
|
19
19
|
font-size: 12px;
|
|
20
|
-
font-weight:
|
|
20
|
+
font-weight: 600;
|
|
21
21
|
color: #2879FF;
|
|
22
22
|
line-height: 26px;
|
|
23
23
|
&:hover{
|