@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.
Files changed (67) hide show
  1. package/lib/components/grid-layout/near-visitors/index.js +4 -2
  2. package/lib/components/grid-layout/okr-align/index.js +4 -4
  3. package/lib/components/grid-layout/okr-progress/index.js +6 -6
  4. package/lib/components/grid-layout/okr-target/index.js +2 -2
  5. package/lib/components/grid-layout/over-view/index.js +1 -1
  6. package/lib/components/grid-layout/personal-info/index.js +5 -3
  7. package/lib/components/grid-layout/sub-employee-okr/index.js +1 -1
  8. package/lib/components/grid-layout/week-task/index.js +4 -4
  9. package/lib/components/grid-layout/words-cloud/index.js +5 -3
  10. package/lib/components/grid-page/personal-info/index.js +5 -3
  11. package/lib/components/img-viewer/index.js +1 -1
  12. package/lib/components/mblog/style.js +4 -4
  13. package/lib/components/okr-detail/base-info/base-info.js +4 -3
  14. package/lib/components/okr-detail/base-info/o-desc/index.js +2 -8
  15. package/lib/components/point-demo/constant.js +1 -3
  16. package/lib/components/point-demo/drop-down-box/index.js +1 -3
  17. package/lib/components/point-demo/index.js +8 -10
  18. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +1 -1
  19. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +2 -1
  20. package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -0
  21. package/lib/components/user-selector/export-modules/field-tree-selector/index.css +1 -1
  22. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +2 -0
  23. package/lib/components/word-cloud/index.js +1 -1
  24. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
  25. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
  26. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
  27. package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
  28. package/lib/pages/home/components/data-list/index.js +2 -2
  29. package/lib/pages/home/components/data-list/nav-selector/index.js +2 -2
  30. package/lib/pages/home/components/data-list/table/columns/index.js +1 -1
  31. package/lib/pages/home/components/guide/index.js +14 -12
  32. package/lib/pages/home/components/header/index.js +3 -1
  33. package/lib/pages/home-page-data-list/index.js +2 -2
  34. package/package.json +1 -1
  35. package/src/components/grid-layout/near-visitors/index.tsx +3 -2
  36. package/src/components/grid-layout/okr-align/index.tsx +4 -4
  37. package/src/components/grid-layout/okr-progress/index.tsx +6 -6
  38. package/src/components/grid-layout/okr-target/index.tsx +2 -2
  39. package/src/components/grid-layout/over-view/index.tsx +1 -1
  40. package/src/components/grid-layout/personal-info/index.tsx +4 -3
  41. package/src/components/grid-layout/sub-employee-okr/index.tsx +1 -1
  42. package/src/components/grid-layout/week-task/index.tsx +3 -3
  43. package/src/components/grid-layout/words-cloud/index.tsx +4 -3
  44. package/src/components/grid-page/personal-info/index.tsx +4 -3
  45. package/src/components/img-viewer/index.tsx +1 -1
  46. package/src/components/mblog/style.ts +5 -5
  47. package/src/components/okr-detail/base-info/base-info.tsx +2 -4
  48. package/src/components/okr-detail/base-info/o-desc/index.tsx +0 -7
  49. package/src/components/point-demo/constant.ts +1 -3
  50. package/src/components/point-demo/drop-down-box/index.js +1 -2
  51. package/src/components/point-demo/index.js +8 -9
  52. package/src/components/publish-dynamic-modal/publish-dynamic-modal.scss +1 -1
  53. package/src/components/publish-dynamic-modal/publish-dynamic-modal.tsx +1 -0
  54. package/src/components/user-selector/category-selector-panel/depart-tree.tsx +3 -2
  55. package/src/components/user-selector/export-modules/field-tree-selector/index.scss +1 -1
  56. package/src/components/user-selector/export-modules/field-tree-selector/index.tsx +3 -0
  57. package/src/components/word-cloud/index.js +1 -1
  58. package/src/components-v1/userSelector/components/MultiMode/CommonList.tsx +1 -1
  59. package/src/components-v1/userSelector/components/MultiMode/DepartmentList.tsx +1 -1
  60. package/src/components-v1/userSelector/components/MultiMode/SubsList.tsx +1 -1
  61. package/src/components-v1/userSelector/components/SingleMode.tsx +1 -1
  62. package/src/pages/home/components/data-list/index.tsx +2 -2
  63. package/src/pages/home/components/data-list/nav-selector/index.tsx +2 -2
  64. package/src/pages/home/components/data-list/table/columns/index.tsx +1 -1
  65. package/src/pages/home/components/guide/index.tsx +13 -12
  66. package/src/pages/home/components/header/index.tsx +2 -1
  67. 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("./index.css");
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
- }), "\u5982\u4F55\u4F7F\u7528 Tita"), visible && /*#__PURE__*/_react["default"].createElement("div", {
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
- }, "\u56DB\u6B65\u4E0A\u624B Tita OKR"), /*#__PURE__*/_react["default"].createElement(_stepItem["default"], {
82
- title: "\u8BBE\u5B9A OKR",
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: "\u6559\u7A0B: \u5982\u4F55\u5728 Tita \u4E0A\u8BBE\u5B9A OKR",
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: "\u5BF9\u9F50 OKR",
89
+ title: (0, _getLocale.getLocale)('HP_AlignmentOKR'),
88
90
  step: 2,
89
- linkName: "\u6559\u7A0B: \u5982\u4F55\u5728 Tita \u4E0A\u5BF9\u9F50 OKR",
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: "\u4EFB\u52A1\u6267\u884C\u652F\u6491\u76EE\u6807\u8FBE\u6210",
94
+ title: (0, _getLocale.getLocale)('HP_Taskachievement'),
93
95
  step: 3,
94
- linkName: "\u6559\u7A0B: \u5982\u4F55\u5728 Tita \u4E0A\u5206\u89E3\u4EFB\u52A1",
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: "\u66F4\u65B0\u8FDB\u5EA6",
99
+ title: (0, _getLocale.getLocale)('HP_UpdateProgress'),
98
100
  step: 4,
99
- linkName: "\u6559\u7A0B: \u5982\u4F55\u5728 Tita \u4E0A\u66F4\u65B0 OKR",
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
- }), "\u66F4\u591A\u4EA7\u54C1\u57F9\u8BAD\u8BFE\u7A0B"))), /*#__PURE__*/_react["default"].createElement("div", {
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: "\u6211\u7684",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.7.100",
3
+ "version": "1.7.101",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -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" >最近访问你的人</div>
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='OKR对齐'
55
+ content={getLocale('HP_OKRAlignment')}
56
56
  iconUrl={require('../image/align.png')}
57
- tips='设置对齐目标,OKR 才能上下支撑'
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='对齐 Ta 人目标,支撑企业落地 OKR'
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="KR进展"
60
+ content={getLocale('HP_Executiotasks')}
61
61
  iconUrl={require('../image/Progress.png')}
62
- tips="我负责的 OKR 下的 KR 更新进展统计"
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="OKR 目标" iconUrl={require('../image/targer.png')} />
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="高效工作从第一个OKR设定开始"
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='执行任务' updataNum={0} />
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='对齐 Ta 人目标,撑企业落地 OKR'
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='本周未完成' Qtips='本周截止但未完成的任务量' handleDataClick={() => toWeekPlan()} />
64
- <DataItem num={finishTaskOnWeek} numColor="#5AD8A6" label='本周完成' handleDataClick={() => toWeekPlan()} />
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
- 升级 Tita 正式版后可查看,立即咨询
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 #E9ECF0;
25
- border-radius: 4px;
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: 9px 0 8px 0;
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: 4px;
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: 4px;
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 [originalDesc, setOriginalDesc] = useState(
62
- decodeURI(encodeURI(okrInfo.description)) || ""
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: `${getLocale("OKR_Menu_Title_Others")}`, value: 7 },
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 = `${getLocale('OKR_MyO_E_Temporarilynone')}`, popupProps, renderPrefixIcon, renderSuffixIcon, renderPrefixIconClass, renderSuffixIconClass, textClass, forceRenderText = false }) => {
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={getLocale('Mod_UserName')} placeholder="请输入您的名称"
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={getLocale('Pro_page_Ext_Tab_PhoneNumber')}
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={getLocale('Mod_Pleaseselect')}
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={getLocale('Mod_Pleaseselect')}
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(getLocale('Menu_Title_Performance')) ? 'tita-appointment-demo-right-form-item-modules-item-active' : ''} tita-appointment-demo-right-form-item-modules-item`}
329
- onClick={() => onClickAddModules(getLocale('Menu_Title_Performance'))}
330
- >{getLocale('Menu_Title_Performance')}</div>
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
- >{getLocale('Pro_detail_Submission')}</div>
362
+ >提交</div>
364
363
  </div>
365
364
  </div>
366
365
 
@@ -1,3 +1,3 @@
1
1
  .publish-dynamic-modal {
2
- padding: 16px 32px 18px 32px;
2
+ padding: 10px 32px 18px 32px;
3
3
  }
@@ -109,6 +109,7 @@ const PublishDynamicModal: FC = ({}) => {
109
109
  noFooter
110
110
  style={{ width: isEn ? '680px' : "480px" }}
111
111
  destroyOnClose
112
+ noHeadLine
112
113
  >
113
114
  <div className={prefix}>
114
115
  <MBlog
@@ -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
  }
@@ -65,6 +65,6 @@
65
65
  background: #ffffff;
66
66
  box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
67
67
  border: 1px solid #f0f2f5;
68
- border-radius: 4px;
68
+ border-radius: 12px;
69
69
  }
70
70
  }
@@ -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')}>企业关注热点</div>
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>这里什么都没有...</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>这里什么都没有...</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>这里什么都没有...</ListEmptyText>
57
+ <ListEmptyText>{getLocale('Mod_ThereNothing')}...</ListEmptyText>
58
58
  </EmptyWrapper>
59
59
  }
60
60
  </ListWrapper>