<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8"/>
<title>组织机构管理-部门详情</title>
</head>
<body>
	<!-- 编辑部门 -->
	<div class="modal fade businessDialog" id="myModal-updateDepartment" data-backdrop="static">
		<div class="modal-dialog" style="width:7.5rem;">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true" style="font-size:0.18rem">×</span><span class="sr-only">关闭</span>
				</button>
				<span class="modal-title">编辑部门</span>
			</div>
			<div class="modal-content">
				<form class="form-horizontal" style="margin:0;">
					<div class="newTabAddUpdateBox" style="position:static;border:none;padding-left:0.2rem;padding-right:0.2rem;padding-bottom:0;">
						<div class="row">
							<table>
								<tr>
									<td width="15%">
										<span class="required_fileds_star">部门名称</span>：
									</td>
									<td width="85%" class="enter">
										<input type="text" id="updateDepartName" class="form-control">
										<label class="error" style="display:none">请输入部门</label>
									</td>
								</tr>
							</table>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary btn-white btn-info colorbtn updateDepartment">保存</button>
						<button type="button" class="btn btn-danger btn-white btn-info deleteDepartment" style="color:red !important;text-shadow:none;">删除</button>
						<button type="button" class="btn btn-default btn-white btn-info" data-dismiss="modal">取消</button>
					</div>
				</form>
			</div>
		</div>
	</div>
	<!-- 添加子部门 -->
	<div class="modal fade businessDialog" id="myModal-addChildDepartment" data-backdrop="static">
		<div class="modal-dialog" style="width:7.5rem;">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true" style="font-size:0.18rem">×</span><span class="sr-only">关闭</span>
				</button>
				<span class="modal-title">添加子部门</span>
			</div>
			<div class="modal-content">
				<form class="form-horizontal" style="margin:0;">
					<div class="newTabAddUpdateBox" style="position:static;border:none;padding-left:0.2rem;padding-right:0.2rem;padding-bottom:0;">
						<div class="row">
							<table>
								<tr>
									<td width="15%">
										<span class="required_fileds_star">部门名称</span>：
									</td>
									<td width="85%" class="enter">
										<input type="text" id="childDepartName" class="form-control">
										<label class="error" style="display:none;">请输入部门名称</label>
									</td>
								</tr>
							</table>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary btn-white btn-info colorbtn addChildDepartment">保存</button>
						<button type="button" class="btn btn-default btn-white btn-info" data-dismiss="modal">取消</button>
					</div>
				</form>
			</div>
		</div>
	</div>
	<!-- 重置密码 -->
	<div class="modal fade businessDialog" id="myModal-resetPassword" data-backdrop="static">
		<div class="modal-dialog" style="width:7.5rem;">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true" style="font-size:0.18rem">×</span><span class="sr-only">关闭</span>
				</button>
				<span class="modal-title">重置密码</span>
			</div>
			<div class="modal-content">
				<form class="form-horizontal">
					<div class="newTabAddUpdateBox" style="position:static;border:none;padding-left:0.2rem;padding-right:0.2rem;padding-bottom:0;">
						<div class="row">
							<table>
								<tr>
									<td width="15%">
										<span class="required_fileds_star">新密码</span>：
									</td>
									<td width="85%" class="enter">
										<input type="password" id="newPassword" class="form-control">
										<label class="error" style="display:none;">请输入新密码</label>
									</td>
								</tr>
							</table>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary btn-white btn-info colorbtn resetPasswordSave">保存</button>
						<button type="button" class="btn btn-default btn-white btn-info" data-dismiss="modal">取消</button>
					</div>
				</form>
			</div>
		</div>
	</div>
	<!-- 调整部门 -->
	<div class="modal fade businessDialog" id="myModal-adjustDepartment" data-backdrop="static">
		<div class="modal-dialog" style="width:8.5rem;">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true" style="font-size:0.18rem">×</span><span class="sr-only">关闭</span>
				</button>
				<span class="modal-title">选择部门</span>
			</div>
			<div class="modal-content">
				<p class="adjustTip"><span>选择 :</span><span style="margin-left:0.2rem;width:auto;">已选 :</span></p>
				<div class="leftCheck">
					<div class="yk_selector_navbar">
						<i class="icon icon-double-angle-left backbtn"></i>
						<div class="yk_selector_navbar_item">
							<span>组织机构</span>
						</div>
					</div>
					<div class="yk_selector_checkbtn">
						<label style="cursor:pointer;width:100%;">
						    <input type="checkbox">&nbsp;&nbsp;全选
						</label>
					</div>
					<ul class="yk_selector_main">

					</ul>
				</div>
				<div class="rightAlreadyCheck">
					<ul class="yk_check_main">

					</ul>
				</div>
			</div>
			<div class="modal-footer" style="border-top:0px;">
				<button type="button" class="btn btn-primary btn-white btn-info colorbtn adjustDepartmentSave">保存</button>
				<button type="button" class="btn btn-default btn-white btn-info" data-dismiss="modal">取消</button>
			</div>
		</div>
	</div>

	<div class="yk_orgContentTitle">
		<span></span>
		<button class="yk_updateDepartment" tag:hasPermission="updateOrg">编辑部门</button>
		<button class="yk_syncDepartment" tag:hasPermission="updateOrg">同步数据</button>
	</div>
	<div class="yk_orgContentNav"></div>
	<div class="yk_orgContentDepart">
		<p class="yk_orgDepartTitle"><i class="icon icon-sitemap"></i>&nbsp;下级部门</p>
		<div class="yk_orgDepartBtnbox">
			<button class="yk_addDepartment" tag:hasPermission="addOrg">添加子部门</button>
			<button class="yk_adjustmentSort department" tag:hasPermission="orderOrg">调整排序</button>
		</div>
		<div class="yk_dragTip">上下移动部门调整位置<a class="yk_saveDrag department">保存</a><a class="yk_cancleDrag department">撤销</a></div>
		<div id="yk_departBoard" class="boards">
			<div class="board">
				<div class="board-list"></div>
			</div>
		</div>
	</div>
	<div class="yk_orgContentDepart">
		<p class="yk_orgDepartTitle"><i class="icon icon-group"></i>&nbsp;部门成员</p>
		<div class="yk_orgDepartBtnbox">
			<button class="yk_addUser" tag:hasPermission="addUser">添加成员</button>
			<button class="yk_adjustmentSort user" tag:hasPermission="orderUser">调整排序</button>
			<button class="yk_batchDisabled" tag:hasPermission="batchUserDisabled">批量禁用</button>
			<button class="yk_batchEnabled" tag:hasPermission="batchUserEnabled">批量启用</button>
		</div>
		<div class="yk_dragTip">上下移动员工调整位置<a class="yk_saveDrag user">保存</a><a class="yk_cancleDrag user">撤销</a></div>
		<div id="yk_userBoard" class="boards">
			<div class="yk_userGridTitle">
				<span style="width:5%;height:0.23rem;"><input class="checkAll" type='checkbox'></span>
				<span>姓名</span>
				<span>职位</span>
				<span>手机号</span>
				<span style="border:0px;">操作</span>
			</div>
			<div class="board">
				<div class="board-list"></div>
			</div>
		</div>
	</div>
	<!-- 判断权限 -->
	<div style="display:none;" id="userPermissionDiv">
		<div class='operateP operateIcon noHover'>
			<p tag:hasPermission="switchOrg"><span>调整部门</span><i class='operateIconfont operateIcon-fenzhijigou icon-adjustDepartment icon-sliders'></i></p>
			<p tag:hasPermission="resetUserPassword"><span>重置密码</span><i class='operateIconfont operateIcon-chongzhimima icon-resetPassword icon-key'></i></p>
			<p tag:hasPermission="userDisabled"><span>禁用</span><i enabled='true' class='operateIconfont operateIcon-jinyong icon-disabledEnable icon-true icon-smile'></i></p>
		</div>
	</div>
	<div style="display:none;" id="userPermissionDivEnable">
		<div class='operateP operateIcon noHover'>
			<p tag:hasPermission="switchOrg"><span>调整部门</span><i class='operateIconfont operateIcon-fenzhijigou icon-adjustDepartment icon-sliders'></i></p>
			<p tag:hasPermission="resetUserPassword"><span>重置密码</span><i class='operateIconfont operateIcon-chongzhimima icon-resetPassword icon-key'></i></p>
			<p tag:hasPermission="userEnabled"><span>启用</span><i enabled='false' class='operateIconfont operateIcon-qiyong icon-disabledEnable icon-false icon-smile'></i></p>
		</div>
	</div>
	<span tag:hasPermission="resetUserPassword" id="resetUserPassword" style="display:none"></span>
</body>
<script src="/js/sys/org/orgDepartmentContent.js"></script>
</html>
