|
@@ -208,9 +208,6 @@
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="mt-body mt-vertical">
|
|
|
- <!--<div class="mt-title-region">-->
|
|
|
- <!--<div class="mt-info">督查督办分析</div>-->
|
|
|
- <!--</div>-->
|
|
|
<div class="mt-center">
|
|
|
<div class="mt-content">
|
|
|
<div class="mt-btn-region">
|
|
@@ -223,6 +220,17 @@
|
|
|
<ul id="years" class="mt-dropdown-menu">
|
|
|
</ul>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="mt-btn-group">
|
|
|
+ <input id="currentTaskTypes" name="year" type="hidden" value="">
|
|
|
+ <button class="mt-btn">
|
|
|
+ <span class="mt-selTxt taskType-text"></span>
|
|
|
+ <i class="caret"></i>
|
|
|
+ </button>
|
|
|
+ <ul id="pageTaskTypes" class="mt-dropdown-menu">
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
<div class="mt-horizontal tableInfo">
|
|
@@ -236,6 +244,7 @@
|
|
|
<th>总得分</th>
|
|
|
<th>基础分</th>
|
|
|
<th>评价得分</th>
|
|
|
+ <th>平均事项完成时长</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody id="byManagerTrs">
|
|
@@ -244,7 +253,6 @@
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -300,6 +308,7 @@
|
|
|
<td>{{obj.score}}</td>
|
|
|
<td>{{obj.score1}}</td>
|
|
|
<td>{{obj.score2}}</td>
|
|
|
+ <td>{{obj.avgtime}}</td>
|
|
|
</tr>
|
|
|
{{/each}}
|
|
|
{{/if}}
|
|
@@ -307,15 +316,16 @@
|
|
|
<script th:inline="javascript">
|
|
|
$(function () {
|
|
|
initYears()
|
|
|
- initTableByManager(new Date().getFullYear());
|
|
|
-
|
|
|
+ initTableByManager(new Date().getFullYear(),"");
|
|
|
+ initPageTaskTypes()
|
|
|
})
|
|
|
|
|
|
-function initTableByManager(year) {
|
|
|
+function initTableByManager(year,id) {
|
|
|
var param = {
|
|
|
year: year,
|
|
|
taskTypeId: '0',
|
|
|
- orgName: ''
|
|
|
+ orgName: '',
|
|
|
+ gbTaskTypeId:id+''
|
|
|
}
|
|
|
callAjaxRequest("taskAnalysisWebService", "findEvaluateAnalysis", param, function (result) {
|
|
|
var html;
|
|
@@ -333,6 +343,29 @@ function initTableByManager(year) {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+function initPageTaskTypes () {
|
|
|
+ let showListData = [{id: "", name: "全部", parent_id: 0}];
|
|
|
+ let renderStr = "";
|
|
|
+ callAjaxRequest("taskAnalysisWebService", "findTaskTypes", {}, function (result) {
|
|
|
+ result = result || [];
|
|
|
+ showListData = showListData.concat(result);
|
|
|
+ for(let i = 0, len = showListData.length; i < len; i++) {
|
|
|
+ let item = showListData[i]
|
|
|
+ renderStr += '<li><a class="mt-dropdown-txt taskType-txt" onclick="filterByType(\''+item.id+'\')" value="' + item.id + '' + '">' + item.name + '</a></li>'
|
|
|
+ }
|
|
|
+ $("#pageTaskTypes").html(renderStr);
|
|
|
+ $("#currentTaskTypes").val("");
|
|
|
+ })
|
|
|
+ $(".taskType-text").text("全部");
|
|
|
+}
|
|
|
+
|
|
|
+// 根据类型加载列表
|
|
|
+function filterByType (id) {
|
|
|
+ $.startProc()
|
|
|
+ $("#currentTaskTypes").val(id);
|
|
|
+ initTableByManager($("#year").val(), id)
|
|
|
+}
|
|
|
+
|
|
|
function initYears() {
|
|
|
var uls = "";
|
|
|
var year = new Date().getFullYear();
|
|
@@ -344,13 +377,14 @@ function initYears() {
|
|
|
$("#year").val(year);
|
|
|
$(".year-text").text(year + "年");
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
//根据年份筛选
|
|
|
function setYear(year) {
|
|
|
$.startProc()
|
|
|
$("#year").val(year)
|
|
|
- var month = $("#month").val()
|
|
|
//刷新列表
|
|
|
- initTableByManager(year)
|
|
|
+ initTableByManager(year , $("#currentTaskTypes").val())
|
|
|
}
|
|
|
|
|
|
$('body').on('click', '.mt-btn-group .mt-dropdown-txt', function (e) {
|