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