@titaui/pc 1.9.39 → 1.9.40

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.
@@ -7,22 +7,20 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports["default"] = void 0;
9
9
 
10
- var _react = _interopRequireWildcard(require("react"));
10
+ var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
- var _bsGlobal = require("../../utils/bs-global");
12
+ var _react = _interopRequireWildcard(require("react"));
13
13
 
14
14
  var _openData = require("../../utils/open-data");
15
15
 
16
- var _styledComponents = _interopRequireDefault(require("styled-components"));
17
-
18
- var _templateObject;
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
+ require("./index.css");
21
17
 
22
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); }
23
19
 
24
20
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
21
 
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
26
24
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
25
 
28
26
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -43,10 +41,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
43
41
 
44
42
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
43
 
46
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
47
-
48
- var UserLink = _styledComponents["default"].a(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: 14px;\n font-weight: 600;\n color: #3F4755;\n line-height: 22px;\n\n &:hover {\n color: #2879ff;\n }\n"])));
49
-
50
44
  var ConvertUserName = /*#__PURE__*/function (_PureComponent) {
51
45
  _inherits(ConvertUserName, _PureComponent);
52
46
 
@@ -67,11 +61,11 @@ var ConvertUserName = /*#__PURE__*/function (_PureComponent) {
67
61
  className = _this$props.className;
68
62
 
69
63
  if (userId) {
70
- var iframeBoxUrl = "".concat((0, _bsGlobal.getBSGlobal)('apiPath'), "/u/").concat((0, _bsGlobal.getUserInfo)().Id, "/Home#");
71
- return /*#__PURE__*/_react["default"].createElement(UserLink, {
72
- className: className,
73
- target: "_blank",
74
- href: "".concat(iframeBoxUrl).concat(encodeURIComponent("widget/italent?iTalentFrameType=iframe&iTalentFrame=&iTalentFrame=" + encodeURIComponent((0, _bsGlobal.getBSGlobal)('titaHost') + "/" + (0, _bsGlobal.getUserInfo)().Id + "/PageBuilderForEdit#/view?to_user_id=" + userId)))
64
+ // const iframeBoxUrl = `${getBSGlobal('apiPath')}/u/${getUserInfo().Id}/Home#`;
65
+ return /*#__PURE__*/_react["default"].createElement("a", {
66
+ className: (0, _classnames["default"])(className, "titaui-communication__communication-content__user-link"),
67
+ target: "_blank" // href={`${iframeBoxUrl}${encodeURIComponent("widget/italent?iTalentFrameType=iframe&iTalentFrame=&iTalentFrame=" + encodeURIComponent(getBSGlobal('titaHost') + "/" + getUserInfo().Id + "/PageBuilderForEdit#/view?to_user_id=" + userId))}`}
68
+
75
69
  }, /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
76
70
  name: userName,
77
71
  id: userId
@@ -26,6 +26,17 @@
26
26
  vertical-align: text-bottom;
27
27
  }
28
28
 
29
+ .titaui-communication__communication-content__user-link {
30
+ font-size: 14px;
31
+ font-weight: 600;
32
+ color: #3F4755;
33
+ line-height: 22px;
34
+ }
35
+
36
+ .titaui-communication__communication-content__user-link:hover {
37
+ color: #2879ff;
38
+ }
39
+
29
40
  .titaui-communication__communication-content a {
30
41
  color: #2879ff;
31
42
  }
@@ -1,16 +1 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>对号</title>
4
- <g id="创建OKR" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
- <g id="目标实时校验" transform="translate(-1015.000000, -384.000000)" fill-rule="nonzero">
6
- <g id="单行" transform="translate(976.000000, 129.000000)">
7
- <g id="编组-12" transform="translate(23.000000, 225.000000)">
8
- <g id="对号" transform="translate(16.000000, 30.000000)">
9
- <rect id="矩形" fill="#000000" opacity="0" x="0" y="0" width="10" height="10"></rect>
10
- <path d="M0.633865976,4.59654663 L3.04772746,6.45071008 C3.04772746,6.45071008 3.18087497,6.51691307 3.34730936,6.45071008 L9.29070556,1.51474948 C9.29070556,1.51474948 10.1376717,1.33516988 9.98056404,2.22923006 C9.40729003,2.80858618 3.56375447,8.40433792 3.56375447,8.40433792 C3.56375447,8.40433792 3.18087497,8.6195776 2.8145585,8.40433792 C2.44856365,8.04006157 0.00173690497,5.37467163 0.00173690497,5.37467163 C0.00173690497,5.37467163 -0.0653192697,4.72911252 0.633865976,4.59654663 Z" id="路径" fill="#5AD8A6"></path>
11
- </g>
12
- </g>
13
- </g>
14
- </g>
15
- </g>
16
- </svg>
1
+ <svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M4.634 8.597l2.414 1.854s.133.066.3 0l5.943-4.936s.847-.18.69.714c-.574.58-6.417 6.175-6.417 6.175s-.383.216-.75 0c-.365-.364-2.812-3.03-2.812-3.03s-.067-.645.632-.777z" fill="#5AD8A6" fill-rule="nonzero"/></svg>
@@ -1,29 +1 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>不建议</title>
4
- <defs>
5
- <circle id="path-1" cx="8" cy="8" r="4"></circle>
6
- <filter x="-78.1%" y="-78.1%" width="256.2%" height="256.2%" filterUnits="objectBoundingBox" id="filter-2">
7
- <feMorphology radius="0.25" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>
8
- <feOffset dx="0" dy="0" in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>
9
- <feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
10
- <feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"></feComposite>
11
- <feColorMatrix values="0 0 0 0 0.964705882 0 0 0 0 0.741176471 0 0 0 0 0.0862745098 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
12
- </filter>
13
- </defs>
14
- <g id="创建OKR" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
15
- <g id="激活-关键成果" transform="translate(-1011.000000, -466.000000)">
16
- <g id="单行" transform="translate(976.000000, 129.000000)">
17
- <g id="编组-12" transform="translate(23.000000, 267.000000)">
18
- <g id="不建议" transform="translate(13.000000, 71.000000)">
19
- <circle id="椭圆形" fill="#F6BD16" opacity="0.08" cx="8" cy="8" r="8"></circle>
20
- <g id="椭圆形">
21
- <use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
22
- <use stroke="#FFFFFF" stroke-width="0.5" fill="#F6BD16" fill-rule="evenodd" xlink:href="#path-1"></use>
23
- </g>
24
- </g>
25
- </g>
26
- </g>
27
- </g>
28
- </g>
29
- </svg>
1
+ <svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M9 8.317l3.246-3.246a.242.242 0 0 1 .342 0l.341.341a.242.242 0 0 1 0 .342L9.683 9l3.246 3.246a.242.242 0 0 1 0 .342l-.341.341a.242.242 0 0 1-.342 0L9 9.683 5.754 12.93a.242.242 0 0 1-.342 0l-.341-.341a.242.242 0 0 1 0-.342L8.317 9 5.07 5.754a.242.242 0 0 1 0-.342l.341-.341a.242.242 0 0 1 .342 0L9 8.317z" fill="#F05E5E" fill-rule="nonzero"/></svg>
@@ -6,11 +6,11 @@
6
6
  display: flex;
7
7
  justify-content: center;
8
8
  align-items: center;
9
- z-index: 1299 !important;
9
+ z-index: 1299;
10
10
  }
11
11
 
12
12
  .rc-dialog-mask {
13
- z-index: 1299 !important;
13
+ z-index: 1299;
14
14
  background: rgba(20, 28, 40, 0.7) !important;
15
15
  }
16
16
 
@@ -88,7 +88,9 @@ var KeywordSearch = function KeywordSearch(props) {
88
88
 
89
89
  setKeyword('');
90
90
  inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
91
- handleSearch();
91
+ onSearch && onSearch({
92
+ keyWords: ''
93
+ });
92
94
  };
93
95
 
94
96
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -142,8 +142,12 @@ var OScore = function OScore(props) {
142
142
  onClose: handleCancel,
143
143
  onOk: handleOk,
144
144
  onCancel: handleCancel,
145
+ getContainer: function getContainer() {
146
+ return document.body;
147
+ },
145
148
  noHeadLine: true,
146
- noFooterLine: true
149
+ noFooterLine: true,
150
+ zIndex: 1310
147
151
  }, /*#__PURE__*/_react["default"].createElement("div", {
148
152
  ref: formContainerRef,
149
153
  className: "".concat(preCls, "__form")
@@ -195,7 +195,7 @@ function OkrDetailHeader(_ref) {
195
195
  switch (_context3.prev = _context3.next) {
196
196
  case 0:
197
197
  _context3.next = 2;
198
- return (0, _confirm["default"])(follow ? (0, _getLocale.getLocale)('OKR_MyO_Err_Focuson') : (0, _getLocale.getLocale)('OKR_MyO_Err_Unfollow'), follow ? "关注后进展信息将推送到 “动态” 下" : (0, _getLocale.getLocale)('OKR_MyO_Err_Progress'));
198
+ return (0, _confirm["default"])(follow ? (0, _getLocale.getLocale)('OKR_MyO_Err_Focuson') : (0, _getLocale.getLocale)('OKR_MyO_Err_Unfollow'), follow ? (0, _getLocale.getLocale)('OKR_MyO_Err_Payatten') : (0, _getLocale.getLocale)('OKR_MyO_Err_Progress'));
199
199
 
200
200
  case 2:
201
201
  res = _context3.sent;
@@ -45,8 +45,9 @@ function _getInstance() {
45
45
  'style': {
46
46
  'top': '36px',
47
47
  'left': '50%',
48
- 'position': 'absolute' // 'transform': 'translate(-50%, 0)'
49
-
48
+ 'position': 'absolute',
49
+ // 'transform': 'translate(-50%, 0)'
50
+ 'borderRadius': 12
50
51
  },
51
52
  'maxCount': 1,
52
53
  'className': 'document-mouse-event-ignore',
@@ -62,7 +62,7 @@ var ContentTemplate = function ContentTemplate(props) {
62
62
 
63
63
  var PageLayout = function PageLayout(props) {
64
64
  var children = props.children;
65
- var isTrial = window.BSGlobal.tenantAuthentication.Version !== 1 && (0, _platform.isOfficialSite)();
65
+ var isTrial = window.BSGlobal.tenantAuthentication.Version == 1 && (0, _platform.isOfficialSite)();
66
66
  var isTencentHr = window.BSGlobal.tenantInfo.Source == 964;
67
67
 
68
68
  var onClickKefu = function onClickKefu() {
@@ -212,9 +212,10 @@ var LikeRanking = function LikeRanking() {
212
212
  };
213
213
 
214
214
  var handleLinkToPraiseRaking = function handleLinkToPraiseRaking() {
215
- window.history.go(-1); // let href = window.location.href;
216
- // let url = `${href.split("#")[0]}#dynamic`;
217
- // window.open(url, "self");
215
+ // window.history.go(-1)
216
+ var href = window.location.href;
217
+ var url = "".concat(href.split("#")[0], "#dynamic");
218
+ window.open(url, "self");
218
219
  };
219
220
 
220
221
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -21,7 +21,7 @@ var _requestApis = require("../request-apis");
21
21
 
22
22
  var _getLocale = require("../../../utils/getLocale");
23
23
 
24
- var _toast = _interopRequireDefault(require("@titaui/toast"));
24
+ var _toast = _interopRequireDefault(require("../../../components/toast"));
25
25
 
26
26
  require("./index.css");
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.9.39",
3
+ "version": "1.9.40",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -1,36 +1,33 @@
1
- import React, { PureComponent } from 'react'
2
- import { getBSGlobal, getUserInfo } from '../../utils/bs-global'
3
- import { OpenUserName } from '../../utils/open-data'
4
- import styled from 'styled-components'
5
-
1
+ import classNames from "classnames";
2
+ import React, { PureComponent } from "react";
3
+ import { OpenUserName } from "../../utils/open-data";
4
+ import "./index.scss";
6
5
  interface Props {
7
- className?: string
8
- userName: string
9
- userId?: number
6
+ className?: string;
7
+ userName: string;
8
+ userId?: number;
10
9
  }
11
10
 
12
- const UserLink = styled.a`
13
- font-size: 14px;
14
- font-weight: 600;
15
- color: #3F4755;
16
- line-height: 22px;
17
-
18
- &:hover {
19
- color: #2879ff;
20
- }
21
- `
22
-
23
11
  export default class ConvertUserName extends PureComponent<Props> {
24
12
  render() {
25
- const { userName, userId, className } = this.props
13
+ const { userName, userId, className } = this.props;
26
14
  if (userId) {
27
- const iframeBoxUrl = `${getBSGlobal('apiPath')}/u/${getUserInfo().Id}/Home#`;
15
+ // const iframeBoxUrl = `${getBSGlobal('apiPath')}/u/${getUserInfo().Id}/Home#`;
28
16
  return (
29
- <UserLink className={className} target="_blank" href={`${iframeBoxUrl}${encodeURIComponent("widget/italent?iTalentFrameType=iframe&iTalentFrame=&iTalentFrame=" + encodeURIComponent(getBSGlobal('titaHost') + "/" + getUserInfo().Id + "/PageBuilderForEdit#/view?to_user_id=" + userId))}`}>
30
- <span><OpenUserName name={userName} id={userId} /></span>
31
- </UserLink>
32
- )
17
+ <a
18
+ className={classNames(
19
+ className,
20
+ "titaui-communication__communication-content__user-link"
21
+ )}
22
+ target="_blank"
23
+ // href={`${iframeBoxUrl}${encodeURIComponent("widget/italent?iTalentFrameType=iframe&iTalentFrame=&iTalentFrame=" + encodeURIComponent(getBSGlobal('titaHost') + "/" + getUserInfo().Id + "/PageBuilderForEdit#/view?to_user_id=" + userId))}`}
24
+ >
25
+ <span>
26
+ <OpenUserName name={userName} id={userId} />
27
+ </span>
28
+ </a>
29
+ );
33
30
  }
34
- return <span className={className}>{userName}</span>
31
+ return <span className={className}>{userName}</span>;
35
32
  }
36
33
  }
@@ -22,6 +22,16 @@
22
22
  img {
23
23
  vertical-align: text-bottom;
24
24
  }
25
+ &__user-link {
26
+ font-size: 14px;
27
+ font-weight: 600;
28
+ color: #3F4755;
29
+ line-height: 22px;
30
+
31
+ &:hover {
32
+ color: #2879ff;
33
+ }
34
+ }
25
35
  a {
26
36
  color: #2879ff;
27
37
  &:hover {
@@ -1,16 +1 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>对号</title>
4
- <g id="创建OKR" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
- <g id="目标实时校验" transform="translate(-1015.000000, -384.000000)" fill-rule="nonzero">
6
- <g id="单行" transform="translate(976.000000, 129.000000)">
7
- <g id="编组-12" transform="translate(23.000000, 225.000000)">
8
- <g id="对号" transform="translate(16.000000, 30.000000)">
9
- <rect id="矩形" fill="#000000" opacity="0" x="0" y="0" width="10" height="10"></rect>
10
- <path d="M0.633865976,4.59654663 L3.04772746,6.45071008 C3.04772746,6.45071008 3.18087497,6.51691307 3.34730936,6.45071008 L9.29070556,1.51474948 C9.29070556,1.51474948 10.1376717,1.33516988 9.98056404,2.22923006 C9.40729003,2.80858618 3.56375447,8.40433792 3.56375447,8.40433792 C3.56375447,8.40433792 3.18087497,8.6195776 2.8145585,8.40433792 C2.44856365,8.04006157 0.00173690497,5.37467163 0.00173690497,5.37467163 C0.00173690497,5.37467163 -0.0653192697,4.72911252 0.633865976,4.59654663 Z" id="路径" fill="#5AD8A6"></path>
11
- </g>
12
- </g>
13
- </g>
14
- </g>
15
- </g>
16
- </svg>
1
+ <svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M4.634 8.597l2.414 1.854s.133.066.3 0l5.943-4.936s.847-.18.69.714c-.574.58-6.417 6.175-6.417 6.175s-.383.216-.75 0c-.365-.364-2.812-3.03-2.812-3.03s-.067-.645.632-.777z" fill="#5AD8A6" fill-rule="nonzero"/></svg>
@@ -1,29 +1 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>不建议</title>
4
- <defs>
5
- <circle id="path-1" cx="8" cy="8" r="4"></circle>
6
- <filter x="-78.1%" y="-78.1%" width="256.2%" height="256.2%" filterUnits="objectBoundingBox" id="filter-2">
7
- <feMorphology radius="0.25" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>
8
- <feOffset dx="0" dy="0" in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>
9
- <feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
10
- <feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"></feComposite>
11
- <feColorMatrix values="0 0 0 0 0.964705882 0 0 0 0 0.741176471 0 0 0 0 0.0862745098 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
12
- </filter>
13
- </defs>
14
- <g id="创建OKR" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
15
- <g id="激活-关键成果" transform="translate(-1011.000000, -466.000000)">
16
- <g id="单行" transform="translate(976.000000, 129.000000)">
17
- <g id="编组-12" transform="translate(23.000000, 267.000000)">
18
- <g id="不建议" transform="translate(13.000000, 71.000000)">
19
- <circle id="椭圆形" fill="#F6BD16" opacity="0.08" cx="8" cy="8" r="8"></circle>
20
- <g id="椭圆形">
21
- <use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
22
- <use stroke="#FFFFFF" stroke-width="0.5" fill="#F6BD16" fill-rule="evenodd" xlink:href="#path-1"></use>
23
- </g>
24
- </g>
25
- </g>
26
- </g>
27
- </g>
28
- </g>
29
- </svg>
1
+ <svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M9 8.317l3.246-3.246a.242.242 0 0 1 .342 0l.341.341a.242.242 0 0 1 0 .342L9.683 9l3.246 3.246a.242.242 0 0 1 0 .342l-.341.341a.242.242 0 0 1-.342 0L9 9.683 5.754 12.93a.242.242 0 0 1-.342 0l-.341-.341a.242.242 0 0 1 0-.342L8.317 9 5.07 5.754a.242.242 0 0 1 0-.342l.341-.341a.242.242 0 0 1 .342 0L9 8.317z" fill="#F05E5E" fill-rule="nonzero"/></svg>
@@ -15,11 +15,11 @@ Microsoft YaHei;
15
15
  display: flex;
16
16
  justify-content: center;
17
17
  align-items: center;
18
- z-index: 1299 !important;
18
+ z-index: 1299;
19
19
  }
20
20
 
21
21
  .rc-dialog-mask {
22
- z-index: 1299 !important;
22
+ z-index: 1299;
23
23
  background: rgba(20, 28, 40, 0.7) !important;
24
24
  }
25
25
 
@@ -41,7 +41,7 @@ const KeywordSearch = (props: IProps) => {;
41
41
  const clearKeyword = (e) =>{
42
42
  setKeyword('');
43
43
  inputRef?.current?.focus();
44
- handleSearch();
44
+ onSearch && onSearch({keyWords: ''});
45
45
  };
46
46
 
47
47
  return <div className={classnames(precls, {[`${precls}--active`]: active})}>
@@ -91,8 +91,10 @@ const OScore = (props: IOScoreProps) => {
91
91
  onClose={handleCancel}
92
92
  onOk={handleOk}
93
93
  onCancel={handleCancel}
94
+ getContainer={() => document.body}
94
95
  noHeadLine
95
96
  noFooterLine
97
+ zIndex={1310}
96
98
  >
97
99
  <div ref={formContainerRef} className={`${preCls}__form`}>
98
100
  <Form
@@ -96,7 +96,7 @@ function OkrDetailHeader({ detailInfo }: Props): ReactElement {
96
96
  const res = await openOkrHeaderConfirm(
97
97
  follow ? getLocale('OKR_MyO_Err_Focuson') : getLocale('OKR_MyO_Err_Unfollow'),
98
98
  follow
99
- ? "关注后进展信息将推送到 “动态” 下"
99
+ ? getLocale('OKR_MyO_Err_Payatten')
100
100
  : getLocale('OKR_MyO_Err_Progress')
101
101
  );
102
102
  if (res) {
@@ -16,6 +16,7 @@ async function getInstance() {
16
16
  'left': '50%',
17
17
  'position': 'absolute',
18
18
  // 'transform': 'translate(-50%, 0)'
19
+ 'borderRadius': 12
19
20
  },
20
21
  'maxCount': 1,
21
22
  'className': 'document-mouse-event-ignore',
@@ -41,7 +41,7 @@ const PageLayout = (props) => {
41
41
  const { children } = props;
42
42
 
43
43
  const isTrial =
44
- window.BSGlobal.tenantAuthentication.Version !== 1 && isOfficialSite();
44
+ window.BSGlobal.tenantAuthentication.Version == 1 && isOfficialSite();
45
45
  const isTencentHr = window.BSGlobal.tenantInfo.Source == 964;
46
46
 
47
47
  const onClickKefu = () => {
@@ -144,10 +144,10 @@ const LikeRanking: FC = () => {
144
144
  };
145
145
 
146
146
  const handleLinkToPraiseRaking = () => {
147
- window.history.go(-1)
148
- // let href = window.location.href;
149
- // let url = `${href.split("#")[0]}#dynamic`;
150
- // window.open(url, "self");
147
+ // window.history.go(-1)
148
+ let href = window.location.href;
149
+ let url = `${href.split("#")[0]}#dynamic`;
150
+ window.open(url, "self");
151
151
  };
152
152
 
153
153
  return (
@@ -5,7 +5,7 @@ import Dialog from '../../../components/dialog';
5
5
  import preCls from '../precls';
6
6
  import { getShareUrl } from '../request-apis';
7
7
  import { getLocale } from '../../../utils/getLocale';
8
- import Toast from '@titaui/toast';
8
+ import Toast from '../../../components/toast';
9
9
 
10
10
  import './index.scss';
11
11