@titaui/pc 1.10.68 → 1.10.71

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.
@@ -18,10 +18,22 @@ exports.onlineBroadcastData = exports["default"] = void 0;
18
18
  // href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697741";
19
19
  // }
20
20
  var onlineBroadcastData = [{
21
+ hasOnline: true,
22
+ preContent: "「OKR 工作法」体验优化 ",
23
+ preHref: "https://wiki.tita.com/x/jIOeAQ",
24
+ isNew: true,
25
+ date: "3/29"
26
+ }, {
27
+ hasOnline: true,
28
+ preContent: "新增「同步钉钉待办」,工作实时掌握",
29
+ preHref: "https://wiki.tita.com/x/DIOeAQ",
30
+ isNew: true,
31
+ date: "3/18"
32
+ }, {
21
33
  hasOnline: true,
22
34
  preContent: "「考核」支持建立企业指标库",
23
35
  preHref: "https://wiki.tita.com/x/vYGeAQ",
24
- isNew: true,
36
+ isNew: false,
25
37
  date: "2/17"
26
38
  }, {
27
39
  hasOnline: true,
@@ -12,28 +12,28 @@
12
12
 
13
13
  .tita-okrdt-tree__e-kr-node-preicon {
14
14
  display: inline-block;
15
- line-height: 22px;
16
- color: #6f7886;
15
+ line-height: 18px;
16
+ color: #2879ff;
17
17
  font-size: 16px;
18
18
  }
19
19
 
20
20
  .tita-okrdt-tree__e-kr-node-prefix {
21
21
  display: inline-block;
22
- height: 22px;
23
- font-size: 14px;
22
+ height: 18px;
23
+ font-size: 12px;
24
24
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
25
25
  color: #2879ff;
26
- line-height: 22px;
26
+ line-height: 18px;
27
27
  }
28
28
 
29
29
  .tita-okrdt-tree__e-kr-node-title {
30
30
  display: inline-block;
31
31
  margin-left: 4px;
32
- height: 22px;
33
- font-size: 14px;
32
+ height: 18px;
33
+ font-size: 12px;
34
34
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
35
35
  color: #89919f;
36
- line-height: 22px;
36
+ line-height: 18px;
37
37
  width: 100%;
38
38
  }
39
39
 
@@ -47,7 +47,7 @@
47
47
 
48
48
  .tita-okrdt-tree__e-kr-node-actions-create {
49
49
  height: 18px;
50
- font-size: 13px;
50
+ font-size: 12px;
51
51
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
52
52
  color: #2879ff;
53
53
  line-height: 18px;
@@ -66,7 +66,7 @@
66
66
 
67
67
  .tita-okrdt-tree__e-kr-node-actions-connect {
68
68
  height: 18px;
69
- font-size: 13px;
69
+ font-size: 12px;
70
70
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
71
71
  color: #2879ff;
72
72
  line-height: 18px;
@@ -71,7 +71,9 @@ function _default(props) {
71
71
  _props$hasProgress = props.hasProgress,
72
72
  hasProgress = _props$hasProgress === void 0 ? true : _props$hasProgress,
73
73
  _props$hasRelation = props.hasRelation,
74
- hasRelation = _props$hasRelation === void 0 ? true : _props$hasRelation;
74
+ hasRelation = _props$hasRelation === void 0 ? true : _props$hasRelation,
75
+ _props$hasPrinciple = props.hasPrinciple,
76
+ hasPrinciple = _props$hasPrinciple === void 0 ? true : _props$hasPrinciple;
75
77
 
76
78
  var _useState = (0, _react.useState)(false),
77
79
  _useState2 = _slicedToArray(_useState, 2),
@@ -146,7 +148,7 @@ function _default(props) {
146
148
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-title-approvaling"))
147
149
  }, (0, _getLocale.getLocale)('Pro_MyS_Establishment'))), /*#__PURE__*/_react["default"].createElement("div", {
148
150
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions"))
149
- }, /*#__PURE__*/_react["default"].createElement("span", {
151
+ }, hasPrinciple && /*#__PURE__*/_react["default"].createElement("span", {
150
152
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions-user"))
151
153
  }, /*#__PURE__*/_react["default"].createElement(_avatar["default"].Text, {
152
154
  name: data === null || data === void 0 ? void 0 : (_data$principalUser = data.principalUser) === null || _data$principalUser === void 0 ? void 0 : _data$principalUser.name,
@@ -95,7 +95,9 @@ function ETaskNode(props) {
95
95
  _props$hasRelation = props.hasRelation,
96
96
  hasRelation = _props$hasRelation === void 0 ? true : _props$hasRelation,
97
97
  _props$isPushScreen = props.isPushScreen,
98
- isPushScreen = _props$isPushScreen === void 0 ? false : _props$isPushScreen;
98
+ isPushScreen = _props$isPushScreen === void 0 ? false : _props$isPushScreen,
99
+ _props$hasPrinciple = props.hasPrinciple,
100
+ hasPrinciple = _props$hasPrinciple === void 0 ? true : _props$hasPrinciple;
99
101
 
100
102
  var _useState = (0, _react.useState)(false),
101
103
  _useState2 = _slicedToArray(_useState, 2),
@@ -370,7 +372,7 @@ function ETaskNode(props) {
370
372
  isPercent: true
371
373
  })), /*#__PURE__*/_react["default"].createElement("span", {
372
374
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions"))
373
- }, /*#__PURE__*/_react["default"].createElement("span", {
375
+ }, hasPrinciple && /*#__PURE__*/_react["default"].createElement("span", {
374
376
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions-user"))
375
377
  }, /*#__PURE__*/_react["default"].createElement(_avatar["default"].Text, {
376
378
  name: user === null || user === void 0 ? void 0 : user.name,
@@ -6,6 +6,7 @@
6
6
  display: flex;
7
7
  align-items: center;
8
8
  position: relative;
9
+ height: 24px;
9
10
  }
10
11
 
11
12
  .okr-progress-item-wrapper .okr-progress-item-content__icon-state {
@@ -15,7 +16,7 @@
15
16
  .okr-progress-item-wrapper .okr-progress-item__percent {
16
17
  font-size: 16px;
17
18
  font-weight: 600;
18
- color: #3F4755;
19
+ color: #3f4755;
19
20
  line-height: 24px;
20
21
  margin-left: 12px;
21
22
  }
@@ -28,11 +29,11 @@
28
29
  }
29
30
 
30
31
  .okr-progress-item-wrapper .okr-progress-item__percent--advance {
31
- color: #5AD8A6;
32
+ color: #5ad8a6;
32
33
  }
33
34
 
34
35
  .okr-progress-item-wrapper .okr-progress-item__percent--delay {
35
- color: #F05E5E;
36
+ color: #f05e5e;
36
37
  }
37
38
 
38
39
  .okr-progress-item-wrapper .okr-progress-item-content--edit {
@@ -42,7 +43,7 @@
42
43
  }
43
44
 
44
45
  .okr-progress-item-wrapper .okr-progress-item-content--edit:hover {
45
- background: #F7F8FA;
46
+ background: #f7f8fa;
46
47
  }
47
48
 
48
49
  .okr-progress-item-wrapper .okr-progress-item-content__body-wrapper {
@@ -60,7 +61,7 @@
60
61
 
61
62
  .okr-progress-item-wrapper .okr-progress-item-content__body-wrapper .okr-progress-item-content__body .okr-progress-item__content {
62
63
  font-size: 14px;
63
- color: #3F4755;
64
+ color: #3f4755;
64
65
  line-height: 22px;
65
66
  white-space: pre-wrap;
66
67
  }
@@ -73,7 +74,7 @@
73
74
 
74
75
  .okr-progress-item-wrapper .okr-progress-item__content-bottom {
75
76
  font-size: 12px;
76
- color: #A4ACB9;
77
+ color: #a4acb9;
77
78
  line-height: 18px;
78
79
  margin-top: 6px;
79
80
  display: flex;
@@ -88,12 +89,12 @@
88
89
  }
89
90
 
90
91
  .okr-progress-item-wrapper .okr-progress-item__content-bottom .okr-progress-item__bottom-func-btns .okr-progress-item__bottom-btn--edit:hover {
91
- color: #2879FF;
92
+ color: #2879ff;
92
93
  cursor: pointer;
93
94
  }
94
95
 
95
96
  .okr-progress-item-wrapper .okr-progress-item__content-bottom .okr-progress-item__bottom-func-btns .okr-progress-item__bottom-btn--delete:hover {
96
- color: #F05E5E;
97
+ color: #f05e5e;
97
98
  cursor: pointer;
98
99
  }
99
100
 
@@ -106,7 +107,7 @@
106
107
  display: inline-block;
107
108
  width: 1px;
108
109
  height: 16px;
109
- background: linear-gradient(180deg, rgba(213, 219, 226, 0) 0%, #D5DBE2 49%, rgba(213, 219, 226, 0) 100%);
110
+ background: linear-gradient(180deg, rgba(213, 219, 226, 0) 0%, #d5dbe2 49%, rgba(213, 219, 226, 0) 100%);
110
111
  border-radius: 2px;
111
112
  }
112
113
 
@@ -129,7 +130,7 @@
129
130
  right: 0;
130
131
  font-size: 12px;
131
132
  font-weight: 400;
132
- color: #A4ACB9;
133
+ color: #a4acb9;
133
134
  line-height: 24px;
134
135
  padding-right: 16px;
135
136
  }
package/lib/utils/auth.js CHANGED
@@ -92,8 +92,10 @@ var OAuth = /*#__PURE__*/function (_BaseAuth) {
92
92
  }, {
93
93
  key: "isPrincipalUser",
94
94
  value: function isPrincipalUser() {
95
+ var _this$principalUser;
96
+
95
97
  // console.log('o isp', this.userId, this.principalUser.userId)
96
- return this.userId == this.principalUser.userId;
98
+ return this.userId == ((_this$principalUser = this.principalUser) === null || _this$principalUser === void 0 ? void 0 : _this$principalUser.userId);
97
99
  } // 有操作OKR的權限
98
100
 
99
101
  }, {
@@ -139,8 +141,10 @@ var KRAuth = /*#__PURE__*/function (_BaseAuth2) {
139
141
  }, {
140
142
  key: "isPrincipalUser",
141
143
  value: function isPrincipalUser() {
144
+ var _this$user;
145
+
142
146
  // console.log('kr isp', this.userId, this.user.userId)
143
- return this.userId == this.user.userId;
147
+ return this.userId == ((_this$user = this.user) === null || _this$user === void 0 ? void 0 : _this$user.userId);
144
148
  } // 有操作KR的權限
145
149
 
146
150
  }, {
@@ -178,15 +182,19 @@ var EAuth = /*#__PURE__*/function (_BaseAuth3) {
178
182
  _createClass(EAuth, [{
179
183
  key: "isCreater",
180
184
  value: function isCreater() {
185
+ var _this$user2;
186
+
181
187
  // console.log('e iscreater', this.userId, this.user.userId)
182
- return this.userId == this.user.userId;
188
+ return this.userId == ((_this$user2 = this.user) === null || _this$user2 === void 0 ? void 0 : _this$user2.userId);
183
189
  } // 負責人
184
190
 
185
191
  }, {
186
192
  key: "isPrincipalUser",
187
193
  value: function isPrincipalUser() {
194
+ var _this$principalUser2;
195
+
188
196
  // console.log('e isp', this.userId, this.principalUser.userId)
189
- return this.userId == this.principalUser.userId;
197
+ return this.userId == ((_this$principalUser2 = this.principalUser) === null || _this$principalUser2 === void 0 ? void 0 : _this$principalUser2.userId);
190
198
  } // 有操作KR的權限
191
199
 
192
200
  }, {
@@ -268,7 +276,9 @@ var ChildAuth = /*#__PURE__*/function (_BaseAuth5) {
268
276
  _createClass(ChildAuth, [{
269
277
  key: "isPrincipalUser",
270
278
  value: function isPrincipalUser() {
271
- return this.userId == this.principalUser.userId;
279
+ var _this$principalUser3;
280
+
281
+ return this.userId == ((_this$principalUser3 = this.principalUser) === null || _this$principalUser3 === void 0 ? void 0 : _this$principalUser3.userId);
272
282
  } // 超管、助理、目标管理员以及目标负责人可以修改此目标下对齐子目标的权重;
273
283
 
274
284
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.68",
3
+ "version": "1.10.71",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",