提交 10f73eb1 authored 作者: coderBryanFu's avatar coderBryanFu

工作日程表模块修改

上级 e6cc3f88
...@@ -217,7 +217,13 @@ function buildDataMap(arr) { ...@@ -217,7 +217,13 @@ function buildDataMap(arr) {
}); });
} }
const d = map.get(date); const d = map.get(date);
// d.count += 1;
// 按 administrativeOrderInfoTitle 去重计数
if (!d._titleSet) d._titleSet = new Set();
if (item.administrativeOrderInfoTitle && !d._titleSet.has(item.administrativeOrderInfoTitle)) {
d._titleSet.add(item.administrativeOrderInfoTitle);
d.count += 1; d.count += 1;
}
if (item.status === 2) d.resolved += 1; if (item.status === 2) d.resolved += 1;
if (d.logos.length < 3 && item.orgLogoUrl) d.logos.push(item.orgLogoUrl); if (d.logos.length < 3 && item.orgLogoUrl) d.logos.push(item.orgLogoUrl);
d.status = 'has_events'; d.status = 'has_events';
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论