@titaui/pc 1.6.15 → 1.6.16
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/index.js +1 -1
- package/lib/components/button/index.js +1 -1
- package/lib/components/change-okr/styledComponents.js +1 -1
- package/lib/components/communication/style.js +1 -1
- package/lib/components/create-okr/constant.js +1 -1
- package/lib/components/create-okr/createSuccessCmp.js +6 -2
- package/lib/components/create-okr/fields/index.js +1 -1
- package/lib/components/create-okr/index.js +16 -1
- package/lib/components/create-okr/request-api.js +1 -1
- package/lib/components/create-okr/style.js +1 -1
- package/lib/components/create-okr/utils/helper.js +1 -1
- package/lib/components/delete-confirm-pop/style.js +1 -1
- package/lib/components/dialog/index.css +1 -0
- package/lib/components/dropdown-layer/index.js +1 -1
- package/lib/components/dynamic/constant.js +1 -1
- package/lib/components/dynamic/dynamic-like-ranking/index.css +1 -1
- package/lib/components/dynamic/dynamic-liking/index.css +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +7 -1
- package/lib/components/dynamic/dynamic-topping/index.css +1 -1
- package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
- package/lib/components/dynamic/dynamic.js +3 -3
- package/lib/components/dynamic/export-module/index.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/request-api.js +1 -1
- package/lib/components/dynamic/util.js +1 -1
- package/lib/components/eReport/eReportLists/style.js +1 -1
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/eReport/eReportShare/toast/style.js +1 -1
- package/lib/components/edit-kr-wight/style/index.js +1 -1
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/form/index.js +1 -1
- package/lib/components/grid-page/commen-components/index.js +4 -4
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/util/network.js +1 -1
- package/lib/components/help-card/index.css +4 -4
- package/lib/components/mblog/common/index.js +3 -3
- package/lib/components/mblog/style.js +1 -1
- package/lib/components/menus/components/flip-menu-card/index.css +0 -1
- package/lib/components/menus/components/flip-menu-card/index.js +26 -16
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/KH-help.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/mypingjia.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/cases.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/{rw-zx.svg → panel.svg} +0 -0
- package/lib/components/menus/components/menu-tree/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.css +0 -1
- package/lib/components/menus/components/menu-tree/tree-node/company-all-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +1 -0
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.css +0 -1
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.js +3 -1
- package/lib/components/menus/components/menu-tree/tree-node/group-name-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +56 -15
- package/lib/components/menus/components/menu-tree/tree-node/loading-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/menu-item-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/menu-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/no-follower-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +0 -1
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +3 -0
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +13 -1
- package/lib/components/menus/export-modules/okr-menus/datas.js +7 -2
- package/lib/components/menus/export-modules/okr-menus/index.css +2 -0
- package/lib/components/menus/export-modules/subordinate-menus/index.js +10 -3
- package/lib/components/menus/index.js +1 -1
- package/lib/components/menus/request-apis.js +1 -1
- package/lib/components/nav-top/components/menu/index.css +1 -0
- package/lib/components/nav-top/components/user-message/components/empty/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/index.css +1 -0
- package/lib/components/nav-top/components/user-message/components/inform/index.js +14 -107
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +133 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.css +1 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.js +8 -48
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +71 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.css +1 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.js +14 -57
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +75 -0
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +8 -3
- package/lib/components/nav-top/components/user-message/components/todos/index.css +1 -0
- package/lib/components/nav-top/components/user-message/components/todos/index.js +15 -73
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +70 -0
- package/lib/components/nav-top/components/user-message/constant.js +2 -29
- package/lib/components/nav-top/components/user-message/index.css +5 -5
- package/lib/components/nav-top/components/user-message/index.js +24 -16
- package/lib/components/nav-top/components/user-message/msg/index.css +5 -30
- package/lib/components/nav-top/components/user-message/msg/index.js +20 -2
- package/lib/components/nav-top/components/user-message/utils.js +22 -5
- package/lib/components/nav-top/components/user-own-menu/index.css +2 -1
- package/lib/components/nav-top/components/user-own-menu/index.js +2 -3
- package/lib/components/nav-top/components/user-own-menu/utils.js +6 -20
- package/lib/components/nav-top/constant.js +2 -10
- package/lib/components/nav-top/index.css +55 -0
- package/lib/components/nav-top/index.js +3 -2
- package/lib/components/nav-top/request.apis.js +5 -7
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/base-info/util.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +1 -1
- package/lib/components/okr-detail/context.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +2 -2
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +1 -1
- package/lib/components/okr-detail/detail-header/enums.js +1 -1
- package/lib/components/okr-detail/e-list/constant.js +1 -1
- package/lib/components/okr-detail/e-list/util.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +2 -1
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-detail/schedule/util.js +1 -1
- package/lib/components/okr-filter-drawer/filter-form.js +64 -38
- package/lib/components/okr-filter-drawer/index.js +14 -2
- package/lib/components/okr-flow/index.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +1 -1
- package/lib/components/okr-flow/request-apis.js +1 -1
- package/lib/components/okr-flow/utils/config.js +1 -1
- package/lib/components/okr-flow/utils/index.js +1 -1
- package/lib/components/okr-flow/utils/tree-handler.js +1 -1
- package/lib/components/okr-progress/request-apis.js +1 -1
- package/lib/components/okr-progress/util.js +1 -1
- package/lib/components/okr-progress-detail/utils.js +1 -1
- package/lib/components/okr-progress-modal/helper.js +1 -1
- package/lib/components/okr-progress-modal/style.js +1 -1
- package/lib/components/okr-progress-modal/textarea/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/style.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/style.js +1 -1
- package/lib/components/okr-review/style.js +1 -1
- package/lib/components/okr-share/common-painter/utils.js +1 -1
- package/lib/components/okr-share/pink-card/images.js +1 -1
- package/lib/components/okr-share/request-apis.js +1 -1
- package/lib/components/okrcase-library/index.css +1 -1
- package/lib/components/okrcase-library/index.js +6 -1
- package/lib/components/okrcase-library/new-ui.css +52 -0
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
- package/lib/components/okrcase-library/server/network.js +1 -1
- package/lib/components/open-data-painter/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/period-selector/common.js +2 -2
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/components/selector/style.js +1 -1
- package/lib/components/period-selector/helper/index.js +1 -1
- package/lib/components/period-selector/mockData.js +1 -1
- package/lib/components/period-selector/style.js +1 -1
- package/lib/components/photo-card/components/card/index.css +11 -1
- package/lib/components/photo-card/components/card/index.js +68 -105
- package/lib/components/photo-card/index.css +3 -2
- package/lib/components/photo-card/index.js +48 -8
- package/lib/components/pop-down-notification/components/SuccessRender.js +1 -1
- package/lib/components/pop-down-notification/style/index.js +1 -1
- package/lib/components/praise-record/style.js +1 -1
- package/lib/components/progress/index.js +1 -1
- package/lib/components/publish-dynamic-modal/requist-api.js +1 -1
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation/helper.js +1 -1
- package/lib/components/task-relation/request-api.js +1 -1
- package/lib/components/tita-chart/index.js +4 -4
- package/lib/components/tita-chart/util/index.js +12 -12
- package/lib/components/tita-chart/util/utils.js +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upload/util.js +1 -1
- package/lib/components/upvote/request-apis.js +1 -1
- package/lib/components/user-selector/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/components/user-selector/utils.js +1 -1
- package/lib/components/version-change-modal/request-api.js +1 -1
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/avatar/styles.js +1 -1
- package/lib/components-v1/buttonv2/style/style.js +1 -1
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/input/style/index.js +1 -1
- package/lib/components-v1/popConfirm/style.js +1 -1
- package/lib/components-v1/tabs/style.js +1 -1
- package/lib/components-v1/textarea/style.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
- package/lib/components-v1/userSelector/style.js +1 -1
- package/lib/index.js +1 -1
- package/lib/pages/aha2021/index.css +16 -0
- package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js +1 -1
- package/lib/pages/group-management/components/PopDownNotification/style/index.js +1 -1
- package/lib/pages/group-management/components/openData/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +10 -10
- package/lib/pages/home-page/components/data-list/table/columns/index.js +1 -1
- package/lib/pages/new-okr-list/header/comments.js +104 -0
- package/lib/pages/new-okr-list/header/depart-title.js +43 -3
- package/lib/pages/new-okr-list/header/filter.js +50 -13
- package/lib/pages/new-okr-list/header/index.css +87 -0
- package/lib/pages/new-okr-list/header/index.js +62 -23
- package/lib/pages/new-okr-list/header/relation-title.js +28 -0
- package/lib/pages/new-okr-list/header/user-title.js +10 -3
- package/lib/pages/new-okr-list/index.js +110 -29
- package/lib/pages/new-okr-list/interface.js +5 -0
- package/lib/pages/new-okr-list/keyword-search/index.css +2 -2
- package/lib/pages/new-okr-list/keyword-search/index.js +11 -5
- package/lib/pages/new-okr-list/list/index.js +0 -1
- package/lib/pages/new-okr-list/request-api.js +104 -3
- package/lib/pages/new-okr-list/theme.css +4 -0
- package/lib/pages/okr-map/hooks/useStorage.js +1 -1
- package/lib/pages/okr-map/open-data/index.js +1 -1
- package/lib/pages/okr-map/request-apis.js +1 -1
- package/lib/pages/okr-map/utils.js +2 -1
- package/lib/utils/auth.js +1 -1
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/format-time.js +1 -1
- package/lib/utils/helpers.js +1 -1
- package/lib/utils/local-storage.js +40 -0
- package/lib/utils/mblog.js +1 -1
- package/lib/utils/open-data.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/request.js +1 -1
- package/lib/utils/roundWeight.js +2 -2
- package/lib/utils/tools.js +4 -3
- package/package.json +2 -2
|
@@ -15,16 +15,12 @@ var _default2 = _interopRequireDefault(require("../../../../components/avatar/de
|
|
|
15
15
|
|
|
16
16
|
var _tooltipText = _interopRequireDefault(require("../../../tooltip/tooltip-text"));
|
|
17
17
|
|
|
18
|
+
var _conditionRender = _interopRequireDefault(require("../../../dynamic/components/condition-render"));
|
|
19
|
+
|
|
18
20
|
var _request = require("../../../../utils/request");
|
|
19
21
|
|
|
20
22
|
var _userAdd = _interopRequireDefault(require("../../images/user-add.svg"));
|
|
21
23
|
|
|
22
|
-
var _assistant = _interopRequireDefault(require("../../images/assistant.svg"));
|
|
23
|
-
|
|
24
|
-
var _boss = _interopRequireDefault(require("../../images/boss.svg"));
|
|
25
|
-
|
|
26
|
-
var _superManager = _interopRequireDefault(require("../../images/super-manager.svg"));
|
|
27
|
-
|
|
28
24
|
require("./index.css");
|
|
29
25
|
|
|
30
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -50,7 +46,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
50
46
|
var preCls = "titaui-photo-card";
|
|
51
47
|
|
|
52
48
|
var Card = function Card(props) {
|
|
53
|
-
var userInfo = props.userInfo
|
|
49
|
+
var userInfo = props.userInfo,
|
|
50
|
+
userownInfo = props.userownInfo;
|
|
54
51
|
|
|
55
52
|
var _useState = (0, _react.useState)({}),
|
|
56
53
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -77,122 +74,88 @@ var Card = function Card(props) {
|
|
|
77
74
|
visitData = _useState10[0],
|
|
78
75
|
setVisitData = _useState10[1];
|
|
79
76
|
|
|
80
|
-
var _useState11 = (0, _react.useState)(""),
|
|
81
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
82
|
-
role = _useState12[0],
|
|
83
|
-
setRole = _useState12[1];
|
|
84
|
-
|
|
85
77
|
(0, _react.useEffect)(function () {
|
|
86
|
-
(0, _request.rget)("v1")("follow/getFollowerList?toUserId=".concat(userInfo.
|
|
78
|
+
(0, _request.rget)("v1")("follow/getFollowerList?toUserId=".concat(userInfo.userId)).then(function (res) {
|
|
87
79
|
setAttentionData(res.Data.total);
|
|
88
80
|
});
|
|
89
|
-
(0, _request.rget)("v1")("okr/okrCyclePageVisitor?toUserId=".concat(userInfo.
|
|
81
|
+
(0, _request.rget)("v1")("okr/okrCyclePageVisitor?toUserId=".concat(userInfo.userId)).then(function (res) {
|
|
90
82
|
setVisitData(res.Data.total);
|
|
91
|
-
});
|
|
83
|
+
}); //背景图片
|
|
92
84
|
|
|
93
|
-
if (userInfo.
|
|
85
|
+
if (userInfo.avatar.hasAvatar) {
|
|
94
86
|
setBackGroundstyle({
|
|
95
|
-
backgroundImage: "url(".concat(userInfo.
|
|
96
|
-
backgroundSize: "278px 190px"
|
|
97
|
-
backdropFilter: "blur(4px)"
|
|
87
|
+
backgroundImage: "url(".concat(userInfo.avatar.big, ")"),
|
|
88
|
+
backgroundSize: "278px 190px"
|
|
98
89
|
});
|
|
99
90
|
} else {
|
|
100
91
|
setBackGroundstyle({
|
|
101
|
-
backgroundColor: userInfo.
|
|
92
|
+
backgroundColor: userInfo.avatar.color
|
|
102
93
|
});
|
|
103
|
-
} // if (new OAuth().isPrincipalUser()) {
|
|
104
|
-
// setRole(DepartLeader);
|
|
105
|
-
// }
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
for (var item in userInfo) {
|
|
109
|
-
switch (item) {
|
|
110
|
-
case "IsBoss":
|
|
111
|
-
if (userInfo["IsBoss"]) {
|
|
112
|
-
setRole(_boss["default"]);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
break;
|
|
116
|
-
|
|
117
|
-
case "Role":
|
|
118
|
-
if (userInfo["Role"] === 2) {
|
|
119
|
-
setRole(_superManager["default"]);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (userInfo["Role"] === 4) {
|
|
123
|
-
setRole(_assistant["default"]);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
break;
|
|
127
|
-
}
|
|
128
94
|
}
|
|
129
95
|
}, []); //处理关注量的值+1的回调
|
|
130
96
|
|
|
131
|
-
var
|
|
97
|
+
var addAttentionCount = function addAttentionCount() {
|
|
132
98
|
setIsClickable(false);
|
|
133
99
|
|
|
134
100
|
if (isClickable) {
|
|
135
|
-
setIsAttention(true);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
101
|
+
setIsAttention(true);
|
|
102
|
+
setAttentionData(attentionData + 1);
|
|
103
|
+
(0, _request.rpost)("v1")("follow/addFollower?followerId=".concat(userInfo.userId), userownInfo);
|
|
104
|
+
}
|
|
140
105
|
};
|
|
141
106
|
|
|
142
|
-
return (
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}, "\u5173\u6CE8")))
|
|
195
|
-
);
|
|
107
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
|
+
className: (0, _classnames["default"])(preCls)
|
|
109
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
|
+
className: (0, _classnames["default"])("".concat(preCls, "__background")),
|
|
111
|
+
style: backGroundstyle
|
|
112
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
113
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header"))
|
|
114
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header-img"))
|
|
116
|
+
}, /*#__PURE__*/_react["default"].createElement(_default2["default"], {
|
|
117
|
+
userId: userInfo.userId,
|
|
118
|
+
name: userInfo.name,
|
|
119
|
+
color: userInfo.avatar.color,
|
|
120
|
+
src: userInfo.avatar.big
|
|
121
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
122
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header-name"))
|
|
123
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
124
|
+
overlayClassName: "".concat(preCls, "__header-name-tooltip"),
|
|
125
|
+
text: userInfo.name,
|
|
126
|
+
maxWidth: 228,
|
|
127
|
+
mouseEnterDelay: 0.8
|
|
128
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
129
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header-depart"))
|
|
130
|
+
}, userInfo.departmentName)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
|
+
className: (0, _classnames["default"])("".concat(preCls, "__data"))
|
|
132
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
|
+
className: (0, _classnames["default"])("".concat(preCls, "__data-attention"))
|
|
134
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
135
|
+
className: (0, _classnames["default"])("".concat(preCls, "__data-attention-count"))
|
|
136
|
+
}, attentionData >= 10000 ? "1w+" : attentionData), /*#__PURE__*/_react["default"].createElement("span", {
|
|
137
|
+
className: (0, _classnames["default"])("".concat(preCls, "__data-attention-title"))
|
|
138
|
+
}, "\u5173\u6CE8\u91CF")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
|
+
className: (0, _classnames["default"])("".concat(preCls, "__data-visit"))
|
|
140
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
141
|
+
className: (0, _classnames["default"])("".concat(preCls, "__data-visit-count"))
|
|
142
|
+
}, visitData >= 10000 ? "1w+" : visitData), /*#__PURE__*/_react["default"].createElement("span", {
|
|
143
|
+
className: (0, _classnames["default"])("".concat(preCls, "__data-visit-title"))
|
|
144
|
+
}, "\u8BBF\u95EE\u91CF"))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
145
|
+
condition: userInfo.userId !== userownInfo.Id
|
|
146
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
|
+
className: (0, _classnames["default"])("".concat(preCls, "__attention-btn")),
|
|
148
|
+
onClick: function onClick() {
|
|
149
|
+
return addAttentionCount();
|
|
150
|
+
}
|
|
151
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
152
|
+
src: _userAdd["default"],
|
|
153
|
+
className: (0, _classnames["default"])("".concat(preCls, "__attention-btn-img"), _defineProperty({}, "".concat(preCls, "__attention-btn-img--hide"), isAttention))
|
|
154
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
|
+
className: (0, _classnames["default"])("".concat(preCls, "__attention-btn-img--hide"), _defineProperty({}, "".concat(preCls, "__attention-btn-img--show"), isAttention))
|
|
156
|
+
}, "\u5DF2\u5173\u6CE8"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
157
|
+
className: (0, _classnames["default"])("".concat(preCls, "__attention-btn-title"), _defineProperty({}, "".concat(preCls, "__attention-btn-img--hide"), isAttention))
|
|
158
|
+
}, "\u5173\u6CE8"))));
|
|
196
159
|
};
|
|
197
160
|
|
|
198
161
|
var _default = Card;
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
width: 36px;
|
|
3
3
|
height: 36px;
|
|
4
4
|
border-radius: 35px;
|
|
5
|
+
cursor: pointer;
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
.titaui-photo__card {
|
|
8
|
-
animation: show 0.5s forwards;
|
|
9
|
+
animation: titaui-photo-card-show 0.5s forwards;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.titaui-photo .titaui-pc-avator-container img {
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
height: 36px !important;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
@keyframes show {
|
|
22
|
+
@keyframes titaui-photo-card-show {
|
|
22
23
|
from {
|
|
23
24
|
opacity: 0;
|
|
24
25
|
}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _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"));
|
|
9
11
|
|
|
10
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
13
|
|
|
12
14
|
var _popup = _interopRequireDefault(require("../popup"));
|
|
13
15
|
|
|
16
|
+
var _request = require("../../utils/request");
|
|
17
|
+
|
|
14
18
|
var _default2 = _interopRequireDefault(require("../../components/avatar/default"));
|
|
15
19
|
|
|
16
20
|
var _bsGlobal = require("../../utils/bs-global");
|
|
@@ -21,6 +25,22 @@ require("./index.css");
|
|
|
21
25
|
|
|
22
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
27
|
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
32
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
|
+
|
|
34
|
+
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."); }
|
|
35
|
+
|
|
36
|
+
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); }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
|
+
|
|
24
44
|
var prefixCls = "titaui-photo";
|
|
25
45
|
var popupAlign = {
|
|
26
46
|
offset: [-40, -36],
|
|
@@ -30,12 +50,32 @@ var popupAlign = {
|
|
|
30
50
|
},
|
|
31
51
|
targetOffset: [0, 0]
|
|
32
52
|
};
|
|
33
|
-
var
|
|
53
|
+
var userownInfo = (0, _bsGlobal.getUserInfo)();
|
|
54
|
+
|
|
55
|
+
var PhotoCard = function PhotoCard(props) {
|
|
56
|
+
var userId = props.userId;
|
|
57
|
+
|
|
58
|
+
var _useState = (0, _react.useState)(),
|
|
59
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
60
|
+
userInfo = _useState2[0],
|
|
61
|
+
setUserInfo = _useState2[1];
|
|
62
|
+
|
|
63
|
+
(0, _react.useEffect)(function () {
|
|
64
|
+
(0, _request.rget)("v2")("user/GetById?toUserid=".concat(userId)).then(function (res) {
|
|
65
|
+
console.log(res);
|
|
66
|
+
console.log(1111);
|
|
34
67
|
|
|
35
|
-
|
|
68
|
+
if (res.Code === 1) {
|
|
69
|
+
setUserInfo(res.Data);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}, [userId]);
|
|
73
|
+
console.log(userInfo);
|
|
74
|
+
if (!userInfo) return null;
|
|
36
75
|
return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
37
76
|
popup: /*#__PURE__*/_react["default"].createElement(_card["default"], {
|
|
38
|
-
userInfo: userInfo
|
|
77
|
+
userInfo: userInfo,
|
|
78
|
+
userownInfo: userownInfo
|
|
39
79
|
}),
|
|
40
80
|
action: ["click"],
|
|
41
81
|
mask: false,
|
|
@@ -44,10 +84,10 @@ var PhotoCard = function PhotoCard() {
|
|
|
44
84
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
45
85
|
className: (0, _classnames["default"])("".concat(prefixCls))
|
|
46
86
|
}, /*#__PURE__*/_react["default"].createElement(_default2["default"], {
|
|
47
|
-
userId: userInfo.
|
|
48
|
-
name: userInfo.
|
|
49
|
-
color: userInfo.
|
|
50
|
-
src: userInfo.
|
|
87
|
+
userId: userInfo.userId,
|
|
88
|
+
name: userInfo.name,
|
|
89
|
+
color: userInfo.avatar.color,
|
|
90
|
+
src: userInfo.avatar.big
|
|
51
91
|
})));
|
|
52
92
|
};
|
|
53
93
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.RenderError = RenderError;
|
|
6
7
|
exports.RenderSuccess = RenderSuccess;
|
|
7
8
|
exports.RenderWarning = RenderWarning;
|
|
8
|
-
exports.RenderError = RenderError;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.PraiseRecordWrapper = exports.PraiseRecordMore = exports.PraiseRecordList = exports.PraiseRecordItems = exports.PraiseRecordHead = exports.PraiseRecordDetail = exports.PraiseRecordContent = exports.PraiseRecordContainer = exports.PraiseRecordClose = exports.PraiseContent = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports["default"] = exports.RadioGroup = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports["default"] = exports.TabPane = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.preCls = exports.lableTypeMap = exports.isOpenWorkManage = exports.isOpenOkrManage = exports.isOpenLabel = exports.formatDateStr = void 0;
|
|
7
7
|
|
|
8
8
|
var _bsGlobal = require("../../utils/bs-global");
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.updateLable = exports.relationWorks = exports.okrSearch = exports.getWorks = exports.getUserById = exports.getCategory = void 0;
|
|
7
7
|
|
|
8
8
|
var _request = require("../../utils/request");
|
|
9
9
|
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "TitaLiquidBall", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _liquidBall["default"];
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "TitaPieChart", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return
|
|
15
|
+
return _pie["default"];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "TitaWordsCloud", {
|
|
@@ -3,40 +3,40 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "clone", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return _utils.
|
|
9
|
+
return _utils.clone;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "deepClone", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return _utils.
|
|
15
|
+
return _utils.deepClone;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "getChart", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function get() {
|
|
21
|
-
return
|
|
21
|
+
return _getChart.getChart;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "hasPath", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function get() {
|
|
27
|
-
return _utils.
|
|
27
|
+
return _utils.hasPath;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "isType", {
|
|
31
31
|
enumerable: true,
|
|
32
32
|
get: function get() {
|
|
33
|
-
return _utils.
|
|
33
|
+
return _utils.isType;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
Object.defineProperty(exports, "
|
|
36
|
+
Object.defineProperty(exports, "setPath", {
|
|
37
37
|
enumerable: true,
|
|
38
38
|
get: function get() {
|
|
39
|
-
return
|
|
39
|
+
return _utils.setPath;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.setPath = exports.
|
|
6
|
+
exports.setPath = exports.isType = exports.hasPath = exports.getType = exports.deepClone = exports.clone = void 0;
|
|
7
7
|
|
|
8
8
|
/* eslint-disable no-restricted-syntax */
|
|
9
9
|
// 类型检测
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.
|
|
6
|
+
exports["default"] = exports.TooltipText = exports.ErrorToolTip = void 0;
|
|
7
7
|
|
|
8
8
|
var _tooltip = _interopRequireDefault(require("./tooltip"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.UploadStatus = exports.UploadProgress = exports.UploadFormContainer = exports.UploadForm = exports.PreviewOptionsWrapper = exports.PreviewMessageWrapper = exports.PreviewImageWrapper = exports.PreviewImageIcon = exports.PreviewFileTitle = exports.PreviewContent = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.isImg = exports.getPreviewImgs = exports.getFileTypeMapIcon = exports.getFileSize = void 0;
|
|
7
7
|
|
|
8
8
|
var _doc = _interopRequireDefault(require("./img/doc.svg"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.praise = exports.getPriseList = exports.cancelPraise = void 0;
|
|
7
7
|
|
|
8
8
|
var _axios = _interopRequireDefault(require("axios"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SingleSelector = exports.
|
|
6
|
+
exports.SingleSelector = exports.GroupSelector = exports.FieldPersonSelector = exports.DutiesSelector = exports.DepartSearchSelector = void 0;
|
|
7
7
|
|
|
8
8
|
var _fieldTreeSelector = _interopRequireDefault(require("./export-modules/field-tree-selector"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.searchGroups = exports.search = exports.getTreeData = exports.getGourps = exports.getDuties = void 0;
|
|
7
7
|
|
|
8
8
|
var _axios = _interopRequireDefault(require("axios"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.translateUsersToTreeNode = exports.translateGroupsToTreeNode = exports.translateDepartsToTreeNode = exports.toTree = exports.orderPersonBeforeDeparts = exports.loadPersonTreeNodes = void 0;
|
|
7
7
|
|
|
8
8
|
var _cloneDeep = _interopRequireDefault(require("clone-deep"));
|
|
9
9
|
|