@titaui/pc 1.10.11 → 1.10.14

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 (29) hide show
  1. package/lib/components/communication/CommunicationRecord.js +7 -7
  2. package/lib/components/communication/index.css +7 -7
  3. package/lib/components/dynamic/dynamic-item/components/header/index.js +2 -2
  4. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +12 -2
  5. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +2 -10
  6. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
  7. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
  8. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +9 -7
  9. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -6
  10. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -2
  11. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +2 -2
  12. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
  13. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
  14. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -2
  15. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +1 -1
  16. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +12 -4
  17. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +2 -10
  18. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +1 -1
  19. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
  20. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +1 -1
  21. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +1 -1
  22. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.css +1 -1
  23. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -2
  24. package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
  25. package/lib/components/dynamic/dynamic-list/index.js +2 -1
  26. package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
  27. package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +7 -1
  28. package/lib/components/menus/export-modules/demo-menus/menus.js +28 -11
  29. package/package.json +1 -1
@@ -80,14 +80,16 @@ var CommunicationRecord = function CommunicationRecord(_ref) {
80
80
  display: 'flex',
81
81
  alignItems: 'center'
82
82
  }
83
- }, communicationTrack.commentType != 2 ? /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
83
+ }, communicationTrack.commentType != 2 ? /*#__PURE__*/_react["default"].createElement("span", {
84
+ className: "".concat(prefix, "__communication-item")
85
+ }, /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
84
86
  userName: communicationTrack.publishUser.name,
85
87
  userId: communicationTrack.publishUser.userId
86
88
  }), /*#__PURE__*/_react["default"].createElement("span", {
87
89
  className: "".concat(prefix, "__communication-time")
88
- }, /*#__PURE__*/_react["default"].createElement("span", {
89
- className: "".concat(prefix, "__communication-time-point")
90
- }, "\xB7"), communicationTrack.createDate)) : /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
90
+ }, communicationTrack.createDate)) : /*#__PURE__*/_react["default"].createElement("span", {
91
+ className: "".concat(prefix, "__communication-item")
92
+ }, /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
91
93
  userName: communicationTrack.publishUser.name,
92
94
  userId: communicationTrack.publishUser.userId
93
95
  }), /*#__PURE__*/_react["default"].createElement("span", {
@@ -97,9 +99,7 @@ var CommunicationRecord = function CommunicationRecord(_ref) {
97
99
  userId: communicationTrack.parentUser.userId
98
100
  }), /*#__PURE__*/_react["default"].createElement("span", {
99
101
  className: "".concat(prefix, "__communication-time")
100
- }, /*#__PURE__*/_react["default"].createElement("span", {
101
- className: "".concat(prefix, "__communication-time-point")
102
- }, "\xB7"), communicationTrack.createDate), /*#__PURE__*/_react["default"].createElement(_Portals["default"], null, /*#__PURE__*/_react["default"].createElement(_reactTooltip["default"], {
102
+ }, communicationTrack.createDate), /*#__PURE__*/_react["default"].createElement(_Portals["default"], null, /*#__PURE__*/_react["default"].createElement(_reactTooltip["default"], {
103
103
  html: true,
104
104
  className: "tt-react-tooltip",
105
105
  place: "top",
@@ -1,3 +1,8 @@
1
+ .titaui-communication__communication-item {
2
+ display: flex;
3
+ align-items: center;
4
+ }
5
+
1
6
  .titaui-communication__communication-text {
2
7
  font-size: 14px;
3
8
  color: #89919f;
@@ -44,11 +49,7 @@
44
49
  font-weight: 400;
45
50
  color: #89919F;
46
51
  line-height: 18px;
47
- margin-left: 6px;
48
- }
49
-
50
- .titaui-communication__communication-time-point {
51
- margin-right: 4px;
52
+ margin-left: 12px;
52
53
  }
53
54
 
54
55
  .titaui-communication__communication-bottom {
@@ -91,13 +92,12 @@
91
92
  .titaui-communication__reply-default-input-text {
92
93
  flex: 1;
93
94
  cursor: text;
94
- font-size: 14px;
95
+ font-size: 12px;
95
96
  color: #BFC7D5;
96
97
  line-height: 22px;
97
98
  margin-left: 12px;
98
99
  height: 32px;
99
100
  border-radius: 16px;
100
- background: rgba(240, 244, 250, 0.6);
101
101
  border-radius: 16px;
102
102
  border: 1px solid #E9ECF0;
103
103
  display: flex;
@@ -247,10 +247,10 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
247
247
  }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
248
248
  name: user.name,
249
249
  userId: user.id || user.userId,
250
- src: user.avatar.medium,
250
+ src: user.avatar.original || user.avatar.medium,
251
251
  color: user.avatar.color,
252
252
  size: {
253
- width: 52,
253
+ width: 48,
254
254
  textNum: 1,
255
255
  fontSize: 18
256
256
  }
@@ -74,6 +74,16 @@
74
74
  margin-right: 8px;
75
75
  }
76
76
 
77
+ .titaui-dynamic-align-item__obj-principal-user::after {
78
+ content: '';
79
+ width: 1px;
80
+ height: 14px;
81
+ background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #bfc7d5 50%, rgba(240, 242, 245, 0) 100%);
82
+ display: inline-block;
83
+ margin: 0 8px;
84
+ vertical-align: text-top;
85
+ }
86
+
77
87
  .titaui-dynamic-align-item__obj-cycle {
78
88
  font-size: 12px;
79
89
  color: #89919f;
@@ -89,11 +99,11 @@
89
99
  }
90
100
 
91
101
  .titaui-dynamic-align-item__space {
92
- height: 23px;
102
+ height: 30px;
93
103
  }
94
104
 
95
105
  .titaui-dynamic-align-item__operate-desc {
96
- font-size: 16px;
106
+ font-size: 14px;
97
107
  font-weight: 400;
98
108
  color: #89919f;
99
109
  line-height: 24px;
@@ -33,8 +33,6 @@ var _dynamicAlignO = _interopRequireDefault(require("./img/dynamic-align-o.png")
33
33
 
34
34
  var _dynamicAlignKr = _interopRequireDefault(require("./img/dynamic-align-kr.png"));
35
35
 
36
- var _dynamicPoint = _interopRequireDefault(require("../../img/dynamic-point.svg"));
37
-
38
36
  require("./index.css");
39
37
 
40
38
  var _excluded = ["data"];
@@ -143,10 +141,7 @@ var DynamicAlign = function DynamicAlign(_ref) {
143
141
  }, parentPrincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
144
142
  id: parentPrincipalUser.userId,
145
143
  name: parentPrincipalUser.name
146
- })), /*#__PURE__*/_react["default"].createElement("img", {
147
- src: _dynamicPoint["default"],
148
- alt: ""
149
- }), /*#__PURE__*/_react["default"].createElement("span", {
144
+ })), /*#__PURE__*/_react["default"].createElement("span", {
150
145
  className: "".concat(prefix, "__obj-cycle")
151
146
  }, parentcycleName))))), /*#__PURE__*/_react["default"].createElement("img", {
152
147
  className: "".concat(prefix, "__align-img"),
@@ -181,10 +176,7 @@ var DynamicAlign = function DynamicAlign(_ref) {
181
176
  }, principalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
182
177
  id: principalUser.userId,
183
178
  name: principalUser.name
184
- })), /*#__PURE__*/_react["default"].createElement("img", {
185
- src: _dynamicPoint["default"],
186
- alt: ""
187
- }), /*#__PURE__*/_react["default"].createElement("span", {
179
+ })), /*#__PURE__*/_react["default"].createElement("span", {
188
180
  className: "".concat(prefix, "__obj-cycle")
189
181
  }, cycleName)))))));
