<div class="modal fade" id="configStaff" tabindex="-2" role="dialog" aria-labelledby="exampleModalLabel" data-backdrop="static">
<div class="modal-dialog" role="document" style="width: 60%;">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h3 class="modal-title" id="exampleModalLabel">配置员工</h3>
</div>
<div class="modal-body" style="height: 500px;overflow:auto; ">
<div class="row">
<!--<div class="col-xs-6">-->
<!--<div class="input-group">-->
<!--<span>-->
<!--<input type="text" class="form-control" id="staffOrganizeCodeName_form" readonly style="width: 60%" placeholder="请选择部门">-->
<!--<span class="input-group-btn">-->
<!--<button class="btn btn-primary" onclick="showStaffOrganizationDiv();"><i class="fa"></i> 选择部门</button>-->
<!--</span>-->
<!--</span>-->
<!--</div>-->
<!--</div>-->
<div class="col-xs-6">
<div class="input-group">
<input type="hidden" id="staffOrganizeCode_form"/>
<input type="text" class="form-control" id="staffName" name="staffName" placeholder="员工编号、姓名、手机号">
<input type="hidden" class="form-control" id="superStaffNumber" name="superStaffNumber" placeholder="编辑的员工">
<input type="hidden" class="form-control" id="relationType" name="relationType" value = '1' placeholder="关系类型">
<span class="input-group-btn">
<button class="btn btn-primary" onclick="queryConfigStaffInfo();"><i class="fa fa-search"></i> 查询</button>
<button class="btn btn-white" onclick="clearStaffOrganization();"><i class="fa fa-eraser"></i> 清空</button>
</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-5">
<select name="from" id="multiselect" class="form-control" size="8" multiple="multiple" style="height: 400px;">
</select>
</div>
<div class="col-xs-2" style="height: 400px;padding-top: 100px">
<button type="button" id="multiselect_rightAll" class="btn btn-block"><i class="glyphicon glyphicon-forward"></i></button>
<button type="button" id="multiselect_rightSelected" class="btn btn-block"><i class="glyphicon glyphicon-chevron-right"></i></button>
<button type="button" id="multiselect_leftSelected" class="btn btn-block"><i class="glyphicon glyphicon-chevron-left"></i></button>
<button type="button" id="multiselect_leftAll" class="btn btn-block"><i class="glyphicon glyphicon-backward"></i></button>
</div>
<div class="col-xs-5">
<select name="to" id="multiselect_to" class="form-control" size="8" multiple="multiple" style="height: 400px;"></select>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-close"></i> 关闭</button>
</div>
</div>
</div>
</div>
效果图:
两个 Select 左右移动
引用插件: Multiselect v2.3.11
时间: 2024-10-28 22:56:54