|
|
|
@ -177,45 +177,46 @@ function fnLoadStatisticsData(){
|
|
|
|
|
|
|
|
|
|
data = {
|
|
|
|
|
statItems : [
|
|
|
|
|
{ itemName : "고정형CCTV", completeCnt : 2, totalCnt : 10},
|
|
|
|
|
{ itemName : "도보단속", completeCnt : 2, totalCnt : 3},
|
|
|
|
|
{ itemName : "이동형CCTV", completeCnt : 2, totalCnt : 3},
|
|
|
|
|
{ itemName : "민원(즉시단속)", completeCnt : 10, totalCnt : 10}
|
|
|
|
|
{ itemName : "고정형CCTV", compositeValue : [2,10] },
|
|
|
|
|
{ itemName : "도보단속", compositeValue : [2,3] },
|
|
|
|
|
{ itemName : "이동형CCTV", compositeValue : [2,3] },
|
|
|
|
|
{ itemName : "민원(즉시단속)", compositeValue : [10,10] }
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
fnRenderDashboardContents(data, "card1" , "progressAndTotal");
|
|
|
|
|
|
|
|
|
|
data = {
|
|
|
|
|
statItems : [
|
|
|
|
|
{ itemName : "등록대상", completeCnt : 45, totalCnt : 50},
|
|
|
|
|
{ itemName : "이첩대상", completeCnt : 35, totalCnt : 40}
|
|
|
|
|
{ itemName : "등록대상", compositeValue : [45,50] },
|
|
|
|
|
{ itemName : "이첩대상", compositeValue : [35,40] }
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
fnRenderDashboardContents(data, "card2" , "progressAndTotal");
|
|
|
|
|
|
|
|
|
|
data = {
|
|
|
|
|
statItems : [
|
|
|
|
|
{ itemName : "계도장", completeCnt : 4, totalCnt : 10},
|
|
|
|
|
{ itemName : "사전통보", completeCnt : 5, totalCnt : 11},
|
|
|
|
|
{ itemName : "고지서", completeCnt : 6, totalCnt : 12}
|
|
|
|
|
{ itemName : "계도장", compositeValue : [4,10] },
|
|
|
|
|
{ itemName : "사전통보", compositeValue : [5,11] },
|
|
|
|
|
{ itemName : "고지서", compositeValue : [6,12] }
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
fnRenderDashboardContents(data, "card3" , "progressAndTotal");
|
|
|
|
|
|
|
|
|
|
data = {
|
|
|
|
|
statItems : [
|
|
|
|
|
{ itemName : "접수", completeCnt : 49, totalCnt : 100},
|
|
|
|
|
{ itemName : "수용/미수용", completeCnt : 50, totalCnt : 98},
|
|
|
|
|
{ itemName : "자진취하", completeCnt : 51, totalCnt : 97}
|
|
|
|
|
{ itemName : "접수", compositeValue : [49,100] },
|
|
|
|
|
{ itemName : "수용/미수용", compositeValue : [50,98] },
|
|
|
|
|
{ itemName : "자진취하", compositeValue : [51,97] }
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
fnRenderDashboardContents(data, "card4" , "progressAndTotal");
|
|
|
|
|
|
|
|
|
|
data = {
|
|
|
|
|
compositeValueTitle : [14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, "금일"],
|
|
|
|
|
statItems : [
|
|
|
|
|
{ itemName : "고정형", valueByTime : [80, 150, 180, 270, 210, 160, 160, 202, 265, 210, 270, 255, 290, 360, 375] },
|
|
|
|
|
{ itemName : "도보", valueByTime : [80, 125, 105, 130, 215, 195, 140, 160, 230, 300, 220, 170, 210, 200, 280] },
|
|
|
|
|
{ itemName : "민원", valueByTime : [80, 99, 82, 90, 115, 115, 74, 75, 130, 155, 125, 90, 140, 130, 180] }
|
|
|
|
|
{ itemName : "고정형", compositeValue : [80, 150, 180, 270, 210, 160, 160, 202, 265, 210, 270, 255, 290, 360, 375] },
|
|
|
|
|
{ itemName : "도보", compositeValue : [80, 125, 105, 130, 215, 195, 140, 160, 230, 300, 220, 170, 210, 200, 280] },
|
|
|
|
|
{ itemName : "민원", compositeValue : [80, 99, 82, 90, 115, 115, 74, 75, 130, 155, 125, 90, 140, 130, 180] }
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
fnRenderDashboardContents(data, "lineChart" , "line");
|
|
|
|
@ -275,7 +276,7 @@ function fnRenderProgressAndTotal(returnData, cursor){
|
|
|
|
|
$("#"+cursor)
|
|
|
|
|
.find("p")
|
|
|
|
|
.eq(i)
|
|
|
|
|
.html(returnData.statItems[i].completeCnt + "/" + returnData.statItems[i].totalCnt);
|
|
|
|
|
.html(returnData.statItems[i].compositeValue[0] + "/" + returnData.statItems[i].compositeValue[1]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(cursor == "card1"){
|
|
|
|
@ -318,7 +319,7 @@ function fnRenderLine(returnData, cursor){
|
|
|
|
|
|
|
|
|
|
defaultObject.label = returnData.statItems[i].itemName;
|
|
|
|
|
|
|
|
|
|
defaultObject.data = returnData.statItems[i].valueByTime;
|
|
|
|
|
defaultObject.data = returnData.statItems[i].compositeValue;
|
|
|
|
|
|
|
|
|
|
if(i % 3 == 0){
|
|
|
|
|
defaultObject.backgroundColor = config.colors.danger;
|
|
|
|
@ -338,13 +339,16 @@ function fnRenderLine(returnData, cursor){
|
|
|
|
|
|
|
|
|
|
datasets.push(defaultObject);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xAxisLabels = returnData.compositeValueTitle;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var lineChart = document.getElementById(cursor);
|
|
|
|
|
if (lineChart) {
|
|
|
|
|
var lineChartVar = new Chart(lineChart, {
|
|
|
|
|
type: 'line',
|
|
|
|
|
data: {
|
|
|
|
|
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
|
|
|
labels: xAxisLabels,
|
|
|
|
|
datasets: datasets
|
|
|
|
|
},
|
|
|
|
|
options: {
|
|
|
|
|