190
182
  };
@@ -15,7 +15,7 @@
15
15
  }
16
16
 
17
17
  .titaui-dynamic-announcement-item__operate-desc {
18
- font-size: 16px;
18
+ font-size: 14px;
19
19
  font-weight: 400;
20
20
  color: #89919f;
21
21
  line-height: 24px;
@@ -77,7 +77,7 @@
77
77
  }
78
78
 
79
79
  .titaui-dynamic-assessment-item__operate-desc {
80
- font-size: 16px;
80
+ font-size: 14px;
81
81
  font-weight: 400;
82
82
  color: #89919f;
83
83
  line-height: 24px;
@@ -58,12 +58,14 @@
58
58
  line-height: 18px;
59
59
  }
60
60
 
61
- .titaui-dynamic-create-o-item__okr-type {
62
- margin-right: 8px;
63
- }
64
-
65
- .titaui-dynamic-create-o-item__okr-cycle {
66
- margin-left: 8px;
61
+ .titaui-dynamic-create-o-item__okr-type::after {
62
+ content: '';
63
+ width: 1px;
64
+ height: 14px;
65
+ background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #bfc7d5 50%, rgba(240, 242, 245, 0) 100%);
66
+ display: inline-block;
67
+ margin: 0 8px;
68
+ vertical-align: text-top;
67
69
  }
68
70
 
69
71
  .titaui-dynamic-create-o-item__okr-krs {
@@ -97,7 +99,7 @@
97
99
  }
98
100
 
99
101
  .titaui-dynamic-create-o-item__operate-desc {
100
- font-size: 16px;
102
+ font-size: 14px;
101
103
  font-weight: 400;
102
104
  color: #89919f;
103
105
  line-height: 24px;
@@ -29,8 +29,6 @@ var _progress = _interopRequireDefault(require("../../../progress"));
29
29
 
30
30
  var _util = require("../../util");
31
31
 
32
- var _dynamicPoint = _interopRequireDefault(require("../../img/dynamic-point.svg"));
33
-
34
32
  require("./index.css");
35
33
 
36
34
  var _excluded = ["data"];
@@ -162,10 +160,7 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
162
160
  className: "".concat(prefix, "__okr")
163
161
  }, /*#__PURE__*/_react["default"].createElement("span", {
164
162
  className: "".concat(prefix, "__okr-type")
165
- }, okrTypeInfo.text), /*#__PURE__*/_react["default"].createElement("img", {
166
- src: _dynamicPoint["default"],
167
- alt: ""
168
- }), /*#__PURE__*/_react["default"].createElement("span", {
163
+ }, okrTypeInfo.text), /*#__PURE__*/_react["default"].createElement("span", {
169
164
  className: "".concat(prefix, "__okr-cycle")
170
165
  }, cycleName)), krs && krs.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
