|
@@ -222,7 +222,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="mt-btn-group">
|
|
|
- <input id="currentTaskTypes" name="year" type="hidden" value="">
|
|
|
+ <input id="currentTaskTypes" name="taskTypes" type="hidden" value="">
|
|
|
<button class="mt-btn">
|
|
|
<span class="mt-selTxt taskType-text"></span>
|
|
|
<i class="caret"></i>
|
|
@@ -231,6 +231,16 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
|
|
|
+ <div class="mt-btn-group" id="TaskTypeEnumContainer" style="display: none">
|
|
|
+ <input id="taskTypeEnum" name="year" type="hidden" value="">
|
|
|
+ <button class="mt-btn">
|
|
|
+ <span class="mt-selTxt taskEnum-text"></span>
|
|
|
+ <i class="caret"></i>
|
|
|
+ </button>
|
|
|
+ <ul id="TaskTypeEnumList" class="mt-dropdown-menu">
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
<div class="mt-horizontal tableInfo">
|
|
@@ -244,12 +254,14 @@
|
|
|
<th>总得分</th>
|
|
|
<th>基础分</th>
|
|
|
<th>评价得分</th>
|
|
|
+ <th class="taskTypeEnumTh" style="display: none">类型基础得分</th>
|
|
|
+ <th class="taskTypeEnumTh" style="display: none">类型评价得分</th>
|
|
|
<th>平均事项完成时长</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody id="byManagerTrs">
|
|
|
<tr>
|
|
|
- <td colspan="6">暂无数据</td>
|
|
|
+ <td colspan="10">暂无数据</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
@@ -297,7 +309,7 @@
|
|
|
<script id="responUnitTableBody" type="text/html">
|
|
|
{{if data.length==0}}
|
|
|
<tr>
|
|
|
- <td colspan="6">暂无数据</td>
|
|
|
+ <td colspan="10">暂无数据</td>
|
|
|
</tr>
|
|
|
{{else if data.length>0}}
|
|
|
{{each data obj index}}
|
|
@@ -308,6 +320,14 @@
|
|
|
<td>{{obj.score}}</td>
|
|
|
<td>{{obj.score1}}</td>
|
|
|
<td>{{obj.score2}}</td>
|
|
|
+ {{ if obj.score3!=null}} }}
|
|
|
+ <td>{{obj.score3}}</td>
|
|
|
+ {{/if}}
|
|
|
+
|
|
|
+ {{ if obj.score4!=null}}
|
|
|
+ <td>{{obj.score4}}</td>
|
|
|
+ {{/if}}
|
|
|
+
|
|
|
<td>{{obj.avgtime}}</td>
|
|
|
</tr>
|
|
|
{{/each}}
|
|
@@ -315,9 +335,10 @@
|
|
|
</script>
|
|
|
<script th:inline="javascript">
|
|
|
$(function () {
|
|
|
- initYears()
|
|
|
+ initYears();
|
|
|
initTableByManager(new Date().getFullYear(),"");
|
|
|
- initPageTaskTypes()
|
|
|
+ initPageTaskTypes();
|
|
|
+ getTaskTypeEnum();
|
|
|
})
|
|
|
|
|
|
function initTableByManager(year,id) {
|
|
@@ -325,7 +346,11 @@ function initTableByManager(year,id) {
|
|
|
year: year,
|
|
|
taskTypeId: '0',
|
|
|
orgName: '',
|
|
|
- gbTaskTypeId:id+''
|
|
|
+ gbTaskTypeId:id+'',
|
|
|
+ }
|
|
|
+ // 如果容器没有隐藏
|
|
|
+ if($('#TaskTypeEnumContainer').css("display") !== "none"){
|
|
|
+ param['matterTypeSetting'] = $("#taskTypeEnum").val()
|
|
|
}
|
|
|
callAjaxRequest("taskAnalysisWebService", "findEvaluateAnalysis", param, function (result) {
|
|
|
var html;
|
|
@@ -348,10 +373,28 @@ function initPageTaskTypes () {
|
|
|
let renderStr = "";
|
|
|
callAjaxRequest("taskAnalysisWebService", "findTaskTypes", {}, function (result) {
|
|
|
result = result || [];
|
|
|
- showListData = showListData.concat(result);
|
|
|
+ let showResult = [];
|
|
|
+ // 不确定这里支持使用es的方法过滤不, 所以处理成相对老旧一点的js语法
|
|
|
+ for (let i = 0, len = result.length; i < len; i++){
|
|
|
+ if(result[i].parent_id == "0"){
|
|
|
+ let isOk = true;
|
|
|
+ for (let j = 0; j < len; j++){
|
|
|
+ if(result[j].parent_id === result[i].id){
|
|
|
+ isOk = false;
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(isOk){
|
|
|
+ showResult.push(result[i])
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ showResult.push(result[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ showListData = showListData.concat(showResult);
|
|
|
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>'
|
|
|
+ renderStr += '<li><a class="mt-dropdown-txt taskType-txt" onclick="filterByType(\''+item.id+'\', \''+item.name+'\')" value="' + item.id + '' + '">' + item.name + '</a></li>'
|
|
|
}
|
|
|
$("#pageTaskTypes").html(renderStr);
|
|
|
$("#currentTaskTypes").val("");
|
|
@@ -360,9 +403,23 @@ function initPageTaskTypes () {
|
|
|
}
|
|
|
|
|
|
// 根据类型加载列表
|
|
|
-function filterByType (id) {
|
|
|
+function filterByType (id, name) {
|
|
|
$.startProc()
|
|
|
$("#currentTaskTypes").val(id);
|
|
|
+ if(['重点案件','普通案件'].includes(name)){
|
|
|
+ $('#TaskTypeEnumContainer').show();
|
|
|
+ $('.taskTypeEnumTh').show();
|
|
|
+ if($("#taskTypeEnum").val()){
|
|
|
+ $('.taskTypeEnumTh').show();
|
|
|
+ }else {
|
|
|
+ $('.taskTypeEnumTh').hide();
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ $('#TaskTypeEnumContainer').hide();
|
|
|
+ $('.taskTypeEnumTh').hide();
|
|
|
+ $(".taskEnum-text").text("全部");
|
|
|
+ $("#taskTypeEnum").val("");
|
|
|
+ }
|
|
|
initTableByManager($("#year").val(), id)
|
|
|
}
|
|
|
|
|
@@ -378,7 +435,6 @@ function initYears() {
|
|
|
$(".year-text").text(year + "年");
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//根据年份筛选
|
|
|
function setYear(year) {
|
|
|
$.startProc()
|
|
@@ -387,6 +443,39 @@ function setYear(year) {
|
|
|
initTableByManager(year , $("#currentTaskTypes").val())
|
|
|
}
|
|
|
|
|
|
+// 获取业绩考核的类型设置枚举
|
|
|
+function getTaskTypeEnum() {
|
|
|
+ let showListData = [{id: "", value: "全部", parent_id: 0}];
|
|
|
+ let renderStr = "";
|
|
|
+ callAjaxRequest(
|
|
|
+ 'taskAnalysisWebService',
|
|
|
+ 'findMatterTypeSettings', {param: {}},
|
|
|
+ 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="filterByEnum(\''+item.id+'\')" value="' + item.id + '' + '">' + item.value + '</a></li>'
|
|
|
+ }
|
|
|
+ $("#TaskTypeEnumList").html(renderStr);
|
|
|
+ $("#taskTypeEnum").val("");
|
|
|
+ }
|
|
|
+ );
|
|
|
+ $(".taskEnum-text").text("全部");
|
|
|
+}
|
|
|
+
|
|
|
+// 业绩类型设置
|
|
|
+function filterByEnum (id,) {
|
|
|
+ $.startProc()
|
|
|
+ $("#taskTypeEnum").val(id);
|
|
|
+ initTableByManager($("#year").val(), $("#currentTaskTypes").val())
|
|
|
+ if(id){
|
|
|
+ $('.taskTypeEnumTh').show();
|
|
|
+ }else {
|
|
|
+ $('.taskTypeEnumTh').hide();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
$('body').on('click', '.mt-btn-group .mt-dropdown-txt', function (e) {
|
|
|
$(".yearTxt").html($(this).html());
|
|
|
})
|