|
|
@@ -206,7 +206,7 @@ function getEmployeeInfosClick(url, param, start_score, end_score, start_num, en
|
|
|
"<td width='4%;'>" + getItemScore(data[i], '动作') + "</td><td width='4%;'>" + getItemScore(data[i], '文明用语') + "</td>" +
|
|
|
"<td width='4%;'>" + getItemScore(data[i], '工作纪律') + "</td><td width='4%'>" + getItemScore(data[i], '便民服务') + "</td><td width='4%;'>" +
|
|
|
getItemScore(data[i], '安全管理') + "</td><td width='4%;'>" + data[i].check_all_score + "</td>" +
|
|
|
- "<td width='6%;'>" + (isshownumber ? (filter(data[i].checked_num, '0') + (data[i].checked_num < 16 ? html : "")) : "-") + "</td><td width='4%;'>" + filterSlash(filterByZeroHandle(data[i].check_score_avg, '0'), filter(data[i].checked_num + data[i].checked_m_num, '0')) + "</td>" +
|
|
|
+ "<td width='6%;'>" + (isshownumber ? (filter(data[i].checked_num, '0') + (data[i].checked_num < 6000 ? html : "")) : "-") + "</td><td width='4%;'>" + filterSlash(filterByZeroHandle(data[i].check_score_avg, '0'), filter(data[i].checked_num + data[i].checked_m_num, '0')) + "</td>" +
|
|
|
"<td width='4%;'>" + filterSlash(score, filter(data[i].checked_num + data[i].checked_m_num, '0')) + "</td><td width='4%;'>" + "</td><td width='4%;'>" + "</td></tr>";
|
|
|
count++;
|
|
|
}
|
|
|
@@ -219,7 +219,7 @@ function getEmployeeInfosClick(url, param, start_score, end_score, start_num, en
|
|
|
}
|
|
|
|
|
|
|
|
|
-function showAddTaskListView(data, widthtemp, heighttemp, start_date, end_date) {
|
|
|
+function showAddTaskListView(data, widthtemp, heighttemp, start_date, end_date, checknum) {
|
|
|
|
|
|
var tasklist = data.teamClasseList;
|
|
|
var userclasslist = data.userClassCountList;
|
|
|
@@ -491,10 +491,14 @@ function showAddTaskListView(data, widthtemp, heighttemp, start_date, end_date)
|
|
|
|
|
|
}
|
|
|
|
|
|
- var html = css + '<div class="row row_alert" style="padding-left:10px;padding-right:10px;">' + table1 + '</div><div class="row row_alert" style="bottom: 0;position: absolute;width: 100%;text-align: right;}">' +
|
|
|
+ var btn_html = "";
|
|
|
+ if(checknum<6){
|
|
|
+ btn_html = '<button class="btn btn-primary" style="margin:20px;margin-right:10px" onclick="creatTask()" type="button">生成任务</button>';
|
|
|
+ }
|
|
|
+ var html = css + '<div class="row row_alert" style="padding-left:10px;padding-right:10px;">' + table1 + '</div><div class="row row_alert" style="bottom: 0;position: absolute;width: 100%;text-align: center;}">' +
|
|
|
'<div class="col-xs-4">' + tips + '</div><div class="col-xs-3">' + selectdiv + '</div><div class="col-xs-3"><span class="selecttag" style="text-align: right;">请分配对应的稽查人员:</span></div><div class="col-xs-2 class="selecttag""><select data-placeholder="选择稽查员" id="selectusers" class="chosen-select form-control" >' +
|
|
|
optlist +
|
|
|
- '</select></div><div class="row row_alert"><button class="btn btn-primary" style="margin:20px;margin-right:10px" onclick="creatTask()" type="button">生成任务</button></div></div>';
|
|
|
+ '</select></div><div class="row row_alert">'+btn_html+'</div></div>';
|
|
|
|
|
|
return html;
|
|
|
}
|
|
|
@@ -528,7 +532,7 @@ function addTask(userid, username, stationname, checknum, start_date, end_date)
|
|
|
var allwidth = 1200;
|
|
|
|
|
|
|
|
|
- var html = showAddTaskListView(data, allwidth, allheight, start_date, end_date);
|
|
|
+ var html = showAddTaskListView(data, allwidth, allheight, start_date, end_date,checknum);
|
|
|
|
|
|
|
|
|
|
|
|
@@ -546,6 +550,13 @@ function addTask(userid, username, stationname, checknum, start_date, end_date)
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ $('#selectusers').chosen({
|
|
|
+ // width:'200px',
|
|
|
+ height: '100px',
|
|
|
+ no_results_text: '没有找到', // 当检索时没有找到匹配项时显示的提示文本
|
|
|
+ disable_search_threshold: 10, // 10 个以下的选择项则不显示检索框
|
|
|
+ search_contains: true // 从任意位置开始检索
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
|
|
|
@@ -605,7 +616,7 @@ function creatTask() {
|
|
|
var height = allheight - 150 - 45;
|
|
|
var allwidth = 1200;
|
|
|
|
|
|
- var html = showAddTaskListView(data, allwidth, allheight, data_p.start_date, data_p.end_date);
|
|
|
+ var html = showAddTaskListView(data, allwidth, allheight, data_p.start_date, data_p.end_date, data_p.checknum);
|
|
|
|
|
|
$("#layerhtml").html(html);
|
|
|
data_p.checknum = parseInt(data_p.checknum) + 1;
|