Commit 3073d4ed authored by xinyuandu's avatar xinyuandu

独家权限

parent 7c4e8636
......@@ -504,6 +504,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
});
$("#liudan_pic_pre").html(img_url);
$('.J_preview').preview();//放大图片
console.log("dujia:"+ $('#sel_dujia').val())
if(check_auth('index/editExclusive')) {
$('.is_dujia').find('input').removeAttr("readonly");
$('.is_dujia_select').find('select').removeAttr("disabled");
......@@ -513,7 +514,11 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
} else {
//$('.is_dujia').find('input').removeAttr("readonly");
$('.is_dujia').find('input').attr("readonly","readonly");
$('.is_dujia_select').find('select').attr("disabled","disabled");
if ( $('#sel_dujia').val() == 1 ){
$('.is_dujia_select').find('select').attr("disabled","disabled");
} else {
$('.is_dujia_select').find('select').removeAttr("disabled");
}
}
}
} else {
......
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