|
|
@@ -16,6 +16,7 @@ $(function() {
|
|
|
});
|
|
|
|
|
|
$("#month_date_from").val("2017-07");
|
|
|
+ $("#month_date_to").val(moment(moment().format("YYYY-MM")).subtract(1, "month").format("YYYY-MM"));
|
|
|
|
|
|
|
|
|
$("#searchbtn").on("click", function() {
|
|
|
@@ -30,7 +31,7 @@ $(function() {
|
|
|
});
|
|
|
|
|
|
|
|
|
- getscore("2017-07", "2018-02", 3, 985, 1000);
|
|
|
+ getscore("2017-07", moment(moment().format("YYYY-MM")).subtract(1, "month").format("YYYY-MM"), 3, 985, 1000);
|
|
|
|
|
|
|
|
|
|
|
|
@@ -55,6 +56,8 @@ function getscore(starttime, endtime, limitnumber, limitscore, limitscore2) {
|
|
|
post_common_service(url, data_p, function(data) {
|
|
|
|
|
|
var table = '';
|
|
|
+ console.log(data.length)
|
|
|
+ $("#totlapeople").html(data.length);
|
|
|
for (var i in data) {
|
|
|
var ss = data[i];
|
|
|
var dat = "";
|
|
|
@@ -63,7 +66,7 @@ function getscore(starttime, endtime, limitnumber, limitscore, limitscore2) {
|
|
|
dat += po.p_str + "月、";
|
|
|
}
|
|
|
dat = dat.substring(0, dat.length - 1);
|
|
|
- table += "<tr><td width='5%;'>" + (parseInt(i) + 1) + "</td><td width='15%;'>" + ss.user.workno + "</td><td width='15%;'>" + ss.dept + "</td><td width='15%;'><a href='JavaScript:void(0)' onclick='jumpuser(\"" + ss.user.id + "\",\"" + ss.user.organid + "\")'>" + ss.user.truename + "</a></td><td width='50%;'>" + dat + "</td></tr>";
|
|
|
+ table += "<tr><td width='5%;'>" + (parseInt(i) + 1) + "</td><td width='10%;'>" + ss.user.workno + "</td><td width='15%;'>" + ss.dept + "</td><td width='10%;'><a href='JavaScript:void(0)' onclick='jumpuser(\"" + ss.user.id + "\",\"" + ss.user.organid + "\")'>" + ss.user.truename + "</a></td><td width='60%;'>" + dat + "</td></tr>";
|
|
|
|
|
|
|
|
|
}
|
|
|
@@ -74,7 +77,7 @@ function getscore(starttime, endtime, limitnumber, limitscore, limitscore2) {
|
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
|
$("tr:gt(0):odd").css("background", "#EFEFEF");
|
|
|
|
|
|
- console.log(data)
|
|
|
+
|
|
|
|
|
|
});
|
|
|
|