Commit 5a79c3e4 authored by agping's avatar agping

优化

parent 3dad55ce
...@@ -174,12 +174,12 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp ...@@ -174,12 +174,12 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
} else {//选中 } else {//选中
if($(this).html() == '离职'){ if($(this).html() == '离职'){
$(this).html('已离职'); $(this).html('已离职');
$(".yetai_checkbox:eq(1)").html('长假'); $(this).next().html('长假');
params.type=2; params.type=2;
} }
if($(this).html() == '长假'){ if($(this).html() == '长假'){
$(this).html('已长假'); $(this).html('已长假');
$(".yetai_checkbox:eq(0)").html('离职'); $(this).prev().html('离职');
params.type=1; params.type=1;
} }
$(this).siblings(".yetai_checkbox").removeClass("isCheck").addClass("btn-info").removeClass('btn-warning'); $(this).siblings(".yetai_checkbox").removeClass("isCheck").addClass("btn-info").removeClass('btn-warning');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment