MicroCommunityWeb/public/pages/staff/aStaff/aStaff.html
2025-03-20 12:01:58 +08:00

138 lines
6.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div>
<div class="ibox ">
<div class="ibox-title">
<h5>
<vc:i18n name="查询条件" namespace="staff"></vc:i18n>
</h5>
<div class="ibox-tools" style="top:10px;">
</div>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-sm-2">
<div class="form-group">
<input type="text" :placeholder="vc.i18n('请输入员工ID','staff')"
v-model="aStaffInfo.conditions.staffId" class=" form-control">
</div>
</div>
<div class="col-sm-2">
<div class="form-group">
<input type="text" :placeholder="vc.i18n('请输入员工名称','staff')"
v-model="aStaffInfo.conditions.name" class=" form-control">
</div>
</div>
<div class="col-sm-2">
<div class="form-group">
<input type="text" :placeholder="vc.i18n('请输入手机号','staff')" v-model="aStaffInfo.conditions.tel"
class=" form-control">
</div>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryStaffMethod()">
<vc:i18n name="查询" namespace="staff"></vc:i18n>
</button>
</div>
</div>
</div>
</div>
<div class="ibox ">
<div class="ibox-title">
<h5>
<vc:i18n name="员工信息" namespace="staff"></vc:i18n>
</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddStaffStepPage()"
v-if="vc.hasPrivilege('502022082992310001') || vc.hasPrivilege('502022101889270183')">
<vc:i18n name="添加" namespace="staff"></vc:i18n>
</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">
<vc:i18n name="员工编号" namespace="staff"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="名称" namespace="staff"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="手机号" namespace="staff"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="关联组织" namespace="staff"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="岗位" namespace="staff"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="身份证" namespace="staff"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="地址" namespace="staff"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="性别" namespace="staff"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="操作" namespace="staff"></vc:i18n>
</th>
</tr>
</thead>
<tbody>
<tr class="gradeX" v-for="staff in aStaffInfo.staffs">
<td class="text-center">{{staff.userId}}</td>
<td class="text-center">{{staff.name}}</td>
<td class="text-center">{{staff.tel}}</td>
<td class="text-center">{{staff.orgName}}</td>
<td class="text-center">{{staff.relCdName}}</td>
<td class="text-center">{{staff.idCard}}</td>
<td class="text-center">{{staff.address}}</td>
<td class="text-center">{{staff.sex == 0 ? '男' : '女'}}</td>
<td class="text-center">
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="openEditStaff(staff)"
v-if="vc.hasPrivilege('502022082992300002,502022101832220184')">
<vc:i18n name="修改" namespace="staff"></vc:i18n>
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_resetStaffPwd(staff)">
<vc:i18n name="重置密码" namespace="staff"></vc:i18n>
</button>
</div>
<div v-if="staff.relCd != 600311000001" class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="openDeleteStaff(staff)"
v-if="vc.hasPrivilege('502022082920350003,502022101887680185')">
<vc:i18n name="删除" namespace="staff"></vc:i18n>
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="openStaffDetail(staff)">
<vc:i18n name="详情" namespace="staff"></vc:i18n>
</button>
</div>
</td>
</tr>
</tbody>
</table>
<!-- 分页 -->
<div class="row margin-top-xs">
<div class="col-sm-8">
温馨提示新添加员工默认密码为123456角色权限分配小区并且角色关联员工后可登录
</div>
<div class="col-sm-4 float-right">
<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>