Commit 09f78025 authored by agping's avatar agping

职称列表修改

parent d857f8b9
......@@ -91,7 +91,7 @@
<div class="pull-right">
<ul class="bread_btn">
<li>
<a href="#modal_add_professional" data-toggle="modal" class="btn btn-default">新增职称人员</a>
<a href="#modal_add_professional" data-toggle="modal" class="btn btn-default add-professional">新增职称人员</a>
</li>
</ul>
</div>
......
......@@ -47,7 +47,7 @@
}
.modal-body-height {
overflow-y: auto;
height: 432px;
height: 521px;
}
#container_body_img_area>div{
float: left;
......@@ -268,7 +268,7 @@
margin-top: 20px;
}
.modal-body-width{
width: 1200px;
width: 970px;
}
input {
width: 50%;
......
......@@ -120,6 +120,15 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
professional.agent_id_choose_edit = _this.attr('data-id');
$('#professional_id_edit').val(_this.attr('data-agent'));
});
//点击新增职称人员 初始化
_doc.on('click', '.add-professional', function(e) {
e.preventDefault();
e.stopPropagation();
professional.agent_id_choose_add='';
$("#professional_id").val(-1);
$('#user_agent_name_add').val('');
});
_doc.on('click', '.concel-professional', function(e) {
e.preventDefault();
e.stopPropagation();
......@@ -134,6 +143,15 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
},
//新增 职称人员
addProfessional: function() {
if($("#professional_id").val()== -1){
alert('请选择职称!!')
return;
}
if(!($.trim(professional.agent_id_choose_add))){
alert('请选择经纪人!!')
return;
}
$.ajax({
url: '/index/updatePosition',
type: 'POST',
......
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