大屏安全数据统计

This commit is contained in:
zonse
2025-04-17 15:01:42 +08:00
parent 7dafb37963
commit 00b7fe2e6d
8 changed files with 38 additions and 26 deletions
+1 -5
View File
@@ -481,18 +481,14 @@
var option = {
grid: {
containLabel: true,
top: 30,
left: 0,
height: 180,
},
xAxis: {
type: 'category',
data: tit,
/* axisTick: { alignWithLabel: true },*/
axisLabel: {
rotate: -25,
rotate: -30,
interval: 0,
textStyle: {
fontSize: 12,
+1 -4
View File
@@ -710,17 +710,14 @@
var option = {
grid: {
containLabel: true,
top: 30,
left: 0,
height: 220,
},
xAxis: {
type: 'category',
data: tit,
/* axisTick: { alignWithLabel: true },*/
axisLabel: {
rotate: -25,
rotate: -30,
interval: 0,
textStyle: {
fontSize: 12,
@@ -134,12 +134,7 @@ namespace FineUIPro.Web.common
join itm in Funs.DB.Inspect_InspectionItem on i.InspectionId equals itm.InspectionId
where i.ProblemTypeName != null && i.ProjectId == ProjectId && i.CreateTime > startd && i.CreateTime < endd && i.InspectType == "1"
group i by i.ProblemTypeName into g2
select new { type = g2.Key, count = g2.Count() })
.Union(from ins in Funs.DB.Inspect_Inspection
join itm in Funs.DB.Inspect_InspectionItem on ins.InspectionId equals itm.InspectionId
where ins.Place != null && ins.ProjectId == ProjectId && ins.CreateTime > startd && ins.CreateTime < endd && ins.InspectType == "1"
group ins by ins.Place into g3
select new { type = g3.Key, count = g3.Count() })).ToList();
select new { type = g2.Key, count = g2.Count() })).ToList();
return new