@titaui/pc 1.5.69-beta.2 → 1.5.69-beta.23
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/icon-avatar/index.js +1 -1
- package/lib/components/avatar/index.js +5 -1
- package/lib/components/avatar/num-avatar/index.css +12 -0
- package/lib/components/avatar/num-avatar/index.js +34 -0
- package/lib/components/button/default-button/index.css +49 -0
- package/lib/components/button/default-button/index.js +51 -0
- package/lib/components/button/index.js +8 -2
- package/lib/components/communication/CommunicationRecord.js +110 -162
- package/lib/components/communication/index.css +4 -0
- package/lib/components/communication/index.js +34 -25
- package/lib/components/communication/style.js +1 -1
- package/lib/components/create-okr/index.css +4 -0
- package/lib/components/create-okr/index.js +43 -31
- package/lib/components/dropdown-layer/index.js +15 -12
- package/lib/components/dynamic/components/condition-render/index.js +20 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +6 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +4 -2
- package/lib/components/dynamic/components/obj-status/index.css +22 -0
- package/lib/components/dynamic/components/obj-status/index.js +38 -0
- package/lib/components/dynamic/components/percent/index.css +21 -0
- package/lib/components/dynamic/components/percent/index.js +38 -0
- package/lib/components/dynamic/components/title/index.css +35 -0
- package/lib/components/dynamic/{dynamic-item/components/publish-content → components/title}/index.js +27 -31
- package/lib/components/dynamic/constant.js +19 -2
- package/lib/components/dynamic/dynamic-item/components/{dynamic-item-header → header}/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/components/{dynamic-item-header → header}/index.js +97 -73
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +10 -0
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +35 -0
- package/lib/components/dynamic/dynamic-item/{components/align → dynamic-align}/img/dynamic-align.svg +0 -0
- package/lib/components/dynamic/dynamic-item/{components/align → dynamic-align}/img/dynamic-relative.svg +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +173 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +54 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +48 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +89 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +96 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +171 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +67 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +110 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project → dynamic-milestone}/constant.js +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +158 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +215 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-project}/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +91 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +125 -0
- package/lib/components/dynamic/dynamic-item/{components/relative → dynamic-relative}/img/dynamic-relative.svg +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +192 -0
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +138 -0
- package/lib/components/dynamic/dynamic-item/{components/replay → dynamic-replay}/index.js +76 -11
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +153 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +138 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +97 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +207 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +54 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/constant.js +13 -3
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-unstart.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +164 -0
- package/lib/components/dynamic/dynamic-item/index.css +34 -10
- package/lib/components/dynamic/dynamic-item/index.js +155 -85
- package/lib/components/dynamic/dynamic-like-ranking/index.css +11 -8
- package/lib/components/dynamic/dynamic-like-ranking/index.js +69 -20
- package/lib/components/dynamic/dynamic-like-ranking/item.js +28 -51
- package/lib/components/dynamic/dynamic-liking/index.css +1 -8
- package/lib/components/dynamic/dynamic-liking/index.js +10 -4
- package/lib/components/dynamic/dynamic-liking/item.js +46 -25
- package/lib/components/dynamic/dynamic-list/index.css +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +9 -7
- package/lib/components/dynamic/dynamic-topping/index.css +0 -5
- package/lib/components/dynamic/dynamic-topping/index.js +1 -1
- package/lib/components/dynamic/dynamic-topping/item.js +13 -17
- package/lib/components/dynamic/dynamic.css +54 -0
- package/lib/components/dynamic/dynamic.js +126 -58
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/quick-operation/index.css +3 -1
- package/lib/components/dynamic/quick-operation/index.js +14 -4
- package/lib/components/dynamic/request-api.js +20 -8
- package/lib/components/dynamic/util.js +41 -7
- package/lib/components/file-list/components/single-file/index.css +3 -3
- package/lib/components/grid-page/personal-info/index.js +4 -4
- package/lib/components/img-viewer/index.css +1 -1
- package/lib/components/mblog/index.js +2 -2
- package/lib/components/mblog/style.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +48 -25
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +62 -24
- package/lib/components/publish-dynamic-modal/requist-api.js +17 -2
- package/lib/components/table/index.css +0 -1
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upvote/index.js +26 -14
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +4 -0
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +8 -6
- package/lib/index.js +5 -1
- package/lib/pages/dynamic/index.css +1 -0
- package/lib/pages/like-ranking/column.js +33 -14
- package/lib/pages/like-ranking/filter-buttons/department.js +8 -11
- package/lib/pages/like-ranking/filter-buttons/group.js +34 -0
- package/lib/pages/like-ranking/filter-buttons/index.css +4 -8
- package/lib/pages/like-ranking/filter-buttons/index.js +18 -11
- package/lib/pages/like-ranking/filter-buttons/modular.js +51 -28
- package/lib/pages/like-ranking/filter-buttons/name.js +33 -6
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +17 -0
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +8 -2
- package/lib/pages/like-ranking/filter-buttons/timer.js +28 -46
- package/lib/pages/like-ranking/image/dynamic-empty.png +0 -0
- package/lib/pages/like-ranking/image/loading.gif +0 -0
- package/lib/pages/like-ranking/index.css +83 -4
- package/lib/pages/like-ranking/index.js +183 -22
- package/lib/pages/like-ranking/request-api.js +15 -0
- package/lib/utils/auth.js +16 -2
- package/lib/utils/bs-global.js +19 -2
- package/lib/utils/format-time.js +113 -8
- package/lib/utils/tools.js +50 -25
- package/package.json +1 -1
- package/lib/components/dynamic/components/common-title/index.css +0 -106
- package/lib/components/dynamic/components/common-title/index.js +0 -129
- package/lib/components/dynamic/dynamic-item/components/align/index.css +0 -66
- package/lib/components/dynamic/dynamic-item/components/align/index.js +0 -109
- package/lib/components/dynamic/dynamic-item/components/assessment/index.css +0 -20
- package/lib/components/dynamic/dynamic-item/components/assessment/index.js +0 -48
- package/lib/components/dynamic/dynamic-item/components/common-dynamic/index.css +0 -34
- package/lib/components/dynamic/dynamic-item/components/common-dynamic/index.js +0 -142
- package/lib/components/dynamic/dynamic-item/components/create-o/index.css +0 -52
- package/lib/components/dynamic/dynamic-item/components/create-o/index.js +0 -104
- package/lib/components/dynamic/dynamic-item/components/dynamic-desc/index.css +0 -62
- package/lib/components/dynamic/dynamic-item/components/dynamic-desc/index.js +0 -256
- package/lib/components/dynamic/dynamic-item/components/publish-content/index.css +0 -22
- package/lib/components/dynamic/dynamic-item/components/relative/index.css +0 -66
- package/lib/components/dynamic/dynamic-item/components/relative/index.js +0 -124
- package/lib/components/dynamic/dynamic-item/components/replay/index.css +0 -93
- package/lib/components/dynamic/dynamic-item/components/report/index.css +0 -32
- package/lib/components/dynamic/dynamic-item/components/report/index.js +0 -82
- package/lib/components/dynamic/dynamic-item/components/task-project/index.css +0 -57
- package/lib/components/dynamic/dynamic-item/components/task-project/index.js +0 -87
- package/lib/components/dynamic/dynamic-item/components/task-project-icon/index.css +0 -20
- package/lib/components/dynamic/dynamic-item/components/task-project-icon/index.js +0 -40
- package/lib/components/dynamic/dynamic-topping/mock.js +0 -1
- package/lib/pages/like-ranking/tab-bar/index.css +0 -22
- package/lib/pages/like-ranking/tab-bar/index.js +0 -65
|
@@ -11,13 +11,9 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.filter-buttons-modular__btn-ok {
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
width: 64px;
|
|
16
|
-
height: 28px;
|
|
17
|
-
line-height: 28px;
|
|
18
|
-
text-align: center;
|
|
19
|
-
color: #fff;
|
|
20
|
-
background: #2879FF;
|
|
21
|
-
border-radius: 4px;
|
|
22
14
|
margin: 12px 0 0 28px;
|
|
23
15
|
}
|
|
16
|
+
|
|
17
|
+
.filter-buttons-modular-checked {
|
|
18
|
+
color: #2879FF;
|
|
19
|
+
}
|
|
@@ -7,10 +7,10 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _name = _interopRequireDefault(require("./name"));
|
|
11
|
-
|
|
12
10
|
var _department = _interopRequireDefault(require("./department"));
|
|
13
11
|
|
|
12
|
+
var _group = _interopRequireDefault(require("./group"));
|
|
13
|
+
|
|
14
14
|
var _timer = _interopRequireDefault(require("./timer"));
|
|
15
15
|
|
|
16
16
|
var _modular = _interopRequireDefault(require("./modular"));
|
|
@@ -19,18 +19,25 @@ require("./index.css");
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
|
|
22
|
-
var preCls =
|
|
22
|
+
var preCls = "filter-buttons";
|
|
23
23
|
|
|
24
|
-
var FilterButton = function FilterButton() {
|
|
24
|
+
var FilterButton = function FilterButton(_ref) {
|
|
25
|
+
var parmas = _ref.parmas,
|
|
26
|
+
setParma = _ref.setParma,
|
|
27
|
+
setType = _ref.setType;
|
|
25
28
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
26
29
|
className: "".concat(preCls)
|
|
27
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
28
|
-
|
|
29
|
-
}), /*#__PURE__*/_react["default"].createElement(
|
|
30
|
-
|
|
31
|
-
}), /*#__PURE__*/_react["default"].createElement(_timer["default"],
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
}, /*#__PURE__*/_react["default"].createElement(_department["default"], {
|
|
31
|
+
setParma: setParma
|
|
32
|
+
}), /*#__PURE__*/_react["default"].createElement(_group["default"], {
|
|
33
|
+
setParma: setParma
|
|
34
|
+
}), /*#__PURE__*/_react["default"].createElement(_timer["default"], {
|
|
35
|
+
setParma: setParma,
|
|
36
|
+
parmas: parmas,
|
|
37
|
+
setType: setType
|
|
38
|
+
}), /*#__PURE__*/_react["default"].createElement(_modular["default"], {
|
|
39
|
+
setParma: setParma
|
|
40
|
+
}));
|
|
34
41
|
};
|
|
35
42
|
|
|
36
43
|
var _default = FilterButton;
|
|
@@ -11,8 +11,12 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _dropdownLayer = _interopRequireWildcard(require("../../../components/dropdown-layer"));
|
|
13
13
|
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
+
|
|
14
16
|
var _searchDropdown = _interopRequireDefault(require("./search-dropdown"));
|
|
15
17
|
|
|
18
|
+
var _bsGlobal = require("../../../utils/bs-global");
|
|
19
|
+
|
|
16
20
|
require("./index.css");
|
|
17
21
|
|
|
18
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -21,6 +25,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
21
25
|
|
|
22
26
|
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; }
|
|
23
27
|
|
|
28
|
+
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; }
|
|
29
|
+
|
|
24
30
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
31
|
|
|
26
32
|
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."); }
|
|
@@ -33,51 +39,68 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
33
39
|
|
|
34
40
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
41
|
|
|
36
|
-
var preCls =
|
|
42
|
+
var preCls = "filter-buttons-modular";
|
|
37
43
|
|
|
38
|
-
var Modular = function Modular() {
|
|
39
|
-
var
|
|
44
|
+
var Modular = function Modular(_ref) {
|
|
45
|
+
var setParma = _ref.setParma;
|
|
46
|
+
|
|
47
|
+
var _useState = (0, _react.useState)("0"),
|
|
40
48
|
_useState2 = _slicedToArray(_useState, 2),
|
|
41
49
|
value = _useState2[0],
|
|
42
50
|
setValue = _useState2[1];
|
|
43
51
|
|
|
52
|
+
var _useState3 = (0, _react.useState)(false),
|
|
53
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
54
|
+
visible = _useState4[0],
|
|
55
|
+
setVisible = _useState4[1];
|
|
56
|
+
|
|
44
57
|
var list = [{
|
|
45
|
-
value:
|
|
46
|
-
label:
|
|
47
|
-
}, {
|
|
48
|
-
value:
|
|
49
|
-
label:
|
|
50
|
-
}, {
|
|
51
|
-
value:
|
|
52
|
-
label:
|
|
53
|
-
}, {
|
|
54
|
-
value:
|
|
55
|
-
label:
|
|
56
|
-
}, {
|
|
57
|
-
value:
|
|
58
|
-
label:
|
|
58
|
+
value: "0",
|
|
59
|
+
label: "全部"
|
|
60
|
+
}, (0, _bsGlobal.hasWebHead)("okr") && {
|
|
61
|
+
value: "1",
|
|
62
|
+
label: "目标"
|
|
63
|
+
}, (0, _bsGlobal.hasWebHead)("okr") && {
|
|
64
|
+
value: "2",
|
|
65
|
+
label: "关键成果"
|
|
66
|
+
}, (0, _bsGlobal.hasWebHead)("project") && {
|
|
67
|
+
value: "3",
|
|
68
|
+
label: "项目"
|
|
69
|
+
}, (0, _bsGlobal.hasWebHead)("task") && {
|
|
70
|
+
value: "4",
|
|
71
|
+
label: "任务"
|
|
59
72
|
}, {
|
|
60
|
-
value:
|
|
61
|
-
label:
|
|
73
|
+
value: "5",
|
|
74
|
+
label: "总结"
|
|
75
|
+
}, (0, _bsGlobal.hasWebHead)("kaohe") && {
|
|
76
|
+
value: "6",
|
|
77
|
+
label: "绩效考核"
|
|
62
78
|
}];
|
|
63
79
|
|
|
64
|
-
var onMenuClickHandler = function onMenuClickHandler(name
|
|
65
|
-
|
|
80
|
+
var onMenuClickHandler = function onMenuClickHandler(name) {
|
|
81
|
+
setValue(name);
|
|
82
|
+
setParma("ObjectType", Number(name));
|
|
66
83
|
};
|
|
67
84
|
|
|
68
85
|
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(_dropdownLayer["default"], {
|
|
69
|
-
multi:
|
|
86
|
+
multi: false,
|
|
70
87
|
onChange: onMenuClickHandler,
|
|
71
|
-
popupPlacement:
|
|
72
|
-
hideOnChange:
|
|
88
|
+
popupPlacement: "bottom",
|
|
89
|
+
hideOnChange: true,
|
|
73
90
|
checked: value,
|
|
74
91
|
limitHeight: false,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
92
|
+
visible: visible,
|
|
93
|
+
trigger: /*#__PURE__*/_react["default"].createElement("span", {
|
|
94
|
+
onClick: function onClick() {
|
|
95
|
+
return setVisible(true);
|
|
96
|
+
}
|
|
97
|
+
}, /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"], {
|
|
98
|
+
noRightLine: true
|
|
99
|
+
}, "\u70B9\u8D5E\u6A21\u5757"))
|
|
79
100
|
}, list.map(function (item, key) {
|
|
80
101
|
return /*#__PURE__*/_react["default"].createElement(_dropdownLayer.Item, {
|
|
102
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "-checked"), item.value === value)),
|
|
103
|
+
key: key,
|
|
81
104
|
name: item.value
|
|
82
105
|
}, item.label);
|
|
83
106
|
})));
|
|
@@ -21,23 +21,50 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
21
21
|
|
|
22
22
|
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; }
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
|
+
|
|
26
|
+
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."); }
|
|
27
|
+
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
32
|
+
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; }
|
|
33
|
+
|
|
34
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
|
+
|
|
36
|
+
var Name = function Name(_ref) {
|
|
37
|
+
var setParma = _ref.setParma;
|
|
38
|
+
|
|
39
|
+
var _useState = (0, _react.useState)({}),
|
|
40
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
41
|
+
selected = _useState2[0],
|
|
42
|
+
setSelected = _useState2[1];
|
|
25
43
|
|
|
26
|
-
var Name = function Name() {
|
|
27
44
|
var onEditUserHandler = function onEditUserHandler(selectNodes) {
|
|
28
|
-
|
|
45
|
+
setSelected(selectNodes);
|
|
46
|
+
var users = selectNodes.users;
|
|
47
|
+
var userIds = "";
|
|
48
|
+
users.forEach(function (item, key) {
|
|
49
|
+
userIds = userIds + item.userId;
|
|
50
|
+
|
|
51
|
+
if (key != users.length - 1) {
|
|
52
|
+
userIds = userIds + ",";
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
setParma("ToUserIds", userIds);
|
|
29
56
|
};
|
|
30
57
|
|
|
31
58
|
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(_userSelector.FieldPersonSelector, {
|
|
32
59
|
multiple: true,
|
|
33
|
-
selectNodes:
|
|
60
|
+
selectNodes: selected,
|
|
34
61
|
onOk: onEditUserHandler,
|
|
35
62
|
position: "bottomLeft",
|
|
36
63
|
disabledDepartSelect: true,
|
|
37
64
|
isGetRoot: false,
|
|
38
65
|
panes: {
|
|
39
|
-
|
|
40
|
-
|
|
66
|
+
depart: true,
|
|
67
|
+
group: false
|
|
41
68
|
}
|
|
42
69
|
}, /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"], null, "\u59D3\u540D")));
|
|
43
70
|
};
|
|
@@ -5,6 +5,23 @@
|
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
.like-search-dropdown:hover {
|
|
9
|
+
color: #2879ff;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.like-search-dropdown::after {
|
|
13
|
+
content: '';
|
|
14
|
+
display: inline-block;
|
|
15
|
+
width: 1px;
|
|
16
|
+
height: 22px;
|
|
17
|
+
background: linear-gradient(150deg, rgba(191, 199, 213, 0) 0%, #BFC7D5 50%, rgba(240, 242, 245, 0) 100%);
|
|
18
|
+
margin: 0 10px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.like-search-dropdown-noRightLine::after {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
8
25
|
.like-search-dropdown__text {
|
|
9
26
|
margin-right: 4px;
|
|
10
27
|
}
|
|
@@ -7,17 +7,23 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
10
12
|
require("./index.css");
|
|
11
13
|
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
15
|
|
|
16
|
+
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; }
|
|
17
|
+
|
|
14
18
|
var preCls = "like-search-dropdown";
|
|
15
19
|
|
|
16
20
|
var SearchDropDown = function SearchDropDown(props) {
|
|
17
21
|
var children = props.children,
|
|
18
|
-
maxWidth = props.maxWidth
|
|
22
|
+
maxWidth = props.maxWidth,
|
|
23
|
+
_props$noRightLine = props.noRightLine,
|
|
24
|
+
noRightLine = _props$noRightLine === void 0 ? false : _props$noRightLine;
|
|
19
25
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
20
|
-
className: preCls
|
|
26
|
+
className: (0, _classnames["default"])(preCls, _defineProperty({}, "".concat(preCls, "-noRightLine"), noRightLine))
|
|
21
27
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
22
28
|
className: "".concat(preCls, "__text"),
|
|
23
29
|
style: {
|
|
@@ -9,7 +9,9 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _rangePickerPop = _interopRequireDefault(require("../../../components/range-picker-pop"));
|
|
13
|
+
|
|
14
|
+
var _formatTime = require("../../../utils/format-time");
|
|
13
15
|
|
|
14
16
|
var _searchDropdown = _interopRequireDefault(require("./search-dropdown"));
|
|
15
17
|
|
|
@@ -21,53 +23,33 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
21
23
|
|
|
22
24
|
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; }
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var _useState = (0, _react.useState)(),
|
|
40
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
41
|
-
name = _useState2[0],
|
|
42
|
-
setName = _useState2[1];
|
|
43
|
-
|
|
44
|
-
var onMenuClickHandler = function onMenuClickHandler(name) {
|
|
45
|
-
setName(name);
|
|
26
|
+
var Timer = function Timer(_ref) {
|
|
27
|
+
var setParma = _ref.setParma,
|
|
28
|
+
parmas = _ref.parmas,
|
|
29
|
+
setType = _ref.setType;
|
|
30
|
+
var _parmas$date = parmas.date,
|
|
31
|
+
createDate = _parmas$date.createDate,
|
|
32
|
+
endDate = _parmas$date.endDate;
|
|
33
|
+
|
|
34
|
+
var onStartDateConfirmHandler = function onStartDateConfirmHandler(data) {
|
|
35
|
+
setType("");
|
|
36
|
+
var date = {
|
|
37
|
+
createDate: data.startDate,
|
|
38
|
+
endDate: data.endDate
|
|
39
|
+
};
|
|
40
|
+
setParma("date", date);
|
|
46
41
|
};
|
|
47
42
|
|
|
48
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}, "\u672C\u5468"), /*#__PURE__*/_react["default"].createElement(_dropdownLayer.Item, {
|
|
59
|
-
name: "month",
|
|
60
|
-
isRadio: true,
|
|
61
|
-
onClick: onMenuClickHandler
|
|
62
|
-
}, "\u672C\u6708"), /*#__PURE__*/_react["default"].createElement(_dropdownLayer.Item, {
|
|
63
|
-
name: "year",
|
|
64
|
-
isRadio: true,
|
|
65
|
-
onClick: onMenuClickHandler
|
|
66
|
-
}, "\u672C\u5E74"), /*#__PURE__*/_react["default"].createElement(_dropdownLayer.Item, {
|
|
67
|
-
name: "custom",
|
|
68
|
-
isRadio: true,
|
|
69
|
-
onClick: onMenuClickHandler
|
|
70
|
-
}, "\u81EA\u5B9A\u4E49")));
|
|
43
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
44
|
+
format: "YYYY-MM-DD",
|
|
45
|
+
controlled: true,
|
|
46
|
+
onConfirm: onStartDateConfirmHandler,
|
|
47
|
+
defaultRange: {
|
|
48
|
+
startDate: createDate || (0, _formatTime.showMonthFirstDay)(),
|
|
49
|
+
endDate: endDate || (0, _formatTime.showMonthLastDay)()
|
|
50
|
+
} // container={container}
|
|
51
|
+
|
|
52
|
+
}, /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"], null, "\u65F6\u95F4")));
|
|
71
53
|
};
|
|
72
54
|
|
|
73
55
|
var _default = Timer;
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,48 @@
|
|
|
1
|
+
.like-ranking-page {
|
|
2
|
+
height: 100%;
|
|
3
|
+
background: #f0f4fa;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
overflow: scroll;
|
|
7
|
+
margin-right: -10px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.like-ranking-page__tab-bar {
|
|
11
|
+
display: flex;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.like-ranking-page__tab-bar-item {
|
|
15
|
+
text-align: center;
|
|
16
|
+
width: 64px;
|
|
17
|
+
height: 32px;
|
|
18
|
+
line-height: 32px;
|
|
19
|
+
background: #F7F8FA;
|
|
20
|
+
border-radius: 18px;
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
color: #3F4755;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
margin-right: 6px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.like-ranking-page__tab-bar-item--selected {
|
|
29
|
+
color: #2879ff;
|
|
30
|
+
background: rgba(40, 121, 255, 0.1);
|
|
31
|
+
}
|
|
32
|
+
|
|
1
33
|
.like-ranking-page__header {
|
|
2
34
|
width: 100%;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
min-height: 68px;
|
|
3
37
|
height: 68px;
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 0px;
|
|
4
40
|
display: flex;
|
|
5
41
|
align-items: center;
|
|
6
42
|
background: #FFFFFF;
|
|
7
43
|
box-shadow: 0px 0px 8px 0px #E9ECF0;
|
|
8
44
|
padding-left: 21px;
|
|
45
|
+
z-index: 2;
|
|
9
46
|
}
|
|
10
47
|
|
|
11
48
|
.like-ranking-page__header-line {
|
|
@@ -17,6 +54,7 @@
|
|
|
17
54
|
}
|
|
18
55
|
|
|
19
56
|
.like-ranking-page__header-back {
|
|
57
|
+
cursor: pointer;
|
|
20
58
|
font-size: 14px;
|
|
21
59
|
font-weight: 400;
|
|
22
60
|
color: #6F7886;
|
|
@@ -26,6 +64,10 @@
|
|
|
26
64
|
margin-right: 5px;
|
|
27
65
|
}
|
|
28
66
|
|
|
67
|
+
.like-ranking-page__header-back:hover {
|
|
68
|
+
color: #2879ff;
|
|
69
|
+
}
|
|
70
|
+
|
|
29
71
|
.like-ranking-page__header-text {
|
|
30
72
|
font-size: 20px;
|
|
31
73
|
font-weight: 600;
|
|
@@ -33,9 +75,9 @@
|
|
|
33
75
|
}
|
|
34
76
|
|
|
35
77
|
.like-ranking-page__btns {
|
|
78
|
+
margin-top: 80px;
|
|
36
79
|
display: flex;
|
|
37
80
|
justify-content: space-between;
|
|
38
|
-
margin-top: 26px;
|
|
39
81
|
padding: 0 20px;
|
|
40
82
|
text-align: center;
|
|
41
83
|
}
|
|
@@ -53,16 +95,51 @@
|
|
|
53
95
|
}
|
|
54
96
|
|
|
55
97
|
.like-ranking-page__content {
|
|
56
|
-
|
|
98
|
+
flex: 1;
|
|
99
|
+
margin: 12px 8px 0 20px;
|
|
57
100
|
background: #FFFFFF;
|
|
58
101
|
box-shadow: 0px 0px 8px 0px #F7F9FB;
|
|
59
102
|
border-radius: 6px;
|
|
60
103
|
padding: 16px 20px;
|
|
61
104
|
}
|
|
62
105
|
|
|
106
|
+
.like-ranking-page__loading {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex: 1;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
padding-top: 160px;
|
|
111
|
+
align-items: center;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.like-ranking-page__loading-image {
|
|
115
|
+
width: 100px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.like-ranking-page__empty {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex: 1;
|
|
121
|
+
align-items: center;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
background: #ffffff;
|
|
124
|
+
padding-top: 160px;
|
|
125
|
+
border-radius: 6px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.like-ranking-page__empty-img {
|
|
129
|
+
width: 128px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.like-ranking-page__empty-text {
|
|
133
|
+
margin-top: 16px;
|
|
134
|
+
color: #3F4755;
|
|
135
|
+
font-size: 14px;
|
|
136
|
+
line-height: 22px;
|
|
137
|
+
}
|
|
138
|
+
|
|
63
139
|
.like-ranking-table__td {
|
|
64
140
|
font-size: 14px;
|
|
65
|
-
|
|
141
|
+
overflow: hidden;
|
|
142
|
+
margin-right: 4px;
|
|
66
143
|
}
|
|
67
144
|
|
|
68
145
|
.like-ranking-table__td-raking {
|
|
@@ -101,6 +178,8 @@
|
|
|
101
178
|
}
|
|
102
179
|
|
|
103
180
|
.like-ranking-table-ranking {
|
|
181
|
+
display: inline-block;
|
|
104
182
|
font-size: 18px;
|
|
105
|
-
|
|
183
|
+
width: 28px;
|
|
184
|
+
text-align: center;
|
|
106
185
|
}
|