|
|
@@ -123,6 +123,36 @@ function queryEmpClick() {
|
|
|
}
|
|
|
|
|
|
function initQueryEmp(parent_dept_id, dept_id) {
|
|
|
+ setJobSelect("#jobSelect");
|
|
|
+ var p_m = $.zui.store.get('store_param_' + current_url)
|
|
|
+ $.zui.store.set('store_param_' + current_url, null);
|
|
|
+ if (p_m) {
|
|
|
+
|
|
|
+ $("#center-manager").val(p_m.parent_dept_id);
|
|
|
+ $("#fsList").val(p_m.dept_id);
|
|
|
+ $("#start-time").val(p_m.start_date);
|
|
|
+ $("#end-time").val(p_m.end_date);
|
|
|
+ $("#start-num").val(p_m.start_num);
|
|
|
+ $("#end-num").val(p_m.end_num);
|
|
|
+ $("#start-score").val(p_m.start_score);
|
|
|
+ $("#end-score").val(p_m.end_score);
|
|
|
+ $("#jobSelect").val(p_m.job_select);
|
|
|
+
|
|
|
+
|
|
|
+ parent_dept_id = p_m.parent_dept_id;
|
|
|
+ dept_id = p_m.dept_id;
|
|
|
+ setJobSelect("#jobSelect", p_m.job_select);
|
|
|
+
|
|
|
+ getFsStationList(GV("#center_manage"), function(options) {
|
|
|
+ $("#fsList").append(options);
|
|
|
+ var dept;
|
|
|
+ if (roleContains("STATION")) {
|
|
|
+ dept = getCurrentUser().organid;
|
|
|
+ }
|
|
|
+ $("#fsList").val(p_m.dept_id);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
//默认初始化前一周查所有
|
|
|
var endD = new Date();
|
|
|
var startD = new Date();
|
|
|
@@ -133,7 +163,7 @@ function initQueryEmp(parent_dept_id, dept_id) {
|
|
|
var end_score = $("#end-score").val();
|
|
|
var start_num = $("#start-num").val() != '' ? $("#start-num").val() : 0;
|
|
|
var end_num = $("#end-num").val() != '' ? $("#end-num").val() : 100;
|
|
|
- setJobSelect("#jobSelect");
|
|
|
+
|
|
|
//默认初始化时间页面回显
|
|
|
$("#start-time").val(start_time);
|
|
|
$("#end-time").val(end_time);
|
|
|
@@ -198,7 +228,7 @@ function getEmployeeInfosClick(url, param, start_score, end_score, start_num, en
|
|
|
}
|
|
|
|
|
|
strTbody += "<tr><td width='4%;'>" + (count + 1) + "</td><td width='6%;'>" + data[i].user.fee_station_name + "</td>" +
|
|
|
- "<td width='6%;'>" + data[i].user.truename + "</td><td width='6%;'>" + data[i].user.position_name + "</td>" +
|
|
|
+ "<td width='6%;'><a href='JavaScript:void(0)' onclick='jumpuser(\"" + data[i].user.id + "\",\"" + data[i].user.organid + "\")'>" + data[i].user.truename + "</a></td><td width='6%;'>" + data[i].user.position_name + "</td>" +
|
|
|
"<td width='7%;'>" + data[i].user.workno + "</td><td width='4%;'>" + filter(data[i].company_ranking, '/') + "</td>" +
|
|
|
"<td width='4%;'>" + filter(data[i].center_ranking, '/') + "</td><td width='4%;'>" + filter(data[i].fee_station_ranking, '/') +
|
|
|
"</td><td width='4%;'>" + getItemScore(data[i], '环境') + "</td>" +
|
|
|
@@ -206,7 +236,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 < 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='6%;'>" + (isshownumber ? (filter(data[i].checked_num, '0') + (data[i].checked_num < 6 ? 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++;
|
|
|
}
|
|
|
@@ -218,6 +248,28 @@ function getEmployeeInfosClick(url, param, start_score, end_score, start_num, en
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+function jumpuser(userid, deptid) {
|
|
|
+
|
|
|
+
|
|
|
+ var param = {
|
|
|
+ "parent_dept_id": GV("#center-manager"),
|
|
|
+ "dept_id": GV("#fsList"),
|
|
|
+ "start_date": $("#start-time").val(),
|
|
|
+ "end_date": $("#end-time").val(),
|
|
|
+ "start_num": $("#start-num").val(),
|
|
|
+ "end_num": $("#end-num").val(),
|
|
|
+ "start_score": $("#start-score").val(),
|
|
|
+ "end_score": $("#end-score").val(),
|
|
|
+ "job_select": $("#jobSelect").val()
|
|
|
+ }
|
|
|
+ $.zui.store.set('store_param_' + current_url, param);
|
|
|
+
|
|
|
+ url = "/view/statistics/personal_data_statistics.html?userid=" + userid + "&deptid=" + deptid
|
|
|
+
|
|
|
+ changePage(url);
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
function showAddTaskListView(data, widthtemp, heighttemp, start_date, end_date, checknum) {
|
|
|
|
|
|
@@ -492,13 +544,13 @@ function showAddTaskListView(data, widthtemp, heighttemp, start_date, end_date,
|
|
|
}
|
|
|
|
|
|
var btn_html = "";
|
|
|
- if(checknum<6){
|
|
|
+ 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">'+btn_html+'</div></div>';
|
|
|
+ '</select></div><div class="row row_alert">' + btn_html + '</div></div>';
|
|
|
|
|
|
return html;
|
|
|
}
|
|
|
@@ -532,7 +584,7 @@ function addTask(userid, username, stationname, checknum, start_date, end_date)
|
|
|
var allwidth = 1200;
|
|
|
|
|
|
|
|
|
- var html = showAddTaskListView(data, allwidth, allheight, start_date, end_date,checknum);
|
|
|
+ var html = showAddTaskListView(data, allwidth, allheight, start_date, end_date, checknum);
|
|
|
|
|
|
|
|
|
|