@titaui/pc 1.11.48-beta.2 → 1.11.48-beta.3
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/{pages/aha2021 → components/contact-kefu}/img/canceled.svg +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/kefu.svg +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/not-try.png +0 -0
- package/lib/components/contact-kefu/img/notice.png +0 -0
- package/lib/{pages/aha2021 → components/contact-kefu}/img/try.png +0 -0
- package/lib/components/contact-kefu/index.css +85 -0
- package/lib/components/contact-kefu/index.js +102 -0
- package/lib/components/okr-detail/components/base-okr-type/index.css +4 -0
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -0
- package/lib/components/task-relation-modal/helper.js +64 -2
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +2 -1
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +16 -4
- package/lib/components/task-relation-modal/okr-relation/request-api.js +17 -4
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.js +1 -1
- package/lib/components/task-relation-modal/request-api.js +1 -1
- package/lib/components/task-relation-modal/search/task-status-select.js +1 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +0 -11
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +1 -3
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +0 -6
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +0 -4
- package/lib/components/textarea/index.js +38 -35
- package/lib/index.js +8 -0
- package/lib/pages/aha2021/index.css +1 -26
- package/lib/pages/aha2021/index.js +3 -82
- package/lib/utils/planDataJson.js +11115 -0
- package/package.json +1 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.contact-kefu {
|
|
2
|
+
position: relative;
|
|
3
|
+
height: 100vh;
|
|
4
|
+
background: #f0f4fa;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.contact-kefu__kefu {
|
|
9
|
+
position: absolute;
|
|
10
|
+
bottom: 74px;
|
|
11
|
+
right: 24px;
|
|
12
|
+
z-index: 2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.contact-kefu__try-kefu {
|
|
16
|
+
position: absolute;
|
|
17
|
+
bottom: 134px;
|
|
18
|
+
right: 24px;
|
|
19
|
+
z-index: 2;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.contact-kefu__kefu {
|
|
23
|
+
width: 42px;
|
|
24
|
+
height: 42px;
|
|
25
|
+
background: url("./img/kefu.svg") no-repeat;
|
|
26
|
+
background-color: #fff;
|
|
27
|
+
background-size: 42px;
|
|
28
|
+
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.contact-kefu__hidden {
|
|
34
|
+
background-image: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.contact-kefu__cancel {
|
|
38
|
+
height: 100%;
|
|
39
|
+
background: url("./img/canceled.svg") 50% 50% no-repeat;
|
|
40
|
+
animation-duration: 0.3s;
|
|
41
|
+
animation-name: kefuActive;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.contact-kefu__popup {
|
|
45
|
+
width: 332px;
|
|
46
|
+
height: 376px;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
align-items: center;
|
|
51
|
+
background: #ffffff;
|
|
52
|
+
box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.16);
|
|
53
|
+
border-radius: 24px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.contact-kefu__popup-title {
|
|
57
|
+
font-size: 20px;
|
|
58
|
+
font-weight: 600;
|
|
59
|
+
color: #141c28;
|
|
60
|
+
line-height: 30px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.contact-kefu__popup-content {
|
|
64
|
+
margin-top: 4px;
|
|
65
|
+
font-size: 14px;
|
|
66
|
+
font-weight: normal;
|
|
67
|
+
color: #6f7886;
|
|
68
|
+
line-height: 22px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.contact-kefu__popup-img {
|
|
72
|
+
width: 200px;
|
|
73
|
+
height: 200px;
|
|
74
|
+
margin-top: 24px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@keyframes contentOpacity {
|
|
78
|
+
from {
|
|
79
|
+
opacity: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
to {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _tooltip = _interopRequireDefault(require("../tooltip"));
|
|
15
|
+
|
|
16
|
+
var _popup = _interopRequireDefault(require("../popup"));
|
|
17
|
+
|
|
18
|
+
var _platform = require("../../utils/platform");
|
|
19
|
+
|
|
20
|
+
var _notTry = _interopRequireDefault(require("./img/not-try.png"));
|
|
21
|
+
|
|
22
|
+
var _try = _interopRequireDefault(require("./img/try.png"));
|
|
23
|
+
|
|
24
|
+
require("./index.css");
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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 _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; }
|
|
33
|
+
|
|
34
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
|
+
|
|
36
|
+
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."); }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
|
+
|
|
46
|
+
var preCls = "contact-kefu";
|
|
47
|
+
|
|
48
|
+
var ContactKefu = function ContactKefu() {
|
|
49
|
+
var _useState = (0, _react.useState)(false),
|
|
50
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
51
|
+
visible = _useState2[0],
|
|
52
|
+
setVisible = _useState2[1];
|
|
53
|
+
|
|
54
|
+
var handleShowCode = function handleShowCode() {
|
|
55
|
+
setVisible(true);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
var isTrial = window.BSGlobal.tenantAuthentication.Version === 1 && (0, _platform.isOfficialSite)();
|
|
59
|
+
|
|
60
|
+
var popup = /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
|
+
className: "".concat(preCls, "__popup")
|
|
62
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
+
className: "".concat(preCls, "__popup-title")
|
|
64
|
+
}, "\u5FAE\u4FE1/\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
|
+
className: "".concat(preCls, "__popup-content")
|
|
66
|
+
}, "\u4E13\u5C5E\u5BA2\u670D\u4E3A\u4F60\u63D0\u4F9B\u54A8\u8BE2\u670D\u52A1"), /*#__PURE__*/_react["default"].createElement("img", {
|
|
67
|
+
src: isTrial ? _try["default"] : _notTry["default"],
|
|
68
|
+
className: "".concat(preCls, "__popup-img"),
|
|
69
|
+
alt: "\u5FAE\u4FE1\u626B\u7801"
|
|
70
|
+
}));
|
|
71
|
+
|
|
72
|
+
return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
73
|
+
popup: popup,
|
|
74
|
+
popupTransitionName: "tita-popup-zoom-left-bottom",
|
|
75
|
+
placement: "topLeft",
|
|
76
|
+
popupAlign: {
|
|
77
|
+
offset: [-32, -10],
|
|
78
|
+
overflow: {
|
|
79
|
+
adjustX: 1,
|
|
80
|
+
adjustY: 1
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
popupVisible: visible,
|
|
84
|
+
onPopupVisibleChange: function onPopupVisibleChange(bol) {
|
|
85
|
+
return setVisible(bol);
|
|
86
|
+
}
|
|
87
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
88
|
+
overlay: "\u8054\u7CFB\u5BA2\u670D",
|
|
89
|
+
placement: "right",
|
|
90
|
+
align: {
|
|
91
|
+
offset: [0, 0]
|
|
92
|
+
}
|
|
93
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
94
|
+
className: (0, _classnames["default"])("".concat(preCls, "__kefu"), _defineProperty({}, "".concat(preCls, "__try-kefu"), isTrial), _defineProperty({}, "".concat(preCls, "__hidden"), visible)),
|
|
95
|
+
onClick: handleShowCode
|
|
96
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
97
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__cancel"), visible))
|
|
98
|
+
}))));
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
var _default = ContactKefu;
|
|
102
|
+
exports["default"] = _default;
|
|
@@ -248,6 +248,7 @@ var ObjectType = /*#__PURE__*/function (_Component) {
|
|
|
248
248
|
|
|
249
249
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_radio.RadioGroup, {
|
|
250
250
|
name: "okrType",
|
|
251
|
+
className: "confim-radio",
|
|
251
252
|
labelText: (0, _getLocale.getLocale)("Mod_Type"),
|
|
252
253
|
style: {
|
|
253
254
|
marginBottom: 8
|
|
@@ -3,12 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.formatDateStr = void 0;
|
|
7
|
+
exports.formatPeriodPlanData = formatPeriodPlanData;
|
|
8
|
+
exports.lableTypeMap = exports.isOpenWorkManage = exports.isOpenOkrManage = exports.isOpenLabel = void 0;
|
|
9
|
+
exports.momentDate = momentDate;
|
|
10
|
+
exports.workStatus = exports.timeFormat = exports.preCls = exports.okrStatus = void 0;
|
|
7
11
|
|
|
8
12
|
var _bsGlobal = require("../../utils/bs-global");
|
|
9
13
|
|
|
10
14
|
var _getLocale = require("../../utils/getLocale");
|
|
11
15
|
|
|
16
|
+
var _planDataJson = require("../../utils/planDataJson");
|
|
17
|
+
|
|
12
18
|
var preCls = "titaui-task-relation";
|
|
13
19
|
exports.preCls = preCls;
|
|
14
20
|
var isOpenOkrManage = (0, _bsGlobal.getAppHead)("113"); // 开通OKR
|
|
@@ -106,4 +112,60 @@ var workStatus = function workStatus() {
|
|
|
106
112
|
};
|
|
107
113
|
};
|
|
108
114
|
|
|
109
|
-
exports.workStatus = workStatus;
|
|
115
|
+
exports.workStatus = workStatus;
|
|
116
|
+
|
|
117
|
+
function momentDate(date) {
|
|
118
|
+
var reg = new RegExp('年|月|日', 'g');
|
|
119
|
+
return date.replace(reg, '/').slice(0, -1);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function formatPeriodPlanData(period) {
|
|
123
|
+
var planData; // 获取选取年份的 dataJSON
|
|
124
|
+
|
|
125
|
+
var yearGroup = (0, _planDataJson.PlanDataJson)().find(function (p) {
|
|
126
|
+
return p.GroupName == period.annualNum + '';
|
|
127
|
+
}); // 年份下的 ‘年/季’ data
|
|
128
|
+
|
|
129
|
+
var seasonData = yearGroup ? yearGroup.PlanTableListModels.find(function (item) {
|
|
130
|
+
return item.TagName == (0, _getLocale.getLocale)('Tasks_Menu_Yearseason');
|
|
131
|
+
}) : null;
|
|
132
|
+
|
|
133
|
+
switch (period.cycleType) {
|
|
134
|
+
// case '-1': // 全部周期
|
|
135
|
+
// break;
|
|
136
|
+
case '0':
|
|
137
|
+
planData = {
|
|
138
|
+
StartDate: period.startDate,
|
|
139
|
+
EndDate: period.endDate
|
|
140
|
+
};
|
|
141
|
+
break;
|
|
142
|
+
|
|
143
|
+
case '1':
|
|
144
|
+
// 年度
|
|
145
|
+
planData = seasonData ? seasonData.PlanTableModels[0] : null;
|
|
146
|
+
break;
|
|
147
|
+
|
|
148
|
+
case '2':
|
|
149
|
+
planData = seasonData ? seasonData.PlanTableModels[period.yqmNum] : null; // 季度
|
|
150
|
+
|
|
151
|
+
break;
|
|
152
|
+
|
|
153
|
+
case '3':
|
|
154
|
+
// @ts-ignore
|
|
155
|
+
var monthData = yearGroup ? yearGroup.PlanTableListModels.find(function (p) {
|
|
156
|
+
return p.TagName == period.yqmNum + '月';
|
|
157
|
+
}) : null;
|
|
158
|
+
planData = monthData ? monthData.PlanTableModels[0] : null;
|
|
159
|
+
break;
|
|
160
|
+
|
|
161
|
+
default:
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return {
|
|
166
|
+
endDate: planData ? period.cycleType == '0' ? planData.EndDate : momentDate(planData.EndDate || '') : '',
|
|
167
|
+
planTableId: planData && planData.PlanTableId,
|
|
168
|
+
planTableType: planData && planData.PlanTableType,
|
|
169
|
+
startDate: planData ? period.cycleType == '0' ? planData.StartDate : momentDate(planData.StartDate || '') : ''
|
|
170
|
+
};
|
|
171
|
+
}
|
|
@@ -154,7 +154,7 @@ function OkrRelationTaskModal(props) {
|
|
|
154
154
|
|
|
155
155
|
var getTaskData = function getTaskData() {
|
|
156
156
|
setIsLoading(true);
|
|
157
|
-
(0, _requestApi.planTableTask)(
|
|
157
|
+
(0, _requestApi.planTableTask)(query, pageNum, pageSize).then(function (res) {
|
|
158
158
|
setIsLoading(false);
|
|
159
159
|
|
|
160
160
|
if (res) {
|
|
@@ -168,6 +168,7 @@ function OkrRelationTaskModal(props) {
|
|
|
168
168
|
};
|
|
169
169
|
|
|
170
170
|
(0, _react.useEffect)(function () {
|
|
171
|
+
console.log(query);
|
|
171
172
|
isQuery && getTaskData();
|
|
172
173
|
}, [query, pageNum, pageSize]);
|
|
173
174
|
|
|
@@ -21,6 +21,10 @@ var _taskStatusSelect = _interopRequireDefault(require("../../search/task-status
|
|
|
21
21
|
|
|
22
22
|
var _relation = _interopRequireDefault(require("../../search/relation"));
|
|
23
23
|
|
|
24
|
+
var _helper = require("../../helper");
|
|
25
|
+
|
|
26
|
+
var _formatTime = require("../../../../utils/format-time");
|
|
27
|
+
|
|
24
28
|
var _getLocale = require("../../../../utils/getLocale");
|
|
25
29
|
|
|
26
30
|
require("./index.css");
|
|
@@ -56,13 +60,15 @@ function SearchForm(props) {
|
|
|
56
60
|
annualNum: new Date().getFullYear(),
|
|
57
61
|
// 默认当前年份全部周期
|
|
58
62
|
yqmNum: 0,
|
|
59
|
-
cycleType: '
|
|
63
|
+
cycleType: '1',
|
|
64
|
+
startDate: (0, _formatTime.getFirstDayOfYear)(),
|
|
65
|
+
endDate: (0, _formatTime.getNextDayOfYear)()
|
|
60
66
|
}),
|
|
61
67
|
_useState2 = _slicedToArray(_useState, 2),
|
|
62
68
|
cycle = _useState2[0],
|
|
63
69
|
setCycle = _useState2[1];
|
|
64
70
|
|
|
65
|
-
var _useState3 = (0, _react.useState)(
|
|
71
|
+
var _useState3 = (0, _react.useState)(10),
|
|
66
72
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
67
73
|
status = _useState4[0],
|
|
68
74
|
setStatus = _useState4[1];
|
|
@@ -79,11 +85,12 @@ function SearchForm(props) {
|
|
|
79
85
|
|
|
80
86
|
var dilagRef = (0, _react.useRef)(document.createElement('div'));
|
|
81
87
|
(0, _react.useEffect)(function () {
|
|
88
|
+
var planCycle = (0, _helper.formatPeriodPlanData)(cycle);
|
|
82
89
|
onChange(_objectSpread({
|
|
83
90
|
status: status,
|
|
84
91
|
keyWords: keyWords,
|
|
85
92
|
relation: relation
|
|
86
|
-
},
|
|
93
|
+
}, planCycle));
|
|
87
94
|
}, [status, keyWords, cycle, relation]);
|
|
88
95
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
96
|
ref: dilagRef
|
|
@@ -91,7 +98,12 @@ function SearchForm(props) {
|
|
|
91
98
|
className: "rel-okr-tree__search-item"
|
|
92
99
|
}, /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
|
|
93
100
|
selected: cycle,
|
|
94
|
-
yearsRange: [2019,
|
|
101
|
+
yearsRange: [2019, new Date().getFullYear() + 10],
|
|
102
|
+
isFetch: false,
|
|
103
|
+
showBimonthly: false,
|
|
104
|
+
showHalfYear: false,
|
|
105
|
+
showCustom: false,
|
|
106
|
+
showFullCycle: false,
|
|
95
107
|
onChange: setCycle,
|
|
96
108
|
getPopupContainer: function getPopupContainer() {
|
|
97
109
|
return dilagRef.current;
|
|
@@ -22,7 +22,7 @@ var dealMessage = function dealMessage(res) {
|
|
|
22
22
|
|
|
23
23
|
var id = (0, _helpers.getLoginUserInfo)().Id;
|
|
24
24
|
|
|
25
|
-
var planTableTask = function planTableTask(
|
|
25
|
+
var planTableTask = function planTableTask(params, pageNum, pageSize) {
|
|
26
26
|
var url = "PlanTableTask/PersionTask?to_user_id=".concat(id);
|
|
27
27
|
var _params$startDate = params.startDate,
|
|
28
28
|
startDate = _params$startDate === void 0 ? '' : _params$startDate,
|
|
@@ -31,9 +31,22 @@ var planTableTask = function planTableTask(planTableId, params, pageNum, pageSiz
|
|
|
31
31
|
_params$keyWords = params.keyWords,
|
|
32
32
|
keyWords = _params$keyWords === void 0 ? '' : _params$keyWords,
|
|
33
33
|
_params$status = params.status,
|
|
34
|
-
status = _params$status === void 0 ?
|
|
34
|
+
status = _params$status === void 0 ? 10 : _params$status,
|
|
35
|
+
_params$planTableId = params.planTableId,
|
|
36
|
+
planTableId = _params$planTableId === void 0 ? '' : _params$planTableId,
|
|
37
|
+
_params$planTableType = params.planTableType,
|
|
38
|
+
planTableType = _params$planTableType === void 0 ? '' : _params$planTableType,
|
|
35
39
|
_params$relation = params.relation,
|
|
36
40
|
relation = _params$relation === void 0 ? 0 : _params$relation;
|
|
41
|
+
|
|
42
|
+
if (status == 10) {
|
|
43
|
+
status = '0,1,2,3,4,6';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (!relation) {
|
|
47
|
+
relation = '1,2,3';
|
|
48
|
+
}
|
|
49
|
+
|
|
37
50
|
return (0, _request.rpost)('v2')(url, {
|
|
38
51
|
type: 'personal',
|
|
39
52
|
to_user_id: id,
|
|
@@ -41,8 +54,8 @@ var planTableTask = function planTableTask(planTableId, params, pageNum, pageSiz
|
|
|
41
54
|
EndDate: endDate,
|
|
42
55
|
startNum: pageNum,
|
|
43
56
|
count: pageSize,
|
|
44
|
-
planTableId:
|
|
45
|
-
planTableType:
|
|
57
|
+
planTableId: planTableId,
|
|
58
|
+
planTableType: planTableType,
|
|
46
59
|
fromLevel: 1,
|
|
47
60
|
toLevel: 1,
|
|
48
61
|
RelationType: relation,
|
|
@@ -128,7 +128,7 @@ var TaskTree = function TaskTree(_ref) {
|
|
|
128
128
|
checked: isSelectedAll()
|
|
129
129
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
130
130
|
className: "".concat(preCls, "__header-name")
|
|
131
|
-
}, isWork ? '
|
|
131
|
+
}, isWork ? '项目' : '任务'), /*#__PURE__*/_react["default"].createElement("span", {
|
|
132
132
|
className: "".concat(preCls, "__header-status")
|
|
133
133
|
}, "\u72B6\u6001"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
134
134
|
className: "".concat(preCls, "__header-principer")
|
|
@@ -84,7 +84,6 @@ var getUserById = function getUserById(userId) {
|
|
|
84
84
|
exports.getUserById = getUserById;
|
|
85
85
|
|
|
86
86
|
var workData = function workData(params, pageNum, pageSize) {
|
|
87
|
-
var url = "work/list?toUserId=".concat((0, _helpers.getLoginUserInfo)().Id);
|
|
88
87
|
var _params$keyWords2 = params.keyWords,
|
|
89
88
|
keyWords = _params$keyWords2 === void 0 ? "" : _params$keyWords2,
|
|
90
89
|
_params$status = params.status,
|
|
@@ -92,6 +91,7 @@ var workData = function workData(params, pageNum, pageSize) {
|
|
|
92
91
|
_params$relation = params.relation,
|
|
93
92
|
relation = _params$relation === void 0 ? 0 : _params$relation,
|
|
94
93
|
userIds = params.userIds;
|
|
94
|
+
var url = "work/list?toUserId=".concat(userIds || (0, _helpers.getLoginUserInfo)().Id);
|
|
95
95
|
return (0, _request.rpost)("v1")(url, {
|
|
96
96
|
keyWords: keyWords,
|
|
97
97
|
orderType: 1,
|
|
@@ -13,17 +13,6 @@
|
|
|
13
13
|
top: 1px;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.rel-category-node__pointer {
|
|
17
|
-
position: absolute;
|
|
18
|
-
top: -23px;
|
|
19
|
-
left: -33px;
|
|
20
|
-
width: 27px;
|
|
21
|
-
height: 31px;
|
|
22
|
-
border-left: 1px solid #e9ecf0;
|
|
23
|
-
border-bottom: 1px solid #e9ecf0;
|
|
24
|
-
border-bottom-left-radius: 6px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
16
|
.rel-category-node__name {
|
|
28
17
|
flex: 1;
|
|
29
18
|
margin-right: 40px;
|
|
@@ -83,9 +83,7 @@ function CategoryNode(props) {
|
|
|
83
83
|
onChange: onCheckHandler,
|
|
84
84
|
id: data.id,
|
|
85
85
|
checked: checked
|
|
86
|
-
})),
|
|
87
|
-
className: "".concat(precls, "__pointer")
|
|
88
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
86
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
89
87
|
className: "".concat(precls, "__name")
|
|
90
88
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
91
89
|
className: (0, _classnames["default"])("".concat(precls, "__name-icon"), {
|
|
@@ -17,22 +17,6 @@
|
|
|
17
17
|
border: 1px solid #bfc7d5;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.rel-kr-node__pointer {
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: -26px;
|
|
23
|
-
left: -33px;
|
|
24
|
-
width: 27px;
|
|
25
|
-
height: 34px;
|
|
26
|
-
border-left: 1px solid #e9ecf0;
|
|
27
|
-
border-bottom: 1px solid #e9ecf0;
|
|
28
|
-
border-bottom-left-radius: 6px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.rel-kr-node__pointer-first {
|
|
32
|
-
height: 26px;
|
|
33
|
-
top: -20px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
20
|
.rel-kr-node__name {
|
|
37
21
|
flex: 1;
|
|
38
22
|
margin-right: 40px;
|
|
@@ -9,8 +9,6 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
12
|
var _checkbox = _interopRequireDefault(require("../../../checkbox"));
|
|
15
13
|
|
|
16
14
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
@@ -35,8 +33,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
35
33
|
|
|
36
34
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
35
|
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
36
|
var precls = "rel-kr-node";
|
|
41
37
|
|
|
42
38
|
function KrNode(props) {
|
|
@@ -93,8 +89,6 @@ function KrNode(props) {
|
|
|
93
89
|
id: data.feedId,
|
|
94
90
|
checked: checked
|
|
95
91
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
96
|
-
className: (0, _classnames["default"])("".concat(precls, "__pointer"), _defineProperty({}, "".concat(precls, "__pointer-first"), krIndex === 1))
|
|
97
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
98
92
|
className: "".concat(precls, "__name")
|
|
99
93
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
100
94
|
className: "".concat(precls, "__name-index")
|
|
@@ -17,22 +17,6 @@
|
|
|
17
17
|
border: 1px solid #bfc7d5;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.rel-milestone-node__pointer {
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: -26px;
|
|
23
|
-
left: -33px;
|
|
24
|
-
width: 27px;
|
|
25
|
-
height: 34px;
|
|
26
|
-
border-left: 1px solid #e9ecf0;
|
|
27
|
-
border-bottom: 1px solid #e9ecf0;
|
|
28
|
-
border-bottom-left-radius: 6px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.rel-milestone-node__pointer-first {
|
|
32
|
-
height: 26px;
|
|
33
|
-
top: -20px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
20
|
.rel-milestone-node__name {
|
|
37
21
|
flex: 1;
|
|
38
22
|
margin-right: 40px;
|
|
@@ -35,8 +35,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
35
35
|
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
37
|
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
38
|
var precls = "rel-milestone-node";
|
|
41
39
|
|
|
42
40
|
function MileStone(props) {
|
|
@@ -100,8 +98,6 @@ function MileStone(props) {
|
|
|
100
98
|
id: data.mileStoneId,
|
|
101
99
|
checked: checked
|
|
102
100
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
103
|
-
className: (0, _classnames["default"])("".concat(precls, "__pointer"), _defineProperty({}, "".concat(precls, "__pointer-first"), index === 1))
|
|
104
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
105
101
|
className: "".concat(precls, "__name")
|
|
106
102
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
107
103
|
className: (0, _classnames["default"])("tu-icon-licheng-s", "".concat(precls, "__name-icon"))
|