@titaui/pc 1.15.89 → 1.15.90-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.
- package/lib/components/avatar/name-avatar/index.css +1 -1
- package/lib/components/avatar/text-avatar/index.css +1 -1
- package/lib/components/book-demo/components/pc/components/content/index.js +8 -6
- package/lib/components/book-demo/components/pc/index.js +22 -18
- package/lib/components/book-demo/constant.js +115 -0
- package/lib/components/book-demo/interface.js +1 -0
- package/lib/components/change-okr-modal/Filter.js +3 -1
- package/lib/components/change-okr-modal/Item.js +3 -1
- package/lib/components/common-share/publishMblog.js +3 -1
- package/lib/components/common-share/request-apis.js +4 -2
- package/lib/components/communication/style.js +1 -1
- package/lib/components/confidence/index.css +4 -4
- package/lib/components/create-okr-modal/fields/index.css +6 -6
- package/lib/components/create-okr-modal/fields/okr-classify.js +3 -1
- package/lib/components/create-okr-modal/fields/okr-new-user-selector.js +4 -1
- package/lib/components/create-okr-modal/fields/okr-type.js +3 -1
- package/lib/components/create-okr-modal/index.css +6 -6
- package/lib/components/create-okr-modal/index.js +3 -1
- package/lib/components/create-okr-modal/kr-items/index.css +3 -3
- package/lib/components/create-okr-modal/request-api.js +4 -2
- package/lib/components/create-okr-modal/utils/helper.js +3 -1
- package/lib/components/dialog/index.css +2 -2
- package/lib/components/dialog-confirm/index.css +5 -5
- package/lib/components/dialog-confirm/index.js +3 -1
- package/lib/components/dynamic/components/comments-dialog/api.js +4 -2
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +11 -6
- package/lib/components/dynamic/dynamic-item/components/schedule/index.css +8 -0
- package/lib/components/dynamic/dynamic-item/components/schedule/index.js +34 -7
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +0 -1
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/utils.js +2 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +3 -2
- package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +8 -2
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-discovery/dynamic-footer.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/index.js +4 -2
- package/lib/components/dynamic/dynamic-list/index.css +1 -1
- package/lib/components/dynamic/request-api.js +3 -1
- package/lib/components/e-priority/index.css +4 -4
- package/lib/components/eReport/eReportListEmpty.js +1 -1
- package/lib/components/eReport/eReportLists/style.js +2 -2
- package/lib/components/eReport/eReportShare/index.js +3 -1
- package/lib/components/edit-kr-wight/style/index.js +5 -5
- package/lib/components/emotions-selector/style.js +1 -1
- package/lib/components/ereport-list/style.js +2 -2
- package/lib/components/file-list/index.css +1 -1
- package/lib/components/form/form-fields/cycle/index.css +1 -1
- package/lib/components/form/form-fields/department/index.css +2 -2
- package/lib/components/form/form-fields/dropdown/index.js +2 -2
- package/lib/components/form/form-fields/duties/index.css +2 -2
- package/lib/components/form/form-fields/input/index.css +6 -2
- package/lib/components/form/form-fields/input/index.js +9 -7
- package/lib/components/form/form-fields/input-verification-code/index.css +2 -2
- package/lib/components/form/form-fields/password/index.css +2 -2
- package/lib/components/form/form-fields/textarea/index.css +2 -2
- package/lib/components/form/form-fields/user/index.css +2 -2
- package/lib/components/grid-layout/commen-components/index.css +1 -1
- package/lib/components/grid-layout/personal-info/index.js +4 -4
- package/lib/components/grid-layout/sub-employee-okr/index.js +3 -1
- package/lib/components/grid-layout/util/network.js +4 -2
- package/lib/components/grid-page/personal-info/index.js +4 -4
- package/lib/components/guide-tip/index.js +4 -1
- package/lib/components/help-card/index.js +3 -1
- package/lib/components/help-card/request-api.js +4 -2
- package/lib/components/hr-header/index.js +4 -2
- package/lib/components/img-viewer/index.css +1 -1
- package/lib/components/import-modal/helper.js +1 -1
- package/lib/components/import-modal/request-api.js +6 -2
- package/lib/components/import-modal/search/search-dropdown/index.css +1 -1
- package/lib/components/import-modal/tree/okr-tree/search-form.js +2 -2
- package/lib/components/import-modal/tree/task-work-tree/index.js +3 -1
- package/lib/components/import-modal/tree-node/kr-node/index.css +1 -1
- package/lib/components/import-modal/tree-node/milestone-node/index.css +1 -1
- package/lib/components/import-modal/tree-node/work-node/index.js +3 -1
- package/lib/components/magnet/index.js +5 -0
- package/lib/components/mblog/index.js +3 -1
- package/lib/components/menus/components/menu-card/index.js +3 -1
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +7 -5
- package/lib/components/menus/export-modules/okr-menus/menus.js +3 -1
- package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +3 -1
- package/lib/components/menus/export-modules/research-menu/index.css +9 -0
- package/lib/components/menus/export-modules/research-menu/index.js +120 -0
- package/lib/components/menus/export-modules/research-menu/menu-highlight.js +44 -0
- package/lib/components/menus/export-modules/research-menu/menus.js +78 -0
- package/lib/components/menus/export-modules/research-menu/research-front-menus.js +158 -0
- package/lib/components/menus/export-modules/skynet-dashboard-menu/index.css +9 -0
- package/lib/components/menus/export-modules/skynet-dashboard-menu/index.js +120 -0
- package/lib/components/menus/export-modules/skynet-dashboard-menu/menu-highlight.js +52 -0
- package/lib/components/menus/export-modules/skynet-dashboard-menu/menus.js +80 -0
- package/lib/components/menus/export-modules/skynet-dashboard-menu/request-api.js +5 -0
- package/lib/components/menus/export-modules/skynet-dashboard-menu/survey-front-menus.js +178 -0
- package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +8 -0
- package/lib/components/menus/export-modules/summary-menus/menus.js +13 -2
- package/lib/components/menus/export-modules/summary-menus/request-api.js +8 -2
- package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.js +3 -1
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +30 -8
- package/lib/components/menus/i18n.js +1 -0
- package/lib/components/menus/index.js +12 -0
- package/lib/components/menus/request-apis.js +4 -2
- package/lib/components/nav-top/components/app-center/images/research.png +0 -0
- package/lib/components/nav-top/components/app-center/index.css +11 -3
- package/lib/components/nav-top/components/app-center/index.js +13 -5
- package/lib/components/nav-top/components/menu/index.css +1 -1
- package/lib/components/nav-top/index.css +1 -1
- package/lib/components/nav-top/index.js +21 -11
- package/lib/components/nav-top/request.apis.js +6 -5
- package/lib/components/nav-top/utils.js +1 -1
- package/lib/components/okr-detail/base-info/base-info.css +1 -1
- package/lib/components/okr-detail/base-info/base-info.js +11 -15
- package/lib/components/okr-detail/base-info/other-infos/classify/index.css +1 -1
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.css +2 -2
- package/lib/components/okr-detail/base-info/other-infos/okr-type/index.css +1 -1
- package/lib/components/okr-detail/base-info/other-infos/principal/index.css +1 -1
- package/lib/components/okr-detail/base-info/other-infos/visibility/index.css +1 -1
- package/lib/components/okr-detail/components/ao-nice/index.css +1 -1
- package/lib/components/okr-detail/components/editable-input/index.css +1 -1
- package/lib/components/okr-detail/components/header/index.css +7 -7
- package/lib/components/okr-detail/components/icon-text/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +4 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +7 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.css +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.css +1 -1
- package/lib/components/okr-detail/components/score/index.css +1 -1
- package/lib/components/okr-detail/detail-footer/index.js +3 -1
- package/lib/components/okr-detail/detail-header/actions.js +3 -3
- package/lib/components/okr-detail/detail-header/index.js +3 -1
- package/lib/components/okr-detail/e-list/search-form/index.css +2 -2
- package/lib/components/okr-detail/index.js +6 -2
- package/lib/components/okr-detail/okr-list/empty/index.css +2 -2
- package/lib/components/okr-detail/okr-list/index.css +4 -4
- package/lib/components/okr-detail/request-apis.js +3 -1
- package/lib/components/okr-detail/schedule/components/detail-title/index.css +1 -1
- package/lib/components/okr-detail/schedule/components/kr-progress/index.css +2 -2
- package/lib/components/okr-detail/schedule/components/o-progress/index.css +7 -7
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +6 -2
- package/lib/components/okr-detail/schedule/components/sub-o-progress/index.css +1 -1
- package/lib/components/okr-detail/schedule/components/title/index.css +1 -1
- package/lib/components/okr-detail/schedule/util.js +3 -1
- package/lib/components/okr-excel/setting.js +6 -4
- package/lib/components/okr-filter-drawer/filter-form.js +3 -1
- package/lib/components/okr-flow/child-node/index.css +2 -2
- package/lib/components/okr-flow/empty/index.css +1 -1
- package/lib/components/okr-flow/open-data/index.js +3 -1
- package/lib/components/okr-flow/request-apis.js +4 -2
- package/lib/components/okr-flow/utils/config.js +7 -3
- package/lib/components/okr-guide/index.css +15 -17
- package/lib/components/okr-guide/index.js +3 -1
- package/lib/components/okr-progress/components/detail-title/index.css +1 -1
- package/lib/components/okr-progress/components/kr-progress/index.css +2 -2
- package/lib/components/okr-progress/components/o-progress/index.css +7 -7
- package/lib/components/okr-progress/components/o-progress/index.js +6 -2
- package/lib/components/okr-progress/components/sub-o-progress/index.css +1 -1
- package/lib/components/okr-progress/components/title/index.css +1 -1
- package/lib/components/okr-progress/util.js +3 -1
- package/lib/components/okr-progress-detail/index.css +1 -1
- package/lib/components/okr-progress-modal/index.css +2 -2
- package/lib/components/okr-progress-modal/request-apis.js +4 -2
- package/lib/components/okr-review/common.js +1 -1
- package/lib/components/okr-share/publishMblog.js +3 -1
- package/lib/components/okr-share/request-apis.js +4 -2
- package/lib/components/okrcase-library/index.css +1 -1
- package/lib/components/okrcase-library/index.js +3 -1
- package/lib/components/operation-records/index.js +56 -8
- package/lib/components/order-have-award/index.js +6 -2
- package/lib/components/part-notice/index.js +5 -1
- package/lib/components/password-input/index.css +1 -1
- package/lib/components/period-selector/helper/index.js +3 -1
- package/lib/components/photo-card/components/card/index.css +3 -3
- package/lib/components/photo-card/index.css +1 -1
- package/lib/components/point-demo/index.js +9 -7
- package/lib/components/point-demo/point-demo.js +5 -3
- package/lib/components/promise-confirm/index.js +3 -2
- package/lib/components/search-dropdown/index.css +1 -1
- package/lib/components/select-layer/index.css +1 -1
- package/lib/components/select-tags/index.js +5 -3
- package/lib/components/status-time/index.css +1 -1
- package/lib/components/stop-taking-modal/index.js +3 -1
- package/lib/components/superset-charts/utils/axios.js +4 -2
- package/lib/components/survey-model/index.js +7 -7
- package/lib/components/survey-model/instance.js +4 -2
- package/lib/components/switch/index.css +1 -1
- package/lib/components/tabs/index.css +1 -1
- package/lib/components/task-relation-modal/helper.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +2 -2
- package/lib/components/task-relation-modal/okr-relation/request-api.js +3 -1
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.js +3 -1
- package/lib/components/task-relation-modal/request-api.js +3 -1
- package/lib/components/task-relation-modal/search/search-dropdown/index.css +1 -1
- package/lib/components/task-relation-modal/tree/category-tree/index.css +3 -3
- package/lib/components/task-relation-modal/tree/okr-tree/index.css +2 -2
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +3 -1
- package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +2 -2
- package/lib/components/task-relation-modal/tree/work-list/search-form.js +2 -2
- package/lib/components/task-relation-modal/tree/work-tree/index.css +2 -2
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +2 -2
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +1 -1
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +1 -1
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +1 -1
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +3 -1
- package/lib/components/task-tree/task-item-node/index.css +5 -5
- package/lib/components/textarea/index.js +4 -2
- package/lib/components/tooltip/index.css +1 -1
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upvote/request-apis.js +4 -2
- package/lib/components/user-selector/empty/group.js +4 -2
- package/lib/components/user-selector/request-apis.js +4 -2
- package/lib/components/version-change-modal/index.css +2 -2
- package/lib/components/version-change-modal/index.js +6 -2
- package/lib/components/video-modal/index.js +3 -1
- package/lib/components/weekly-report/card.js +9 -9
- package/lib/components/word-cloud/request-apis.js +4 -2
- package/lib/index.js +8 -0
- package/lib/pages/aha2021/index.js +9 -9
- package/lib/pages/appointment-demo/drop-down-box/index.css +1 -1
- package/lib/pages/appointment-demo/input/index.css +1 -1
- package/lib/pages/group-management/components/input-form/index.css +1 -1
- package/lib/pages/group-management/components/openData/index.js +9 -3
- package/lib/pages/group-management/groupInterface.js +10 -4
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +5 -3
- package/lib/pages/group-management/page-view/index.css +1 -1
- package/lib/pages/like-ranking/index.js +3 -1
- package/lib/pages/new-okr-list/header/index.js +10 -4
- package/lib/pages/new-okr-list/index.js +2 -41
- package/lib/pages/okr-map/export-modules/okr-map/header/index.css +3 -3
- package/lib/pages/okr-map/export-modules/okr-map/index.css +1 -1
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +2 -2
- package/lib/pages/okr-map/export-modules/share-okr-page/index.css +1 -1
- package/lib/pages/okr-map/hooks/useStorage.js +3 -1
- package/lib/pages/okr-map/level2-search/index.css +1 -1
- package/lib/pages/okr-map/no-okr/index.css +1 -1
- package/lib/pages/okr-map/number-select/index.css +1 -1
- package/lib/pages/okr-map/open-data/index.js +3 -1
- package/lib/pages/okr-map/request-apis.js +4 -2
- package/lib/pages/okr-map/share-dialog/index.css +3 -3
- package/lib/pages/okr-map/unsupport-ie/index.css +1 -1
- package/lib/pages/okr-map/utils.js +10 -7
- package/lib/pages/personal-info/components/base-info/index.css +1 -1
- package/lib/pages/personal-info/components/person-photo/index.css +1 -1
- package/lib/utils/auth.js +22 -14
- package/lib/utils/bs-global.js +21 -8
- package/lib/utils/helpers.js +15 -5
- package/lib/utils/open-data.js +14 -6
- package/lib/utils/platform.js +15 -5
- package/lib/utils/request-v1.js +9 -3
- package/lib/utils/request.js +3 -3
- package/package.json +2 -3
|
@@ -89,6 +89,8 @@ function ContentTemplate(props) {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
function PageLayout(props) {
|
|
92
|
+
var _window$BSGlobal$tena, _window$BSGlobal$tena2, _getTenantInfo;
|
|
93
|
+
|
|
92
94
|
var children = props.children;
|
|
93
95
|
var hideNavTop = (0, _hooks["default"])('hideNavTop');
|
|
94
96
|
|
|
@@ -98,11 +100,13 @@ function PageLayout(props) {
|
|
|
98
100
|
_useState2 = _slicedToArray(_useState, 1),
|
|
99
101
|
isShowUpdateTip = _useState2[0];
|
|
100
102
|
|
|
101
|
-
var isTrial = window.BSGlobal.tenantAuthentication.Version === 1 && (0, _platform.isOfficialSite)();
|
|
102
|
-
var isTencentHr = window.BSGlobal.tenantInfo.Source === 964;
|
|
103
|
+
var isTrial = ((_window$BSGlobal$tena = window.BSGlobal.tenantAuthentication) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.Version) === 1 && (0, _platform.isOfficialSite)();
|
|
104
|
+
var isTencentHr = ((_window$BSGlobal$tena2 = window.BSGlobal.tenantInfo) === null || _window$BSGlobal$tena2 === void 0 ? void 0 : _window$BSGlobal$tena2.Source) === 964;
|
|
103
105
|
|
|
104
106
|
var getBookDemoVersion = function getBookDemoVersion() {
|
|
105
|
-
var
|
|
107
|
+
var _window$BSGlobal$tena3;
|
|
108
|
+
|
|
109
|
+
var menuVersion = (_window$BSGlobal$tena3 = window.BSGlobal.tenantAuthentication) === null || _window$BSGlobal$tena3 === void 0 ? void 0 : _window$BSGlobal$tena3.MenuVersion;
|
|
106
110
|
|
|
107
111
|
if (menuVersion === _interface.ETrialVersion.OKR) {
|
|
108
112
|
return _bookDemo["default"].DemoType.TryOKR;
|
|
@@ -117,13 +121,9 @@ function PageLayout(props) {
|
|
|
117
121
|
|
|
118
122
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
123
|
className: (0, _classnames["default"])(preCls)
|
|
120
|
-
},
|
|
121
|
-
className: "".concat(preCls, "__update-tip")
|
|
122
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
123
|
-
className: "tu-icon-tishi update-tip-icon"
|
|
124
|
-
}), "\u4EB2\u7231\u7684\u7528\u6237\u60A8\u597D\uFF0C\u300C\u603B\u7ED3\u300D\u5C06\u4E8E\u4ECA\u665A\u8FDB\u884C\u5347\u7EA7\uFF0C22:30 - 23:00 \u5C06\u6682\u65F6\u5173\u95ED\u603B\u7ED3\u6A21\u5757\uFF0C\u8BF7\u4E8E 8.25 22:00 - \u6B21\u65E5 7:00 \u6682\u505C\u603B\u7ED3\u7684\u7F16\u8F91\u4E0E\u63D0\u4EA4\u64CD\u4F5C\uFF0C\u611F\u8C22\u60A8\u7684\u7406\u89E3\u4E0E\u914D\u5408~"), hideNavTop !== 'true' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
|
+
}, hideNavTop !== 'true' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
125
|
className: (0, _classnames["default"])("".concat(preCls, "__header"))
|
|
126
|
-
}, (0, _helpers.getTenantInfo)().Source === 964 ? /*#__PURE__*/_react["default"].createElement(_hrHeader["default"], null) : /*#__PURE__*/_react["default"].createElement(_navTop["default"], null)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
|
+
}, ((_getTenantInfo = (0, _helpers.getTenantInfo)()) === null || _getTenantInfo === void 0 ? void 0 : _getTenantInfo.Source) === 964 ? /*#__PURE__*/_react["default"].createElement(_hrHeader["default"], null) : /*#__PURE__*/_react["default"].createElement(_navTop["default"], null)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
127
127
|
className: (0, _classnames["default"])("".concat(preCls, "__message"))
|
|
128
128
|
}, /*#__PURE__*/_react["default"].createElement(_followerVisitor["default"], null)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
129
|
className: (0, _classnames["default"])("".concat(preCls, "__body")),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.base-info-drop-down__layer {
|
|
2
|
-
font-family:
|
|
2
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.input-demo-box {
|
|
2
|
-
font-family:
|
|
2
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
5
5
|
|
|
@@ -54,7 +54,9 @@ var getGlobal = function getGlobal(key) {
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
var getSource = function getSource() {
|
|
57
|
-
|
|
57
|
+
var _getGlobal;
|
|
58
|
+
|
|
59
|
+
return ((_getGlobal = getGlobal("tenantInfo")) === null || _getGlobal === void 0 ? void 0 : _getGlobal.Source) || 0;
|
|
58
60
|
};
|
|
59
61
|
/**
|
|
60
62
|
* 用户浏览器 userAgent
|
|
@@ -214,8 +216,10 @@ var openDataMap = {
|
|
|
214
216
|
*/
|
|
215
217
|
|
|
216
218
|
var parseString = function parseString(str) {
|
|
219
|
+
var _window$BSGlobal$tena;
|
|
220
|
+
|
|
217
221
|
// @ts-ignore
|
|
218
|
-
var source = window.BSGlobal.tenantInfo.Source;
|
|
222
|
+
var source = (_window$BSGlobal$tena = window.BSGlobal.tenantInfo) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.Source;
|
|
219
223
|
var ua = navigator.userAgent.toLowerCase();
|
|
220
224
|
if (source != 860 && ua.indexOf("micromessenger") == -1) return /*#__PURE__*/_react["default"].createElement("span", {
|
|
221
225
|
dangerouslySetInnerHTML: {
|
|
@@ -264,8 +268,10 @@ var parseString = function parseString(str) {
|
|
|
264
268
|
exports.parseString = parseString;
|
|
265
269
|
|
|
266
270
|
var parseTag = function parseTag(str) {
|
|
271
|
+
var _window$BSGlobal$tena2;
|
|
272
|
+
|
|
267
273
|
// @ts-ignore
|
|
268
|
-
var source = window.BSGlobal.tenantInfo.Source;
|
|
274
|
+
var source = (_window$BSGlobal$tena2 = window.BSGlobal.tenantInfo) === null || _window$BSGlobal$tena2 === void 0 ? void 0 : _window$BSGlobal$tena2.Source;
|
|
269
275
|
var ua = navigator.userAgent.toLowerCase();
|
|
270
276
|
if (source != 860 && ua.indexOf("micromessenger") == -1) return /*#__PURE__*/_react["default"].createElement("span", {
|
|
271
277
|
dangerouslySetInnerHTML: {
|
|
@@ -21,6 +21,8 @@ exports.searchGroupStaffList = searchGroupStaffList;
|
|
|
21
21
|
exports.searchUserDetail = searchUserDetail;
|
|
22
22
|
exports.taker = taker;
|
|
23
23
|
|
|
24
|
+
var _BSGlobal$tenantInfo, _BSGlobal$loginUserIn;
|
|
25
|
+
|
|
24
26
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
25
27
|
|
|
26
28
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -33,8 +35,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
33
35
|
|
|
34
36
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
35
37
|
|
|
36
|
-
var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0;
|
|
37
|
-
var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
|
|
38
|
+
var tenantId = BSGlobal && ((_BSGlobal$tenantInfo = BSGlobal.tenantInfo) === null || _BSGlobal$tenantInfo === void 0 ? void 0 : _BSGlobal$tenantInfo.Id) || 0;
|
|
39
|
+
var userId = BSGlobal && ((_BSGlobal$loginUserIn = BSGlobal.loginUserInfo) === null || _BSGlobal$loginUserIn === void 0 ? void 0 : _BSGlobal$loginUserIn.Id) || 0;
|
|
38
40
|
|
|
39
41
|
function getTenantInfo() {
|
|
40
42
|
return BSGlobal && BSGlobal.tenantInfo;
|
|
@@ -281,7 +283,9 @@ function searchUserDetail(groupId) {
|
|
|
281
283
|
|
|
282
284
|
|
|
283
285
|
var isDingDing = function isDingDing() {
|
|
284
|
-
|
|
286
|
+
var _getTenantInfo;
|
|
287
|
+
|
|
288
|
+
return ((_getTenantInfo = getTenantInfo()) === null || _getTenantInfo === void 0 ? void 0 : _getTenantInfo.Source) == 861;
|
|
285
289
|
};
|
|
286
290
|
/*
|
|
287
291
|
* 判断是企业微信
|
|
@@ -291,7 +295,9 @@ var isDingDing = function isDingDing() {
|
|
|
291
295
|
exports.isDingDing = isDingDing;
|
|
292
296
|
|
|
293
297
|
var isWx = function isWx() {
|
|
294
|
-
|
|
298
|
+
var _getTenantInfo2;
|
|
299
|
+
|
|
300
|
+
return ((_getTenantInfo2 = getTenantInfo()) === null || _getTenantInfo2 === void 0 ? void 0 : _getTenantInfo2.Source) == 860;
|
|
295
301
|
};
|
|
296
302
|
|
|
297
303
|
exports.isWx = isWx;
|
|
@@ -48,10 +48,12 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
48
48
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
49
49
|
|
|
50
50
|
function _default(props) {
|
|
51
|
+
var _window$BSGlobal$tena;
|
|
52
|
+
|
|
51
53
|
var visible = props.visible,
|
|
52
54
|
setVisible = props.setVisible,
|
|
53
55
|
getGroup = props.getGroup;
|
|
54
|
-
var type = window.BSGlobal.tenantInfo.Source;
|
|
56
|
+
var type = (_window$BSGlobal$tena = window.BSGlobal.tenantInfo) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.Source;
|
|
55
57
|
var sourceType = type == 861 ? 861 : type == 860 ? 860 : 0;
|
|
56
58
|
|
|
57
59
|
var _useState = (0, _react.useState)([]),
|
|
@@ -78,7 +80,7 @@ function _default(props) {
|
|
|
78
80
|
}
|
|
79
81
|
});
|
|
80
82
|
}; // const biggerTenant = [366123, 366434, 217208]
|
|
81
|
-
// const size = biggerTenant.indexOf(window.BSGlobal.tenantInfo
|
|
83
|
+
// const size = biggerTenant.indexOf(window.BSGlobal.tenantInfo?.Id - 0) == -1 ? 50 : 100
|
|
82
84
|
|
|
83
85
|
|
|
84
86
|
var beforeUpload = function beforeUpload(file) {
|
|
@@ -140,7 +142,7 @@ function _default(props) {
|
|
|
140
142
|
_toast["default"].Error("请至少上传一个文件");
|
|
141
143
|
}
|
|
142
144
|
}; // 下载模板链接
|
|
143
|
-
// let type=window.BSGlobal.tenantInfo
|
|
145
|
+
// let type=window.BSGlobal.tenantInfo?.Source
|
|
144
146
|
// let sourceType = (type==861 ? 861 : type==860 ? 860 : 0)
|
|
145
147
|
// let sourceType = 861
|
|
146
148
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.user-group-page {
|
|
2
2
|
display: flex;
|
|
3
|
-
font-family:
|
|
3
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.user-group-page__page-groupEmpty .user-group-page__page-empty-box-text {
|
|
@@ -31,6 +31,8 @@ require("./index.css");
|
|
|
31
31
|
|
|
32
32
|
require("./new-ui.css");
|
|
33
33
|
|
|
34
|
+
var _window$BSGlobal$tena;
|
|
35
|
+
|
|
34
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
37
|
|
|
36
38
|
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); }
|
|
@@ -55,7 +57,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
55
57
|
|
|
56
58
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
57
59
|
|
|
58
|
-
var preCls = window.BSGlobal.tenantInfo.isNewIndex ? "titaui-new-ui-ranking-page" : "like-ranking-page";
|
|
60
|
+
var preCls = (_window$BSGlobal$tena = window.BSGlobal.tenantInfo) !== null && _window$BSGlobal$tena !== void 0 && _window$BSGlobal$tena.isNewIndex ? "titaui-new-ui-ranking-page" : "like-ranking-page";
|
|
59
61
|
var hasAuth = new _auth.DynamicManagerAuth();
|
|
60
62
|
|
|
61
63
|
var LikeRanking = function LikeRanking() {
|
|
@@ -88,11 +88,15 @@ var viewConfig = function viewConfig() {
|
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
var getTableTip = function getTableTip() {
|
|
91
|
-
|
|
91
|
+
var _window$BSGlobal$logi;
|
|
92
|
+
|
|
93
|
+
return !localStorage.getItem("OkrTableTypeTip_".concat((_window$BSGlobal$logi = window.BSGlobal.loginUserInfo) === null || _window$BSGlobal$logi === void 0 ? void 0 : _window$BSGlobal$logi.Id));
|
|
92
94
|
};
|
|
93
95
|
|
|
94
96
|
var setTableTip = function setTableTip() {
|
|
95
|
-
|
|
97
|
+
var _window$BSGlobal$logi2;
|
|
98
|
+
|
|
99
|
+
localStorage.setItem("OkrTableTypeTip_".concat((_window$BSGlobal$logi2 = window.BSGlobal.loginUserInfo) === null || _window$BSGlobal$logi2 === void 0 ? void 0 : _window$BSGlobal$logi2.Id), 'true');
|
|
96
100
|
};
|
|
97
101
|
|
|
98
102
|
var titaTracker = function titaTracker(type) {
|
|
@@ -222,15 +226,17 @@ function Header(props, ref) {
|
|
|
222
226
|
});
|
|
223
227
|
|
|
224
228
|
var gotoOkrMap = function gotoOkrMap() {
|
|
229
|
+
var _window$BSGlobal$tena, _window$BSGlobal$tena2;
|
|
230
|
+
|
|
225
231
|
var rootNode = {
|
|
226
232
|
rootId: 0,
|
|
227
233
|
// @ts-ignore
|
|
228
|
-
rootName: window.BSGlobal.tenantInfo.Name || ''
|
|
234
|
+
rootName: ((_window$BSGlobal$tena = window.BSGlobal.tenantInfo) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.Name) || ''
|
|
229
235
|
};
|
|
230
236
|
var level2Selected = {
|
|
231
237
|
id: 0,
|
|
232
238
|
// @ts-ignore
|
|
233
|
-
name: window.BSGlobal.tenantInfo.Name || ''
|
|
239
|
+
name: ((_window$BSGlobal$tena2 = window.BSGlobal.tenantInfo) === null || _window$BSGlobal$tena2 === void 0 ? void 0 : _window$BSGlobal$tena2.Name) || ''
|
|
234
240
|
};
|
|
235
241
|
var searchType = 'company';
|
|
236
242
|
|
|
@@ -43,8 +43,6 @@ var _context = require("./context");
|
|
|
43
43
|
|
|
44
44
|
var _precls = require("./precls");
|
|
45
45
|
|
|
46
|
-
var _getLocale = require("../../utils/getLocale");
|
|
47
|
-
|
|
48
46
|
require("./index.css");
|
|
49
47
|
|
|
50
48
|
require("./theme.css");
|
|
@@ -81,8 +79,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
81
79
|
|
|
82
80
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
83
81
|
|
|
84
|
-
var cacheViewType = localStorage.getItem('cacheViewType');
|
|
85
|
-
|
|
86
82
|
function getOkrExcelData(okrData) {
|
|
87
83
|
var okrExcelData = [];
|
|
88
84
|
okrData.forEach(function (okrInfo) {
|
|
@@ -196,7 +192,7 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
196
192
|
isInit = _useState14[0],
|
|
197
193
|
setIsInit = _useState14[1];
|
|
198
194
|
|
|
199
|
-
var _useState15 = (0, _react.useState)(cacheViewType || _header.ViewType.Card),
|
|
195
|
+
var _useState15 = (0, _react.useState)(localStorage.getItem('cacheViewType') || _header.ViewType.Card),
|
|
200
196
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
201
197
|
viewType = _useState16[0],
|
|
202
198
|
setViewType = _useState16[1];
|
|
@@ -333,36 +329,6 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
333
329
|
_toast["default"].Success('成功套用');
|
|
334
330
|
};
|
|
335
331
|
|
|
336
|
-
var triggerAnimation = function triggerAnimation() {
|
|
337
|
-
var _window$titaTracker, _window;
|
|
338
|
-
|
|
339
|
-
// @ts-ignore
|
|
340
|
-
document.querySelector('.tita-okr-list-v2').scrollTop = 0;
|
|
341
|
-
var twinkleEles = document.getElementsByClassName('okr-list__twinkle');
|
|
342
|
-
|
|
343
|
-
var _loop = function _loop(i) {
|
|
344
|
-
if (twinkleEles[i]) {
|
|
345
|
-
twinkleEles[i].classList.add('okr-list__twinkle--animation');
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
setTimeout(function () {
|
|
349
|
-
if (twinkleEles[i]) {
|
|
350
|
-
twinkleEles[i].classList.remove('okr-list__twinkle--animation');
|
|
351
|
-
}
|
|
352
|
-
}, 3000);
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
for (var i = 0; i < twinkleEles.length; i += 1) {
|
|
356
|
-
_loop(i);
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
(_window$titaTracker = (_window = window).titaTracker) === null || _window$titaTracker === void 0 ? void 0 : _window$titaTracker.call(_window, 'action').record({
|
|
360
|
-
productName: 'OKR',
|
|
361
|
-
actionGroup: 'OKR列表-筛选条件',
|
|
362
|
-
actionName: '检查OKR筛选条件'
|
|
363
|
-
});
|
|
364
|
-
};
|
|
365
|
-
|
|
366
332
|
var onCasesCloseHandler = function onCasesCloseHandler() {
|
|
367
333
|
return setCasesVisible(false);
|
|
368
334
|
};
|
|
@@ -442,12 +408,7 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
442
408
|
cycleType: query.cycleType,
|
|
443
409
|
yqmNum: query.yqmNum
|
|
444
410
|
}
|
|
445
|
-
})),
|
|
446
|
-
className: "okr-list__check-filter-tips"
|
|
447
|
-
}, (0, _getLocale.getLocale)('OKR_MyO_Text_CanfindOKR'), /*#__PURE__*/_react["default"].createElement("span", {
|
|
448
|
-
className: "okr-list__check-filter-btn",
|
|
449
|
-
onClick: triggerAnimation
|
|
450
|
-
}, (0, _getLocale.getLocale)('OKR_MyO_Text_Check')), (0, _getLocale.getLocale)('OKR_MyO_Text_Topfiltercriteria')), /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
|
|
411
|
+
})), /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
|
|
451
412
|
zIndex: 1200,
|
|
452
413
|
noHeadLine: true,
|
|
453
414
|
visible: casesVisible,
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.titapage-okr-map__header-action-showkr .titaui-switch-label {
|
|
105
|
-
font-family:
|
|
105
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
106
106
|
font-size: 14px;
|
|
107
107
|
font-weight: unset;
|
|
108
108
|
}
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
line-height: 30px;
|
|
132
132
|
cursor: pointer;
|
|
133
133
|
color: #3f4755;
|
|
134
|
-
font-family:
|
|
134
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
135
135
|
font-size: 12px;
|
|
136
136
|
}
|
|
137
137
|
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
|
|
304
304
|
.titapage-okr-map--kr-dialog--content {
|
|
305
305
|
font-size: 14px;
|
|
306
|
-
font-family:
|
|
306
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
307
307
|
color: #6f7886;
|
|
308
308
|
line-height: 20px;
|
|
309
309
|
padding: 0 32px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.titapage-okr-map {
|
|
2
|
-
font-family:
|
|
2
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
height: 100vh;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
margin-right: 12px;
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
font-size: 20px;
|
|
21
|
-
font-family:
|
|
21
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
22
22
|
font-weight: 600;
|
|
23
23
|
color: #141c28;
|
|
24
24
|
line-height: 28px;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
margin-right: 10px;
|
|
31
31
|
font-size: 14px;
|
|
32
32
|
right: 95px;
|
|
33
|
-
font-family:
|
|
33
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
34
34
|
font-weight: 400;
|
|
35
35
|
color: #3f4755;
|
|
36
36
|
line-height: 20px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.titapage-okr-map {
|
|
2
|
-
font-family:
|
|
2
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
height: 100vh;
|
|
@@ -7,6 +7,8 @@ exports.getHashQuery = exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
|
|
10
|
+
var _window$BSGlobal$tena;
|
|
11
|
+
|
|
10
12
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11
13
|
|
|
12
14
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -19,7 +21,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
19
21
|
|
|
20
22
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
23
|
|
|
22
|
-
var tenantId = window.BSGlobal && window.BSGlobal.tenantInfo.Id || 0;
|
|
24
|
+
var tenantId = window.BSGlobal && ((_window$BSGlobal$tena = window.BSGlobal.tenantInfo) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.Id) || 0;
|
|
23
25
|
|
|
24
26
|
var getHashQuery = function getHashQuery(queryKey) {
|
|
25
27
|
var queryValue;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
max-width: 140px;
|
|
41
41
|
color: #3f4755;
|
|
42
42
|
line-height: 18px;
|
|
43
|
-
font-family:
|
|
43
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
44
44
|
overflow: hidden;
|
|
45
45
|
white-space: nowrap;
|
|
46
46
|
text-overflow: ellipsis;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
.titaui-map-tip {
|
|
16
16
|
color: #3F4755;
|
|
17
|
-
font-family:
|
|
17
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.titaui-button {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.titaui-number-select {
|
|
2
2
|
font-size: 14px;
|
|
3
|
-
font-family:
|
|
3
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
4
4
|
color: #3f4755;
|
|
5
5
|
position: relative;
|
|
6
6
|
}
|
|
@@ -27,7 +27,9 @@ var getGlobal = function getGlobal(key) {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
var getSource = function getSource() {
|
|
30
|
-
|
|
30
|
+
var _getGlobal;
|
|
31
|
+
|
|
32
|
+
return ((_getGlobal = getGlobal("tenantInfo")) === null || _getGlobal === void 0 ? void 0 : _getGlobal.Source) || 0;
|
|
31
33
|
};
|
|
32
34
|
|
|
33
35
|
exports.getSource = getSource;
|
|
@@ -9,6 +9,8 @@ exports.onUpdateKr = exports.getShareUrl = exports.checkTenantOkrExist = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _axios = _interopRequireDefault(require("axios"));
|
|
11
11
|
|
|
12
|
+
var _BSGlobal$tenantInfo, _BSGlobal$loginUserIn;
|
|
13
|
+
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
15
|
|
|
14
16
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
@@ -17,8 +19,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
17
19
|
|
|
18
20
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
19
21
|
|
|
20
|
-
var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0;
|
|
21
|
-
var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
|
|
22
|
+
var tenantId = BSGlobal && ((_BSGlobal$tenantInfo = BSGlobal.tenantInfo) === null || _BSGlobal$tenantInfo === void 0 ? void 0 : _BSGlobal$tenantInfo.Id) || 0;
|
|
23
|
+
var userId = BSGlobal && ((_BSGlobal$loginUserIn = BSGlobal.loginUserInfo) === null || _BSGlobal$loginUserIn === void 0 ? void 0 : _BSGlobal$loginUserIn.Id) || 0;
|
|
22
24
|
|
|
23
25
|
var requestDomain = function requestDomain() {
|
|
24
26
|
if (!window.location.hostname.match(/dev/)) return "";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
.titapage-okr-map__share-content-text {
|
|
7
7
|
font-size: 14px;
|
|
8
|
-
font-family:
|
|
8
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
9
9
|
font-weight: 400;
|
|
10
10
|
color: #6F7886;
|
|
11
11
|
line-height: 20px;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
.titapage-okr-map__share-content-link-label {
|
|
24
24
|
font-size: 14px;
|
|
25
25
|
margin-left: 12px;
|
|
26
|
-
font-family:
|
|
26
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
27
27
|
font-weight: 400;
|
|
28
28
|
color: #A4ACB9;
|
|
29
29
|
line-height: 22px;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
.titapage-okr-map__share-content-link-url {
|
|
33
33
|
font-size: 14px;
|
|
34
34
|
margin-left: 20px;
|
|
35
|
-
font-family:
|
|
35
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
36
36
|
font-weight: 400;
|
|
37
37
|
color: #3F4755;
|
|
38
38
|
line-height: 22px;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
left: 152px;
|
|
21
21
|
display: inline-block;
|
|
22
22
|
font-size: 14px;
|
|
23
|
-
font-family:
|
|
23
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
24
24
|
font-weight: 400;
|
|
25
25
|
color: #3F4755;
|
|
26
26
|
line-height: 24px;
|
|
@@ -7,18 +7,21 @@ exports.closeFullscreen = exports.OkrTypeSetting = void 0;
|
|
|
7
7
|
exports.getBSGlobal = getBSGlobal;
|
|
8
8
|
exports.tenantName = exports.tenantLogo = exports.openFullscreen = exports.okrTypeMap = void 0;
|
|
9
9
|
|
|
10
|
+
var _getBSGlobal2, _getBSGlobal3;
|
|
11
|
+
|
|
10
12
|
var openFullscreen = function openFullscreen() {
|
|
11
13
|
// 隐藏侧边栏和头部
|
|
12
|
-
if (!getBSGlobal("tenantInfo")
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
14
|
+
// if (!getBSGlobal("tenantInfo")?.isNewIndex) {
|
|
15
|
+
document.querySelector(".tu-page-nav").style.display = "none";
|
|
16
|
+
document.querySelector(".tu-page-header").style.display = "none"; // }
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
exports.openFullscreen = openFullscreen;
|
|
19
20
|
|
|
20
21
|
var closeFullscreen = function closeFullscreen() {
|
|
21
|
-
|
|
22
|
+
var _getBSGlobal;
|
|
23
|
+
|
|
24
|
+
if (!((_getBSGlobal = getBSGlobal("tenantInfo")) !== null && _getBSGlobal !== void 0 && _getBSGlobal.isNewIndex)) {
|
|
22
25
|
document.querySelector(".tu-page-nav").style.display = "block";
|
|
23
26
|
document.querySelector(".tu-page-header").style.display = "block";
|
|
24
27
|
}
|
|
@@ -30,9 +33,9 @@ function getBSGlobal(name) {
|
|
|
30
33
|
return name ? BSGlobal && BSGlobal[name] : BSGlobal;
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
var tenantName = getBSGlobal("tenantInfo").Name || "";
|
|
36
|
+
var tenantName = ((_getBSGlobal2 = getBSGlobal("tenantInfo")) === null || _getBSGlobal2 === void 0 ? void 0 : _getBSGlobal2.Name) || "";
|
|
34
37
|
exports.tenantName = tenantName;
|
|
35
|
-
var tenantLogo = getBSGlobal("tenantInfo").Logo || "";
|
|
38
|
+
var tenantLogo = ((_getBSGlobal3 = getBSGlobal("tenantInfo")) === null || _getBSGlobal3 === void 0 ? void 0 : _getBSGlobal3.Logo) || "";
|
|
36
39
|
exports.tenantLogo = tenantLogo;
|
|
37
40
|
|
|
38
41
|
var _ref = getBSGlobal("OkrAdvancedSetting") || {},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
4
4
|
border-radius: 12px;
|
|
5
5
|
padding: 20px 32px 20px 36px;
|
|
6
|
-
font-family:
|
|
6
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.titaui-personal-info-base-info__header {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
border-radius: 12px;
|
|
5
5
|
padding: 20px 32px 30px 36px;
|
|
6
6
|
margin-top: 10px;
|
|
7
|
-
font-family:
|
|
7
|
+
font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.titaui-personal-info-person-photo__header {
|