优化员工页面提示

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>
</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 type="button" class="btn btn-link btn-sm" style="margin-right:10px;" v-on:click="_moreCondition()">{{staffInfo.moreCondition == true?'隐藏':'更多'}}
</button>
</div>
</div>
@ -37,8 +36,7 @@
</div>
<div class="col-sm-3">
<div class="form-group">
<input type="text" :placeholder="vc.i18n('请输入员工名称','staff')"
v-model="staffInfo.conditions.name" class=" form-control">
<input type="text" :placeholder="vc.i18n('请输入员工名称','staff')" v-model="staffInfo.conditions.name" class=" form-control">
</div>
</div>
<div class="col-sm-2">
@ -55,14 +53,12 @@
<div class="row">
<div class="col-sm-3" v-if="staffInfo.moreCondition == true">
<div class="form-group">
<input type="text" :placeholder="vc.i18n('请输入手机号','staff')"
v-model="staffInfo.conditions.tel" class=" form-control">
<input type="text" :placeholder="vc.i18n('请输入手机号','staff')" 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="text" :placeholder="vc.i18n('请输入员工ID','staff')"
v-model="staffInfo.conditions.staffId" class=" form-control">
<input type="text" :placeholder="vc.i18n('请输入员工ID','staff')" v-model="staffInfo.conditions.staffId" class=" form-control">
</div>
</div>
</div>
@ -87,79 +83,88 @@
<div class="ibox-content">
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead>
<tr>
<th class="text-center">
<span><vc:i18n name="员工" namespace="staff"></vc:i18n></span>ID
</th>
<th class="text-center">
<span><vc:i18n name="名称" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="公司" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="部门" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="岗位" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="邮箱" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="地址" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="性别" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="手机号" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="操作" namespace="staff"></vc:i18n></span>
</th>
</tr>
<tr>
<th class="text-center">
<span><vc:i18n name="员工" namespace="staff"></vc:i18n></span>ID
</th>
<th class="text-center">
<span><vc:i18n name="名称" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="公司" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="部门" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="岗位" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="邮箱" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="地址" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="性别" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="手机号" namespace="staff"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="操作" namespace="staff"></vc:i18n></span>
</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)">
<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)">
<span><vc:i18n name="修改" namespace="staff"></vc:i18n></span>
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_resetStaffPwd(staff)">
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_resetStaffPwd(staff)">
<span><vc:i18n name="重置密码" namespace="staff"></vc:i18n></span>
</button>
</div>
<div v-if="staff.relCd != 600311000001" class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="openDeleteStaff(staff)">
</div>
<div v-if="staff.relCd != 600311000001" class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="openDeleteStaff(staff)">
<span><vc:i18n name="删除" namespace="staff"></vc:i18n></span>
</button>
</div>
</td>
</tr>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="10">
<ul class="pagination float-right"></ul>
</td>
</tr>
<tr>
<td colspan="10">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</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>
@ -167,4 +172,4 @@
<vc:create path="frame/resetStaffPwd"></vc:create>
<vc:create path="frame/editStaff"></vc:create>
<vc:create path="frame/deleteStaff"></vc:create>
</div>
</div>