@titaui/pc 1.15.89-beta.8 → 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/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/button/index.js +4 -5
- package/lib/components/change-okr-modal/Filter.js +68 -70
- 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/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.js +3 -1
- 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/dynamic/components/comments-dialog/api.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +4 -2
- 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-learning/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/index.js +4 -2
- package/lib/components/dynamic/request-api.js +3 -1
- package/lib/components/eReport/eReportShare/index.js +3 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +21 -28
- package/lib/components/form/form-fields/input/index.js +3 -4
- 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/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/import-modal/helper.js +1 -1
- package/lib/components/import-modal/request-api.js +6 -2
- 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/work-node/index.js +3 -1
- 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/{okr-excel-create/components-new/kr-confidence → menus/export-modules/research-menu}/index.js +85 -40
- 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/{okr-excel-create/components/okr-cycle → menus/export-modules/skynet-dashboard-menu}/index.js +83 -48
- 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/{okr-excel-create/components-new/okr-progress/interface.js → menus/export-modules/skynet-dashboard-menu/request-api.js} +0 -0
- package/lib/components/menus/export-modules/skynet-dashboard-menu/survey-front-menus.js +178 -0
- package/lib/components/menus/export-modules/summary-menus/menus.js +3 -1
- 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 +4 -1
- 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 +8 -0
- package/lib/components/nav-top/components/app-center/index.js +13 -5
- 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.js +11 -15
- 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-parent-node/index.js +3 -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/index.js +6 -2
- package/lib/components/okr-detail/request-apis.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +6 -2
- 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/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/o-progress/index.js +6 -2
- package/lib/components/okr-progress/util.js +3 -1
- package/lib/components/okr-progress-modal/request-apis.js +4 -2
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +6 -10
- 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.js +3 -1
- package/lib/components/operation-records/OperationRecordItem.js +3 -7
- package/lib/components/order-have-award/index.js +6 -2
- package/lib/components/part-notice/index.js +5 -1
- package/lib/components/period-selector/helper/index.js +3 -1
- package/lib/components/point-demo/index.js +9 -7
- package/lib/components/point-demo/point-demo.js +5 -3
- package/lib/components/popup-select/index.css +0 -10
- package/lib/components/popup-select/index.js +2 -8
- 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/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/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/search-form.js +2 -2
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +3 -1
- package/lib/components/textarea/index.js +4 -2
- 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.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 -8
- package/lib/pages/aha2021/index.js +8 -4
- 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/like-ranking/index.js +3 -1
- package/lib/pages/new-okr-list/header/index.js +24 -100
- package/lib/pages/new-okr-list/header/operate-record.js +49 -7
- package/lib/pages/new-okr-list/index.js +0 -2
- package/lib/pages/okr-map/hooks/useStorage.js +3 -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/utils.js +10 -7
- 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
- package/lib/components/okr-excel-create/components/kr-confidence/index.css +0 -18
- package/lib/components/okr-excel-create/components/kr-confidence/index.js +0 -61
- package/lib/components/okr-excel-create/components/kr-weight/index.css +0 -10
- package/lib/components/okr-excel-create/components/kr-weight/index.js +0 -114
- package/lib/components/okr-excel-create/components/okr-align/index.css +0 -49
- package/lib/components/okr-excel-create/components/okr-align/index.js +0 -139
- package/lib/components/okr-excel-create/components/okr-classify/index.css +0 -74
- package/lib/components/okr-excel-create/components/okr-classify/index.js +0 -117
- package/lib/components/okr-excel-create/components/okr-cycle/index.css +0 -40
- package/lib/components/okr-excel-create/components/okr-name/index.css +0 -48
- package/lib/components/okr-excel-create/components/okr-name/index.js +0 -116
- package/lib/components/okr-excel-create/components/okr-principal/index.css +0 -17
- package/lib/components/okr-excel-create/components/okr-principal/index.js +0 -107
- package/lib/components/okr-excel-create/components/okr-progress/components/kr-progress/index.css +0 -13
- package/lib/components/okr-excel-create/components/okr-progress/components/kr-progress/index.js +0 -46
- package/lib/components/okr-excel-create/components/okr-progress/components/o-progress/index.css +0 -13
- package/lib/components/okr-excel-create/components/okr-progress/components/o-progress/index.js +0 -47
- package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/index.css +0 -196
- package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/index.js +0 -319
- package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/request-api.js +0 -20
- package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/util.js +0 -134
- package/lib/components/okr-excel-create/components/okr-progress/index.css +0 -25
- package/lib/components/okr-excel-create/components/okr-progress/index.js +0 -90
- package/lib/components/okr-excel-create/components/okr-progress/interface.js +0 -5
- package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/buttonv2.js +0 -108
- package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/confirm.js +0 -166
- package/lib/components/okr-excel-create/components/okr-type/base-okr-type/index.css +0 -20
- package/lib/components/okr-excel-create/components/okr-type/base-okr-type/index.js +0 -76
- package/lib/components/okr-excel-create/components/okr-type/base-okr-type/object-type.js +0 -275
- package/lib/components/okr-excel-create/components/okr-type/index.css +0 -30
- package/lib/components/okr-excel-create/components/okr-type/index.js +0 -196
- package/lib/components/okr-excel-create/components/okr-visibility/index.css +0 -53
- package/lib/components/okr-excel-create/components/okr-visibility/index.js +0 -236
- package/lib/components/okr-excel-create/components-new/kr-confidence/index.css +0 -17
- package/lib/components/okr-excel-create/components-new/kr-weight/index.css +0 -16
- package/lib/components/okr-excel-create/components-new/kr-weight/index.js +0 -172
- package/lib/components/okr-excel-create/components-new/okr-align/index.css +0 -52
- package/lib/components/okr-excel-create/components-new/okr-align/index.js +0 -133
- package/lib/components/okr-excel-create/components-new/okr-classify/index.css +0 -74
- package/lib/components/okr-excel-create/components-new/okr-classify/index.js +0 -126
- package/lib/components/okr-excel-create/components-new/okr-cycle/index.css +0 -40
- package/lib/components/okr-excel-create/components-new/okr-cycle/index.js +0 -99
- package/lib/components/okr-excel-create/components-new/okr-name/index.css +0 -93
- package/lib/components/okr-excel-create/components-new/okr-name/index.js +0 -214
- package/lib/components/okr-excel-create/components-new/okr-principal/index.css +0 -17
- package/lib/components/okr-excel-create/components-new/okr-principal/index.js +0 -116
- package/lib/components/okr-excel-create/components-new/okr-progress/components/kr-progress/index.css +0 -13
- package/lib/components/okr-excel-create/components-new/okr-progress/components/kr-progress/index.js +0 -46
- package/lib/components/okr-excel-create/components-new/okr-progress/components/o-progress/index.css +0 -13
- package/lib/components/okr-excel-create/components-new/okr-progress/components/o-progress/index.js +0 -47
- package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/index.css +0 -196
- package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/index.js +0 -319
- package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/request-api.js +0 -20
- package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/util.js +0 -134
- package/lib/components/okr-excel-create/components-new/okr-progress/index.css +0 -25
- package/lib/components/okr-excel-create/components-new/okr-progress/index.js +0 -90
- package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/buttonv2.js +0 -108
- package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/confirm.js +0 -166
- package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/index.css +0 -20
- package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/index.js +0 -76
- package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/object-type.js +0 -275
- package/lib/components/okr-excel-create/components-new/okr-type/index.css +0 -30
- package/lib/components/okr-excel-create/components-new/okr-type/index.js +0 -205
- package/lib/components/okr-excel-create/components-new/okr-visibility/index.css +0 -53
- package/lib/components/okr-excel-create/components-new/okr-visibility/index.js +0 -252
- package/lib/components/okr-excel-create/constant.js +0 -14
- package/lib/components/okr-excel-create/hooks.js +0 -314
- package/lib/components/okr-excel-create/img/base-info-add.svg +0 -19
- package/lib/components/okr-excel-create/img/desire.svg +0 -61
- package/lib/components/okr-excel-create/img/promise.svg +0 -61
- package/lib/components/okr-excel-create/index-old.js +0 -258
- package/lib/components/okr-excel-create/index.css +0 -69
- package/lib/components/okr-excel-create/index.js +0 -320
- package/lib/components/okr-excel-create/mock.js +0 -169
- package/lib/components/okr-excel-create/setting.js +0 -21
- package/lib/components/okr-excel-create/type.js +0 -5
- package/lib/components/okr-excel-create/utils.js +0 -190
- package/lib/components/table-excel-v2/index.css +0 -93
- package/lib/components/table-excel-v2/index.js +0 -505
- package/lib/components/table-excel-v2/utils.js +0 -22
- package/lib/utils/array.js +0 -26
|
@@ -37,6 +37,8 @@ var _request = require("../../../../request");
|
|
|
37
37
|
|
|
38
38
|
require("./index.css");
|
|
39
39
|
|
|
40
|
+
var _window$BSGlobal, _window$BSGlobal$logi, _window$BSGlobal2, _window$BSGlobal2$ten, _window$BSGlobal3, _window$BSGlobal3$ten, _window$BSGlobal4, _window$BSGlobal4$log, _window$BSGlobal5, _window$BSGlobal5$log, _window$BSGlobal6, _window$BSGlobal6$ten;
|
|
41
|
+
|
|
40
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
41
43
|
|
|
42
44
|
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); }
|
|
@@ -72,12 +74,12 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
72
74
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
73
75
|
|
|
74
76
|
var preCls = "titaui-book-demo-pc-content";
|
|
75
|
-
var uname =
|
|
76
|
-
var uid = window.BSGlobal
|
|
77
|
-
var Source = window.BSGlobal
|
|
78
|
-
var lname = window.BSGlobal
|
|
79
|
-
var lmobile = window.BSGlobal
|
|
80
|
-
var lcompany = window.BSGlobal
|
|
77
|
+
var uname = ((_window$BSGlobal = window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$logi = _window$BSGlobal.loginUserInfo) === null || _window$BSGlobal$logi === void 0 ? void 0 : _window$BSGlobal$logi.Name) || "";
|
|
78
|
+
var uid = ((_window$BSGlobal2 = window.BSGlobal) === null || _window$BSGlobal2 === void 0 ? void 0 : (_window$BSGlobal2$ten = _window$BSGlobal2.tenantInfo) === null || _window$BSGlobal2$ten === void 0 ? void 0 : _window$BSGlobal2$ten.Id) || "";
|
|
79
|
+
var Source = ((_window$BSGlobal3 = window.BSGlobal) === null || _window$BSGlobal3 === void 0 ? void 0 : (_window$BSGlobal3$ten = _window$BSGlobal3.tenantInfo) === null || _window$BSGlobal3$ten === void 0 ? void 0 : _window$BSGlobal3$ten.Source) || (0, _utils.getSource)();
|
|
80
|
+
var lname = ((_window$BSGlobal4 = window.BSGlobal) === null || _window$BSGlobal4 === void 0 ? void 0 : (_window$BSGlobal4$log = _window$BSGlobal4.loginUserInfo) === null || _window$BSGlobal4$log === void 0 ? void 0 : _window$BSGlobal4$log.Name) || "";
|
|
81
|
+
var lmobile = ((_window$BSGlobal5 = window.BSGlobal) === null || _window$BSGlobal5 === void 0 ? void 0 : (_window$BSGlobal5$log = _window$BSGlobal5.loginUserInfo) === null || _window$BSGlobal5$log === void 0 ? void 0 : _window$BSGlobal5$log.Mobile) || "";
|
|
82
|
+
var lcompany = ((_window$BSGlobal6 = window.BSGlobal) === null || _window$BSGlobal6 === void 0 ? void 0 : (_window$BSGlobal6$ten = _window$BSGlobal6.tenantInfo) === null || _window$BSGlobal6$ten === void 0 ? void 0 : _window$BSGlobal6$ten.Name) || "";
|
|
81
83
|
|
|
82
84
|
var BookDemoPCContent = function BookDemoPCContent(_ref) {
|
|
83
85
|
var type = _ref.type,
|
|
@@ -19,8 +19,12 @@ var _demoClose = _interopRequireDefault(require("../../img/demo-close.svg"));
|
|
|
19
19
|
|
|
20
20
|
var _utils = require("../../utils");
|
|
21
21
|
|
|
22
|
+
var _bsGlobal = require("../../../../utils/bs-global");
|
|
23
|
+
|
|
22
24
|
require("./index.css");
|
|
23
25
|
|
|
26
|
+
var _window$BSGlobal, _window$BSGlobal$tena, _window$BSGlobal2, _window$BSGlobal2$log, _window$BSGlobal3, _window$BSGlobal3$log, _getTenantInfo, _window$BSGlobal4, _window$BSGlobal4$ten;
|
|
27
|
+
|
|
24
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
29
|
|
|
26
30
|
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); }
|
|
@@ -39,15 +43,15 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
39
43
|
|
|
40
44
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
45
|
|
|
42
|
-
var preCls =
|
|
43
|
-
var version =
|
|
44
|
-
var role = window.BSGlobal
|
|
45
|
-
var isSubmitted = localStorage.getItem(
|
|
46
|
-
var time = Number(localStorage.getItem(
|
|
46
|
+
var preCls = 'titaui-book-demo-pc';
|
|
47
|
+
var version = (_window$BSGlobal = window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$tena = _window$BSGlobal.tenantAuthentication) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.Version;
|
|
48
|
+
var role = (_window$BSGlobal2 = window.BSGlobal) === null || _window$BSGlobal2 === void 0 ? void 0 : (_window$BSGlobal2$log = _window$BSGlobal2.loginUserInfo) === null || _window$BSGlobal2$log === void 0 ? void 0 : _window$BSGlobal2$log.Role;
|
|
49
|
+
var isSubmitted = localStorage.getItem('isSubmitted');
|
|
50
|
+
var time = Number(localStorage.getItem('pointDemoTime'));
|
|
47
51
|
var newDate = new Date().getTime();
|
|
48
|
-
var uname = window.BSGlobal
|
|
49
|
-
var uid =
|
|
50
|
-
var Source = window.BSGlobal
|
|
52
|
+
var uname = ((_window$BSGlobal3 = window.BSGlobal) === null || _window$BSGlobal3 === void 0 ? void 0 : (_window$BSGlobal3$log = _window$BSGlobal3.loginUserInfo) === null || _window$BSGlobal3$log === void 0 ? void 0 : _window$BSGlobal3$log.Name) || '';
|
|
53
|
+
var uid = ((_getTenantInfo = (0, _bsGlobal.getTenantInfo)()) === null || _getTenantInfo === void 0 ? void 0 : _getTenantInfo.Id) || '';
|
|
54
|
+
var Source = ((_window$BSGlobal4 = window.BSGlobal) === null || _window$BSGlobal4 === void 0 ? void 0 : (_window$BSGlobal4$ten = _window$BSGlobal4.tenantInfo) === null || _window$BSGlobal4$ten === void 0 ? void 0 : _window$BSGlobal4$ten.Source) || (0, _utils.getSource)();
|
|
51
55
|
var BookDemoPC = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
52
56
|
var type = _ref.type,
|
|
53
57
|
visible = _ref.visible,
|
|
@@ -67,16 +71,16 @@ var BookDemoPC = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
67
71
|
setData = _useState4[1];
|
|
68
72
|
|
|
69
73
|
var handleCloseBookDemo = function handleCloseBookDemo() {
|
|
70
|
-
var content = uid ? "\u79DF\u6237ID\uFF1A".concat(uid, "\uFF0C\u79DF\u6237\u8D26\u53F7\u540D\u79F0\uFF1A").concat(uname, ",") :
|
|
74
|
+
var content = uid ? "\u79DF\u6237ID\uFF1A".concat(uid, "\uFF0C\u79DF\u6237\u8D26\u53F7\u540D\u79F0\uFF1A").concat(uname, ",") : '';
|
|
71
75
|
data.forEach(function (item) {
|
|
72
|
-
content += "".concat(item.name, ": ").concat(Array.isArray(item.value) ? item.value.join(
|
|
76
|
+
content += "".concat(item.name, ": ").concat(Array.isArray(item.value) ? item.value.join(',') : item.value, ",");
|
|
73
77
|
});
|
|
74
78
|
content += "source: ".concat(source || Source);
|
|
75
79
|
|
|
76
|
-
if (window.titaTracker && !localStorage.getItem(
|
|
77
|
-
window.titaTracker(
|
|
78
|
-
productName:
|
|
79
|
-
actionGroup:
|
|
80
|
+
if (window.titaTracker && !localStorage.getItem('titaccc')) {
|
|
81
|
+
window.titaTracker('action').record({
|
|
82
|
+
productName: '预约演示',
|
|
83
|
+
actionGroup: '取消预约演示',
|
|
80
84
|
actionName: "\u53D6\u6D88\u9884\u7EA6\u6F14\u793A:\u586B\u5199\u60C5\u51B5\uFF1A".concat(content)
|
|
81
85
|
});
|
|
82
86
|
}
|
|
@@ -123,7 +127,7 @@ var BookDemoPC = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
123
127
|
if (version === 1 && role === 2) {
|
|
124
128
|
setTimeout(function () {
|
|
125
129
|
var date = new Date().getTime() + 86400000;
|
|
126
|
-
localStorage.setItem(
|
|
130
|
+
localStorage.setItem('pointDemoTime', date.toString());
|
|
127
131
|
setDialogVisible(true);
|
|
128
132
|
}, 30000);
|
|
129
133
|
}
|
|
@@ -131,7 +135,7 @@ var BookDemoPC = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
131
135
|
if (version === 1 && role === 2) {
|
|
132
136
|
setTimeout(function () {
|
|
133
137
|
var date = new Date().getTime() + 86400000;
|
|
134
|
-
localStorage.setItem(
|
|
138
|
+
localStorage.setItem('pointDemoTime', date.toString());
|
|
135
139
|
setDialogVisible(true);
|
|
136
140
|
}, 30000);
|
|
137
141
|
}
|
|
@@ -147,8 +151,8 @@ var BookDemoPC = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
147
151
|
noCloseIcon: true,
|
|
148
152
|
destroyOnClose: true,
|
|
149
153
|
style: {
|
|
150
|
-
width:
|
|
151
|
-
borderRadius:
|
|
154
|
+
width: '742px',
|
|
155
|
+
borderRadius: '24px'
|
|
152
156
|
},
|
|
153
157
|
maskClosable: false
|
|
154
158
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -887,6 +887,119 @@ var bookTypeInfo = (_bookTypeInfo = {}, _defineProperty(_bookTypeInfo, _interfac
|
|
|
887
887
|
multiSelect: false,
|
|
888
888
|
halfWidth: false
|
|
889
889
|
}]
|
|
890
|
+
}), _defineProperty(_bookTypeInfo, _interface.EDemoType.TryResearch, {
|
|
891
|
+
title: "预约「调查」演示",
|
|
892
|
+
desc: "与我们的顾问联系,了解 Tita 如何为您服务",
|
|
893
|
+
img: _demoPerformance["default"],
|
|
894
|
+
formField: [{
|
|
895
|
+
name: "姓名",
|
|
896
|
+
type: "text",
|
|
897
|
+
id: "username",
|
|
898
|
+
value: "",
|
|
899
|
+
required: false,
|
|
900
|
+
option: [],
|
|
901
|
+
multiSelect: false,
|
|
902
|
+
halfWidth: false
|
|
903
|
+
}, {
|
|
904
|
+
name: "手机号码",
|
|
905
|
+
type: "phone",
|
|
906
|
+
id: "phone",
|
|
907
|
+
value: "",
|
|
908
|
+
required: true,
|
|
909
|
+
option: [],
|
|
910
|
+
multiSelect: false,
|
|
911
|
+
halfWidth: false
|
|
912
|
+
}, {
|
|
913
|
+
name: "公司全称",
|
|
914
|
+
type: "text",
|
|
915
|
+
id: "tenantName",
|
|
916
|
+
value: "",
|
|
917
|
+
required: false,
|
|
918
|
+
option: [],
|
|
919
|
+
multiSelect: false,
|
|
920
|
+
halfWidth: false
|
|
921
|
+
}, {
|
|
922
|
+
name: "公司人数",
|
|
923
|
+
type: "dropSelect",
|
|
924
|
+
id: "employeeRange",
|
|
925
|
+
value: "1-30",
|
|
926
|
+
required: false,
|
|
927
|
+
option: [{
|
|
928
|
+
text: "1-30",
|
|
929
|
+
value: "1-30"
|
|
930
|
+
}, {
|
|
931
|
+
text: "30-50",
|
|
932
|
+
value: "30-50"
|
|
933
|
+
}, {
|
|
934
|
+
text: "50-100",
|
|
935
|
+
value: "50-100"
|
|
936
|
+
}, {
|
|
937
|
+
text: "100-200",
|
|
938
|
+
value: "100-200"
|
|
939
|
+
}, {
|
|
940
|
+
text: "200-300",
|
|
941
|
+
value: "200-300"
|
|
942
|
+
}, {
|
|
943
|
+
text: "300-500",
|
|
944
|
+
value: "300-500"
|
|
945
|
+
}, {
|
|
946
|
+
text: "500-1000",
|
|
947
|
+
value: "500-1000"
|
|
948
|
+
}, {
|
|
949
|
+
text: "1000-5000",
|
|
950
|
+
value: "1000-5000"
|
|
951
|
+
}, {
|
|
952
|
+
text: "5000-10000",
|
|
953
|
+
value: "5000-10000"
|
|
954
|
+
}, {
|
|
955
|
+
text: "10000+",
|
|
956
|
+
value: "10000+"
|
|
957
|
+
}, {
|
|
958
|
+
text: "我代表一组公司",
|
|
959
|
+
value: "我代表一组公司"
|
|
960
|
+
}],
|
|
961
|
+
multiSelect: false,
|
|
962
|
+
halfWidth: false
|
|
963
|
+
}, {
|
|
964
|
+
name: "验证码",
|
|
965
|
+
type: "verificationCode",
|
|
966
|
+
id: "verificationCode",
|
|
967
|
+
value: "",
|
|
968
|
+
required: true,
|
|
969
|
+
option: [],
|
|
970
|
+
multiSelect: false,
|
|
971
|
+
halfWidth: false
|
|
972
|
+
}, {
|
|
973
|
+
name: "您的公司是否做过调查",
|
|
974
|
+
type: "checkbox",
|
|
975
|
+
id: "hasCompanyDoneSurvey",
|
|
976
|
+
value: "",
|
|
977
|
+
option: [{
|
|
978
|
+
text: "做过",
|
|
979
|
+
value: "做过"
|
|
980
|
+
}, {
|
|
981
|
+
text: "没有做过",
|
|
982
|
+
value: "没有做过"
|
|
983
|
+
}],
|
|
984
|
+
required: false,
|
|
985
|
+
multiSelect: false,
|
|
986
|
+
halfWidth: false
|
|
987
|
+
}, {
|
|
988
|
+
name: "您的公司是否用调查作为绩效考核的一部分",
|
|
989
|
+
type: "checkbox",
|
|
990
|
+
id: "isCompanyHasSurveySystem",
|
|
991
|
+
value: "",
|
|
992
|
+
option: [{
|
|
993
|
+
text: "是",
|
|
994
|
+
value: "是"
|
|
995
|
+
}, {
|
|
996
|
+
text: "否",
|
|
997
|
+
value: "否"
|
|
998
|
+
}],
|
|
999
|
+
required: false,
|
|
1000
|
+
multiSelect: false,
|
|
1001
|
+
halfWidth: false
|
|
1002
|
+
}]
|
|
890
1003
|
}), _bookTypeInfo);
|
|
891
1004
|
exports.bookTypeInfo = bookTypeInfo;
|
|
892
1005
|
var trackerInfo = (_trackerInfo = {}, _defineProperty(_trackerInfo, _interface.EDemoType.Learning, {
|
|
@@ -903,6 +1016,8 @@ var trackerInfo = (_trackerInfo = {}, _defineProperty(_trackerInfo, _interface.E
|
|
|
903
1016
|
actionGroup: "预约演示"
|
|
904
1017
|
}), _defineProperty(_trackerInfo, _interface.EDemoType.OfficalSiteSurvey, {
|
|
905
1018
|
actionGroup: "官网Survey-预约演示"
|
|
1019
|
+
}), _defineProperty(_trackerInfo, _interface.EDemoType.TryResearch, {
|
|
1020
|
+
actionGroup: "系统内-调查预约演示"
|
|
906
1021
|
}), _trackerInfo);
|
|
907
1022
|
exports.trackerInfo = trackerInfo;
|
|
908
1023
|
var DemoTypeTextMap = (_DemoTypeTextMap = {}, _defineProperty(_DemoTypeTextMap, _interface.EDemoType.Learning, "learning"), _defineProperty(_DemoTypeTextMap, _interface.EDemoType.OfficalSiteOKR, "OKR官网"), _defineProperty(_DemoTypeTextMap, _interface.EDemoType.OfficalSitePerformance, "考核官网"), _defineProperty(_DemoTypeTextMap, _interface.EDemoType.TryOKR, "OKR试用版"), _defineProperty(_DemoTypeTextMap, _interface.EDemoType.TryPerformance, "绩效版"), _defineProperty(_DemoTypeTextMap, _interface.EDemoType.UniversalBookDemo, "旗舰版"), _DemoTypeTextMap);
|
|
@@ -15,4 +15,5 @@ exports.EDemoType = EDemoType;
|
|
|
15
15
|
EDemoType[EDemoType["OfficalSitePerformance"] = 5] = "OfficalSitePerformance";
|
|
16
16
|
EDemoType[EDemoType["Learning"] = 6] = "Learning";
|
|
17
17
|
EDemoType[EDemoType["OfficalSiteSurvey"] = 7] = "OfficalSiteSurvey";
|
|
18
|
+
EDemoType[EDemoType["TryResearch"] = 8] = "TryResearch";
|
|
18
19
|
})(EDemoType || (exports.EDemoType = EDemoType = {}));
|
|
@@ -24,9 +24,8 @@ var TextBtn = _textBtn["default"];
|
|
|
24
24
|
exports.TextBtn = TextBtn;
|
|
25
25
|
var IconBtn = _iconBtn["default"];
|
|
26
26
|
exports.IconBtn = IconBtn;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
var _default = DefaultBtn;
|
|
27
|
+
_defaultButton["default"].Rect = _rectBtn["default"];
|
|
28
|
+
_defaultButton["default"].Text = _textBtn["default"];
|
|
29
|
+
_defaultButton["default"].Icon = _iconBtn["default"];
|
|
30
|
+
var _default = _defaultButton["default"];
|
|
32
31
|
exports["default"] = _default;
|
|
@@ -9,7 +9,7 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _tooltip = _interopRequireDefault(require("
|
|
12
|
+
var _tooltip = _interopRequireDefault(require("@beisen-phoenix/tooltip"));
|
|
13
13
|
|
|
14
14
|
var _styledComponents = require("./styledComponents");
|
|
15
15
|
|
|
@@ -85,61 +85,63 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
85
85
|
// customizequery/condition/save
|
|
86
86
|
// 500007/500000036/customizequery/condition/get?dataKey=62_500000036&pageId=40001
|
|
87
87
|
function FilterComp(p) {
|
|
88
|
+
var _getBSGlobal;
|
|
89
|
+
|
|
88
90
|
var _this;
|
|
89
91
|
|
|
90
92
|
_classCallCheck(this, FilterComp);
|
|
91
93
|
|
|
92
94
|
_this = _super.call(this, p);
|
|
93
|
-
_this.KRSetting = (0, _bsGlobal.getBSGlobal)(
|
|
95
|
+
_this.KRSetting = (_getBSGlobal = (0, _bsGlobal.getBSGlobal)("OkrAdvancedSetting")) === null || _getBSGlobal === void 0 ? void 0 : _getBSGlobal.KRSetting;
|
|
94
96
|
|
|
95
97
|
_this.handleDeleteUser = function (id) {
|
|
96
98
|
var _this$props = _this.props,
|
|
97
99
|
onChange = _this$props.onChange,
|
|
98
100
|
users = _this$props.users;
|
|
99
|
-
onChange(
|
|
101
|
+
onChange("users", users.filter(function (u) {
|
|
100
102
|
return u.Id != id;
|
|
101
103
|
}));
|
|
102
104
|
};
|
|
103
105
|
|
|
104
106
|
_this.getCycleTypes = function () {
|
|
105
|
-
(0, _request.rget)(
|
|
107
|
+
(0, _request.rget)("v1")("okr/cycleSetting").then(function (res) {
|
|
106
108
|
var data = res.Data;
|
|
107
109
|
var cycles = [{
|
|
108
|
-
title: (0, _getLocale.getLocale)(
|
|
109
|
-
value:
|
|
110
|
+
title: (0, _getLocale.getLocale)("OKR_MyO_Butt_AllStates"),
|
|
111
|
+
value: "-1"
|
|
110
112
|
}];
|
|
111
113
|
|
|
112
114
|
if (data.isOpenYear) {
|
|
113
115
|
cycles.push({
|
|
114
|
-
title: (0, _getLocale.getLocale)(
|
|
115
|
-
value:
|
|
116
|
+
title: (0, _getLocale.getLocale)("OKR_MyO_Pop_Year"),
|
|
117
|
+
value: "1"
|
|
116
118
|
});
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
if (data.isOpenHalfYear) {
|
|
120
122
|
cycles.push({
|
|
121
|
-
title: (0, _getLocale.getLocale)(
|
|
122
|
-
value:
|
|
123
|
+
title: (0, _getLocale.getLocale)("OKR_MyO_Pop_Firsthalf"),
|
|
124
|
+
value: "5,1"
|
|
123
125
|
});
|
|
124
126
|
cycles.push({
|
|
125
|
-
title: (0, _getLocale.getLocale)(
|
|
126
|
-
value:
|
|
127
|
+
title: (0, _getLocale.getLocale)("OKR_MyO_Pop_Secondhalf"),
|
|
128
|
+
value: "5,2"
|
|
127
129
|
});
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
if (data.isOpenQuarter) {
|
|
131
133
|
cycles.push({
|
|
132
|
-
title: (0, _getLocale.getLocale)(
|
|
133
|
-
value:
|
|
134
|
+
title: (0, _getLocale.getLocale)("OKR_MyO_Pop_1stQuarter"),
|
|
135
|
+
value: "2,1"
|
|
134
136
|
}, {
|
|
135
|
-
title: (0, _getLocale.getLocale)(
|
|
136
|
-
value:
|
|
137
|
+
title: (0, _getLocale.getLocale)("OKR_MyO_Pop_2ndQuarter"),
|
|
138
|
+
value: "2,2"
|
|
137
139
|
}, {
|
|
138
|
-
title: (0, _getLocale.getLocale)(
|
|
139
|
-
value:
|
|
140
|
+
title: (0, _getLocale.getLocale)("OKR_MyO_Pop_3rdQuarter"),
|
|
141
|
+
value: "2,3"
|
|
140
142
|
}, {
|
|
141
|
-
title: (0, _getLocale.getLocale)(
|
|
142
|
-
value:
|
|
143
|
+
title: (0, _getLocale.getLocale)("OKR_MyO_Pop_4thQuarter"),
|
|
144
|
+
value: "2,4"
|
|
143
145
|
});
|
|
144
146
|
}
|
|
145
147
|
|
|
@@ -153,8 +155,8 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
153
155
|
|
|
154
156
|
if (data.isOpenCustom) {
|
|
155
157
|
cycles.push({
|
|
156
|
-
title: (0, _getLocale.getLocale)(
|
|
157
|
-
value:
|
|
158
|
+
title: (0, _getLocale.getLocale)("Mod_Customization"),
|
|
159
|
+
value: "0,0"
|
|
158
160
|
});
|
|
159
161
|
}
|
|
160
162
|
|
|
@@ -174,13 +176,13 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
174
176
|
var _this$props2 = _this.props,
|
|
175
177
|
onChange = _this$props2.onChange,
|
|
176
178
|
departments = _this$props2.departments;
|
|
177
|
-
onChange(
|
|
179
|
+
onChange("departments", departments.filter(function (d) {
|
|
178
180
|
return d.Id != id;
|
|
179
181
|
}));
|
|
180
182
|
};
|
|
181
183
|
|
|
182
184
|
_this.handleClear = function () {
|
|
183
|
-
_this.props.onChange(
|
|
185
|
+
_this.props.onChange("clear");
|
|
184
186
|
|
|
185
187
|
var _optionArray = _this.state.OptionsArray.map(function (option) {
|
|
186
188
|
return _objectSpread(_objectSpread({}, option), {}, {
|
|
@@ -196,7 +198,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
196
198
|
|
|
197
199
|
_this.handlerFilterOptions = function (option) {
|
|
198
200
|
var onChange = _this.props.onChange;
|
|
199
|
-
option == 1 ? onChange(
|
|
201
|
+
option == 1 ? onChange("remembered", true) : onChange("remembered", false);
|
|
200
202
|
};
|
|
201
203
|
|
|
202
204
|
_this.handleFilterDelete = function (name) {
|
|
@@ -236,30 +238,29 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
236
238
|
});
|
|
237
239
|
};
|
|
238
240
|
|
|
239
|
-
console.log('-----');
|
|
240
241
|
_this.state = {
|
|
241
242
|
OptionsArray: [{
|
|
242
243
|
index: 0,
|
|
243
|
-
title: (0, _getLocale.getLocale)(
|
|
244
|
-
name:
|
|
244
|
+
title: (0, _getLocale.getLocale)("OKR_MyO_Pop_Year"),
|
|
245
|
+
name: "year",
|
|
245
246
|
valuesArray: (0, _constant.getYear)(),
|
|
246
247
|
value: p.year
|
|
247
248
|
}, {
|
|
248
249
|
index: 1,
|
|
249
|
-
title: (0, _getLocale.getLocale)(
|
|
250
|
-
name:
|
|
250
|
+
title: (0, _getLocale.getLocale)("Mod_period"),
|
|
251
|
+
name: "cycle",
|
|
251
252
|
valuesArray: [],
|
|
252
253
|
value: p.cycle
|
|
253
254
|
}, {
|
|
254
255
|
index: 2,
|
|
255
|
-
title: (0, _getLocale.getLocale)(
|
|
256
|
-
name:
|
|
256
|
+
title: (0, _getLocale.getLocale)("Mod_States"),
|
|
257
|
+
name: "status",
|
|
257
258
|
valuesArray: (0, _constant.getStatusType)(),
|
|
258
259
|
value: p.status
|
|
259
260
|
}, {
|
|
260
261
|
index: 3,
|
|
261
|
-
title: (0, _getLocale.getLocale)(
|
|
262
|
-
name:
|
|
262
|
+
title: (0, _getLocale.getLocale)("OKR_MyO_Pop_Type"),
|
|
263
|
+
name: "type",
|
|
263
264
|
valuesArray: (0, _constant.getOkrTypes)(),
|
|
264
265
|
value: p.type
|
|
265
266
|
}],
|
|
@@ -278,26 +279,26 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
278
279
|
this.setState({
|
|
279
280
|
OptionsArray: [{
|
|
280
281
|
index: 0,
|
|
281
|
-
title: (0, _getLocale.getLocale)(
|
|
282
|
-
name:
|
|
282
|
+
title: (0, _getLocale.getLocale)("OKR_MyO_Pop_Year"),
|
|
283
|
+
name: "year",
|
|
283
284
|
valuesArray: (0, _constant.getYear)(),
|
|
284
285
|
value: year
|
|
285
286
|
}, {
|
|
286
287
|
index: 1,
|
|
287
|
-
title: (0, _getLocale.getLocale)(
|
|
288
|
-
name:
|
|
288
|
+
title: (0, _getLocale.getLocale)("Mod_period"),
|
|
289
|
+
name: "cycle",
|
|
289
290
|
valuesArray: this.state.OptionsArray[1].valuesArray,
|
|
290
291
|
value: cycle
|
|
291
292
|
}, {
|
|
292
293
|
index: 2,
|
|
293
|
-
title: (0, _getLocale.getLocale)(
|
|
294
|
-
name:
|
|
294
|
+
title: (0, _getLocale.getLocale)("Mod_States"),
|
|
295
|
+
name: "status",
|
|
295
296
|
valuesArray: (0, _constant.getStatusType)(),
|
|
296
297
|
value: status
|
|
297
298
|
}, {
|
|
298
299
|
index: 3,
|
|
299
|
-
title: (0, _getLocale.getLocale)(
|
|
300
|
-
name:
|
|
300
|
+
title: (0, _getLocale.getLocale)("OKR_MyO_Pop_Type"),
|
|
301
|
+
name: "type",
|
|
301
302
|
valuesArray: (0, _constant.getOkrTypes)(),
|
|
302
303
|
value: type
|
|
303
304
|
}]
|
|
@@ -337,65 +338,65 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
337
338
|
container: document.body,
|
|
338
339
|
data: (0, _constant.getYear)(),
|
|
339
340
|
value: year,
|
|
340
|
-
title: (0, _getLocale.getLocale)(
|
|
341
|
+
title: (0, _getLocale.getLocale)("Mod_Year"),
|
|
341
342
|
textField: "title",
|
|
342
343
|
valueField: "value",
|
|
343
344
|
maxHeight: "280px",
|
|
344
345
|
type: "old",
|
|
345
346
|
width: "64px",
|
|
346
347
|
onSelect: function onSelect(value) {
|
|
347
|
-
return _this2.handleSelected((0, _constant.getYear)(), value,
|
|
348
|
+
return _this2.handleSelected((0, _constant.getYear)(), value, "year");
|
|
348
349
|
}
|
|
349
350
|
}), /*#__PURE__*/_react["default"].createElement(_select["default"], {
|
|
350
351
|
container: document.body,
|
|
351
352
|
data: cycles,
|
|
352
353
|
value: cycle,
|
|
353
|
-
title: (0, _getLocale.getLocale)(
|
|
354
|
+
title: (0, _getLocale.getLocale)("Mod_period"),
|
|
354
355
|
textField: "title",
|
|
355
356
|
valueField: "value",
|
|
356
357
|
maxHeight: "280px",
|
|
357
358
|
type: "old",
|
|
358
359
|
width: "64px",
|
|
359
360
|
onSelect: function onSelect(value) {
|
|
360
|
-
return _this2.handleSelected(cycles, value,
|
|
361
|
+
return _this2.handleSelected(cycles, value, "cycle");
|
|
361
362
|
}
|
|
362
363
|
}), okrPopType == 1 && /*#__PURE__*/_react["default"].createElement(_select["default"], {
|
|
363
364
|
container: document.body,
|
|
364
365
|
data: (0, _constant.getStatusType)(),
|
|
365
366
|
value: status,
|
|
366
|
-
title: (0, _getLocale.getLocale)(
|
|
367
|
+
title: (0, _getLocale.getLocale)("Mod_States"),
|
|
367
368
|
textField: "title",
|
|
368
369
|
valueField: "value",
|
|
369
370
|
maxHeight: "280px",
|
|
370
371
|
type: "old",
|
|
371
372
|
width: "64px",
|
|
372
373
|
onSelect: function onSelect(value) {
|
|
373
|
-
return _this2.handleSelected((0, _constant.getStatusType)(), value,
|
|
374
|
+
return _this2.handleSelected((0, _constant.getStatusType)(), value, "status");
|
|
374
375
|
}
|
|
375
376
|
}), this.KRSetting.OkrTypeSetting && /*#__PURE__*/_react["default"].createElement(_select["default"], {
|
|
376
377
|
container: document.body,
|
|
377
378
|
data: (0, _constant.getOkrTypes)(),
|
|
378
379
|
value: type,
|
|
379
|
-
title: (0, _getLocale.getLocale)(
|
|
380
|
+
title: (0, _getLocale.getLocale)("Mod_Type"),
|
|
380
381
|
textField: "title",
|
|
381
382
|
valueField: "value",
|
|
382
383
|
maxHeight: "280px",
|
|
383
384
|
type: "old",
|
|
384
385
|
width: "64px",
|
|
385
386
|
onSelect: function onSelect(value) {
|
|
386
|
-
return _this2.handleSelected((0, _constant.getOkrTypes)(), value,
|
|
387
|
+
return _this2.handleSelected((0, _constant.getOkrTypes)(), value, "type");
|
|
387
388
|
}
|
|
388
389
|
}), /*#__PURE__*/_react["default"].createElement(_UserSelectorPop["default"], {
|
|
389
390
|
onSubmit: this.props.onUserChange,
|
|
390
391
|
container: document.body
|
|
391
392
|
}, /*#__PURE__*/_react["default"].createElement(_styledComponents.UserSelectorWrapper, {
|
|
392
393
|
ref: "user"
|
|
393
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)(
|
|
394
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("Mod_Owner")), /*#__PURE__*/_react["default"].createElement("i", {
|
|
394
395
|
className: "tu-icon-sort-up"
|
|
395
396
|
})))), /*#__PURE__*/_react["default"].createElement(_search["default"], {
|
|
396
|
-
placeHolder: (0, _getLocale.getLocale)(
|
|
397
|
+
placeHolder: (0, _getLocale.getLocale)("OKR_MyO_Pop_Pleaenterwords"),
|
|
397
398
|
onSearch: function onSearch(keywords) {
|
|
398
|
-
return onChange(
|
|
399
|
+
return onChange("keywords", keywords);
|
|
399
400
|
}
|
|
400
401
|
})), (OptionsArray.filter(function (option) {
|
|
401
402
|
return option.value !== null;
|
|
@@ -415,7 +416,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
415
416
|
style: {
|
|
416
417
|
marginRight: 5
|
|
417
418
|
}
|
|
418
|
-
}, (0, _getLocale.getLocale)(
|
|
419
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_Pop_Owner")), users.map(function (u) {
|
|
419
420
|
return /*#__PURE__*/_react["default"].createElement(_styledComponents.OptionItem, {
|
|
420
421
|
key: u.Id
|
|
421
422
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
@@ -437,36 +438,33 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
437
438
|
}
|
|
438
439
|
}));
|
|
439
440
|
}), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
offset: [0, 5]
|
|
441
|
+
title: (0, _getLocale.getLocale)("Tasks_Tab_MyS_Clearselec"),
|
|
442
|
+
overlayStyle: {
|
|
443
|
+
zIndex: 999999
|
|
444
444
|
}
|
|
445
445
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
446
446
|
onClick: this.handleClear
|
|
447
|
-
}, (0, _getLocale.getLocale)(
|
|
447
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_Pop_Clearselected"))), !remembered ? /*#__PURE__*/_react["default"].createElement("a", {
|
|
448
448
|
onClick: function onClick() {
|
|
449
449
|
return _this2.handlerFilterOptions(1);
|
|
450
450
|
}
|
|
451
451
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
offset: [0, 5]
|
|
452
|
+
title: (0, _getLocale.getLocale)("Tasks_Tab_MyS_Nextcondit"),
|
|
453
|
+
overlayStyle: {
|
|
454
|
+
zIndex: 999999
|
|
456
455
|
}
|
|
457
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)(
|
|
456
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_Butt_Remember")))) : /*#__PURE__*/_react["default"].createElement(_ConfirmPop["default"], {
|
|
458
457
|
align: "bottom left",
|
|
459
|
-
confirmTipText: (0, _getLocale.getLocale)(
|
|
458
|
+
confirmTipText: (0, _getLocale.getLocale)("OKR_MyO_Err_Bemembere"),
|
|
460
459
|
onSubmit: function onSubmit() {
|
|
461
460
|
return _this2.handlerFilterOptions(2);
|
|
462
461
|
}
|
|
463
462
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
offset: [0, 5]
|
|
463
|
+
title: (0, _getLocale.getLocale)("OKR_MyO_Err_Showabove"),
|
|
464
|
+
overlayStyle: {
|
|
465
|
+
zIndex: 999999
|
|
468
466
|
}
|
|
469
|
-
}, /*#__PURE__*/_react["default"].createElement("a", null, (0, _getLocale.getLocale)(
|
|
467
|
+
}, /*#__PURE__*/_react["default"].createElement("a", null, (0, _getLocale.getLocale)("OKR_MyO_Pop_Cancelremember")))))));
|
|
470
468
|
}
|
|
471
469
|
}]);
|
|
472
470
|
|
|
@@ -103,12 +103,14 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
103
103
|
// @ts-ignore
|
|
104
104
|
// const {data,keywords} = props
|
|
105
105
|
function Item(props) {
|
|
106
|
+
var _window$BSGlobal, _window$BSGlobal$OkrA, _window$BSGlobal$OkrA2;
|
|
107
|
+
|
|
106
108
|
var _this;
|
|
107
109
|
|
|
108
110
|
_classCallCheck(this, Item);
|
|
109
111
|
|
|
110
112
|
_this = _super.call(this, props);
|
|
111
|
-
_this.isObjectiveRelevanceKr = window.BSGlobal.OkrAdvancedSetting.KRSetting.ObjectiveRelevanceKr;
|
|
113
|
+
_this.isObjectiveRelevanceKr = (_window$BSGlobal = window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$OkrA = _window$BSGlobal.OkrAdvancedSetting) === null || _window$BSGlobal$OkrA === void 0 ? void 0 : (_window$BSGlobal$OkrA2 = _window$BSGlobal$OkrA.KRSetting) === null || _window$BSGlobal$OkrA2 === void 0 ? void 0 : _window$BSGlobal$OkrA2.ObjectiveRelevanceKr;
|
|
112
114
|
|
|
113
115
|
_this.onSelect = function (e, pdata) {
|
|
114
116
|
e.stopPropagation();
|
|
@@ -23,6 +23,8 @@ var _getLocale = require("../../utils/getLocale");
|
|
|
23
23
|
|
|
24
24
|
var _bsGlobal = require("../../utils/bs-global");
|
|
25
25
|
|
|
26
|
+
var _getBSGlobal;
|
|
27
|
+
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
29
|
|
|
28
30
|
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); }
|
|
@@ -53,7 +55,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
53
55
|
|
|
54
56
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
55
57
|
|
|
56
|
-
var loginUserId = (0, _bsGlobal.getBSGlobal)("loginUserInfo").Id;
|
|
58
|
+
var loginUserId = (_getBSGlobal = (0, _bsGlobal.getBSGlobal)("loginUserInfo")) === null || _getBSGlobal === void 0 ? void 0 : _getBSGlobal.Id;
|
|
57
59
|
|
|
58
60
|
function PublishMblog(_ref) {
|
|
59
61
|
var base64 = _ref.base64,
|