diff --git a/safesite/templates/report.html b/safesite/templates/report.html index 4e1c3a94..b893835d 100644 --- a/safesite/templates/report.html +++ b/safesite/templates/report.html @@ -206,7 +206,7 @@ var now = new Date(); var _year; var _month; - var part=''; + var part = ''; var table1v; var table2v; var table3v; @@ -239,19 +239,19 @@ $('#month').combobox().combobox('setValue', res.month); BindZt(); }) - - }); - function getDetail(year,month,part){ - $.get('api/report?a=detail&year='+year+'&month='+month+'&part='+part,function(res){ - if(res.code==1){ - $('#yyfxdiv').html(res.data.cause) - $('#jydiv').html(res.data.suggest) - }else{ - $('#yyfxdiv').empty() - $('#jydiv').empty() - } - }) + }); + function getDetail(year, month, part) { + $.get('api/report?a=detail&year=' + year + '&month=' + month + '&part=' + part, function (res) { + if (res.code == 1) { + $('#yyfxdiv').html(res.data.cause) + $('#jydiv').html(res.data.suggest) + } else { + $('#yyfxdiv').empty() + $('#jydiv').empty() + } + + }) } //编辑分析报告 function reportEdit() { @@ -281,7 +281,7 @@ //bindmap3('map3', _year, _month); bindmap3_o('map3', { 'year': _year, 'month': _month, 'part': part }) //bindmap4('map4', _year, _month); - bindmap4_o('map4', { 'year': _year, 'month': _month, 'part': part }) + // bindmap4_o('map4', { 'year': _year, 'month': _month, 'part': part }) bindmap5('map5', { 'year': _year, 'month': _month, 'part': part }); bindmap6('map6', { 'year': _year, 'month': _month, 'part': part }); bindmapgclx('map7', { 'year': _year, 'month': _month, 'part': part }); @@ -293,7 +293,7 @@ bindTable5(part); // 下一级部门应急演练次数 bindTable6(part); // 下一级部门行为观察次数 bindTable7(part); // 下一级部门未遂事件次数 - getDetail(_year,_month,part) + getDetail(_year, _month, part) $('#createdate').html('报告生成时间:' + now.getFullYear() + '年' + (now.getMonth() + 1) + '月' + now.getDate() + '日'); } // function getDates() { diff --git a/safesite/templates/troubleashtml.html b/safesite/templates/troubleashtml.html index f267bfd0..b4a1e5d6 100644 --- a/safesite/templates/troubleashtml.html +++ b/safesite/templates/troubleashtml.html @@ -4,7 +4,8 @@ - 查询 + 查询 +
@@ -26,69 +27,74 @@
- - - - - - - - - -
用户ID姓名所属部门填报隐患数
-
-
- 查询 - 导出 -
- - - - 用户ID + 姓名 + 所属部门 + 填报隐患数 + + + +
+ + 查询 + 导出 +
+ + + + -
+ " /> +
- -
-
- +
- - - - - - - - -
用户ID姓名所属部门整改隐患数
+ + + 用户ID + 姓名 + 所属部门 + 整改隐患数 + + + -
-
- 查询 - 导出 -
- - - -
-
-
+
+
+ 查询 + 导出 +
+ + + +
+
+
@@ -125,15 +131,15 @@ function yhbztsearch() { var querydata = $('#yhbztf').serializeJSON(); bindmap3_o('yhlbt', querydata) - bindmap4_o('yhpgt', querydata) + // bindmap4_o('yhpgt', querydata) bindmap8('yhztt', querydata) - bindmap7('yhqst',querydata); + bindmap7('yhqst', querydata); } var now = new Date(); var year = now.getFullYear(); var month = now.getMonth() + 1; bindmap3_o('yhlbt', { 'year': year, 'month': month }); - bindmap4_o('yhpgt', { 'year': year, 'month': month }); + // bindmap4_o('yhpgt', { 'year': year, 'month': month }); bindmap7('yhqst'); bindmap8('yhztt'); function fxrpmexport() {