|
@@ -178,29 +178,39 @@ function getAreaCheckCount() {
|
|
|
var index = layer.load(1, {
|
|
var index = layer.load(1, {
|
|
|
shade: [0.1, '#fff'] //0.1透明度的白色背景
|
|
shade: [0.1, '#fff'] //0.1透明度的白色背景
|
|
|
});
|
|
});
|
|
|
|
|
+ //var html = '';
|
|
|
|
|
+ var userids = $.checkTask.checked_users.split(",");
|
|
|
|
|
+ var usernames = $.checkTask.checked_users_name.split(",");
|
|
|
var param = {
|
|
var param = {
|
|
|
- "period_id": $.checkTask.period_id,
|
|
|
|
|
- "checked_users": $.checkTask.checked_users
|
|
|
|
|
- };
|
|
|
|
|
- post_common_service("/q/task/getall/0/0", param, function(userList) {
|
|
|
|
|
- console.log(userList);
|
|
|
|
|
- $("#checked_area").html($.checkTask.checked_users_name);
|
|
|
|
|
- if (userList) {
|
|
|
|
|
- $("#checked_count").html(userList.length);
|
|
|
|
|
- } else {
|
|
|
|
|
- $("#checked_count").html(0);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ "period_id": $.checkTask.period_id,
|
|
|
|
|
+ "checked_users":$.checkTask.checked_users
|
|
|
|
|
+ };
|
|
|
|
|
+ var url = base_server_url + "/q/task/getTasks/0/0";
|
|
|
|
|
+ ajaxPost(url, param, function(response) {
|
|
|
|
|
+ for(var i in userids){
|
|
|
|
|
+ console.log(response);
|
|
|
|
|
+ var html ='<label id="'+userids[i]+'"></label>'+ usernames[i]+'(次数:'+
|
|
|
|
|
+ '<a href="javascript:void(0)" onclick="showCheckDetailCount(\''+userids[i]+'\')"><span class="label label-primary" id="">'+response[i].length+'</span></a>)';
|
|
|
|
|
+ $("#checked_area").append(html);
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }, function(error) {
|
|
|
|
|
+ if (fail)
|
|
|
|
|
+ fail("网络错误");
|
|
|
|
|
+ else
|
|
|
|
|
+ console.log("网络错误");
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//显示考核次数
|
|
//显示考核次数
|
|
|
-function showCheckDetailCount() {
|
|
|
|
|
|
|
+function showCheckDetailCount(id) {
|
|
|
scoreDetailLayer = showPopup4Common('本周期已考核任务', null, ['450px', '350px'], '#checked_task_list_div', 'r', '确定');
|
|
scoreDetailLayer = showPopup4Common('本周期已考核任务', null, ['450px', '350px'], '#checked_task_list_div', 'r', '确定');
|
|
|
var param = {
|
|
var param = {
|
|
|
"period_id": $.checkTask.period_id,
|
|
"period_id": $.checkTask.period_id,
|
|
|
- "checked_users": $.checkTask.checked_users
|
|
|
|
|
|
|
+ "checked_users": id
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
var cols = [
|
|
var cols = [
|
|
@@ -280,6 +290,7 @@ function queryCheckScores() {
|
|
|
{ width: 100, text: '评分记录', type: 'string', flex: true, sort: 'down', field: 'content' },
|
|
{ width: 100, text: '评分记录', type: 'string', flex: true, sort: 'down', field: 'content' },
|
|
|
{ width: 40, text: '分数', type: 'string', flex: true, colClass: '', field: 'check_item_score' },
|
|
{ width: 40, text: '分数', type: 'string', flex: true, colClass: '', field: 'check_item_score' },
|
|
|
{ width: 100, text: '备注', type: 'string', flex: true, colClass: '', field: 'remark' },
|
|
{ width: 100, text: '备注', type: 'string', flex: true, colClass: '', field: 'remark' },
|
|
|
|
|
+ { width: 50, text: '考核人', type: 'string', flex: true, colClass: '', field: 'checked_area_name' },
|
|
|
|
|
|
|
|
// {width: 80, text: '图片', type: 'imagedd', flex: true, colClass: '',field: 'pics'},
|
|
// {width: 80, text: '图片', type: 'imagedd', flex: true, colClass: '',field: 'pics'},
|
|
|
// {
|
|
// {
|
|
@@ -331,7 +342,19 @@ function showEditCheckScore(id) {
|
|
|
scoreDetailLayer = showPopup4Common('修改考核项', function(data) {
|
|
scoreDetailLayer = showPopup4Common('修改考核项', function(data) {
|
|
|
saveScoreEdit();
|
|
saveScoreEdit();
|
|
|
}, ['350px', '550px'], '#score-detail-div', 'r');
|
|
}, ['350px', '550px'], '#score-detail-div', 'r');
|
|
|
-
|
|
|
|
|
|
|
+ var list = new Array();
|
|
|
|
|
+ var userids = $.checkTask.checked_users.split(",");
|
|
|
|
|
+ var usernames = $.checkTask.checked_users_name.split(",");
|
|
|
|
|
+ console.log(rowData);
|
|
|
|
|
+ var optStr = '';
|
|
|
|
|
+ for (var i in userids) {
|
|
|
|
|
+ if (userids[i] == rowData.checked_area)
|
|
|
|
|
+ optStr += '<option value="' + userids[i] + '" selected="selected">' + usernames[i] + '</option>';
|
|
|
|
|
+ else
|
|
|
|
|
+ optStr += '<option value="' + userids[i] + '">' + usernames[i] + '</option>';
|
|
|
|
|
+ }
|
|
|
|
|
+ $("#check_checked_person_select").html('');
|
|
|
|
|
+ $("#check_checked_person_select").html(optStr);
|
|
|
$("#score_id_text").val(rowData.id);
|
|
$("#score_id_text").val(rowData.id);
|
|
|
$("#check_item_text").val(rowData.content);
|
|
$("#check_item_text").val(rowData.content);
|
|
|
$("#check_score_text").val(rowData.check_item_score);
|
|
$("#check_score_text").val(rowData.check_item_score);
|
|
@@ -376,10 +399,11 @@ function saveScoreEdit() {
|
|
|
'content': $("#check_item_text").val(),
|
|
'content': $("#check_item_text").val(),
|
|
|
'check_item_score': $("#check_score_text").val(),
|
|
'check_item_score': $("#check_score_text").val(),
|
|
|
'remark': $("#check_remark_text").val(),
|
|
'remark': $("#check_remark_text").val(),
|
|
|
- 'checked_person': $("#check_checked_person_select").val(),
|
|
|
|
|
|
|
+ 'checked_area': $("#check_checked_person_select").val(),
|
|
|
};
|
|
};
|
|
|
editScoreId = null;
|
|
editScoreId = null;
|
|
|
$("#saveEditBtn").hide();
|
|
$("#saveEditBtn").hide();
|
|
|
|
|
+ console.log(param);
|
|
|
no_return_common_service("/q/score/update", param, function(data) {
|
|
no_return_common_service("/q/score/update", param, function(data) {
|
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
if (scoreLayer) layer.close(scoreLayer);
|
|
|
//查询评分情况
|
|
//查询评分情况
|