Commit e621cce3 authored by hujun's avatar hujun

经纪人列表编辑

parent 0c5b2d37
...@@ -127,7 +127,7 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin ...@@ -127,7 +127,7 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
$.ajax({ $.ajax({
url: '/index/getAuth2', url: '/index/getAuth2',
type: 'GET', type: 'GET',
async: true, // async: true,
dataType: 'json', dataType: 'json',
success: function (data) { success: function (data) {
var temp=document.getElementById('get_auth_list').innerHTML; var temp=document.getElementById('get_auth_list').innerHTML;
...@@ -152,11 +152,7 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin ...@@ -152,11 +152,7 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
$("#status").val(data.data.status); $("#status").val(data.data.status);
//选中所属角色 //选中所属角色
$("#auth_group_id option").each(function () { $("#auth_group_id").val(data.data.auth_group_id);
if ($(this).val() == data.data.auth_group_id) {
$(this).attr('selected','selected');
}
});
if(data.data.sex=='0'){ if(data.data.sex=='0'){
$("#sex0").attr('checked',true); $("#sex0").attr('checked',true);
......
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