171
166
  className: "".concat(prefix, "__okr-krs")
@@ -51,7 +51,7 @@
51
51
  }
52
52
 
53
53
  .titaui-dynamic-kr-item__object-name {
54
- font-size: 16px;
54
+ font-size: 14px;
55
55
  color: #2879ff;
56
56
  line-height: 24px;
57
57
  margin: 0 4px;
@@ -64,7 +64,7 @@
64
64
  }
65
65
 
66
66
  .titaui-dynamic-kr-item__operate-desc {
67
- font-size: 16px;
67
+ font-size: 14px;
68
68
  font-weight: 400;
69
69
  color: #89919f;
70
70
  line-height: 24px;
@@ -93,7 +93,7 @@
93
93
  }
94
94
 
95
95
  .titaui-dynamic-milestone-item__object-name {
96
- font-size: 16px;
96
+ font-size: 14px;
97
97
  color: #2879ff;
98
98
  line-height: 24px;
99
99
  margin: 0 4px;
@@ -106,7 +106,7 @@
106
106
  }
107
107
 
108
108
  .titaui-dynamic-milestone-item__operate-desc {
109
- font-size: 16px;
109
+ font-size: 14px;
110
110
  font-weight: 400;
111
111
  color: #89919f;
112
112
  line-height: 24px;
@@ -56,7 +56,7 @@
56
56
  }
