@titaui/pc 1.12.0-beta.1 → 1.12.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 -0
- package/lib/components/avatar/name-avatar/index.js +22 -13
- package/lib/components/avatar/text-avatar/index.css +2 -2
- package/lib/components/avatar/text-avatar/index.js +6 -6
- package/lib/components/button/images/blue.svg +21 -0
- package/lib/components/button/images/red.svg +21 -0
- package/lib/components/button/images/white.svg +19 -0
- package/lib/components/button/rect-btn/index.css +45 -11
- package/lib/components/button/rect-btn/index.js +12 -6
- package/lib/components/change-okr-modal/index.js +7 -6
- package/lib/components/checkbox/index.css +7 -3
- package/lib/{pages/aha2021 → components/contact-kefu}/img/canceled.svg +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/kefu.svg +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/not-try.png +0 -0
- package/lib/components/contact-kefu/img/notice.png +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/try.png +0 -0
- package/lib/components/contact-kefu/index.css +95 -0
- package/lib/components/{dynamic/advertise → contact-kefu}/index.js +59 -77
- package/lib/components/create-okr-modal/index.js +48 -42
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/dialog-confirm/index.css +2 -2
- package/lib/components/drawer/headerAction.js +5 -1
- package/lib/components/drawer/headerDrop.js +42 -4
- package/lib/components/drawer/index.css +33 -0
- package/lib/components/drawer/index.js +26 -3
- package/lib/components/dynamic/constant.js +38 -33
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +48 -10
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +4 -2
- package/lib/components/dynamic/dynamic-list/index.js +14 -7
- package/lib/components/dynamic/index.js +9 -12
- package/lib/components/dynamic/request-api.js +7 -68
- package/lib/components/e-priority/index.css +4 -4
- package/lib/components/e-priority/index.js +10 -2
- package/lib/components/form/form-fields/radios/index.css +4 -0
- package/lib/components/form/form-fields/radios/index.js +4 -3
- package/lib/components/mblog/components/MblogContent.js +5 -2
- package/lib/components/nav-top/components/menu/img/new.svg +30 -0
- package/lib/components/nav-top/components/menu/img/wecome-temp.png +0 -0
- package/lib/components/nav-top/components/menu/index.css +91 -0
- package/lib/components/nav-top/components/menu/index.js +72 -24
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +2 -1
- package/lib/components/nav-top/components/user-message/components/todos/index.css +1 -0
- package/lib/components/nav-top/index.js +8 -4
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +20 -4
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +9 -1
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/index.css +4 -0
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -0
- package/lib/components/okr-detail/components/header/index.js +10 -3
- package/lib/components/okr-detail/components/header/o-name.js +10 -3
- package/lib/components/okr-detail/components/o-classify.js +5 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +16 -16
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +10 -0
- package/lib/components/okr-detail/detail-header/constant.js +53 -0
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +111 -54
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +63 -0
- package/lib/components/okr-detail/detail-header/index.css +11 -0
- package/lib/components/okr-detail/detail-header/index.js +228 -234
- package/lib/components/okr-detail/e-list/index.js +2 -2
- package/lib/components/okr-detail/helper.js +108 -0
- package/lib/components/okr-detail/index.js +21 -4
- package/lib/components/okr-detail/okr-list/index.js +13 -6
- package/lib/components/okr-detail/request-apis.js +14 -8
- package/lib/components/okr-flow/child-node/index.css +1 -1
- package/lib/components/okr-flow/export-modal/index.js +66 -3
- package/lib/components/okr-period-selector/index.js +9 -5
- package/lib/components/okr-period-selector/select-cycle.js +23 -19
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/period-selector/interface.js +7 -0
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +16 -10
- package/lib/components/radio/index.css +3 -3
- package/lib/components/search-input/index.css +1 -1
- package/lib/components/select-layer/index.css +1 -1
- package/lib/components/survey-model/index.js +3 -0
- package/lib/components/task-relation-modal/helper.js +139 -2
- package/lib/components/task-relation-modal/image/loading.gif +0 -0
- package/lib/components/task-relation-modal/index.js +9 -1
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.css +18 -0
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +262 -0
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +135 -0
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.css +0 -0
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +129 -0
- package/lib/components/task-relation-modal/okr-relation/request-api.js +106 -0
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +120 -0
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.js +185 -0
- package/lib/components/task-relation-modal/request-api.js +30 -3
- package/lib/components/task-relation-modal/search/okr-status-select.js +3 -3
- package/lib/components/task-relation-modal/search/principal.js +36 -19
- package/lib/components/task-relation-modal/search/search-dropdown/index.css +2 -1
- package/lib/components/task-relation-modal/search/search-dropdown/index.js +1 -1
- package/lib/components/{dynamic/dynamic-topping/index.js → task-relation-modal/search/task-relation.js} +45 -44
- package/lib/components/task-relation-modal/search/task-status-select.js +87 -0
- package/lib/components/{dynamic/dynamic-liking/index.js → task-relation-modal/search/work-relation.js} +43 -39
- package/lib/components/task-relation-modal/search/work-status-select.js +74 -0
- package/lib/components/task-relation-modal/tree/okr-tree/index.css +1 -1
- package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +16 -2
- package/lib/components/task-relation-modal/tree/task-list/index.css +0 -0
- package/lib/components/task-relation-modal/tree/task-list/index.js +1 -0
- package/lib/components/task-relation-modal/tree/work-list/index.css +14 -0
- package/lib/components/task-relation-modal/tree/work-list/index.js +176 -0
- package/lib/components/task-relation-modal/tree/work-list/search-form.js +123 -0
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +0 -11
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +1 -3
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +0 -6
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +0 -4
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +3 -1
- package/lib/components/task-relation-modal/work-relation/index.css +0 -0
- package/lib/components/task-relation-modal/work-relation/index.js +256 -0
- package/lib/components/task-tree/index.js +1 -7
- package/lib/components/task-tree/task-item-node/constant.js +39 -22
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +38 -8
- package/lib/components/task-tree/task-item-node/e-task.js +24 -24
- package/lib/components/task-tree/task-item-node/index.css +28 -18
- package/lib/components/task-tree/task-tree.css +1 -1
- package/lib/components/textarea/index.css +142 -0
- package/lib/components/textarea/index.js +262 -0
- package/lib/components/time-picker/time-picker.js +34 -102
- package/lib/components/time-picker/timer-picker-input.js +0 -6
- package/lib/components/toast/index.js +5 -3
- package/lib/components/tooltip/index.js +3 -0
- package/lib/components/tooltip/tooltip-rows/index.css +26 -0
- package/lib/components/tooltip/tooltip-rows/index.js +106 -0
- package/lib/components/user-selector/category-selector-panel/index.js +6 -1
- package/lib/components/{dynamic/quick-operation/components/create-task/index.js → user-selector/category-selector-panel/subordinate-tree.js} +37 -20
- package/lib/components/user-selector/constant.js +10 -2
- package/lib/components/user-selector/empty/index.css +5 -0
- package/lib/components/user-selector/empty/index.js +9 -3
- package/lib/components/user-selector/export-modules/depart-search-selector/index.js +45 -17
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +3 -1
- package/lib/components/user-selector/images/no-auth.png +0 -0
- package/lib/components/user-selector/request-apis.js +28 -9
- package/lib/components/user-selector/searched-panel/index.js +21 -7
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +46 -18
- package/lib/components-v1/radio/radio.js +1 -1
- package/lib/index.js +48 -0
- package/lib/pages/aha2021/index.css +1 -26
- package/lib/pages/aha2021/index.js +3 -82
- package/lib/pages/new-okr-list/header/common.js +52 -0
- package/lib/pages/new-okr-list/header/index.css +45 -0
- package/lib/pages/new-okr-list/header/index.js +40 -16
- package/lib/pages/new-okr-list/header/operate-record.js +136 -0
- package/lib/pages/new-okr-list/index.js +4 -2
- package/lib/pages/new-okr-list/list/index.js +19 -2
- package/lib/pages/new-okr-list/request-api.js +8 -2
- package/lib/pages/okr-map/unsupport-ie/index.js +3 -5
- package/lib/utils/format-time.js +8 -1
- package/lib/utils/open-data.js +5 -1
- package/lib/utils/planDataJson.js +11115 -0
- package/package.json +2 -2
- package/lib/components/dynamic/advertise/components/next-btn/index.css +0 -27
- package/lib/components/dynamic/advertise/components/next-btn/index.js +0 -32
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +0 -26
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +0 -32
- package/lib/components/dynamic/advertise/index.css +0 -21
- package/lib/components/dynamic/advertise/interface.js +0 -5
- package/lib/components/dynamic/advertise/util.js +0 -28
- package/lib/components/dynamic/components/dynamic-search-input/index.css +0 -81
- package/lib/components/dynamic/components/dynamic-search-input/index.js +0 -203
- package/lib/components/dynamic/components/first-level-tabs/index.css +0 -101
- package/lib/components/dynamic/components/first-level-tabs/index.js +0 -131
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +0 -23
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +0 -146
- package/lib/components/dynamic/dynamic-like-ranking/index.js +0 -180
- package/lib/components/dynamic/dynamic-like-ranking/item.js +0 -105
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +0 -30
- package/lib/components/dynamic/dynamic-liking/index.css +0 -81
- package/lib/components/dynamic/dynamic-liking/item.js +0 -75
- package/lib/components/dynamic/dynamic-liking/mock.js +0 -83
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +0 -16
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +0 -30
- package/lib/components/dynamic/dynamic-topping/index.css +0 -141
- package/lib/components/dynamic/dynamic-topping/interface.js +0 -5
- package/lib/components/dynamic/dynamic-topping/item.js +0 -153
- package/lib/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/lib/components/dynamic/dynamic.css +0 -173
- package/lib/components/dynamic/dynamic.js +0 -428
- package/lib/components/dynamic/export-module/index.js +0 -37
- package/lib/components/dynamic/img/dynamic-top.svg +0 -14
- package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
- package/lib/components/dynamic/my-team/img/line.png +0 -0
- package/lib/components/dynamic/my-team/img/team.png +0 -0
- package/lib/components/dynamic/my-team/index.css +0 -184
- package/lib/components/dynamic/my-team/index.js +0 -263
- package/lib/components/dynamic/my-team/request-api.js +0 -52
- package/lib/components/dynamic/my-team/util.js +0 -20
- package/lib/components/dynamic/new-ui.css +0 -192
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +0 -58
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +0 -68
- package/lib/components/dynamic/online-broadcast/data.js +0 -77
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +0 -14
- package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
- package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
- package/lib/components/dynamic/online-broadcast/index.css +0 -46
- package/lib/components/dynamic/online-broadcast/index.js +0 -61
- package/lib/components/dynamic/online-broadcast/interfact.js +0 -5
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +0 -39
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +0 -25
- package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +0 -51
- package/lib/components/dynamic/quick-operation/index.js +0 -120
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +0 -38
- package/lib/components/task-tree/mock.js +0 -944
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.formatPeriod = void 0;
|
|
7
|
+
|
|
8
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
9
|
+
|
|
10
|
+
var _constant = require("../../../utils/constant");
|
|
11
|
+
|
|
12
|
+
var formatPeriod = function formatPeriod(selected) {
|
|
13
|
+
if (!selected) return "";
|
|
14
|
+
var quarter = ["", "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_1stQuarter")), "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_2ndQuarter")), "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_3rdQuarter")), "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_4thQuarter"))];
|
|
15
|
+
var cycleDate = "";
|
|
16
|
+
var annualNum = Number("".concat(selected.annualNum)) === -1 ? "".concat((0, _getLocale.getLocale)("OKR_MyO_Butt_Allyears")) : "".concat(selected.annualNum).concat(_getLocale.isEn ? "" : "年");
|
|
17
|
+
var month = (0, _constant.getMonth)();
|
|
18
|
+
|
|
19
|
+
switch ("".concat(selected.cycleType)) {
|
|
20
|
+
case "-1":
|
|
21
|
+
cycleDate = "".concat((0, _getLocale.getLocale)("OKR_MyO_Butt_AllStatee"));
|
|
22
|
+
break;
|
|
23
|
+
|
|
24
|
+
case "1":
|
|
25
|
+
cycleDate = "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Year"));
|
|
26
|
+
break;
|
|
27
|
+
|
|
28
|
+
case "2":
|
|
29
|
+
// 季度
|
|
30
|
+
cycleDate = quarter[Number(selected.yqmNum)];
|
|
31
|
+
break;
|
|
32
|
+
|
|
33
|
+
case "3":
|
|
34
|
+
cycleDate = month[Number(selected.yqmNum) - 1];
|
|
35
|
+
break;
|
|
36
|
+
|
|
37
|
+
case "4":
|
|
38
|
+
cycleDate = "".concat(month[Number(selected.yqmNum) - 1], " - ").concat(month[((Number(selected.yqmNum) + 1) % 12 || 12) - 1]);
|
|
39
|
+
break;
|
|
40
|
+
|
|
41
|
+
case "5":
|
|
42
|
+
cycleDate = Number("".concat(selected.yqmNum)) === 1 ? "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Firsthalf")) : "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Secondhalf"));
|
|
43
|
+
break;
|
|
44
|
+
|
|
45
|
+
default:
|
|
46
|
+
cycleDate = "".concat((0, _getLocale.getLocale)("Mod_Customization"));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return "".concat(annualNum, " ").concat(cycleDate);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
exports.formatPeriod = formatPeriod;
|
|
@@ -36,6 +36,51 @@
|
|
|
36
36
|
color: #2879ff;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
.tita-okr-list-v2__header-record {
|
|
40
|
+
display: flex;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
align-items: center;
|
|
44
|
+
transform: rotate(90deg);
|
|
45
|
+
background: #fff;
|
|
46
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
47
|
+
width: 36px;
|
|
48
|
+
height: 36px;
|
|
49
|
+
margin-left: 12px;
|
|
50
|
+
border-radius: 18px;
|
|
51
|
+
font-size: 20px;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.tita-okr-list-v2__header-record-popup {
|
|
56
|
+
padding: 16px 12px;
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
background: #ffffff;
|
|
59
|
+
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
60
|
+
border-radius: 12px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.tita-okr-list-v2__header-record-item {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
padding: 5px 8px;
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
font-size: 16px;
|
|
69
|
+
color: #3f4755;
|
|
70
|
+
line-height: 22px;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.tita-okr-list-v2__header-record-item:hover {
|
|
75
|
+
color: #2879ff;
|
|
76
|
+
background: #f7f8fa;
|
|
77
|
+
border-radius: 8px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.tita-okr-list-v2__header-record-item-content {
|
|
81
|
+
margin-left: 8px;
|
|
82
|
+
}
|
|
83
|
+
|
|
39
84
|
.tita-okr-list-v2__header-filter {
|
|
40
85
|
box-sizing: border-box;
|
|
41
86
|
height: 36px;
|
|
@@ -29,12 +29,16 @@ var _filter = _interopRequireDefault(require("./filter"));
|
|
|
29
29
|
|
|
30
30
|
var _comments = _interopRequireDefault(require("./comments"));
|
|
31
31
|
|
|
32
|
+
var _operateRecord = _interopRequireDefault(require("./operate-record"));
|
|
33
|
+
|
|
32
34
|
var _context = require("../context");
|
|
33
35
|
|
|
34
36
|
var _requestApi = require("../request-api");
|
|
35
37
|
|
|
36
38
|
var _getLocale = require("../../../utils/getLocale");
|
|
37
39
|
|
|
40
|
+
var _tools = require("../../../utils/tools");
|
|
41
|
+
|
|
38
42
|
require("./index.css");
|
|
39
43
|
|
|
40
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -65,6 +69,7 @@ function Header(props, ref) {
|
|
|
65
69
|
cycleType = _useContext.cycleType,
|
|
66
70
|
yqmNum = _useContext.yqmNum;
|
|
67
71
|
|
|
72
|
+
var relationShip = parseInt(relation, 10);
|
|
68
73
|
var onSearch = props.onSearch,
|
|
69
74
|
onFrontAddOKR = props.onFrontAddOKR;
|
|
70
75
|
|
|
@@ -84,21 +89,26 @@ function Header(props, ref) {
|
|
|
84
89
|
setUserInfo = _useState6[1];
|
|
85
90
|
|
|
86
91
|
(0, _react.useEffect)(function () {
|
|
87
|
-
if (toUserId !== undefined ||
|
|
92
|
+
if (toUserId !== undefined || relationShip === 1) {
|
|
88
93
|
var userId = toUserId;
|
|
89
|
-
if (
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
94
|
+
if (relationShip === 1) userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
95
|
+
|
|
96
|
+
if (userId) {
|
|
97
|
+
(0, _requestApi.getUserInfoById)(userId).then(function (res) {
|
|
98
|
+
setUserInfo(res.Data);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
93
101
|
}
|
|
94
102
|
}, [toUserId, relation]);
|
|
95
103
|
(0, _react.useEffect)(function () {
|
|
96
104
|
setInit(true);
|
|
97
105
|
}, []);
|
|
98
106
|
(0, _react.useEffect)(function () {
|
|
99
|
-
init
|
|
100
|
-
|
|
101
|
-
|
|
107
|
+
if (init) {
|
|
108
|
+
onSearch({
|
|
109
|
+
onlyThisDept: onlyThisDept
|
|
110
|
+
});
|
|
111
|
+
}
|
|
102
112
|
}, [onlyThisDept]);
|
|
103
113
|
var createOkrRef = (0, _react.useRef)();
|
|
104
114
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
@@ -125,7 +135,7 @@ function Header(props, ref) {
|
|
|
125
135
|
};
|
|
126
136
|
var searchType = "company";
|
|
127
137
|
|
|
128
|
-
if (departmentId && departmentId
|
|
138
|
+
if (departmentId && departmentId !== -1) {
|
|
129
139
|
rootNode.rootId = departmentId;
|
|
130
140
|
rootNode.rootName = departmentName || "";
|
|
131
141
|
searchType = "depart";
|
|
@@ -141,7 +151,7 @@ function Header(props, ref) {
|
|
|
141
151
|
level2Selected.name = userInfo.name || "";
|
|
142
152
|
}
|
|
143
153
|
|
|
144
|
-
if (relation
|
|
154
|
+
if (parseInt(relation, 10) === 1) {
|
|
145
155
|
rootNode.rootId = (0, _bsGlobal.getUserInfo)().Id;
|
|
146
156
|
rootNode.rootName = (0, _bsGlobal.getUserInfo)().Name || "";
|
|
147
157
|
searchType = "user";
|
|
@@ -154,18 +164,18 @@ function Header(props, ref) {
|
|
|
154
164
|
annualNum: annualNum,
|
|
155
165
|
yqmNum: yqmNum
|
|
156
166
|
})), "rootNode=".concat(JSON.stringify(rootNode)), "level2Selected=".concat(JSON.stringify(level2Selected))].join("&");
|
|
157
|
-
var origin = window.location.href.split(
|
|
167
|
+
var origin = window.location.href.split("#")[0];
|
|
158
168
|
window.location.href = "".concat(origin, "/#okr/map?").concat(urlQuery);
|
|
159
169
|
};
|
|
160
170
|
|
|
161
171
|
var getTitle = function getTitle() {
|
|
162
|
-
if (
|
|
172
|
+
if (relationShip === 1) {
|
|
163
173
|
return /*#__PURE__*/_react["default"].createElement(_userTitle["default"], {
|
|
164
174
|
toUserId: (0, _bsGlobal.getUserInfo)().Id
|
|
165
175
|
});
|
|
166
176
|
}
|
|
167
177
|
|
|
168
|
-
if (
|
|
178
|
+
if (relationShip === 2 || relationShip === 3) {
|
|
169
179
|
return /*#__PURE__*/_react["default"].createElement(_relationTitle["default"], {
|
|
170
180
|
relation: relation
|
|
171
181
|
});
|
|
@@ -197,11 +207,11 @@ function Header(props, ref) {
|
|
|
197
207
|
className: "".concat(_precls.precls, "__header-item")
|
|
198
208
|
}, getTitle())), /*#__PURE__*/_react["default"].createElement("div", {
|
|
199
209
|
className: "".concat(_precls.precls, "__header-right")
|
|
200
|
-
}, departmentId
|
|
210
|
+
}, Number(departmentId) === 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
201
211
|
className: "".concat(_precls.precls, "__header-item")
|
|
202
212
|
}, /*#__PURE__*/_react["default"].createElement(_keywordSearch["default"], {
|
|
203
213
|
onSearch: onSearch
|
|
204
|
-
})),
|
|
214
|
+
})), relationShip !== 2 && relationShip !== 3 &&
|
|
205
215
|
/*#__PURE__*/
|
|
206
216
|
// 我关注的 我参与的 没有创建按钮
|
|
207
217
|
_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -221,10 +231,24 @@ function Header(props, ref) {
|
|
|
221
231
|
className: "tu-icon-yangshi-ditu"
|
|
222
232
|
}))))), /*#__PURE__*/_react["default"].createElement(_comments["default"], {
|
|
223
233
|
toUserId: toUserId,
|
|
224
|
-
relation:
|
|
234
|
+
relation: relationShip,
|
|
225
235
|
userInfo: userInfo
|
|
226
236
|
}), /*#__PURE__*/_react["default"].createElement(_filter["default"], {
|
|
227
237
|
onSearch: onSearch
|
|
238
|
+
}), Number(cycleType) !== -1 && (Number(relation) === 1 || Object.keys((0, _tools.getQueryString)()).length === 0) && /*#__PURE__*/_react["default"].createElement(_operateRecord["default"], {
|
|
239
|
+
toUserId: toUserId,
|
|
240
|
+
userInfo: userInfo,
|
|
241
|
+
relation: relationShip,
|
|
242
|
+
okrFeedParams: {
|
|
243
|
+
objId: departmentId === undefined ? Number(toUserId || (0, _bsGlobal.getUserInfo)().Id) : Number(departmentId),
|
|
244
|
+
// 人员或部门Id
|
|
245
|
+
objType: departmentId === undefined ? 1 : 2,
|
|
246
|
+
// 1:负责人,2:部门
|
|
247
|
+
cycleType: Number(cycleType),
|
|
248
|
+
// 目标周期:0-自定义,1-年度,2-季度,3-月度
|
|
249
|
+
yqmNum: Number(yqmNum),
|
|
250
|
+
annualNum: Number(annualNum)
|
|
251
|
+
}
|
|
228
252
|
})));
|
|
229
253
|
}
|
|
230
254
|
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _popup = _interopRequireDefault(require("../../../components/popup"));
|
|
13
|
+
|
|
14
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
15
|
+
|
|
16
|
+
var _tooltip = _interopRequireDefault(require("../../../components/tooltip"));
|
|
17
|
+
|
|
18
|
+
var _precls = require("../precls");
|
|
19
|
+
|
|
20
|
+
var _context = require("../context");
|
|
21
|
+
|
|
22
|
+
var _common = require("./common");
|
|
23
|
+
|
|
24
|
+
var _requestApi = require("../request-api");
|
|
25
|
+
|
|
26
|
+
var _tools = require("../../../utils/tools");
|
|
27
|
+
|
|
28
|
+
require("./index.css");
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
+
|
|
32
|
+
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); }
|
|
33
|
+
|
|
34
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
+
|
|
36
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
37
|
+
|
|
38
|
+
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."); }
|
|
39
|
+
|
|
40
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
41
|
+
|
|
42
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
43
|
+
|
|
44
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
45
|
+
|
|
46
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
|
+
|
|
48
|
+
var OperateRecord = function OperateRecord(props) {
|
|
49
|
+
var _useState = (0, _react.useState)(true),
|
|
50
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
51
|
+
showOperateRecord = _useState2[0],
|
|
52
|
+
setShowOperateRecord = _useState2[1];
|
|
53
|
+
|
|
54
|
+
var popupRef = (0, _react.useRef)();
|
|
55
|
+
var drawerRef = (0, _react.useRef)();
|
|
56
|
+
var userInfo = props.userInfo,
|
|
57
|
+
toUserId = props.toUserId,
|
|
58
|
+
relation = props.relation,
|
|
59
|
+
okrFeedParams = props.okrFeedParams;
|
|
60
|
+
|
|
61
|
+
var _useContext = (0, _react.useContext)(_context.Context),
|
|
62
|
+
OkrOperateRecordDrawer = _useContext.OkrOperateRecordDrawer,
|
|
63
|
+
annualNum = _useContext.annualNum,
|
|
64
|
+
cycleType = _useContext.cycleType,
|
|
65
|
+
yqmNum = _useContext.yqmNum;
|
|
66
|
+
|
|
67
|
+
var openOperateRecordPush = function openOperateRecordPush() {
|
|
68
|
+
if (popupRef.current) {
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
popupRef.current.close();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (drawerRef.current) {
|
|
74
|
+
// @ts-ignore
|
|
75
|
+
drawerRef.current.showOperateDrawerVisible();
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
var popup = /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
|
+
className: "".concat(_precls.precls, "__header-record-popup")
|
|
81
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
82
|
+
className: "".concat(_precls.precls, "__header-record-item"),
|
|
83
|
+
onClick: openOperateRecordPush
|
|
84
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
85
|
+
className: "tu-icon-jinzhan-s"
|
|
86
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
|
+
className: "".concat(_precls.precls, "__header-record-item-content")
|
|
88
|
+
}, (0, _getLocale.getLocale)("Per_details_OperationRecord"))));
|
|
89
|
+
|
|
90
|
+
(0, _react.useEffect)(function () {
|
|
91
|
+
if (toUserId) {
|
|
92
|
+
(0, _requestApi.getOperateRecordAuth)(toUserId).then(function (res) {
|
|
93
|
+
setShowOperateRecord(res.Data.obj);
|
|
94
|
+
});
|
|
95
|
+
} else {
|
|
96
|
+
setShowOperateRecord(true);
|
|
97
|
+
}
|
|
98
|
+
}, [toUserId, cycleType]);
|
|
99
|
+
|
|
100
|
+
if (showOperateRecord === false) {
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
105
|
+
ref: popupRef,
|
|
106
|
+
popup: popup,
|
|
107
|
+
popupAlign: {
|
|
108
|
+
offset: [0, 4]
|
|
109
|
+
}
|
|
110
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
111
|
+
overlay: (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_More"),
|
|
112
|
+
placement: "top"
|
|
113
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
114
|
+
className: "".concat(_precls.precls, "__header-record")
|
|
115
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
116
|
+
className: "tu-icon-more1"
|
|
117
|
+
})))), (toUserId !== undefined || Number(relation) === 1 || Object.keys((0, _tools.getQueryString)()).length === 0) && !!userInfo && /*#__PURE__*/_react["default"].createElement(OkrOperateRecordDrawer, {
|
|
118
|
+
ref: drawerRef,
|
|
119
|
+
userInfo: {
|
|
120
|
+
id: userInfo.userId,
|
|
121
|
+
name: userInfo.name,
|
|
122
|
+
color: userInfo.avatar.color,
|
|
123
|
+
avatarsUrl: userInfo.avatar.original,
|
|
124
|
+
type: 1
|
|
125
|
+
},
|
|
126
|
+
okrCycle: "\u300C".concat((0, _common.formatPeriod)({
|
|
127
|
+
annualNum: annualNum,
|
|
128
|
+
cycleType: cycleType,
|
|
129
|
+
yqmNum: yqmNum
|
|
130
|
+
}), "\u300D"),
|
|
131
|
+
okrFeedParams: okrFeedParams
|
|
132
|
+
}));
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
var _default = OperateRecord;
|
|
136
|
+
exports["default"] = _default;
|
|
@@ -85,7 +85,8 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
85
85
|
var OkrListCmp = props.OkrListCmp,
|
|
86
86
|
OkrCommunicationPush = props.OkrCommunicationPush,
|
|
87
87
|
Empty = props.Empty,
|
|
88
|
-
SetCycleModal = props.SetCycleModal
|
|
88
|
+
SetCycleModal = props.SetCycleModal,
|
|
89
|
+
OkrOperateRecordDrawer = props.OkrOperateRecordDrawer;
|
|
89
90
|
var useLocalStorage = new _localStorage.LocalStorage();
|
|
90
91
|
var formFieldValues = useLocalStorage.getItem("okr-filter-values") || {
|
|
91
92
|
targetType: "",
|
|
@@ -254,7 +255,7 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
254
255
|
};
|
|
255
256
|
|
|
256
257
|
var isShowPrincple = (0, _react.useMemo)(function () {
|
|
257
|
-
return !toUserId && relation !== 1;
|
|
258
|
+
return !toUserId && Number(relation) !== 1;
|
|
258
259
|
}, [toUserId, relation]);
|
|
259
260
|
var isShowPeriod = (0, _react.useMemo)(function () {
|
|
260
261
|
return Number(query.cycleType) === -1;
|
|
@@ -316,6 +317,7 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
316
317
|
return /*#__PURE__*/_react["default"].createElement(_context.Context.Provider, {
|
|
317
318
|
value: _objectSpread({
|
|
318
319
|
OkrCommunicationPush: OkrCommunicationPush,
|
|
320
|
+
OkrOperateRecordDrawer: OkrOperateRecordDrawer,
|
|
319
321
|
relation: relation,
|
|
320
322
|
departmentName: departmentName,
|
|
321
323
|
departmentId: departmentId,
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports["default"] = void 0;
|
|
7
9
|
|
|
8
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _context = require("../context");
|
|
13
|
+
|
|
14
|
+
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); }
|
|
9
15
|
|
|
10
|
-
function
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
17
|
|
|
12
18
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
13
19
|
|
|
@@ -31,8 +37,19 @@ function List(props) {
|
|
|
31
37
|
refreshList = props.refreshList,
|
|
32
38
|
replaceOkr = props.replaceOkr;
|
|
33
39
|
var OkrListCmp = props.OkrListCmp;
|
|
40
|
+
|
|
41
|
+
var _useContext = (0, _react.useContext)(_context.Context),
|
|
42
|
+
annualNum = _useContext.annualNum,
|
|
43
|
+
cycleType = _useContext.cycleType,
|
|
44
|
+
yqmNum = _useContext.yqmNum;
|
|
45
|
+
|
|
34
46
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(OkrListCmp, {
|
|
35
47
|
okrData: okrs,
|
|
48
|
+
cycle: {
|
|
49
|
+
annualNum: annualNum,
|
|
50
|
+
cycleType: cycleType,
|
|
51
|
+
yqmNum: yqmNum
|
|
52
|
+
},
|
|
36
53
|
addOkr: function addOkr(okr) {
|
|
37
54
|
setOkrs([].concat(_toConsumableArray(okrs), [okr]));
|
|
38
55
|
},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.visitOkrCyclePag = exports.okrSearch = exports.okrList = exports.okrCrowd = exports.getUserInfoById = exports.getOkrInfoWithListData = exports.getCycleSetting = void 0;
|
|
6
|
+
exports.visitOkrCyclePag = exports.okrSearch = exports.okrList = exports.okrCrowd = exports.getUserInfoById = exports.getOperateRecordAuth = exports.getOkrInfoWithListData = exports.getCycleSetting = void 0;
|
|
7
7
|
|
|
8
8
|
var _request = require("../../utils/request");
|
|
9
9
|
|
|
@@ -224,4 +224,10 @@ var getCycleSetting = /*#__PURE__*/function () {
|
|
|
224
224
|
};
|
|
225
225
|
}();
|
|
226
226
|
|
|
227
|
-
exports.getCycleSetting = getCycleSetting;
|
|
227
|
+
exports.getCycleSetting = getCycleSetting;
|
|
228
|
+
|
|
229
|
+
var getOperateRecordAuth = function getOperateRecordAuth(toUserId) {
|
|
230
|
+
return (0, _request.rget)('v1')("okr/cycleComment/checkRole?touser_id=".concat(toUserId));
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
exports.getOperateRecordAuth = getOperateRecordAuth;
|
|
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _okrFlow = _interopRequireDefault(require("../../../components/okr-flow"));
|
|
15
15
|
|
|
16
16
|
require("./index.css");
|
|
17
17
|
|
|
@@ -61,10 +61,8 @@ function _default(props) {
|
|
|
61
61
|
isIE && setIsIE(true);
|
|
62
62
|
setLoading(false);
|
|
63
63
|
} else {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
setLoading(false);
|
|
67
|
-
});
|
|
64
|
+
okrMapCmp.current = _okrFlow["default"];
|
|
65
|
+
setLoading(false);
|
|
68
66
|
}
|
|
69
67
|
}, []);
|
|
70
68
|
if (loading) return /*#__PURE__*/_react["default"].createElement("span", null);
|
package/lib/utils/format-time.js
CHANGED
|
@@ -167,5 +167,12 @@ var showNextMonthFirstDay = function showNextMonthFirstDay() {
|
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
exports.showNextMonthFirstDay = showNextMonthFirstDay;
|
|
170
|
-
var _default =
|
|
170
|
+
var _default = {
|
|
171
|
+
getTimeString: getTimeString,
|
|
172
|
+
timeFormat: timeFormat,
|
|
173
|
+
showWeekFirstDay: showWeekFirstDay,
|
|
174
|
+
showMonthFirstDay: showMonthFirstDay,
|
|
175
|
+
showNextWeekFirstDay: showNextWeekFirstDay,
|
|
176
|
+
showNextMonthFirstDay: showNextMonthFirstDay
|
|
177
|
+
};
|
|
171
178
|
exports["default"] = _default;
|
package/lib/utils/open-data.js
CHANGED
|
@@ -356,6 +356,10 @@ exports.parseHtmlAndTextTag = parseHtmlAndTextTag;
|
|
|
356
356
|
var _default = {
|
|
357
357
|
OpenUserName: OpenUserName,
|
|
358
358
|
OpenDepartmentName: OpenDepartmentName,
|
|
359
|
-
isWechat: isWechat
|
|
359
|
+
isWechat: isWechat,
|
|
360
|
+
isPlatform: isPlatform,
|
|
361
|
+
parseString: parseString,
|
|
362
|
+
parseTag: parseTag,
|
|
363
|
+
parseHtmlAndTextTag: parseHtmlAndTextTag
|
|
360
364
|
};
|
|
361
365
|
exports["default"] = _default;
|