Commit fb9fb707 authored by agping's avatar agping

经纪人修改

parent be081784
...@@ -102,7 +102,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp ...@@ -102,7 +102,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
document.getElementById("form_search").reset(); document.getElementById("form_search").reset();
}); });
$(document).delegate(".agent_add", "click", function() { //新增 $(document).delegate(".agent_add", "click", function() { //点击新增
$("#title").html("新增经纪人"); $("#title").html("新增经纪人");
$("#password").parent().addClass('hide'); //新增不显示密码 $("#password").parent().addClass('hide'); //新增不显示密码
$(".form-horizontal")[0].reset(); //重置表单 $(".form-horizontal")[0].reset(); //重置表单
...@@ -115,7 +115,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp ...@@ -115,7 +115,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
agent.agent_id = $(this).attr("data-id"); agent.agent_id = $(this).attr("data-id");
$("#password").parent().removeClass('hide'); //编辑显示密码 $("#password").parent().removeClass('hide'); //编辑显示密码
$("#password").attr('type', 'text'); $("#password").attr('type', 'text');
agent.emptyInput(); //清空表单 // agent.emptyInput(); //清空表单
agent.Edit(); agent.Edit();
}); });
...@@ -391,6 +391,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp ...@@ -391,6 +391,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
$("input[name =sex]").val('0'); $("input[name =sex]").val('0');
$("#admin_off").val('0'); $("#admin_off").val('0');
$("#remarks").val(''); $("#remarks").val('');
agent.agent_id='';
}, },
getList: function(pageNo) { getList: function(pageNo) {
agent.pageNo = pageNo; agent.pageNo = pageNo;
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
[% } %] [% } %]
[% if(check_auth('index/updateRole')) {%] [% if(check_auth('index/updateRole')) {%]
<a href="#modal-user" class="btn1 btn-success" id='role' href="#modal-edit" data-toggle="modal" data-id='[%= it[item]["id"] %]'>角色设置</a> <a href="#modal-user" class="btn1 btn-danger" id='role' href="#modal-edit" data-toggle="modal" data-id='[%= it[item]["id"] %]'>角色设置</a>
[% } %] [% } %]
<!--绑定手机权限--> <!--绑定手机权限-->
[% if(check_auth('index/updateDevice')) {%] [% if(check_auth('index/updateDevice')) {%]
......
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