57
57
 
58
58
  .titaui-dynamic-okrs-communication-item__operate-desc {
59
- font-size: 16px;
59
+ font-size: 14px;
60
60
  font-weight: 400;
61
61
  color: #89919f;
62
62
  line-height: 24px;
@@ -56,7 +56,7 @@
56
56
  }
57
57
 
58
58
  .titaui-dynamic-plan-communication-item__operate-desc {
59
- font-size: 16px;
59
+ font-size: 14px;
60
60
  font-weight: 400;
61
61
  color: #89919f;
62
62
  line-height: 24px;
@@ -29,7 +29,7 @@
29
29
  }
30
30
 
31
31
  .titaui-dynamic-progress-item__object-name {
32
- font-size: 16px;
32
+ font-size: 14px;
33
33
  color: #2879ff;
34
34
  line-height: 24px;
35
35
  margin: 0 4px;
@@ -46,7 +46,7 @@
46
46
  }
47
47
 
48
48
  .titaui-dynamic-progress-item__operate-desc {
49
- font-size: 16px;
49
+ font-size: 14px;
50
50
  font-weight: 400;
51
51
  color: #89919f;
52
52
  line-height: 24px;
@@ -93,7 +93,7 @@
93
93
  }
94
94
 
95
95
  .titaui-dynamic-project-item__operate-desc {
96
- font-size: 16px;
96
+ font-size: 14px;
97
97
  font-weight: 400;
98
98
  color: #89919f;
99
99
  line-height: 24px;
@@ -79,14 +79,22 @@
79
79
  font-size: 12px;
80
80
  color: #89919f;
81
81
  line-height: 18px;
82
- margin-right: 8px;
82
+ }
83
+
84
+ .titaui-dynamic-relative-item__obj-principal-user::after {
85
+ content: '';
86
+ width: 1px;
87
+ height: 14px;
88
+ background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #bfc7d5 50%, rgba(240, 242, 245, 0) 100%);
89
+ display: inline-block;
90
+ margin: 0 8px;
91
+ vertical-align: text-top;
83
92
  }
84
93
 
85
94
  .titaui-dynamic-relative-item__obj-cycle {
86
95
  font-size: 12px;
87
96
  color: #89919f;
88
97
  line-height: 18px;
89
- margin-left: 8px;
90
98
  }
91
99
 
92
100
  .titaui-dynamic-relative-item__rela-img {
@@ -97,11 +105,11 @@
97
105
  }
98
106
 
99
107
  .titaui-dynamic-relative-item__space {
100
- height: 20px;
108
+ height: 30px;
101
109
  }
102
110
 
