新闻采集修改,完成发送邮件

This commit is contained in:
2025-11-18 17:56:10 +08:00
parent 049b6f2cf3
commit 9f3176194b
50 changed files with 3929 additions and 322 deletions

View File

@@ -551,7 +551,7 @@ async function fetchTaskUsers() {
username: item.username,
deptID: item.deptID,
deptName: item.deptName,
parentDeptID: item.parentDeptID
parentID: item.parentID
}));
return {
success: true,
@@ -604,7 +604,7 @@ function transformUsersToTree(flatData: any[]): any[] {
displayName: deptName,
deptID: deptID,
deptName: deptName,
parentDeptID: item.parentDeptID,
parentID: item.parentID,
children: [],
isDept: true // 标记这是部门节点
});
@@ -635,12 +635,12 @@ function transformUsersToTree(flatData: any[]): any[] {
const node = deptTreeMap.get(dept.deptID);
if (!node) return;
if (!dept.parentDeptID || dept.parentDeptID === '0' || dept.parentDeptID === '') {
if (!dept.parentID || dept.parentID === '0' || dept.parentID === '') {
// 根部门
tree.push(node);
} else {
// 子部门
const parent = deptTreeMap.get(dept.parentDeptID);
const parent = deptTreeMap.get(dept.parentID);
if (parent) {
// 将用户节点暂存
const users = node.children || [];