@titaui/pc 1.12.71 → 1.12.74-beta.1

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.
@@ -156,6 +156,28 @@
156
156
  box-sizing: border-box;
157
157
  }
158
158
 
159
+ .titaui-dynamic-new-summary-header__edit {
160
+ opacity: 0;
161
+ transition: all 0.2s;
162
+ display: inline-flex;
163
+ align-items: center;
164
+ justify-content: center;
165
+ height: 28px;
166
+ background: rgba(40, 121, 255, 0.1);
167
+ border-radius: 18px;
168
+ font-size: 12px;
169
+ color: #2879FF;
170
+ line-height: 18px;
171
+ padding: 5px 16px;
172
+ margin-right: 12px;
173
+ box-sizing: border-box;
174
+ cursor: pointer;
175
+ }
176
+
177
+ .titaui-dynamic-new-summary-header__edit-icon {
178
+ margin-right: 4px;
179
+ }
180
+
159
181
  .titaui-dynamic-new-summary__operate .drawer-content-wrapper {
160
182
  width: 372px !important;
161
183
  }
@@ -355,7 +355,12 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
355
355
  src: _evalute["default"],
356
356
  className: "".concat(prefix, "__evalute-img"),
357
357
  alt: "\u8BC4\u4EF7"
358
- }), (0, _getLocale.getLocale)('Per_MyRe_button_Toevaluate')), /*#__PURE__*/_react["default"].createElement("div", {
358
+ }), (0, _getLocale.getLocale)('Per_MyRe_button_Toevaluate')), showEdit && data.isEdit && /*#__PURE__*/_react["default"].createElement("div", {
359
+ className: "".concat(prefix, "__edit"),
360
+ onClick: handleClickEdit
361
+ }, /*#__PURE__*/_react["default"].createElement("i", {
362
+ className: (0, _classnames["default"])('tu-icon-bianji3', "".concat(prefix, "__edit-icon"))
363
+ }), "\u7F16\u8F91"), /*#__PURE__*/_react["default"].createElement("div", {
359
364
  className: "".concat(prefix, "__more-operate")
360
365
  }, /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
361
366
  popupPlacement: "bottomRight",
@@ -372,15 +377,6 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
372
377
  onClick: handleShowDropSelector
373
378
  })
374
379
  }, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
375
- condition: showEdit && data.isEdit
376
- }, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
377
- name: "edit",
378
- onClick: handleClickEdit
379
- }, /*#__PURE__*/_react["default"].createElement("div", {
380
- className: "".concat(prefix, "__more-operate-selection")
381
- }, /*#__PURE__*/_react["default"].createElement("i", {
382
- className: (0, _classnames["default"])('tu-icon-bianji3', "".concat(prefix, "__more-operate-selection-icon"))
383
- }), (0, _getLocale.getLocale)('Mod_Editor')))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
384
380
  condition: showDelete && data.isEdit
385
381
  }, /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
386
382
  name: "delete",
@@ -2,6 +2,11 @@
2
2
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
3
3
  }
4
4
 
5
+ .titaui-dynamic-new-report-item:hover .titaui-dynamic-new-summary-header__edit {
6
+ opacity: 1;
7
+ transition: all 0.2s;
8
+ }
9
+
5
10
  .titaui-dynamic-new-report-item .titaui-dynamic-title__content-text {
6
11
  cursor: default;
7
12
  }
@@ -108,6 +108,14 @@ function SearchForm(props) {
108
108
 
109
109
  var dilagRef = (0, _react.useRef)(document.createElement("div"));
110
110
  (0, _react.useEffect)(function () {
111
+ var relations = [];
112
+
113
+ if (Number(relation) === 0) {
114
+ relations.push.apply(relations, [1, 2]);
115
+ } else {
116
+ relations.push(Number(relation));
117
+ }
118
+
111
119
  onChange(_objectSpread({
112
120
  okrType: okrType,
113
121
  status: 0,
@@ -115,7 +123,8 @@ function SearchForm(props) {
115
123
  return "".concat(res).concat(index === 0 ? "" : ",").concat(cur.userId);
116
124
  }, ""),
117
125
  keyWords: keyWords,
118
- relation: relation,
126
+ relation: 0,
127
+ relations: relations,
119
128
  okrClassify: classify
120
129
  }, cycle));
121
130
  }, [okrType, users, keyWords, cycle, relation, classify]);
@@ -71,8 +71,7 @@ var InterviewMenus = /*#__PURE__*/function () {
71
71
  label: (0, _getLocale.getLocale)('Ooo_Ddb_Dashboard'),
72
72
  key: 'dashboard',
73
73
  href: '#/interview?reactRouterName=dashboard',
74
- isShow: false // mamagementAuthority,
75
-
74
+ isShow: mamagementAuthority
76
75
  }];
