优化员工页面提示

This commit is contained in:
java110 2022-07-14 12:12:46 +08:00
parent ddb366f70a
commit b9f10b5c3d

View File

@ -7,8 +7,7 @@
<span><vc:i18n name="查询条件" namespace="staff"></vc:i18n></span> <span><vc:i18n name="查询条件" namespace="staff"></vc:i18n></span>
</h5> </h5>
<div class="ibox-tools" style="top:10px;"> <div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-link btn-sm" style="margin-right:10px;" <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;" v-on:click="_moreCondition()">{{staffInfo.moreCondition == true?'隐藏':'更多'}}
v-on:click="_moreCondition()">{{staffInfo.moreCondition == true?'隐藏':'更多'}}
</button> </button>
</div> </div>
</div> </div>
@ -37,8 +36,7 @@
</div> </div>
<div class="col-sm-3"> <div class="col-sm-3">
<div class="form-group"> <div class="form-group">
<input type="text" :placeholder="vc.i18n('请输入员工名称','staff')" <input type="text" :placeholder="vc.i18n('请输入员工名称','staff')" v-model="staffInfo.conditions.name" class=" form-control">
v-model="staffInfo.conditions.name" class=" form-control">
</div> </div>
</div> </div>
<div class="col-sm-2"> <div class="col-sm-2">
@ -55,14 +53,12 @@
<div class="row"> <div class="row">
<div class="col-sm-3" v-if="staffInfo.moreCondition == true"> <div class="col-sm-3" v-if="staffInfo.moreCondition == true">
<div class="form-group"> <div class="form-group">
<input type="text" :placeholder="vc.i18n('请输入手机号','staff')" <input type="text" :placeholder="vc.i18n('请输入手机号','staff')" v-model="staffInfo.conditions.tel" class=" form-control">
v-model="staffInfo.conditions.tel" class=" form-control">
</div> </div>
</div> </div>
<div class="col-sm-4" v-if="staffInfo.moreCondition == true"> <div class="col-sm-4" v-if="staffInfo.moreCondition == true">
<div class="form-group"> <div class="form-group">
<input type="text" :placeholder="vc.i18n('请输入员工ID','staff')" <input type="text" :placeholder="vc.i18n('请输入员工ID','staff')" v-model="staffInfo.conditions.staffId" class=" form-control">
v-model="staffInfo.conditions.staffId" class=" form-control">
</div> </div>
</div> </div>
</div> </div>
@ -87,79 +83,88 @@
<div class="ibox-content"> <div class="ibox-content">
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15"> <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead> <thead>
<tr> <tr>
<th class="text-center"> <th class="text-center">
<span><vc:i18n name="员工" namespace="staff"></vc:i18n></span>ID <span><vc:i18n name="员工" namespace="staff"></vc:i18n></span>ID
</th> </th>
<th class="text-center"> <th class="text-center">
<span><vc:i18n name="名称" namespace="staff"></vc:i18n></span> <span><vc:i18n name="名称" namespace="staff"></vc:i18n></span>
</th> </th>
<th class="text-center"> <th class="text-center">
<span><vc:i18n name="公司" namespace="staff"></vc:i18n></span> <span><vc:i18n name="公司" namespace="staff"></vc:i18n></span>
</th> </th>
<th class="text-center"> <th class="text-center">
<span><vc:i18n name="部门" namespace="staff"></vc:i18n></span> <span><vc:i18n name="部门" namespace="staff"></vc:i18n></span>
</th> </th>
<th class="text-center"> <th class="text-center">
<span><vc:i18n name="岗位" namespace="staff"></vc:i18n></span> <span><vc:i18n name="岗位" namespace="staff"></vc:i18n></span>
</th> </th>
<th class="text-center"> <th class="text-center">
<span><vc:i18n name="邮箱" namespace="staff"></vc:i18n></span> <span><vc:i18n name="邮箱" namespace="staff"></vc:i18n></span>
</th> </th>
<th class="text-center"> <th class="text-center">
<span><vc:i18n name="地址" namespace="staff"></vc:i18n></span> <span><vc:i18n name="地址" namespace="staff"></vc:i18n></span>
</th> </th>
<th class="text-center"> <th class="text-center">
<span><vc:i18n name="性别" namespace="staff"></vc:i18n></span> <span><vc:i18n name="性别" namespace="staff"></vc:i18n></span>
</th> </th>
<th class="text-center"> <th class="text-center">
<span><vc:i18n name="手机号" namespace="staff"></vc:i18n></span> <span><vc:i18n name="手机号" namespace="staff"></vc:i18n></span>
</th> </th>
<th class="text-center"> <th class="text-center">
<span><vc:i18n name="操作" namespace="staff"></vc:i18n></span> <span><vc:i18n name="操作" namespace="staff"></vc:i18n></span>
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr class="gradeX" v-for="staff in staffData"> <tr class="gradeX" v-for="staff in staffData">
<td class="text-center">{{staff.userId}}</td> <td class="text-center">{{staff.userId}}</td>
<td class="text-center">{{staff.name}}</td> <td class="text-center">{{staff.name}}</td>
<td class="text-center">{{staff.parentOrgName}}</td> <td class="text-center">{{staff.parentOrgName}}</td>
<td class="text-center">{{staff.orgName}}</td> <td class="text-center">{{staff.orgName}}</td>
<td class="text-center">{{staff.relCdName}}</td> <td class="text-center">{{staff.relCdName}}</td>
<td class="text-center">{{staff.email}}</td> <td class="text-center">{{staff.email}}</td>
<td class="text-center">{{staff.address}}</td> <td class="text-center">{{staff.address}}</td>
<td class="text-center">{{staff.sex == 0 ? '男' : '女'}}</td> <td class="text-center">{{staff.sex == 0 ? '男' : '女'}}</td>
<td class="text-center">{{staff.tel}}</td> <td class="text-center">{{staff.tel}}</td>
<td class="text-center"> <td class="text-center">
<div class="btn-group"> <div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="openEditStaff(staff)"> <button class="btn-white btn btn-xs" v-on:click="openEditStaff(staff)">
<span><vc:i18n name="修改" namespace="staff"></vc:i18n></span> <span><vc:i18n name="修改" namespace="staff"></vc:i18n></span>
</button> </button>
</div> </div>
<div class="btn-group"> <div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_resetStaffPwd(staff)"> <button class="btn-white btn btn-xs" v-on:click="_resetStaffPwd(staff)">
<span><vc:i18n name="重置密码" namespace="staff"></vc:i18n></span> <span><vc:i18n name="重置密码" namespace="staff"></vc:i18n></span>
</button> </button>
</div> </div>
<div v-if="staff.relCd != 600311000001" class="btn-group"> <div v-if="staff.relCd != 600311000001" class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="openDeleteStaff(staff)"> <button class="btn-white btn btn-xs" v-on:click="openDeleteStaff(staff)">
<span><vc:i18n name="删除" namespace="staff"></vc:i18n></span> <span><vc:i18n name="删除" namespace="staff"></vc:i18n></span>
</button> </button>
</div> </div>
</td> </td>
</tr> </tr>
</tbody> </tbody>
<tfoot> <tfoot>
<tr> <tr>
<td colspan="10"> <td colspan="10">
<ul class="pagination float-right"></ul> <ul class="pagination float-right"></ul>
</td> </td>
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
<!-- 分页 --> <!-- 分页 -->
<vc:create path="frame/pagination"></vc:create> <div class="row margin-top-xs">
<div class="col-sm-9">
<div>
温馨提示新添加员工默认密码为123456组织分配小区和员工分配权限后登录
</div>
</div>
<div class="col-sm-3 float-right">
<vc:create path="frame/pagination"></vc:create>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>