@titaui/pc 1.16.52 → 1.16.54
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/dingding-btn/index.js +10 -2
- package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +2 -6
- package/lib/components/dynamic/dynamic-item/components/work-progress/mile-stone.js +3 -3
- package/lib/components/dynamic/dynamic-item/components/work-progress/render-row.js +7 -5
- package/lib/components/dynamic/dynamic-item/components/work-progress/utils.js +13 -1
- package/lib/components/dynamic/dynamic-item/components/work-progress/work-task.js +8 -1
- package/lib/components/dynamic/dynamic-item/components/work-progress/work.js +3 -3
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +1 -1
- package/package.json +1 -1
|
@@ -184,6 +184,8 @@ var DingdingBtn = function DingdingBtn(props) {
|
|
|
184
184
|
userIds: [loginUserOpenId + ''] //需要入群的成员userId。
|
|
185
185
|
|
|
186
186
|
}).then(function (res) {
|
|
187
|
+
console.log(res, 'addMembers');
|
|
188
|
+
|
|
187
189
|
if (res.errorCode === '0') {
|
|
188
190
|
console.log('添加成功' + JSON.stringify(res));
|
|
189
191
|
|
|
@@ -238,6 +240,8 @@ var DingdingBtn = function DingdingBtn(props) {
|
|
|
238
240
|
mentionAllAuthority: 1
|
|
239
241
|
}
|
|
240
242
|
}).then(function (res) {
|
|
243
|
+
console.log(res, 'createGroup');
|
|
244
|
+
|
|
241
245
|
if (res.errorCode === '0') {
|
|
242
246
|
// 建群成功
|
|
243
247
|
if (res.detail.openConversationId) {
|
|
@@ -250,7 +254,8 @@ var DingdingBtn = function DingdingBtn(props) {
|
|
|
250
254
|
});
|
|
251
255
|
}
|
|
252
256
|
}
|
|
253
|
-
})["catch"](function (e) {
|
|
257
|
+
})["catch"](function (e) {
|
|
258
|
+
console.log(e); // 用户主动退出安装
|
|
254
259
|
});
|
|
255
260
|
setCreateDingchatVisible(false);
|
|
256
261
|
setPrincipalUserModalVisible(false);
|
|
@@ -279,6 +284,8 @@ var DingdingBtn = function DingdingBtn(props) {
|
|
|
279
284
|
objType: objType,
|
|
280
285
|
SourceTye: dingdingSource
|
|
281
286
|
}).then(function (res) {
|
|
287
|
+
console.log(res, 'chat/info');
|
|
288
|
+
|
|
282
289
|
if (res.Message === '没有权限') {
|
|
283
290
|
setIsShowDingChat(false);
|
|
284
291
|
return;
|
|
@@ -297,6 +304,7 @@ var DingdingBtn = function DingdingBtn(props) {
|
|
|
297
304
|
objType: objType,
|
|
298
305
|
SourceTye: dingdingSource
|
|
299
306
|
}).then(function (res) {
|
|
307
|
+
console.log(res, 'chat/users');
|
|
300
308
|
var _res$Data = res.Data,
|
|
301
309
|
CoolAppCode = _res$Data.CoolAppCode,
|
|
302
310
|
SuiteKey = _res$Data.SuiteKey,
|
|
@@ -342,7 +350,7 @@ var DingdingBtn = function DingdingBtn(props) {
|
|
|
342
350
|
overlay: tooltip,
|
|
343
351
|
placement: "bottom"
|
|
344
352
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
345
|
-
className: (0, _classnames["default"])(preCls, _defineProperty({}, "".concat(preCls, "__chat"), isHasGroup), _defineProperty({}, 'tu-icon-
|
|
353
|
+
className: (0, _classnames["default"])(preCls, _defineProperty({}, "".concat(preCls, "__chat"), isHasGroup), _defineProperty({}, 'tu-icon-dd-m', isShowDingChat)),
|
|
346
354
|
onMouseDown: handleClickWechatBtn
|
|
347
355
|
})), /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"], {
|
|
348
356
|
zIndex: 1200,
|
|
@@ -35,12 +35,8 @@ var RenderRow = function RenderRow(_ref) {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
var render = function render() {
|
|
38
|
-
var _item$LastRichContent;
|
|
39
|
-
|
|
40
|
-
console.log('LastRichContent', item === null || item === void 0 ? void 0 : (_item$LastRichContent = item.LastRichContent) === null || _item$LastRichContent === void 0 ? void 0 : _item$LastRichContent.trim());
|
|
41
|
-
|
|
42
38
|
if (item.IsImport) {
|
|
43
|
-
var _item$
|
|
39
|
+
var _item$LastRichContent;
|
|
44
40
|
|
|
45
41
|
return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
46
42
|
className: "".concat(prefix, "__table-row-title"),
|
|
@@ -62,7 +58,7 @@ var RenderRow = function RenderRow(_ref) {
|
|
|
62
58
|
value: item.Progress,
|
|
63
59
|
editable: false
|
|
64
60
|
})), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
|
|
65
|
-
oldValue: (item === null || item === void 0 ? void 0 : (_item$
|
|
61
|
+
oldValue: (item === null || item === void 0 ? void 0 : (_item$LastRichContent = item.LastRichContent) === null || _item$LastRichContent === void 0 ? void 0 : _item$LastRichContent.trim()) || (item === null || item === void 0 ? void 0 : item.LastContent) || "" // oldValue={item?.LastRichContent?.trim() || ""}
|
|
66
62
|
,
|
|
67
63
|
value: item.LastContents,
|
|
68
64
|
editable: false,
|
|
@@ -17,10 +17,10 @@ var _schedule = _interopRequireDefault(require("../schedule"));
|
|
|
17
17
|
|
|
18
18
|
var _tools = require("../../../../../utils/tools");
|
|
19
19
|
|
|
20
|
-
var _constant = require("../../../constant");
|
|
21
|
-
|
|
22
20
|
require("./index.css");
|
|
23
21
|
|
|
22
|
+
var _utils = require("./utils");
|
|
23
|
+
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
25
|
|
|
26
26
|
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); }
|
|
@@ -55,7 +55,7 @@ var MileStone = function MileStone(_ref) {
|
|
|
55
55
|
}, data.RemainingContent))), /*#__PURE__*/_react["default"].createElement("td", null, !!data.MilestoneId && /*#__PURE__*/_react["default"].createElement(_progress["default"], {
|
|
56
56
|
id: "".concat(data.MilestoneId),
|
|
57
57
|
type: "task",
|
|
58
|
-
status:
|
|
58
|
+
status: (0, _utils.getStatus)(data.RiskLevel || 1),
|
|
59
59
|
value: Number(data.Progress),
|
|
60
60
|
editable: false
|
|
61
61
|
})), /*#__PURE__*/_react["default"].createElement("td", null, !!data.MilestoneId && /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
|
|
@@ -25,7 +25,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
27
|
|
|
28
|
-
var prefix =
|
|
28
|
+
var prefix = 'tita-summary-work-progress';
|
|
29
29
|
|
|
30
30
|
var RenderRow = function RenderRow(_ref) {
|
|
31
31
|
var item = _ref.item,
|
|
@@ -42,13 +42,15 @@ var RenderRow = function RenderRow(_ref) {
|
|
|
42
42
|
data: child
|
|
43
43
|
}));
|
|
44
44
|
|
|
45
|
-
if (child.Milestones
|
|
45
|
+
if (child.Milestones) {
|
|
46
46
|
var _child$Milestones;
|
|
47
47
|
|
|
48
48
|
(_child$Milestones = child.Milestones) === null || _child$Milestones === void 0 ? void 0 : _child$Milestones.forEach(function (mileStone) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
if (openWorkMileSetting) {
|
|
50
|
+
result.push( /*#__PURE__*/_react["default"].createElement(_mileStone["default"], {
|
|
51
|
+
data: mileStone
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
52
54
|
|
|
53
55
|
if (mileStone.Tasks && openWorkTaskSetting) {
|
|
54
56
|
var _mileStone$Tasks;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.toTree = exports.getMapText = exports.getMapDeleteText = exports.formatWorkData = exports.formatTime = void 0;
|
|
6
|
+
exports.toTree = exports.getStatus = exports.getMapText = exports.getMapDeleteText = exports.formatWorkData = exports.formatTime = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("../../../../../utils/getLocale");
|
|
9
9
|
|
|
@@ -127,6 +127,18 @@ var getMapText = function getMapText(types, type) {
|
|
|
127
127
|
|
|
128
128
|
exports.getMapText = getMapText;
|
|
129
129
|
|
|
130
|
+
var getStatus = function getStatus(status) {
|
|
131
|
+
// 复制前面人的逻辑
|
|
132
|
+
var obj = {
|
|
133
|
+
1: 'normal',
|
|
134
|
+
2: 'delay',
|
|
135
|
+
3: 'risk'
|
|
136
|
+
};
|
|
137
|
+
return obj[status] || 'normal';
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
exports.getStatus = getStatus;
|
|
141
|
+
|
|
130
142
|
var getMapDeleteText = function getMapDeleteText(types) {
|
|
131
143
|
if (types.includes(_constant.EObjType.Task)) {
|
|
132
144
|
return (0, _getLocale.getLocale)("Rep_NewS_Afterdetask");
|
|
@@ -27,11 +27,18 @@ var WorkTask = function WorkTask(_ref) {
|
|
|
27
27
|
var _data$LastRichContent;
|
|
28
28
|
|
|
29
29
|
var data = _ref.data;
|
|
30
|
+
|
|
31
|
+
var handleShowTaskDetail = function handleShowTaskDetail() {
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
window.Talent.app.vent.trigger("global-pull-screen", data.taskId, "task");
|
|
34
|
+
};
|
|
35
|
+
|
|
30
36
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
37
|
className: "".concat(preCls, "__table-task-title"),
|
|
32
38
|
style: {
|
|
33
39
|
'paddingLeft': 24
|
|
34
|
-
}
|
|
40
|
+
},
|
|
41
|
+
onClick: handleShowTaskDetail
|
|
35
42
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
36
43
|
className: "".concat(preCls, "__table-row-title-icon ").concat(_constant.EStatusStatus2ClassType[data.iconStatus])
|
|
37
44
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -13,12 +13,12 @@ var _progress = _interopRequireDefault(require("../progress"));
|
|
|
13
13
|
|
|
14
14
|
var _schedule = _interopRequireDefault(require("../schedule"));
|
|
15
15
|
|
|
16
|
+
var _utils = require("./utils");
|
|
17
|
+
|
|
16
18
|
require("./index.css");
|
|
17
19
|
|
|
18
20
|
var _tools = require("../../../../../utils/tools");
|
|
19
21
|
|
|
20
|
-
var _constant = require("../../../constant");
|
|
21
|
-
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
24
24
|
var preCls = 'tita-summary-work-progress';
|
|
@@ -46,7 +46,7 @@ var Work = function Work(_ref) {
|
|
|
46
46
|
}, data.DateContent))), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_progress["default"], {
|
|
47
47
|
id: "".concat(data.Id),
|
|
48
48
|
type: "task",
|
|
49
|
-
status:
|
|
49
|
+
status: (0, _utils.getStatus)(data.RiskLevel || data.riskLevel || 1),
|
|
50
50
|
value: Number(data.Progress)
|
|
51
51
|
})), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
|
|
52
52
|
curContent: (data === null || data === void 0 ? void 0 : (_data$LastRichContent = data.LastRichContent) === null || _data$LastRichContent === void 0 ? void 0 : _data$LastRichContent.trim()) || (data === null || data === void 0 ? void 0 : data.LastContent) || "",
|
|
@@ -321,7 +321,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
321
321
|
var handleInView = function handleInView(inview) {
|
|
322
322
|
if (!isFold) return;
|
|
323
323
|
|
|
324
|
-
if (inview) {
|
|
324
|
+
if (inview && window.titaTracker) {
|
|
325
325
|
window.titaTracker('planAction').record({
|
|
326
326
|
actionName: '查看日报',
|
|
327
327
|
actionGroup: '动态-查看日报',
|