大屏安全数据统计
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user