wuxw
2019-07-16 e108ff50d948e7b8f85a07a8ec708699df745c82
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<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" data-toggle="modal" data-target="#addStaffModel">添加员工</button>
                </div>
            </div>
            <div class="ibox-content">
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover dataTables-example">
                        <thead>
                            <tr>
                                <th>员工ID</th>
                                <th>名称</th>
                                <th>邮箱</th>
                                <th>地址</th>
                                <th>性别</th>
                                <th>手机号</th>
                                <th>状态</th>
                                <th>创建时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="gradeX" v-for="staff in staffData">
                                <td>{{staff.userId}}</td>
                                <td>{{staff.name}}</td>
                                <td>{{staff.email}}</td>
                                <td>{{staff.address}}</td>
                                <td>{{staff.sex == 0 ? '男' : '女'}}</td>
                                <td>{{staff.tel}}</td>
                                <td>{{staff.statusCd == 0 ? '在用':'停用'}}</td>
                                <td>{{vc.dateFormat(staff.createTime)}}</td>
                                <td>
                                    <i class="glyphicon glyphicon-edit" style="color: #17a2b8;" v-on:click="openEditStaff(staff)"></i>
                                    <i v-if="staff.relCd != 600311000001" class="glyphicon glyphicon-remove-sign"
                                       style="color: #dc3545;margin-left:5px"
                                        v-on:click="openDeleteStaff(staff)"></i>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <!-- 分页 -->
                    <vc:create name="pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
</div>