MicroCommunityWeb/public/pages/frame/staff/staff.html

140 lines
7.4 KiB
HTML
Executable File

<div>
<div class="row">
<div class="col-lg-12">
<div class="ibox ">
<div class="ibox-title">
<h5>查询条件</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
v-on:click="_moreCondition()">{{staffInfo.moreCondition == true?'隐藏':'更多'}}
</button>
</div>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-sm-3">
<div class="form-group ">
<select class="custom-select" v-model="staffInfo.conditions.branchOrgId">
<option selected value="">必填,请选择分公司</option>
<option v-for="branchOrg in staffInfo.branchOrgs" :value="branchOrg.orgId">
{{branchOrg.orgName}}
</option>
</select>
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<select class="custom-select" v-model="staffInfo.conditions.departmentOrgId">
<option selected value="">必填,请选择部门</option>
<option v-for="departmentOrg in staffInfo.departmentOrgs"
:value="departmentOrg.orgId">
{{departmentOrg.orgName}}
</option>
</select>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<input type="text" placeholder="请输入员工名称" v-model="staffInfo.conditions.name"
class=" form-control">
</div>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryStaffMethod()">
<i class="fa fa-search"></i> 查询
</button>
<button type="button" class="btn btn-primary btn-sm" v-on:click="_resetStaffMethod()">
<i class="fa fa-repeat"></i> 重置
</button>
</div>
</div>
<div class="row">
<div class="col-sm-3" v-if="staffInfo.moreCondition == true">
<div class="form-group">
<input type="number" placeholder="请输入手机号" v-model="staffInfo.conditions.tel"
class=" form-control">
</div>
</div>
<div class="col-sm-4" v-if="staffInfo.moreCondition == true">
<div class="form-group">
<input type="number" placeholder="请输入员工ID" v-model="staffInfo.conditions.staffId"
class=" form-control">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="ibox ">
<div class="ibox-title">
<h5>员工管理</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddStaffStepPage()">
<i class="fa fa-plus"></i>添加员工
</button>
</div>
</div>
<div class="ibox-content">
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead>
<tr>
<th class="text-center">员工ID</th>
<th class="text-center">名称</th>
<th class="text-center">公司</th>
<th class="text-center">部门</th>
<th class="text-center">岗位</th>
<th class="text-center">邮箱</th>
<th class="text-center">地址</th>
<th class="text-center">性别</th>
<th class="text-center">手机号</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody>
<tr class="gradeX" v-for="staff in staffData">
<td class="text-center">{{staff.userId}}</td>
<td class="text-center">{{staff.name}}</td>
<td class="text-center">{{staff.parentOrgName}}</td>
<td class="text-center">{{staff.orgName}}</td>
<td class="text-center">{{staff.relCdName}}</td>
<td class="text-center">{{staff.email}}</td>
<td class="text-center">{{staff.address}}</td>
<td class="text-center">{{staff.sex == 0 ? '男' : '女'}}</td>
<td class="text-center">{{staff.tel}}</td>
<td class="text-center">
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="openEditStaff(staff)">修改
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_resetStaffPwd(staff)">重置密码
</button>
</div>
<div v-if="staff.relCd != 600311000001" class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="openDeleteStaff(staff)">删除
</button>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="10">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</table>
<!-- 分页 -->
<vc:create path="frame/pagination"></vc:create>
</div>
</div>
</div>
</div>
<vc:create path="frame/resetStaffPwd"></vc:create>
<vc:create path="frame/editStaff"></vc:create>
<vc:create path="frame/deleteStaff"></vc:create>
</div>