@titaui/pc 1.7.100 → 1.7.101
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/grid-layout/near-visitors/index.js +4 -2
- package/lib/components/grid-layout/okr-align/index.js +4 -4
- package/lib/components/grid-layout/okr-progress/index.js +6 -6
- package/lib/components/grid-layout/okr-target/index.js +2 -2
- package/lib/components/grid-layout/over-view/index.js +1 -1
- package/lib/components/grid-layout/personal-info/index.js +5 -3
- package/lib/components/grid-layout/sub-employee-okr/index.js +1 -1
- package/lib/components/grid-layout/week-task/index.js +4 -4
- package/lib/components/grid-layout/words-cloud/index.js +5 -3
- package/lib/components/grid-page/personal-info/index.js +5 -3
- package/lib/components/img-viewer/index.js +1 -1
- package/lib/components/mblog/style.js +4 -4
- package/lib/components/okr-detail/base-info/base-info.js +4 -3
- package/lib/components/okr-detail/base-info/o-desc/index.js +2 -8
- package/lib/components/point-demo/constant.js +1 -3
- package/lib/components/point-demo/drop-down-box/index.js +1 -3
- package/lib/components/point-demo/index.js +8 -10
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +1 -1
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +2 -1
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -0
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +2 -0
- package/lib/components/word-cloud/index.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
- package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
- package/lib/pages/home/components/data-list/index.js +2 -2
- package/lib/pages/home/components/data-list/nav-selector/index.js +2 -2
- package/lib/pages/home/components/data-list/table/columns/index.js +1 -1
- package/lib/pages/home/components/guide/index.js +14 -12
- package/lib/pages/home/components/header/index.js +3 -1
- package/lib/pages/home-page-data-list/index.js +2 -2
- package/package.json +1 -1
- package/src/components/grid-layout/near-visitors/index.tsx +3 -2
- package/src/components/grid-layout/okr-align/index.tsx +4 -4
- package/src/components/grid-layout/okr-progress/index.tsx +6 -6
- package/src/components/grid-layout/okr-target/index.tsx +2 -2
- package/src/components/grid-layout/over-view/index.tsx +1 -1
- package/src/components/grid-layout/personal-info/index.tsx +4 -3
- package/src/components/grid-layout/sub-employee-okr/index.tsx +1 -1
- package/src/components/grid-layout/week-task/index.tsx +3 -3
- package/src/components/grid-layout/words-cloud/index.tsx +4 -3
- package/src/components/grid-page/personal-info/index.tsx +4 -3
- package/src/components/img-viewer/index.tsx +1 -1
- package/src/components/mblog/style.ts +5 -5
- package/src/components/okr-detail/base-info/base-info.tsx +2 -4
- package/src/components/okr-detail/base-info/o-desc/index.tsx +0 -7
- package/src/components/point-demo/constant.ts +1 -3
- package/src/components/point-demo/drop-down-box/index.js +1 -2
- package/src/components/point-demo/index.js +8 -9
- package/src/components/publish-dynamic-modal/publish-dynamic-modal.scss +1 -1
- package/src/components/publish-dynamic-modal/publish-dynamic-modal.tsx +1 -0
- package/src/components/user-selector/category-selector-panel/depart-tree.tsx +3 -2
- package/src/components/user-selector/export-modules/field-tree-selector/index.scss +1 -1
- package/src/components/user-selector/export-modules/field-tree-selector/index.tsx +3 -0
- package/src/components/word-cloud/index.js +1 -1
- package/src/components-v1/userSelector/components/MultiMode/CommonList.tsx +1 -1
- package/src/components-v1/userSelector/components/MultiMode/DepartmentList.tsx +1 -1
- package/src/components-v1/userSelector/components/MultiMode/SubsList.tsx +1 -1
- package/src/components-v1/userSelector/components/SingleMode.tsx +1 -1
- package/src/pages/home/components/data-list/index.tsx +2 -2
- package/src/pages/home/components/data-list/nav-selector/index.tsx +2 -2
- package/src/pages/home/components/data-list/table/columns/index.tsx +1 -1
- package/src/pages/home/components/guide/index.tsx +13 -12
- package/src/pages/home/components/header/index.tsx +2 -1
- package/src/pages/home-page-data-list/index.tsx +2 -2
|
@@ -13,10 +13,12 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
|
|
14
14
|
var _rcQueueAnim = _interopRequireDefault(require("rc-queue-anim"));
|
|
15
15
|
|
|
16
|
-
require("
|
|
16
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
17
17
|
|
|
18
18
|
var _stepItem = _interopRequireDefault(require("./stepItem"));
|
|
19
19
|
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
23
|
|
|
22
24
|
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); }
|
|
@@ -66,7 +68,7 @@ function HomePageGuide(_ref) {
|
|
|
66
68
|
}
|
|
67
69
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
68
70
|
className: "tu-icon-T-zhinan"
|
|
69
|
-
}),
|
|
71
|
+
}), (0, _getLocale.getLocale)('HP_HowTita')), visible && /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
72
|
className: prefixCls + "__wrapper",
|
|
71
73
|
key: "guide"
|
|
72
74
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -78,25 +80,25 @@ function HomePageGuide(_ref) {
|
|
|
78
80
|
className: prefixCls + "__guide-steps"
|
|
79
81
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
82
|
className: prefixCls + "__guide-title"
|
|
81
|
-
},
|
|
82
|
-
title:
|
|
83
|
+
}, (0, _getLocale.getLocale)('HP_FourstepsTita')), /*#__PURE__*/_react["default"].createElement(_stepItem["default"], {
|
|
84
|
+
title: (0, _getLocale.getLocale)('HP_DevelopOKR'),
|
|
83
85
|
step: 1,
|
|
84
|
-
linkName:
|
|
86
|
+
linkName: (0, _getLocale.getLocale)('HP_Tut_developOKRs'),
|
|
85
87
|
href: "https://club.tita.com/18150.html"
|
|
86
88
|
}), /*#__PURE__*/_react["default"].createElement(_stepItem["default"], {
|
|
87
|
-
title:
|
|
89
|
+
title: (0, _getLocale.getLocale)('HP_AlignmentOKR'),
|
|
88
90
|
step: 2,
|
|
89
|
-
linkName:
|
|
91
|
+
linkName: (0, _getLocale.getLocale)('HP_TutalignmentOKR'),
|
|
90
92
|
href: "https://club.tita.com/18150.html"
|
|
91
93
|
}), /*#__PURE__*/_react["default"].createElement(_stepItem["default"], {
|
|
92
|
-
title:
|
|
94
|
+
title: (0, _getLocale.getLocale)('HP_Taskachievement'),
|
|
93
95
|
step: 3,
|
|
94
|
-
linkName:
|
|
96
|
+
linkName: (0, _getLocale.getLocale)('HP_TuttasksonTita'),
|
|
95
97
|
href: "https://club.tita.com/18165.html"
|
|
96
98
|
}), /*#__PURE__*/_react["default"].createElement(_stepItem["default"], {
|
|
97
|
-
title:
|
|
99
|
+
title: (0, _getLocale.getLocale)('HP_UpdateProgress'),
|
|
98
100
|
step: 4,
|
|
99
|
-
linkName:
|
|
101
|
+
linkName: (0, _getLocale.getLocale)('HP_TutOKRonTita'),
|
|
100
102
|
href: "https://club.tita.com/18179.html",
|
|
101
103
|
isFinalStep: true
|
|
102
104
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -109,7 +111,7 @@ function HomePageGuide(_ref) {
|
|
|
109
111
|
target: "_blank"
|
|
110
112
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
111
113
|
className: "tu-icon-shoushi"
|
|
112
|
-
}),
|
|
114
|
+
}), (0, _getLocale.getLocale)('HP_Morecourses')))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
113
115
|
className: "tu-icon-canceled",
|
|
114
116
|
onClick: function onClick() {
|
|
115
117
|
// api.start({coverScale:0,config:{velocity:100}})
|
|
@@ -11,6 +11,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _tabs = _interopRequireWildcard(require("../../../../components/tabs"));
|
|
13
13
|
|
|
14
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
15
|
+
|
|
14
16
|
require("./index.css");
|
|
15
17
|
|
|
16
18
|
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); }
|
|
@@ -29,7 +31,7 @@ function Header(_ref) {
|
|
|
29
31
|
}, /*#__PURE__*/_react["default"].createElement(_tabs["default"], {
|
|
30
32
|
size: "big"
|
|
31
33
|
}, /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
32
|
-
tab:
|
|
34
|
+
tab: (0, _getLocale.getLocale)('HP_My'),
|
|
33
35
|
tabKey: "my"
|
|
34
36
|
})));
|
|
35
37
|
}
|
|
@@ -67,8 +67,8 @@ var HomePageDataList = function HomePageDataList() {
|
|
|
67
67
|
typeMap.set('all', (0, _getLocale.getLocale)('Mod_all'));
|
|
68
68
|
typeMap.set('hadNotAlign', (0, _getLocale.getLocale)('OKR_Db_Unaligned'));
|
|
69
69
|
typeMap.set('hadAlign', (0, _getLocale.getLocale)('OKR_Db_Aligned'));
|
|
70
|
-
typeMap.set('hadNotUpdate', '
|
|
71
|
-
typeMap.set('hadUpdate', '
|
|
70
|
+
typeMap.set('hadNotUpdate', (0, _getLocale.getLocale)('HP_Notupdated'));
|
|
71
|
+
typeMap.set('hadUpdate', (0, _getLocale.getLocale)('HP_Updated'));
|
|
72
72
|
typeMap.set('normalOkr', (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Notrack'));
|
|
73
73
|
typeMap.set('riskOkr', (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Atrisk'));
|
|
74
74
|
typeMap.set('dalyOkr', (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Postoned'));
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import React, { useState, useEffect } from "react";
|
|
|
2
2
|
import { CardTitle, Gap, CardContainer } from "../commen-components";
|
|
3
3
|
import Visitor from "./visitor";
|
|
4
4
|
import postComponentForData from "../util/network"
|
|
5
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
5
6
|
|
|
6
7
|
import "./index.scss";
|
|
7
8
|
|
|
@@ -27,13 +28,13 @@ export default function VisitorsComponents() {
|
|
|
27
28
|
return (
|
|
28
29
|
<CardContainer styles={{ padding: '12px 16px' }}>
|
|
29
30
|
<CardTitle
|
|
30
|
-
content='
|
|
31
|
+
content={getLocale('HP_RecentVisitors')}
|
|
31
32
|
iconUrl={require('../image/Recent-visitors.png')}
|
|
32
33
|
/>
|
|
33
34
|
<Gap />
|
|
34
35
|
{
|
|
35
36
|
visitorList.length === 0
|
|
36
|
-
? <div className="nearVisitors-Component-noOneText"
|
|
37
|
+
? <div className="nearVisitors-Component-noOneText" >{getLocale('HP_Peoplevisited')}</div>
|
|
37
38
|
: <div className="nearVisitors-Component-visitor">
|
|
38
39
|
{
|
|
39
40
|
// 固定为最近访问的8个用户
|
|
@@ -52,18 +52,18 @@ export default function OKRAlignComponent() {
|
|
|
52
52
|
return (
|
|
53
53
|
<CardContainer styles={{ padding: '20px 22px 0' }}>
|
|
54
54
|
<CardTitle
|
|
55
|
-
content='
|
|
55
|
+
content={getLocale('HP_OKRAlignment')}
|
|
56
56
|
iconUrl={require('../image/align.png')}
|
|
57
|
-
tips='
|
|
57
|
+
tips={getLocale('HP_SetOKR')}
|
|
58
58
|
/>
|
|
59
59
|
{
|
|
60
60
|
isMyOKREmpty
|
|
61
61
|
? <EmptyBackGround
|
|
62
62
|
imgSrc={require('../image/OKRalign-empty.png')}
|
|
63
|
-
content='
|
|
63
|
+
content={getLocale('HP_AligningOKR')}
|
|
64
64
|
behave={{
|
|
65
65
|
type: 'moreinfo',
|
|
66
|
-
text: '
|
|
66
|
+
text: getLocale('HP_Howaligninggoals'),
|
|
67
67
|
link: 'https://club.tita.com/18179.html'
|
|
68
68
|
}} />
|
|
69
69
|
: <CardFlexContent>
|
|
@@ -57,9 +57,9 @@ export default function OKRProgressComponent() {
|
|
|
57
57
|
return (
|
|
58
58
|
<CardContainer styles={{ padding: '20px 22px 0' }}>
|
|
59
59
|
<CardTitle
|
|
60
|
-
content=
|
|
60
|
+
content={getLocale('HP_Executiotasks')}
|
|
61
61
|
iconUrl={require('../image/Progress.png')}
|
|
62
|
-
tips=
|
|
62
|
+
tips={getLocale('HP_ProgressKROKR')}
|
|
63
63
|
>
|
|
64
64
|
{!isMyOKREmpty && (
|
|
65
65
|
<a
|
|
@@ -73,10 +73,10 @@ export default function OKRProgressComponent() {
|
|
|
73
73
|
{isMyOKREmpty ? (
|
|
74
74
|
<EmptyBackGround
|
|
75
75
|
imgSrc={require('../image/OKRprogress-empty.png')}
|
|
76
|
-
content=
|
|
76
|
+
content={getLocale('HP_Regulgoodwork')}
|
|
77
77
|
behave={{
|
|
78
78
|
type: 'moreinfo',
|
|
79
|
-
text: '
|
|
79
|
+
text: getLocale('HP_Learnupdate'),
|
|
80
80
|
link: 'https://club.tita.com/18179.html',
|
|
81
81
|
}}
|
|
82
82
|
/>
|
|
@@ -91,13 +91,13 @@ export default function OKRProgressComponent() {
|
|
|
91
91
|
num={hadUpdateOkrNum}
|
|
92
92
|
updataNum={weekLatelyUpdatekrProgress}
|
|
93
93
|
numColor="#3F4755"
|
|
94
|
-
label=
|
|
94
|
+
label={getLocale('HP_Updated')}
|
|
95
95
|
handleDataClick={() => handleDataClick('hadUpdate')}
|
|
96
96
|
/>
|
|
97
97
|
<DataItem
|
|
98
98
|
num={hadNotUpdateOkrNum}
|
|
99
99
|
numColor="#3F4755"
|
|
100
|
-
label=
|
|
100
|
+
label={getLocale('HP_Notupdated')}
|
|
101
101
|
handleDataClick={() => handleDataClick('hadNotUpdate')}
|
|
102
102
|
/>
|
|
103
103
|
</CardFlexContent>
|
|
@@ -94,11 +94,11 @@ export default function OKRTargetComponent() {
|
|
|
94
94
|
|
|
95
95
|
return (
|
|
96
96
|
<CardContainer styles={{ padding: '20px 22px 0' }}>
|
|
97
|
-
<CardTitle content=
|
|
97
|
+
<CardTitle content={getLocale('HP_OKR')} iconUrl={require('../image/targer.png')} />
|
|
98
98
|
{isMyOKREmpty ? (
|
|
99
99
|
<EmptyBackGround
|
|
100
100
|
imgSrc={require('../image/OKRtarget-empty.png')}
|
|
101
|
-
content=
|
|
101
|
+
content={getLocale('HP_EffectiveOKRsetting')}
|
|
102
102
|
behave={{
|
|
103
103
|
type: 'button',
|
|
104
104
|
text: getLocale('OKR_MyO_Collr_Butt_CreatOKR'),
|
|
@@ -78,7 +78,7 @@ export default function OverviewComponent() {
|
|
|
78
78
|
<div className="OverviewComponent-dataContent">
|
|
79
79
|
<DataItem num={allOkrCount} numColor="#3F4755" label={getLocale('Mod_Objective')} updataNum={allOkrInWeekCount} handleDataClick={handleTargetClick} />
|
|
80
80
|
<DataItem num={allMyKrCount} numColor="#3F4755" label={getLocale('Mod_KeyResults')} updataNum={0} />
|
|
81
|
-
<DataItem num={allMyTaskCount} numColor="#3F4755" label='
|
|
81
|
+
<DataItem num={allMyTaskCount} numColor="#3F4755" label={getLocale('HP_Executiotasks')} updataNum={0} />
|
|
82
82
|
</div>
|
|
83
83
|
</Fragment>
|
|
84
84
|
</CardFlexContent>
|
|
@@ -5,6 +5,7 @@ import postComponentForData from '../util/network';
|
|
|
5
5
|
import Avatar from '../../avatar';
|
|
6
6
|
import Tooltip from '../../tooltip';
|
|
7
7
|
import { OpenUserName, OpenDepartmentName } from '../../../utils/open-data';
|
|
8
|
+
import { getLocale } from '../../../utils/getLocale';
|
|
8
9
|
|
|
9
10
|
import './index.scss';
|
|
10
11
|
|
|
@@ -145,10 +146,10 @@ export default function PersonalInfoComponent() {
|
|
|
145
146
|
<div className="PersonalInfoComponent-PersonalInfo__fansinfo">
|
|
146
147
|
<span className="PersonalInfoComponent-PersonalInfo__fansinfo__attention">
|
|
147
148
|
<img src={require('../image/visit-icon.png')} /> <b>{fansNum}</b>
|
|
148
|
-
|
|
149
|
+
{getLocale('HP_peoplefollow')}
|
|
149
150
|
</span>
|
|
150
151
|
<span className="PersonalInfoComponent-PersonalInfo__fansinfo__like">
|
|
151
|
-
<img src={require('../image/liking.png')} /> <b>{likeNum}</b
|
|
152
|
+
<img src={require('../image/liking.png')} /> <b>{likeNum}</b>{getLocale('HP_Kudos')}
|
|
152
153
|
</span>
|
|
153
154
|
</div>
|
|
154
155
|
{scrollMessage.name && scrollMessage.name.length ? (
|
|
@@ -160,7 +161,7 @@ export default function PersonalInfoComponent() {
|
|
|
160
161
|
) : (
|
|
161
162
|
//@ts-ignore
|
|
162
163
|
<AvatarTips
|
|
163
|
-
content="🥰
|
|
164
|
+
content={"🥰 "+getLocale('HP_Smallwindow')}
|
|
164
165
|
styles={{ height: '28px', padding: '0 28px', lineHeight: '28px' }}
|
|
165
166
|
/>
|
|
166
167
|
)}
|
|
@@ -55,7 +55,7 @@ export default function SubOKRComponents() {
|
|
|
55
55
|
)
|
|
56
56
|
} else {
|
|
57
57
|
return <EmptyBackGround
|
|
58
|
-
imgSrc={require('../image/sub-empty.png')} content='
|
|
58
|
+
imgSrc={require('../image/sub-empty.png')} content={getLocale('HP_Noavailable')}
|
|
59
59
|
styles={{ display: 'flex', flexDirection: 'column', justifyContent: 'center' }}
|
|
60
60
|
/>
|
|
61
61
|
}
|
|
@@ -53,15 +53,15 @@ export default function WeekTaskComponent() {
|
|
|
53
53
|
isMyOKREmpty
|
|
54
54
|
? <EmptyBackGround
|
|
55
55
|
imgSrc={require('../image/weektask-empty.png')}
|
|
56
|
-
content='
|
|
56
|
+
content={getLocale('HP_AligningOKR')}
|
|
57
57
|
behave={{
|
|
58
58
|
type: 'button',
|
|
59
59
|
text: getLocale('Pro_page_Mil_Butt_Createatask'),
|
|
60
60
|
onClick: e => toWeekPlan()
|
|
61
61
|
}} />
|
|
62
62
|
: <CardFlexContent>
|
|
63
|
-
<DataItem num={unFinishTaskOnWeek} numColor="#2879FF" label='
|
|
64
|
-
<DataItem num={finishTaskOnWeek} numColor="#5AD8A6" label='
|
|
63
|
+
<DataItem num={unFinishTaskOnWeek} numColor="#2879FF" label={getLocale('HP_Unfinishedweek')} Qtips={getLocale('HP_Thetasksweek')} handleDataClick={() => toWeekPlan()} />
|
|
64
|
+
<DataItem num={finishTaskOnWeek} numColor="#5AD8A6" label={getLocale('HP_Finishedweek')} handleDataClick={() => toWeekPlan()} />
|
|
65
65
|
<DataItem num={dueTaskOnWeek} numColor="#F05E5E" label={getLocale('OKR_MyO_E_Overdue')} handleDataClick={() => toWeekPlan()} />
|
|
66
66
|
</CardFlexContent>
|
|
67
67
|
}
|
|
@@ -6,6 +6,7 @@ import postComponentForData from "../util/network"
|
|
|
6
6
|
import lvMask from '../image/lv'
|
|
7
7
|
import couldMask from '../image/could'
|
|
8
8
|
import titaMask from '../image/tita-mask'
|
|
9
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
9
10
|
|
|
10
11
|
const ComponentId = 'Enterprise-Focus-Hotspots'
|
|
11
12
|
|
|
@@ -35,9 +36,9 @@ export default function WordCloudComponent() {
|
|
|
35
36
|
return (
|
|
36
37
|
<CardContainer styles={{ padding: '20px 22px 0' }}>
|
|
37
38
|
<CardTitle
|
|
38
|
-
content=
|
|
39
|
+
content={getLocale('HP_Hotcompanies')}
|
|
39
40
|
iconUrl={require('../image/Collaboration.png')}
|
|
40
|
-
tips=
|
|
41
|
+
tips={getLocale('HP_Theenterprise')}
|
|
41
42
|
>
|
|
42
43
|
{wordsData.length === 0 && (
|
|
43
44
|
<Advice
|
|
@@ -45,7 +46,7 @@ export default function WordCloudComponent() {
|
|
|
45
46
|
link="https://wpa1.qq.com/o6X4XD1n?_type=wpa&qidian=true"
|
|
46
47
|
>
|
|
47
48
|
<img src={require('../image/advise.svg')} />
|
|
48
|
-
|
|
49
|
+
{getLocale('HP_Upgradeview')}
|
|
49
50
|
</Advice>
|
|
50
51
|
)}
|
|
51
52
|
</CardTitle>
|
|
@@ -5,6 +5,7 @@ import postComponentForData from '../util/network';
|
|
|
5
5
|
import Avatar from '../../avatar';
|
|
6
6
|
import Tooltip from '../../tooltip';
|
|
7
7
|
import { OpenUserName, OpenDepartmentName } from '../../../utils/open-data';
|
|
8
|
+
import { getLocale } from '../../../utils/getLocale';
|
|
8
9
|
|
|
9
10
|
import './index.scss';
|
|
10
11
|
|
|
@@ -145,10 +146,10 @@ export default function PersonalInfoComponent() {
|
|
|
145
146
|
<div className="PersonalInfoComponent-PersonalInfo__fansinfo">
|
|
146
147
|
<span className="PersonalInfoComponent-PersonalInfo__fansinfo__attention">
|
|
147
148
|
<img src={require('../image/visit-icon.png')} /> <b>{fansNum}</b>
|
|
148
|
-
|
|
149
|
+
{getLocale('HP_peoplefollow')}
|
|
149
150
|
</span>
|
|
150
151
|
<span className="PersonalInfoComponent-PersonalInfo__fansinfo__like">
|
|
151
|
-
<img src={require('../image/liking.png')} /> <b>{likeNum}</b
|
|
152
|
+
<img src={require('../image/liking.png')} /> <b>{likeNum}</b>{getLocale('HP_Kudos')}
|
|
152
153
|
</span>
|
|
153
154
|
</div>
|
|
154
155
|
{scrollMessage.name && scrollMessage.name.length ? (
|
|
@@ -160,7 +161,7 @@ export default function PersonalInfoComponent() {
|
|
|
160
161
|
) : (
|
|
161
162
|
//@ts-ignore
|
|
162
163
|
<AvatarTips
|
|
163
|
-
content="🥰
|
|
164
|
+
content={"🥰 "+getLocale('HP_Smallwindow')}
|
|
164
165
|
styles={{ height: '28px', padding: '0 28px', lineHeight: '28px' }}
|
|
165
166
|
/>
|
|
166
167
|
)}
|
|
@@ -99,7 +99,7 @@ const ImgViewer: FC<IImgViewerProps> = forwardRef(
|
|
|
99
99
|
<div className={prefix + "__header"}>
|
|
100
100
|
<span className={prefix + "__header-file-name"}>
|
|
101
101
|
<Tooltip.Text
|
|
102
|
-
text={currentImgData.fileName}
|
|
102
|
+
text={currentImgData && currentImgData.fileName || ''}
|
|
103
103
|
isPercent
|
|
104
104
|
minusWidth={60}
|
|
105
105
|
/>
|
|
@@ -21,8 +21,8 @@ export const MBlogBox = styled.div`
|
|
|
21
21
|
// MblogContent
|
|
22
22
|
export const DivMblogContent = styled.div`
|
|
23
23
|
padding: 8px 10px 6px;
|
|
24
|
-
border: 1px solid #
|
|
25
|
-
border-radius:
|
|
24
|
+
border: 1px solid #DFE3EA;
|
|
25
|
+
border-radius: 8px;
|
|
26
26
|
background-color: #fff;
|
|
27
27
|
position: relative;
|
|
28
28
|
transition: all .2s ease-in-out;
|
|
@@ -81,7 +81,7 @@ export const Tips = styled.div`
|
|
|
81
81
|
// MblogAction
|
|
82
82
|
export const MblogActionWrapper = styled.div`
|
|
83
83
|
height: 30px;
|
|
84
|
-
padding:
|
|
84
|
+
padding: 28px 0 2px 0;
|
|
85
85
|
font-size: 13px;
|
|
86
86
|
line-height: 20px;
|
|
87
87
|
color: #565E66;
|
|
@@ -169,7 +169,7 @@ export const RightBtnGroupWrapper = styled.div`
|
|
|
169
169
|
min-width: 90px;
|
|
170
170
|
height: 32px;
|
|
171
171
|
box-sizing: border-box;
|
|
172
|
-
border-radius:
|
|
172
|
+
border-radius: 18px;
|
|
173
173
|
border: none;
|
|
174
174
|
}
|
|
175
175
|
`
|
|
@@ -219,7 +219,7 @@ export const BtnConfirm = styled.button`
|
|
|
219
219
|
color: #ffffff;
|
|
220
220
|
background: #2879FF;
|
|
221
221
|
white-space: nowrap;
|
|
222
|
-
border-radius:
|
|
222
|
+
border-radius: 18px;
|
|
223
223
|
|
|
224
224
|
&.disabled {
|
|
225
225
|
color: #ffffff;
|
|
@@ -58,10 +58,8 @@ const BaseInfo: FC<IBaseInfoProps> = ({ okrId }) => {
|
|
|
58
58
|
|
|
59
59
|
const { okrInfo, setOkrInfo } = useContext(CommonContext);
|
|
60
60
|
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
);
|
|
64
|
-
// const [desc, setDesc] = useState(decodeURI(encodeURI(okrInfo.description)));
|
|
61
|
+
const originDesc = decodeURI(encodeURI(okrInfo.description)) === 'null' ? '' : decodeURI(encodeURI(okrInfo.description));
|
|
62
|
+
const [originalDesc, setOriginalDesc] = useState(originDesc || "");
|
|
65
63
|
const [participant, setParticipant] = useState<IUser[]>([]);
|
|
66
64
|
const [followers, setFollowers] = useState<IUser[]>([]);
|
|
67
65
|
const [canEditAllInfo, setCanEditAllInfo] = useState(
|
|
@@ -21,7 +21,6 @@ const ODesc: FC<IODescProps> = ({
|
|
|
21
21
|
const [hasError, setHasError] = useState(false);
|
|
22
22
|
const [isShowMore, setIsShowMore] = useState(false);
|
|
23
23
|
const [desc, setDesc] = useState(originalDesc);
|
|
24
|
-
// const [originalDesc,setOriginalDesc] = useState(decodeURI(encodeURI(data.description))||'')
|
|
25
24
|
const [showMoreBtn, setShowMoreBtn] = useState(false);
|
|
26
25
|
const textareaRef = useRef(document.createElement("textarea"));
|
|
27
26
|
const textRef = useRef(document.createElement("div"));
|
|
@@ -69,12 +68,6 @@ const ODesc: FC<IODescProps> = ({
|
|
|
69
68
|
[originalDesc, desc, onChangeDesc, hasError]
|
|
70
69
|
);
|
|
71
70
|
|
|
72
|
-
// const handleEnsureDesc = useCallback((e) => {
|
|
73
|
-
// setIsFocus(false);
|
|
74
|
-
// setIsAddDesc(false)
|
|
75
|
-
// onChangeDesc && onChangeDesc();
|
|
76
|
-
// }, [onChangeDesc]);
|
|
77
|
-
|
|
78
71
|
useEffect(() => {
|
|
79
72
|
if (isFocus) {
|
|
80
73
|
setShowMoreBtn(false);
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { getLocale } from "../../utils/getLocale";
|
|
2
|
-
|
|
3
1
|
export const getOkrClassifyList = () => {
|
|
4
2
|
return [
|
|
5
3
|
{ label: "1-10", value: 1 },
|
|
@@ -24,6 +22,6 @@ export const getOkrClassifyList1 = () => {
|
|
|
24
22
|
{ label: "IT 负责人", value: 4 },
|
|
25
23
|
{ label: "采购专员", value: 5 },
|
|
26
24
|
{ label: "业务部门主管", value: 6 },
|
|
27
|
-
{ label:
|
|
25
|
+
{ label: `其他`, value: 7 },
|
|
28
26
|
]
|
|
29
27
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { FC, useState, useRef, useMemo, useCallback, useEffect } from "react";
|
|
2
2
|
import Popup from "../popup";
|
|
3
|
-
import { getLocale } from '../../../utils/getLocale'
|
|
4
3
|
import SuffixIcon from "../image/down.svg"
|
|
5
4
|
import "./index.scss";
|
|
6
5
|
|
|
7
|
-
const SelectLayer = ({ style,errMsg,className,title,required=false, initValue, onChangeClassify, items, initText =
|
|
6
|
+
const SelectLayer = ({ style,errMsg,className,title,required=false, initValue, onChangeClassify, items, initText = `暂无`, popupProps, renderPrefixIcon, renderSuffixIcon, renderPrefixIconClass, renderSuffixIconClass, textClass, forceRenderText = false }) => {
|
|
8
7
|
const [visible, setVisible] = useState(false);
|
|
9
8
|
const [selectItem, setSelectItem] = useState(items.find(item => item.value === initValue));
|
|
10
9
|
|
|
@@ -5,7 +5,6 @@ import Dialog from "../dialog";
|
|
|
5
5
|
import axios from 'axios'
|
|
6
6
|
import ReactDOM from 'react-dom'
|
|
7
7
|
import {getTenantInfo} from '../../utils/helpers';
|
|
8
|
-
import { getLocale } from '../../utils/getLocale'
|
|
9
8
|
// const isMobile = window.userAgent === 'mobile'
|
|
10
9
|
const isMobile = document.body.clientWidth < 768
|
|
11
10
|
import Input from './input'
|
|
@@ -250,7 +249,7 @@ export default (props) => {
|
|
|
250
249
|
<div className="tita-appointment-demo-right-form">
|
|
251
250
|
<div className="tita-appointment-demo-right-form-item">
|
|
252
251
|
<Input className="tita-appointment-demo-right-form-item-left"
|
|
253
|
-
label={
|
|
252
|
+
label={'名称'} placeholder="请输入您的名称"
|
|
254
253
|
id="name"
|
|
255
254
|
errMsg={errMsg}
|
|
256
255
|
required={true}
|
|
@@ -259,7 +258,7 @@ export default (props) => {
|
|
|
259
258
|
onBlur={onBlurName}
|
|
260
259
|
/>
|
|
261
260
|
<Input className="tita-appointment-demo-right-form-item-right"
|
|
262
|
-
label="手机号码" placeholder={
|
|
261
|
+
label="手机号码" placeholder={'请输入手机号'}
|
|
263
262
|
id="phone"
|
|
264
263
|
errMsg={errMsg1}
|
|
265
264
|
required={true}
|
|
@@ -276,7 +275,7 @@ export default (props) => {
|
|
|
276
275
|
items={getOkrClassifyList1()}
|
|
277
276
|
initValue={selectValue1}
|
|
278
277
|
renderSuffixIcon
|
|
279
|
-
initText={
|
|
278
|
+
initText={'请选择'}
|
|
280
279
|
onChangeClassify={handleSelectOkrClassify1}
|
|
281
280
|
title="您的身份"
|
|
282
281
|
errMsg={errMsgIde}
|
|
@@ -287,7 +286,7 @@ export default (props) => {
|
|
|
287
286
|
items={getOkrClassifyList()}
|
|
288
287
|
initValue={selectValue}
|
|
289
288
|
renderSuffixIcon
|
|
290
|
-
initText={
|
|
289
|
+
initText={'请选择'}
|
|
291
290
|
onChangeClassify={handleSelectOkrClassify}
|
|
292
291
|
title="公司人数"
|
|
293
292
|
errMsg={errMsgNum}
|
|
@@ -325,9 +324,9 @@ export default (props) => {
|
|
|
325
324
|
<div className={`${has('OKR 目标管理') ? 'tita-appointment-demo-right-form-item-modules-item-active' : ''} tita-appointment-demo-right-form-item-modules-item`}
|
|
326
325
|
onClick={() => onClickAddModules('OKR 目标管理')}
|
|
327
326
|
>OKR 目标管理</div>
|
|
328
|
-
<div className={`${has(
|
|
329
|
-
onClick={() => onClickAddModules(
|
|
330
|
-
|
|
327
|
+
<div className={`${has("绩效考核") ? 'tita-appointment-demo-right-form-item-modules-item-active' : ''} tita-appointment-demo-right-form-item-modules-item`}
|
|
328
|
+
onClick={() => onClickAddModules("绩效考核")}
|
|
329
|
+
>绩效考核</div>
|
|
331
330
|
<div className={`${has('项目管理') ? 'tita-appointment-demo-right-form-item-modules-item-active' : ''} tita-appointment-demo-right-form-item-modules-item`}
|
|
332
331
|
onClick={() => onClickAddModules('项目管理')}
|
|
333
332
|
>项目管理</div>
|
|
@@ -360,7 +359,7 @@ export default (props) => {
|
|
|
360
359
|
}
|
|
361
360
|
<div className="tita-appointment-demo-right-form-submit"
|
|
362
361
|
onClick={onClickSubmit}
|
|
363
|
-
|
|
362
|
+
>提交</div>
|
|
364
363
|
</div>
|
|
365
364
|
</div>
|
|
366
365
|
|
|
@@ -26,19 +26,20 @@ export default (props: Props) => {
|
|
|
26
26
|
departOnly,
|
|
27
27
|
sourceFrom,
|
|
28
28
|
auth,
|
|
29
|
+
authType,
|
|
29
30
|
isGetRoot,
|
|
30
31
|
disabledDepartSelect,
|
|
31
32
|
} = useContext(CommonContext);
|
|
32
33
|
|
|
33
34
|
const onGetDepartTreeData = () => {
|
|
34
35
|
return getTreeData('-1', {
|
|
35
|
-
departOnly, auth, isGetRoot, sourceFrom,
|
|
36
|
+
departOnly, auth, authType, isGetRoot, sourceFrom,
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
const onLoadDepartNodes = nodeId => {
|
|
40
41
|
return getTreeData(nodeId, {
|
|
41
|
-
departOnly, auth, isGetRoot, sourceFrom,
|
|
42
|
+
departOnly, auth, authType, isGetRoot, sourceFrom,
|
|
42
43
|
'isLoadNodes': true
|
|
43
44
|
});
|
|
44
45
|
}
|
|
@@ -47,6 +47,7 @@ export interface PropsInterface {
|
|
|
47
47
|
sourceFrom?: string;
|
|
48
48
|
departOnly?: boolean;
|
|
49
49
|
auth?: boolean;
|
|
50
|
+
authType?: string;
|
|
50
51
|
placeholder?: string;
|
|
51
52
|
getDepartRoot?: Function;
|
|
52
53
|
destroyPopupOnHide?: boolean;
|
|
@@ -92,6 +93,7 @@ export default forwardRef((props: PropsInterface, ref) => {
|
|
|
92
93
|
departOnly,
|
|
93
94
|
auth = false, // 数据权限
|
|
94
95
|
placeholder = getLocale('Mod_Pleaseselect'),
|
|
96
|
+
authType,
|
|
95
97
|
getDepartRoot,
|
|
96
98
|
destroyPopupOnHide = true,
|
|
97
99
|
forceRender = false,
|
|
@@ -259,6 +261,7 @@ export default forwardRef((props: PropsInterface, ref) => {
|
|
|
259
261
|
sourceFrom,
|
|
260
262
|
departOnly,
|
|
261
263
|
auth,
|
|
264
|
+
authType,
|
|
262
265
|
isGetRoot,
|
|
263
266
|
disabledDepartSelect,
|
|
264
267
|
panes,
|
|
@@ -49,7 +49,7 @@ export default props => {
|
|
|
49
49
|
style={{ 'display': isShow ? 'unset' : 'none' }}
|
|
50
50
|
className={classNames('titaui-wordcloud')}
|
|
51
51
|
>
|
|
52
|
-
<div className={classNames('titaui-wordcloud__title')}
|
|
52
|
+
<div className={classNames('titaui-wordcloud__title')}>{getLocale('HP_Hotcompanies')}</div>
|
|
53
53
|
<canvas ref={canvas} id="worldcloud-titaui-home-canvas" width="235" height="223"></canvas>
|
|
54
54
|
</div>
|
|
55
55
|
</React.Fragment>
|
|
@@ -111,7 +111,7 @@ export default class CommonList extends PureComponent<Props,State> {
|
|
|
111
111
|
!hasUser && !pending &&
|
|
112
112
|
<EmptyWrapper>
|
|
113
113
|
<img src={require('../../assets/emptyImg.png')} width="100px"/>
|
|
114
|
-
<ListEmptyText
|
|
114
|
+
<ListEmptyText>{getLocale('Mod_ThereNothing')}...</ListEmptyText>
|
|
115
115
|
</EmptyWrapper>
|
|
116
116
|
}
|
|
117
117
|
</ListWrapper>
|
|
@@ -70,7 +70,7 @@ export default class DepartmentList extends PureComponent<Props, State> {
|
|
|
70
70
|
{!trees.length && (
|
|
71
71
|
<EmptyWrapper>
|
|
72
72
|
<img src={require('../../assets/emptyImg.png')} width='100px' />
|
|
73
|
-
<ListEmptyText
|
|
73
|
+
<ListEmptyText>{getLocale('Mod_ThereNothing')}...</ListEmptyText>
|
|
74
74
|
</EmptyWrapper>
|
|
75
75
|
)}
|
|
76
76
|
</PerfectScrollbar>
|
|
@@ -54,7 +54,7 @@ export default class CommonList extends PureComponent<Props,State> {
|
|
|
54
54
|
!hasUser &&
|
|
55
55
|
<EmptyWrapper>
|
|
56
56
|
<img src={require('../../assets/emptyImg.png')} width="100px"/>
|
|
57
|
-
<ListEmptyText
|
|
57
|
+
<ListEmptyText>{getLocale('Mod_ThereNothing')}...</ListEmptyText>
|
|
58
58
|
</EmptyWrapper>
|
|
59
59
|
}
|
|
60
60
|
</ListWrapper>
|