77
76
  this.newMenus = {
78
77
  myInterview: [{
@@ -100,7 +100,7 @@ var _default = function _default() {
100
100
  var showCompanyAll = baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager();
101
101
  (0, _react.useEffect)(function () {
102
102
  if (showCompanyAll) {
103
- window.location.href = '#/summary/manage?departmentName=公司全部&departmentId=0&modeType=date';
103
+ window.location.href = '#/summary/depart?departmentName=公司全部&departmentId=0&modeType=date';
104
104
 
105
105
  var allDepartmentText = window.getLocale && window.getLocale(_i18n.locale.menu_alldeparment) || _i18n.locale.menu_alldeparment;
106
106
 
@@ -140,11 +140,11 @@ var _default = function _default() {
140
140
  };
141
141
 
142
142
  if (rawTreeData.length > 1) {
143
- location.href = "#/summary/manage?departmentName=".concat(res.Data.departments[0].name, "&departmentId=-1&modeType=date");
143
+ location.href = "#/summary/depart?departmentName=".concat(res.Data.departments[0].name, "&departmentId=-1&modeType=date");
144
144
  rawTreeData.unshift(rootNode);
145
145
  setSelectedMenuKeys([-1]);
146
146
  } else {
147
- location.href = "#/summary/manage?departmentName=".concat(res.Data.departments[0].name, "&departmentId=").concat(res.Data.departments[0].id, "&modeType=date");
147
+ location.href = "#/summary/depart?departmentName=".concat(res.Data.departments[0].name, "&departmentId=").concat(res.Data.departments[0].id, "&modeType=date");
148
148
  setSelectedMenuKeys([rawTreeData[0].id]);
149
149
  }
150
150
 
@@ -193,7 +193,7 @@ var _default = function _default() {
193
193
  if (nodeType == _index.USER_NODE) {
194
194
  location.href = "#/summary/manage?toUserId=".concat(data.userId);
195
195
  } else if (nodeType == _index.DEPART_NODE) {
196
- location.href = "#/summary/manage?departmentName=".concat(data.name, "&departmentId=").concat(data.id);
196
+ location.href = "#/summary/depart?departmentName=".concat(data.name, "&departmentId=").concat(data.id);
197
197
  }
198
198
 
199
199
  setSelectedMenuKeys(selectedKyes);
@@ -37,7 +37,7 @@ var PAGE_SUMMARY_SHARE = "share";
37
37
  exports.PAGE_SUMMARY_SHARE = PAGE_SUMMARY_SHARE;
38
38
  var PAGE_SUMMARY_DEPART = "depart";
39
39
  exports.PAGE_SUMMARY_DEPART = PAGE_SUMMARY_DEPART;
40
- var PAGE_SUMMARY_ROLE = "role";
40
+ var PAGE_SUMMARY_ROLE = "roles";
41
41
  exports.PAGE_SUMMARY_ROLE = PAGE_SUMMARY_ROLE;
42
42
  var PAGE_SUMMARY_CHART = "chart";
43
43
  exports.PAGE_SUMMARY_CHART = PAGE_SUMMARY_CHART;
@@ -121,7 +121,14 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
121
121
 
122
122
  onSelect(node); // 处理菜单选中
123
123
 
124
- if (!selectedKyes.length) return; // setSelectedMenuKeys(selectedKyes) // 为了点总结管理规定的时候不高亮这个菜单,这个菜单新页面打开的,自测没影响,有影响了再说
124
+ if (!selectedKyes.length) {
125
+ return;
126
+ } else if (selectedKyes[0] === 'roles') {
127
+ // 为了点总结管理规定的时候不高亮这个菜单,这个菜单新页面打开的
128
+ return;
129
+ } else {
130
+ setSelectedMenuKeys(selectedKyes);
131
+ }
125
132
  }; // 获取下属数据列表
126
133
 
127
134
 
@@ -131,6 +131,9 @@ function OkrSearchPanel(props, ref) {
131
131
  annualNum: annualNum,
132
132
  userIds: searchType == 'user' ? rootId : '',
133
133
  departmentIds: searchType == 'depart' ? rootId : '',
134
+ haveSubDept: false,
135
+ onlyThisDept: true,
136
+ // 地图中不显示子部门
134
137
  groupIds: searchType == 'group' ? rootId : '',
135
138
  orderType: 2,
136
139
  // 排序
@@ -30,8 +30,8 @@
30
30
 
31
31
  .titaui-rich-editor-at-avatar__delete-wrapper {
32
32
  position: absolute;
33
- top: -4px;
34
- right: 0;
33
+ top: -2px;
34
+ right: -2px;
35
35
  z-index: 1;
36
36
  width: 20px;
37
37
  height: 20px;
@@ -46,7 +46,7 @@
46
46
 
47
47
  .titaui-rich-editor-at-avatar__delete-wrapper:hover {
48
48
  cursor: pointer;
49
- color: #f05e5e;
49
+ color: #fff;
50
50
  }
51
51
 
52
52
  .titaui-rich-editor-at-avatar--enter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.12.71",
3
+ "version": "1.12.74-beta.1",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",