@titaui/pc 1.11.21-beta.13 → 1.11.21-beta.30
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/create-okr-modal/index.js +3 -1
- package/lib/components/drawer/index.css +0 -11
- package/lib/components/drawer/index.js +2 -8
- package/lib/components/dynamic/constant.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +11 -3
- package/lib/components/dynamic/index.js +9 -12
- package/lib/components/dynamic/request-api.js +7 -68
- package/lib/components/eReport/eReportShare/index.js +1 -1
- package/lib/components/grid-layout/sub-employee-okr/person-okr.js +8 -2
- package/lib/components/nav-top/index.js +2 -2
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +2 -3
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +27 -17
- package/lib/components/okr-detail/detail-header/index.css +11 -0
- package/lib/components/okr-detail/detail-header/index.js +25 -21
- package/lib/components/okr-period-selector/index.js +9 -5
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +7 -2
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +16 -10
- package/lib/components/superset-charts/utils/axios.js +0 -8
- package/lib/components/survey-model/contact.js +1 -1
- package/lib/components/toast/index.js +5 -3
- package/lib/pages/new-okr-list/header/index.js +1 -1
- package/lib/pages/new-okr-list/header/operate-record.js +8 -6
- 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/index.js +0 -126
- 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/index.js +0 -79
- 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/index.js +0 -82
- 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/components/create-task/index.js +0 -44
- 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
|
@@ -351,7 +351,9 @@ function CreateOkrModal(_ref, ref) {
|
|
|
351
351
|
setData: function setData(data) {
|
|
352
352
|
setOkrName(data.okrName);
|
|
353
353
|
setUser(data.user);
|
|
354
|
-
}
|
|
354
|
+
},
|
|
355
|
+
show: showCreateOkrModal,
|
|
356
|
+
hide: hideCreateOkrModal
|
|
355
357
|
};
|
|
356
358
|
});
|
|
357
359
|
var handleOnSuccess = (0, _react.useCallback)(function () {
|
|
@@ -48,17 +48,6 @@
|
|
|
48
48
|
background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #BFC7D5 50%, rgba(240, 242, 245, 0) 100%);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
.titaui-drawer-header-status {
|
|
52
|
-
display: inline-flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
border-radius: 16px;
|
|
56
|
-
width: 68px;
|
|
57
|
-
height: 28px;
|
|
58
|
-
margin-right: 18px;
|
|
59
|
-
font-size: 12px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
51
|
.titaui-drawer-header-action {
|
|
63
52
|
font-size: 18px;
|
|
64
53
|
color: #a4acb9;
|
|
@@ -141,8 +141,8 @@ function DrawerHeader(_ref) {
|
|
|
141
141
|
content = _ref.content,
|
|
142
142
|
style = _ref.style,
|
|
143
143
|
onClose = _ref.onClose,
|
|
144
|
-
status = _ref.status,
|
|
145
144
|
actionComponent = _ref.actionComponent,
|
|
145
|
+
onlyShowContent = _ref.onlyShowContent,
|
|
146
146
|
approvalSetting = _ref.approvalSetting,
|
|
147
147
|
detailInfo = _ref.detailInfo;
|
|
148
148
|
var drawer = (0, _react.useContext)(DrawerContext);
|
|
@@ -173,13 +173,7 @@ function DrawerHeader(_ref) {
|
|
|
173
173
|
style: {
|
|
174
174
|
flex: 1
|
|
175
175
|
}
|
|
176
|
-
}),
|
|
177
|
-
className: "titaui-drawer-header-status",
|
|
178
|
-
style: {
|
|
179
|
-
color: status.color.color,
|
|
180
|
-
backgroundColor: status.color.bgColor
|
|
181
|
-
}
|
|
182
|
-
}, status.title), /*#__PURE__*/_react["default"].createElement("div", null, actionComponent), displayActions.map(function (action) {
|
|
176
|
+
}), /*#__PURE__*/_react["default"].createElement("div", null, onlyShowContent), /*#__PURE__*/_react["default"].createElement("div", null, actionComponent), displayActions.map(function (action) {
|
|
183
177
|
return /*#__PURE__*/_react["default"].createElement(_headerAction["default"], action);
|
|
184
178
|
}), !!collapsedActions.length && /*#__PURE__*/_react["default"].createElement(_headerAction["default"], {
|
|
185
179
|
approvalSetting: approvalSetting,
|
|
@@ -118,5 +118,5 @@ var EStatusStatus2ClassType = {
|
|
|
118
118
|
5: "tu-icon-jiantou-right"
|
|
119
119
|
};
|
|
120
120
|
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
121
|
-
var PlanReportType = ["titaPlanReport"];
|
|
121
|
+
var PlanReportType = ["titaPlanReport", "titaPlanManagerReport"];
|
|
122
122
|
exports.PlanReportType = PlanReportType;
|
|
@@ -17,6 +17,8 @@ var _conditionRender = _interopRequireDefault(require("../../condition-render"))
|
|
|
17
17
|
|
|
18
18
|
var _getLocale = require("../../../utils/getLocale");
|
|
19
19
|
|
|
20
|
+
var _context = require("../context");
|
|
21
|
+
|
|
20
22
|
require("./index.css");
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -29,7 +31,9 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
29
31
|
dynamicShareIsShowToping = _ref.dynamicShareIsShowToping,
|
|
30
32
|
onDeleteFeed = _ref.onDeleteFeed,
|
|
31
33
|
_ref$height = _ref.height,
|
|
32
|
-
height = _ref$height === void 0 ? -1 : _ref$height
|
|
34
|
+
height = _ref$height === void 0 ? -1 : _ref$height,
|
|
35
|
+
_ref$searchKeyWord = _ref.searchKeyWord,
|
|
36
|
+
searchKeyWord = _ref$searchKeyWord === void 0 ? "" : _ref$searchKeyWord;
|
|
33
37
|
|
|
34
38
|
var handleDeleteFeed = function handleDeleteFeed(feedId) {
|
|
35
39
|
if (onDeleteFeed) {
|
|
@@ -37,7 +41,11 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
37
41
|
}
|
|
38
42
|
};
|
|
39
43
|
|
|
40
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
44
|
+
return /*#__PURE__*/_react["default"].createElement(_context.SearchKeyContext.Provider, {
|
|
45
|
+
value: {
|
|
46
|
+
searchKeyWord: searchKeyWord
|
|
47
|
+
}
|
|
48
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
49
|
className: prefix,
|
|
42
50
|
style: {
|
|
43
51
|
minHeight: height === -1 ? "auto" : height
|
|
@@ -72,7 +80,7 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
72
80
|
onDeleteFeed: handleDeleteFeed,
|
|
73
81
|
dynamicShareIsShowToping: dynamicShareIsShowToping
|
|
74
82
|
}));
|
|
75
|
-
}))));
|
|
83
|
+
})))));
|
|
76
84
|
};
|
|
77
85
|
|
|
78
86
|
var _default = DynamicList;
|
|
@@ -1,23 +1,20 @@
|
|
|
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
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports["default"] = void 0;
|
|
9
7
|
|
|
10
|
-
var
|
|
8
|
+
var _dynamicList = _interopRequireDefault(require("./dynamic-list"));
|
|
9
|
+
|
|
10
|
+
var _dynamicItem = _interopRequireDefault(require("./dynamic-item"));
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
var _context = require("./context");
|
|
13
13
|
|
|
14
|
-
function
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
_exportModule["default"].QuickOperation = _exportModule.DynamicQuickOperation;
|
|
21
|
-
_exportModule["default"].Topping = _exportModule.DynamicTopping;
|
|
22
|
-
var _default = _exportModule["default"];
|
|
16
|
+
var Dynamic = _dynamicList["default"];
|
|
17
|
+
Dynamic.Item = _dynamicItem["default"];
|
|
18
|
+
Dynamic.SearchKeyContext = _context.SearchKeyContext;
|
|
19
|
+
var _default = Dynamic;
|
|
23
20
|
exports["default"] = _default;
|
|
@@ -3,105 +3,44 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.topDynamic = exports.
|
|
6
|
+
exports.topDynamic = exports.deleteDynamic = exports.collectDynamic = exports.cancelTopDynamic = exports.cancelCollectDynamic = void 0;
|
|
7
7
|
|
|
8
8
|
var _request = require("../../utils/request");
|
|
9
9
|
|
|
10
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
-
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
|
|
14
|
-
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; }
|
|
15
|
-
|
|
16
10
|
// @ts-ignore
|
|
17
11
|
var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
|
|
18
12
|
|
|
19
13
|
var topDynamic = function topDynamic(_ref) {
|
|
20
14
|
var feedId = _ref.feedId;
|
|
21
|
-
return (0, _request.rget)(
|
|
15
|
+
return (0, _request.rget)('v2')("user/feednew/setTop?feedId=".concat(feedId));
|
|
22
16
|
};
|
|
23
17
|
|
|
24
18
|
exports.topDynamic = topDynamic;
|
|
25
19
|
|
|
26
20
|
var cancelTopDynamic = function cancelTopDynamic(_ref2) {
|
|
27
21
|
var feedId = _ref2.feedId;
|
|
28
|
-
return (0, _request.rget)(
|
|
22
|
+
return (0, _request.rget)('v2')("user/feednew/cancelTop?feedId=".concat(feedId));
|
|
29
23
|
};
|
|
30
24
|
|
|
31
25
|
exports.cancelTopDynamic = cancelTopDynamic;
|
|
32
26
|
|
|
33
27
|
var collectDynamic = function collectDynamic(_ref3) {
|
|
34
28
|
var feedId = _ref3.feedId;
|
|
35
|
-
return (0, _request.rput)(
|
|
29
|
+
return (0, _request.rput)('v2')("user/feed/Collect?feed_id=".concat(feedId));
|
|
36
30
|
};
|
|
37
31
|
|
|
38
32
|
exports.collectDynamic = collectDynamic;
|
|
39
33
|
|
|
40
34
|
var cancelCollectDynamic = function cancelCollectDynamic(_ref4) {
|
|
41
35
|
var feedId = _ref4.feedId;
|
|
42
|
-
return (0, _request.rdelete)(
|
|
36
|
+
return (0, _request.rdelete)('v2')("user/feed/CancelCollect?feed_id=".concat(feedId));
|
|
43
37
|
};
|
|
44
38
|
|
|
45
39
|
exports.cancelCollectDynamic = cancelCollectDynamic;
|
|
46
40
|
|
|
47
41
|
var deleteDynamic = function deleteDynamic(_ref5) {
|
|
48
42
|
var feedId = _ref5.feedId;
|
|
49
|
-
return (0, _request.rdelete)(
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
exports.deleteDynamic = deleteDynamic;
|
|
53
|
-
|
|
54
|
-
var getPraise = function getPraise(_ref6) {
|
|
55
|
-
var objId = _ref6.objId,
|
|
56
|
-
_ref6$start = _ref6.start,
|
|
57
|
-
start = _ref6$start === void 0 ? "" : _ref6$start,
|
|
58
|
-
_ref6$count = _ref6.count,
|
|
59
|
-
count = _ref6$count === void 0 ? 5 : _ref6$count,
|
|
60
|
-
_ref6$objType = _ref6.objType,
|
|
61
|
-
objType = _ref6$objType === void 0 ? 10 : _ref6$objType;
|
|
62
|
-
return (0, _request.rget)("v1")("praise/get?objId=".concat(objId, "&start=&count=").concat(count, "&objType=").concat(objType));
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
exports.getPraise = getPraise;
|
|
66
|
-
|
|
67
|
-
var getRanking = function getRanking(data) {
|
|
68
|
-
return (0, _request.rpost)("v1")("praise/getRanking", data);
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
exports.getRanking = getRanking;
|
|
72
|
-
|
|
73
|
-
var getLeastPariseInfo = function getLeastPariseInfo() {
|
|
74
|
-
return (0, _request.rget)("v1")("praise/getLeastPariseInfo?count=10");
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
exports.getLeastPariseInfo = getLeastPariseInfo;
|
|
78
|
-
|
|
79
|
-
var getMenu = function getMenu() {
|
|
80
|
-
return (0, _request.rget)("v2")("feed/FeedTabMenus");
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
exports.getMenu = getMenu;
|
|
84
|
-
|
|
85
|
-
var getDynamicFeedList = function getDynamicFeedList() {
|
|
86
|
-
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
87
|
-
PageSize: 20,
|
|
88
|
-
PageNum: 1,
|
|
89
|
-
KeyWord: "",
|
|
90
|
-
ChannelIds: "",
|
|
91
|
-
Domain: "",
|
|
92
|
-
TitaHost: "",
|
|
93
|
-
RequestSource: 0,
|
|
94
|
-
CommentCount: 3
|
|
95
|
-
};
|
|
96
|
-
return (0, _request.rpost)("v2")("feed/feeds", _objectSpread(_objectSpread({}, data), {}, {
|
|
97
|
-
CommentCount: 3
|
|
98
|
-
}));
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
exports.getDynamicFeedList = getDynamicFeedList;
|
|
102
|
-
|
|
103
|
-
var getAdvertise = function getAdvertise() {
|
|
104
|
-
return (0, _request.rget)("v1")("operationAd/getByTerminalType?terminalType=1");
|
|
43
|
+
return (0, _request.rdelete)('v2')("user/feed/Delete?feed_id=".concat(feedId));
|
|
105
44
|
};
|
|
106
45
|
|
|
107
|
-
exports.
|
|
46
|
+
exports.deleteDynamic = deleteDynamic;
|
|
@@ -64,7 +64,7 @@ var EReportShare = /*#__PURE__*/function (_PureComponent) {
|
|
|
64
64
|
var _this$props = _this.props,
|
|
65
65
|
onSubmit = _this$props.onSubmit,
|
|
66
66
|
workId = _this$props.workId;
|
|
67
|
-
sentData.ObjType =
|
|
67
|
+
sentData.ObjType = 62;
|
|
68
68
|
sentData.ObjId = workId;
|
|
69
69
|
|
|
70
70
|
if (submitType === "submit") {
|
|
@@ -19,6 +19,8 @@ var _dateTestChange = require("../../../utils/date-test-change");
|
|
|
19
19
|
|
|
20
20
|
var _openData = require("../../../utils/open-data");
|
|
21
21
|
|
|
22
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
23
|
+
|
|
22
24
|
require("./index.css");
|
|
23
25
|
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -54,7 +56,11 @@ function PersonalOkr(props) {
|
|
|
54
56
|
|
|
55
57
|
var toolTipRef = (0, _react.useRef)();
|
|
56
58
|
(0, _react.useEffect)(function () {
|
|
57
|
-
|
|
59
|
+
if (updateTime) {
|
|
60
|
+
setSubUpdateTime((0, _dateTestChange.judgeTimeSpaceFromNow)(updateTime) + (0, _getLocale.getLocale)("OKR_MyO_Butt_Update"));
|
|
61
|
+
} else {
|
|
62
|
+
setSubUpdateTime((0, _getLocale.getLocale)("OKR_MyO_KRP_Notupdated"));
|
|
63
|
+
}
|
|
58
64
|
}, [updateTime]);
|
|
59
65
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
60
66
|
className: "subOKRComponents-PersonalOkr"
|
|
@@ -85,7 +91,7 @@ function PersonalOkr(props) {
|
|
|
85
91
|
id: userId
|
|
86
92
|
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
93
|
className: "subOKRComponents-PersonalOkr__left__updatetime"
|
|
88
|
-
}, subUpdateTime
|
|
94
|
+
}, subUpdateTime))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
89
95
|
className: "subOKRComponents-PersonalOkr__right"
|
|
90
96
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
97
|
className: "subOKRComponents-PersonalOkr__right__percentNum"
|
|
@@ -27,12 +27,12 @@ var _version = _interopRequireDefault(require("./components/version"));
|
|
|
27
27
|
|
|
28
28
|
var _utils = require("./utils");
|
|
29
29
|
|
|
30
|
-
require("./index.css");
|
|
31
|
-
|
|
32
30
|
var _request = require("../../utils/request");
|
|
33
31
|
|
|
34
32
|
var _toast = _interopRequireDefault(require("../toast"));
|
|
35
33
|
|
|
34
|
+
require("./index.css");
|
|
35
|
+
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
37
|
|
|
38
38
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -90,9 +90,8 @@ var DateCycle = function DateCycle(_ref) {
|
|
|
90
90
|
renderInnerContent: renderClickArea,
|
|
91
91
|
cycle: cycle,
|
|
92
92
|
setCycle: setCycle,
|
|
93
|
-
okrId: okrId
|
|
94
|
-
,
|
|
95
|
-
canEdit: false,
|
|
93
|
+
okrId: okrId,
|
|
94
|
+
canEdit: canCycleEdit,
|
|
96
95
|
getCycleRange: true
|
|
97
96
|
}));
|
|
98
97
|
};
|
|
@@ -38,23 +38,28 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
38
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
39
|
|
|
40
40
|
var prefix = 'okr-detail-delete-confirm';
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
|
|
42
|
+
var getDeleteOptions = function getDeleteOptions() {
|
|
43
|
+
return [{
|
|
44
|
+
id: 0,
|
|
45
|
+
text: (0, _getLocale.getLocale)('OKR_MyO_Text_OdeletionNTask'),
|
|
46
|
+
tips: ''
|
|
47
|
+
}, {
|
|
48
|
+
id: 1,
|
|
49
|
+
text: (0, _getLocale.getLocale)('OKR_MyO_Text_OdeletionTask'),
|
|
50
|
+
tips: (0, _getLocale.getLocale)('Pro_detail_Tasksapproval')
|
|
51
|
+
}, {
|
|
52
|
+
id: 2,
|
|
53
|
+
text: (0, _getLocale.getLocale)('Pro_detail_Attheametime'),
|
|
54
|
+
tips: (0, _getLocale.getLocale)('Pro_detail_Tasksapproval')
|
|
55
|
+
}];
|
|
56
|
+
};
|
|
57
|
+
|
|
54
58
|
var OkrDeletePop = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
55
59
|
var onCancel = _ref.onCancel,
|
|
56
60
|
onConfirm = _ref.onConfirm,
|
|
57
|
-
approvalSetting = _ref.approvalSetting
|
|
61
|
+
approvalSetting = _ref.approvalSetting,
|
|
62
|
+
okrInfo = _ref.okrInfo;
|
|
58
63
|
|
|
59
64
|
var _useState = (0, _react.useState)(false),
|
|
60
65
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -90,6 +95,11 @@ var OkrDeletePop = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
90
95
|
setShowConfirmPop(false);
|
|
91
96
|
};
|
|
92
97
|
|
|
98
|
+
var showApprovalCmp = (0, _react.useMemo)(function () {
|
|
99
|
+
var _okrInfo$OkrAndKrAppr;
|
|
100
|
+
|
|
101
|
+
return approvalSetting.isOpen && !(okrInfo !== null && okrInfo !== void 0 && (_okrInfo$OkrAndKrAppr = okrInfo.OkrAndKrApprovalTypes) !== null && _okrInfo$OkrAndKrAppr !== void 0 && _okrInfo$OkrAndKrAppr.includes(53));
|
|
102
|
+
}, [approvalSetting, okrInfo]);
|
|
93
103
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
94
104
|
return {
|
|
95
105
|
show: show,
|
|
@@ -103,9 +113,9 @@ var OkrDeletePop = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
103
113
|
type: "warning"
|
|
104
114
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
105
115
|
type: "title"
|
|
106
|
-
},
|
|
116
|
+
}, showApprovalCmp ? (0, _getLocale.getLocale)('OKR_MyO_Deleteoapproval') : (0, _getLocale.getLocale)('OKR_MyO_Determinedeletiono')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
107
117
|
type: "content"
|
|
108
|
-
}, !
|
|
118
|
+
}, !showApprovalCmp && (0, _getLocale.getLocale)('OKR_MyO_Text_Odeletion'), /*#__PURE__*/_react["default"].createElement("div", null, getDeleteOptions().map(function (option) {
|
|
109
119
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
120
|
className: "".concat(prefix, "__option"),
|
|
111
121
|
key: option.id,
|
|
@@ -132,7 +142,7 @@ var OkrDeletePop = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
132
142
|
}, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"].SureButton, {
|
|
133
143
|
type: "button",
|
|
134
144
|
onClick: handleConfirmClick
|
|
135
|
-
},
|
|
145
|
+
}, showApprovalCmp ? (0, _getLocale.getLocale)('OKR_MyO_Submittedapproval') : (0, _getLocale.getLocale)('Pro_detail_Submission')));
|
|
136
146
|
}, [showConfirmPop, selected]);
|
|
137
147
|
return renderDialogConfirm;
|
|
138
148
|
});
|
|
@@ -25,3 +25,14 @@
|
|
|
25
25
|
.okr-detail-head-parent > span:hover {
|
|
26
26
|
color: #2879ff;
|
|
27
27
|
}
|
|
28
|
+
|
|
29
|
+
.okr-detail-header-status {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
border-radius: 16px;
|
|
34
|
+
width: 68px;
|
|
35
|
+
height: 28px;
|
|
36
|
+
margin-right: 18px;
|
|
37
|
+
font-size: 12px;
|
|
38
|
+
}
|
|
@@ -87,7 +87,7 @@ function OkrDetailHeader(_ref) {
|
|
|
87
87
|
var commonContext = (0, _react.useContext)(_context6.CommonContext);
|
|
88
88
|
var approvalSetting = commonContext.approvalSetting,
|
|
89
89
|
okrInfo = commonContext.okrInfo;
|
|
90
|
-
var approveStatusColor = (0, _constant.ApproveStatusColor)(
|
|
90
|
+
var approveStatusColor = (0, _constant.ApproveStatusColor)(okrInfo.applyState);
|
|
91
91
|
var changVisiblity = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
92
92
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(workId, visibility) {
|
|
93
93
|
var visibilityScope,
|
|
@@ -114,7 +114,7 @@ function OkrDetailHeader(_ref) {
|
|
|
114
114
|
}));
|
|
115
115
|
|
|
116
116
|
case 3:
|
|
117
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
117
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
118
118
|
|
|
119
119
|
context.setGeneralVisibility({
|
|
120
120
|
visibility: visibility,
|
|
@@ -143,7 +143,7 @@ function OkrDetailHeader(_ref) {
|
|
|
143
143
|
workId: detailInfo.workId
|
|
144
144
|
}).then(function (resp) {
|
|
145
145
|
if (resp.Code === 1) {
|
|
146
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
146
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Pro_detail_Deletsuccess'));
|
|
147
147
|
|
|
148
148
|
setTimeout(function () {
|
|
149
149
|
commonContext.refreshAll();
|
|
@@ -224,7 +224,7 @@ function OkrDetailHeader(_ref) {
|
|
|
224
224
|
switch (_context3.prev = _context3.next) {
|
|
225
225
|
case 0:
|
|
226
226
|
_context3.next = 2;
|
|
227
|
-
return (0, _confirm["default"])(follow ? (0, _getLocale.getLocale)(
|
|
227
|
+
return (0, _confirm["default"])(follow ? (0, _getLocale.getLocale)('OKR_MyO_Err_Focuson') : (0, _getLocale.getLocale)('OKR_MyO_Err_Unfollow'), follow ? (0, _getLocale.getLocale)('OKR_MyO_Err_Payatten') : (0, _getLocale.getLocale)('OKR_MyO_Err_Progress'));
|
|
228
228
|
|
|
229
229
|
case 2:
|
|
230
230
|
res = _context3.sent;
|
|
@@ -253,7 +253,7 @@ function OkrDetailHeader(_ref) {
|
|
|
253
253
|
case 11:
|
|
254
254
|
context.setGeneralRoleType(follow ? 3 : 0); // 关注
|
|
255
255
|
|
|
256
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
256
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
257
257
|
|
|
258
258
|
if (!follow) {
|
|
259
259
|
commonContext.refreshAll();
|
|
@@ -281,7 +281,7 @@ function OkrDetailHeader(_ref) {
|
|
|
281
281
|
switch (_context4.prev = _context4.next) {
|
|
282
282
|
case 0:
|
|
283
283
|
_context4.next = 2;
|
|
284
|
-
return (0, _confirm["default"])(isFinish ? (0, _getLocale.getLocale)(
|
|
284
|
+
return (0, _confirm["default"])(isFinish ? (0, _getLocale.getLocale)('OKR_MyO_Areycloseobjective') : (0, _getLocale.getLocale)('OKR_MyO_Err_Restart'));
|
|
285
285
|
|
|
286
286
|
case 2:
|
|
287
287
|
res = _context4.sent;
|
|
@@ -310,7 +310,7 @@ function OkrDetailHeader(_ref) {
|
|
|
310
310
|
case 11:
|
|
311
311
|
commonContext.refreshAll(); // 刷新
|
|
312
312
|
|
|
313
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
313
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
314
314
|
|
|
315
315
|
case 13:
|
|
316
316
|
case "end":
|
|
@@ -334,7 +334,7 @@ function OkrDetailHeader(_ref) {
|
|
|
334
334
|
switch (_context5.prev = _context5.next) {
|
|
335
335
|
case 0:
|
|
336
336
|
_context5.next = 2;
|
|
337
|
-
return (0, _confirm["default"])((0, _getLocale.getLocale)(
|
|
337
|
+
return (0, _confirm["default"])((0, _getLocale.getLocale)('OKR_MyO_Err_Quit'), (0, _getLocale.getLocale)('OKR_MyO_Err_Inchargec'));
|
|
338
338
|
|
|
339
339
|
case 2:
|
|
340
340
|
res = _context5.sent;
|
|
@@ -351,7 +351,7 @@ function OkrDetailHeader(_ref) {
|
|
|
351
351
|
// context.setGeneralRoleType(0)
|
|
352
352
|
commonContext.refreshAll(); // 刷新
|
|
353
353
|
|
|
354
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
354
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
355
355
|
|
|
356
356
|
case 8:
|
|
357
357
|
case "end":
|
|
@@ -374,13 +374,13 @@ function OkrDetailHeader(_ref) {
|
|
|
374
374
|
if (context.generalParent) {
|
|
375
375
|
if (context.generalParent.parentKr) {
|
|
376
376
|
parent = {
|
|
377
|
-
type:
|
|
377
|
+
type: 'kr',
|
|
378
378
|
id: context.generalParent.parentKr.mileStoneId,
|
|
379
379
|
name: context.generalParent.parentKr.mileStoneName
|
|
380
380
|
};
|
|
381
381
|
} else if (context.generalParent.parentOkr) {
|
|
382
382
|
parent = {
|
|
383
|
-
type:
|
|
383
|
+
type: 'okr',
|
|
384
384
|
id: context.generalParent.parentOkr.workId,
|
|
385
385
|
name: context.generalParent.parentOkr.workName
|
|
386
386
|
};
|
|
@@ -403,17 +403,20 @@ function OkrDetailHeader(_ref) {
|
|
|
403
403
|
className: "tu-icon-liebiao-duiqinubiao"
|
|
404
404
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
405
405
|
onClick: function onClick() {
|
|
406
|
-
return parent.type ===
|
|
406
|
+
return parent.type === 'okr' ? _drawerManager["default"].open('okrDetail', {
|
|
407
407
|
okrId: parent.id
|
|
408
|
-
}) : _drawerManager["default"].open(
|
|
408
|
+
}) : _drawerManager["default"].open('krDetail', {
|
|
409
409
|
krId: parent.id
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, parent.type ===
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
412
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, parent.type === 'okr' ? 'O ' : 'KR '), parent.name)) : null,
|
|
413
|
+
onlyShowContent: approveStatusColor ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
414
|
+
className: "okr-detail-header-status",
|
|
415
|
+
style: {
|
|
416
|
+
color: approveStatusColor.color,
|
|
417
|
+
backgroundColor: approveStatusColor.bgColor
|
|
418
|
+
}
|
|
419
|
+
}, (0, _constant.getApproveStatusTextMap)(okrInfo.applyState)) : null
|
|
417
420
|
}), /*#__PURE__*/_react["default"].createElement(_okrShare["default"], {
|
|
418
421
|
visible: shareVisible,
|
|
419
422
|
onClose: closeShareModal,
|
|
@@ -433,11 +436,12 @@ function OkrDetailHeader(_ref) {
|
|
|
433
436
|
zIndex: 2400
|
|
434
437
|
}), /*#__PURE__*/_react["default"].createElement(_deleteConfirm["default"], {
|
|
435
438
|
ref: deletePopRef,
|
|
439
|
+
okrInfo: okrInfo,
|
|
436
440
|
approvalSetting: approvalSetting,
|
|
437
441
|
onConfirm: handleDeleteOkr
|
|
438
442
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
439
443
|
style: {
|
|
440
|
-
textAlign:
|
|
444
|
+
textAlign: 'right',
|
|
441
445
|
height: 0
|
|
442
446
|
}
|
|
443
447
|
}, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
|
|
@@ -451,9 +455,9 @@ function OkrDetailHeader(_ref) {
|
|
|
451
455
|
selectNodes: context.generalVisibility.visibilityScope || {},
|
|
452
456
|
trigger: /*#__PURE__*/_react["default"].createElement("div", {
|
|
453
457
|
style: {
|
|
454
|
-
visibility:
|
|
458
|
+
visibility: 'hidden',
|
|
455
459
|
zIndex: -1,
|
|
456
|
-
display:
|
|
460
|
+
display: 'inline-block',
|
|
457
461
|
height: 0
|
|
458
462
|
}
|
|
459
463
|
}, "empty select")
|
|
@@ -17,6 +17,8 @@ var _selectCycle = _interopRequireDefault(require("./select-cycle"));
|
|
|
17
17
|
|
|
18
18
|
var _requestApis = require("./request-apis");
|
|
19
19
|
|
|
20
|
+
var _getLocale = require("../../utils/getLocale");
|
|
21
|
+
|
|
20
22
|
require("./index.css");
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -68,12 +70,14 @@ function _default(props) {
|
|
|
68
70
|
}, []);
|
|
69
71
|
|
|
70
72
|
var handleChangeCyecle = function handleChangeCyecle(data) {
|
|
71
|
-
(0, _requestApis.updateOCyecle)(okrId, data).then(function () {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
});
|
|
73
|
+
(0, _requestApis.updateOCyecle)(okrId, data).then(function (resp) {
|
|
74
|
+
if (resp.Code === 1) {
|
|
75
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
75
76
|
|
|
76
|
-
|
|
77
|
+
setCycle(data);
|
|
78
|
+
} else {
|
|
79
|
+
_toast["default"].Error(resp.Message);
|
|
80
|
+
}
|
|
77
81
|
});
|
|
78
82
|
};
|
|
79
83
|
|
|
@@ -304,8 +304,13 @@ function PayDialog(props) {
|
|
|
304
304
|
e.preventDefault();
|
|
305
305
|
var path = window.location.href.split("#")[0];
|
|
306
306
|
path = path.replace(/eLearningHome/, "Home");
|
|
307
|
-
var encode = encodeURIComponent("orderId=".concat(orderId, "&payCode=").concat(payCode, "&payName=").concat(payName));
|
|
308
|
-
window.open(
|
|
307
|
+
var encode = encodeURIComponent("orderId=".concat(orderId, "&payCode=").concat(payCode, "&payName=").concat(payName)); // if(isDingDing()){
|
|
308
|
+
// window.open(`${path}#/pay?${encode}`, "_self");
|
|
309
|
+
// window.location.reload();
|
|
310
|
+
// }else{
|
|
311
|
+
|
|
312
|
+
window.open("".concat(path, "#/pay?").concat(encode), "_blank"); // }
|
|
313
|
+
// postWxPayOrder({
|
|
309
314
|
// order_id: orderId,
|
|
310
315
|
// default_bank: payCode,
|
|
311
316
|
// default_bank_name: payName,
|
|
@@ -80,7 +80,7 @@ var OperationRecord = /*#__PURE__*/function (_PureComponent) {
|
|
|
80
80
|
|
|
81
81
|
_this.setState({
|
|
82
82
|
operationTrackList: newOperationTrackList,
|
|
83
|
-
operationTrackTotal: _mockData.OperationData.length
|
|
83
|
+
operationTrackTotal: (_mockData.OperationData === null || _mockData.OperationData === void 0 ? void 0 : _mockData.OperationData.length) || 0
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
});
|