Commit afca219f authored by agping's avatar agping

经纪人列表 修改

parent 7d130a5e
...@@ -181,17 +181,16 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp ...@@ -181,17 +181,16 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
$(this).siblings(".yetai_checkbox").removeClass("isCheck").addClass("btn-info").removeClass('btn-warning'); $(this).siblings(".yetai_checkbox").removeClass("isCheck").addClass("btn-info").removeClass('btn-warning');
$(this).addClass("isCheck").removeClass("btn-info").addClass('btn-warning'); $(this).addClass("isCheck").removeClass("btn-info").addClass('btn-warning');
}; };
if($('.isCheck').length != 0){
if($('.isCheck').html() == '已离职'){ if($(".yetai_checkbox:eq(0)").html() == '已离职' && $(".yetai_checkbox:eq(1)").html() == '长假'){
params.type=2; params.type=2;
} }
if($('.isCheck').html() == '已长假'){ if($(".yetai_checkbox:eq(0)").html() == '离职' && $(".yetai_checkbox:eq(1)").html() == '已长假'){
params.type=1; params.type=1;
} }
}else{ if($(".yetai_checkbox:eq(0)").html() == '离职' && $(".yetai_checkbox:eq(1)").html() == '长假'){
params.type=$(this).attr("data-status"); params.type=0;
console.log(11) }
};
$.ajax({ //经纪人 离职 长假 $.ajax({ //经纪人 离职 长假
'type': 'POST', 'type': 'POST',
'url': '/index/updateStatus', 'url': '/index/updateStatus',
......
...@@ -1147,6 +1147,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r ...@@ -1147,6 +1147,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
if(data.data) { if(data.data) {
$('#bargaininfo_id_span').html(data.data.id);
$('#bargaininfo_shop_type').html(data.data.shop_type=='1'?'街铺':'商场'); $('#bargaininfo_shop_type').html(data.data.shop_type=='1'?'街铺':'商场');
$('#bargaininfo_is_open').val(data.data.is_open); $('#bargaininfo_is_open').val(data.data.is_open);
$('#bargaininfo_beizhu').val(data.data.content); $('#bargaininfo_beizhu').val(data.data.content);
......
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