103
111
  .titaui-dynamic-relative-item__operate-desc {
104
- font-size: 16px;
112
+ font-size: 14px;
105
113
  font-weight: 400;
106
114
  color: #89919f;
107
115
  line-height: 24px;
@@ -37,8 +37,6 @@ var _dynamicRelaProject = _interopRequireDefault(require("./img/dynamic-rela-pro
37
37
 
38
38
  var _dynamicRelaTask = _interopRequireDefault(require("./img/dynamic-rela-task.png"));
39
39
 
40
- var _dynamicPoint = _interopRequireDefault(require("../../img/dynamic-point.svg"));
41
-
42
40
  require("./index.css");
43
41
 
44
42
  var _excluded = ["data"];
@@ -156,10 +154,7 @@ var DynamicRelative = function DynamicRelative(_ref) {
156
154
  }, rObjprincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
157
155
  id: rObjprincipalUser.userId,
158
156
  name: rObjprincipalUser.name
159
- })), /*#__PURE__*/_react["default"].createElement("img", {
160
- src: _dynamicPoint["default"],
161
- alt: ""
162
- }), /*#__PURE__*/_react["default"].createElement("span", {
157
+ })), /*#__PURE__*/_react["default"].createElement("span", {
163
158
  className: "".concat(prefix, "__obj-cycle")
164
159
  }, rObjCycleName))))), /*#__PURE__*/_react["default"].createElement("img", {
165
160
  className: "".concat(prefix, "__rela-img"),
@@ -194,10 +189,7 @@ var DynamicRelative = function DynamicRelative(_ref) {
194
189
  }, objPrincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
195
190
  id: objPrincipalUser.userId,
196
191
  name: objPrincipalUser.name
197
- })), /*#__PURE__*/_react["default"].createElement("img", {
198
- src: _dynamicPoint["default"],
199
- alt: ""
200
- }), /*#__PURE__*/_react["default"].createElement("span", {
192
+ })), /*#__PURE__*/_react["default"].createElement("span", {
201
193
  className: "".concat(prefix, "__obj-cycle")
202
194
  }, objCycleName)))))));
203
195
  };
@@ -114,7 +114,7 @@
114
114
  }
115
115
 
116
116
  .titaui-dynamic-reply-item__operate-desc {
117
- font-size: 16px;
117
+ font-size: 14px;
118
118
  font-weight: 400;
119
119
  color: #89919f;
120
120
  line-height: 24px;
@@ -141,7 +141,7 @@
141
141
  }
142
142
 
143
143
  .titaui-dynamic-report-item__operate-desc {
144
- font-size: 16px;
144
+ font-size: 14px;
145
145
  font-weight: 400;
146
146
  color: #89919f;
147
147
  line-height: 24px;
@@ -53,7 +53,7 @@
53
53
  }
54
54
 
55
55
  .titaui-dynamic-reward-item__operate-desc {
56
- font-size: 16px;
56
+ font-size: 14px;
57
57
  font-weight: 400;
58
58
  color: #89919f;
59
59
  line-height: 24px;
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  .titaui-dynamic-share-item__operate-desc {
14
- font-size: 16px;
14
+ font-size: 14px;
15
15
  font-weight: 400;
16
16
  color: #89919f;
17
17
  line-height: 24px;
@@ -1,6 +1,6 @@
1
1
  .titaui-dynamic-share-to-dynamic__operate-desc {
2
2
  margin-left: 4px;
3
- font-size: 16px;
3
+ font-size: 14px;
4
4
  font-weight: normal;
5
5
  color: #89919f;
6
6
  line-height: 24px;
@@ -93,7 +93,7 @@
93
93
  }
94
94
 
95
95
  .titaui-dynamic-task-item__object-name {
96
- font-size: 16px;
96
+ font-size: 14px;
97
97
  color: #2879ff;
98
98
  line-height: 24px;
99
99
  margin: 0 4px;
@@ -106,7 +106,7 @@
106
106
  }
107
107
 
108
108
  .titaui-dynamic-task-item__operate-desc {
109
- font-size: 16px;
109
+ font-size: 14px;
110
110
  font-weight: 400;
111
111
  color: #89919f;
112
112
  line-height: 24px;
@@ -78,7 +78,7 @@ var Item = function Item(_ref) {
78
78
  className: "".concat(preCls, "-avatar")
79
79
  }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
80
80
  name: name,
81
- src: avatar.small,
81
+ src: avatar.original,
82
82
  color: avatar.color,
83
83
  userId: userId,
84
84
  size: {
@@ -65,7 +65,8 @@ var DynamicList = function DynamicList(_ref) {
65
65
  }]
66
66
  }, data.map(function (item) {
67
67
  return /*#__PURE__*/_react["default"].createElement("div", {
68
- className: "".concat(prefix, "__item-wrapper")
68
+ className: "".concat(prefix, "__item-wrapper"),
69
+ key: item.feedId
69
70
  }, /*#__PURE__*/_react["default"].createElement(_dynamicItem["default"], {
70
71
  data: item,
71
72
  onDeleteFeed: handleDeleteFeed,
@@ -64,7 +64,7 @@ var DemoMenus = function DemoMenus(props) {
64
64
  setExpandedKeys = _useState4[1];
65
65
 
66
66
  var _useState5 = (0, _react.useState)(function () {
67
- okrMenusData.current = new _menus["default"]();
67
+ okrMenusData.current = new _menus["default"](isManager);
68
68
  return okrMenusData.current.getMenus();
69
69
  }),
70
70
  _useState6 = _slicedToArray(_useState5, 2),
@@ -72,7 +72,7 @@ var DemoMenus = function DemoMenus(props) {
72
72
  setMenus = _useState6[1];
73
73
 
74
74
  (0, _react.useEffect)(function () {
75
- okrMenusData.current = new _menus["default"](isManager === 1);
75
+ okrMenusData.current = new _menus["default"](isManager);
76
76
  setMenus(okrMenusData.current.getMenus());
77
77
  setExpandedKeys(["demofree"]);
78
78
  }, [isManager]);
@@ -25,7 +25,7 @@ var _default = /*#__PURE__*/function () {
25
25
  _createClass(_default, [{
26
26
  key: "highlight",
27
27
  value: function highlight(cb) {
28
- if (this.isUnAssigned()) cb(_menus.PAGE_UNASSIGNED_DEMOFREE);else if (this.isAssigned()) cb(_menus.PAGE_ASSIGNED_DEMOFREE);else if (this.isReserved()) cb(_menus.PAGE_RESERVED_DEMOFREE);else if (this.isDone()) cb(_menus.PAGE_DONE_DEMOFREE);else if (this.isIgnore()) cb(_menus.PAGE_IGNORED_DEMOFREE);else if (this.isChart()) cb(_menus.PAGE_CHARTS_DEMOFREE);
28
+ if (this.isUnAssigned()) cb(_menus.PAGE_UNASSIGNED_DEMOFREE);else if (this.isAssigned()) cb(_menus.PAGE_ASSIGNED_DEMOFREE);else if (this.isReserved()) cb(_menus.PAGE_RESERVED_DEMOFREE);else if (this.isDone()) cb(_menus.PAGE_DONE_DEMOFREE);else if (this.isIgnore()) cb(_menus.PAGE_IGNORED_DEMOFREE);else if (this.isChart()) cb(_menus.PAGE_CHARTS_DEMOFREE);else if (this.isRecharge()) cb(_menus.PAGE_RECHARGE_DEMOFREE);
29
29
  }
30
30
  }, {
31
31
  key: "isChart",
@@ -33,6 +33,12 @@ var _default = /*#__PURE__*/function () {
33
33
  var pathname = this.history.location.pathname;
34
34
  return pathname.match(/demofree\/charts/);
35
35
  }
36
+ }, {
37
+ key: "isRecharge",
38
+ value: function isRecharge() {
39
+ var pathname = this.history.location.pathname;
40
+ return pathname.match(/demofree\/recharge/);
41
+ }
36
42
  }, {
37
43
  key: "isUnAssigned",
38
44
  value: function isUnAssigned() {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DONE_DEMOFREE = exports.PAGE_CHARTS_DEMOFREE = exports.PAGE_ASSIGNED_DEMOFREE = void 0;
6
+ exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_RECHARGE_DEMOFREE = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DONE_DEMOFREE = exports.PAGE_CHARTS_DEMOFREE = exports.PAGE_ASSIGNED_DEMOFREE = void 0;
7
7
 
8
8
  var _index = require("../../components/menu-tree/tree-node/index");
9
9
 
@@ -13,6 +13,15 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
13
13
 
14
14
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
15
15
 
16
+ var EManagerType;
17
+
18
+ (function (EManagerType) {
19
+ EManagerType[EManagerType["Manager"] = 1] = "Manager";
20
+ EManagerType[EManagerType["Supervisor"] = 2] = "Supervisor";
21
+ EManagerType[EManagerType["Sales"] = 0] = "Sales";
22
+ EManagerType[EManagerType["ReCharge"] = 3] = "ReCharge";
23
+ })(EManagerType || (EManagerType = {}));
24
+
16
25
  var defaultRefObject = {
17
26
  menus: [],
18
27
  getMenus: function getMenus() {}
@@ -30,11 +39,11 @@ var PAGE_IGNORED_DEMOFREE = "ignore";
30
39
  exports.PAGE_IGNORED_DEMOFREE = PAGE_IGNORED_DEMOFREE;
31
40
  var PAGE_CHARTS_DEMOFREE = "charts";
32
41
  exports.PAGE_CHARTS_DEMOFREE = PAGE_CHARTS_DEMOFREE;
42
+ var PAGE_RECHARGE_DEMOFREE = "recharge";
43
+ exports.PAGE_RECHARGE_DEMOFREE = PAGE_RECHARGE_DEMOFREE;
33
44
 
34
45
  var DemoMenuData = /*#__PURE__*/function () {
35
- function DemoMenuData() {
36
- var isManager = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
37
-
46
+ function DemoMenuData(isManager) {
38
47
  _classCallCheck(this, DemoMenuData);
39
48
 
40
49
  this.isManager = isManager;
@@ -43,44 +52,52 @@ var DemoMenuData = /*#__PURE__*/function () {
43
52
  label: "任务状态",
44
53
  key: "demofree",
45
54
  href: this.isManager ? "#/demofree/list?selected=unassigned" : "#/demofree/list?selected=assigned",
46
- isShow: true,
55
+ isShow: this.isManager !== EManagerType.ReCharge,
47
56
  children: [{
48
57
  icon: "",
49
58
  label: "未分配",
50
59
  key: "unassigned",
51
60
  href: "#/demofree/list?selected=unassigned",
52
- isShow: this.isManager
61
+ isShow: this.isManager === EManagerType.Manager
53
62
  }, {
54
63
  icon: "",
55
64
  label: "已分配",
56
65
  key: "assigned",
57
66
  href: "#/demofree/list?selected=assigned",
58
- isShow: true
67
+ isShow: this.isManager !== EManagerType.ReCharge
59
68
  }, {
60
69
  icon: "",
61
70
  label: "已预约",
62
71
  key: "reserved",
63
72
  href: "#/demofree/list?selected=reserved",
64
- isShow: true
73
+ isShow: this.isManager !== EManagerType.ReCharge
65
74
  }, {
66
75
  icon: "",
67
76
  label: "已完成",
68
77
  key: "done",
69
78
  href: "#/demofree/list?selected=done",
70
- isShow: true
79
+ isShow: this.isManager !== EManagerType.ReCharge
71
80
  }, {
72
81
  icon: "",
73
82
  label: "已忽略",
74
83
  key: "ignore",
75
84
  href: "#/demofree/list?selected=ignore",
76
- isShow: this.isManager
85
+ isShow: this.isManager === EManagerType.Manager
77
86
  }]
78
87
  }, {
79
88
  icon: "KH-help",
80
89
  label: "预约演示报表",
81
90
  key: "charts",
82
91
  href: "#/demofree/charts",
83
- isShow: this.isManager,
92
+ isShow: this.isManager === EManagerType.Manager,
93
+ children: [],
94
+ type: _index.MENU_ITEM_NOE
95
+ }, {
96
+ icon: "KH-help",
97
+ label: "客户续费",
98
+ key: "recharge",
99
+ href: "#/demofree/recharge",
100
+ isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager,
84
101
  children: [],
85
102
  type: _index.MENU_ITEM_NOE
86
103
  }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.11",
3
+ "version": "1.10.14",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",