...
|
...
|
@@ -21,42 +21,42 @@ |
|
|
<!--列表-->
|
|
|
<el-table :data="users" highlight-current-row border v-loading="listLoading" @selection-change="selsChange"
|
|
|
style="width: 100%;">
|
|
|
<el-table-column type="selection" width="55">
|
|
|
<el-table-column type="selection" width="55" align="center">
|
|
|
</el-table-column>
|
|
|
<!--<el-table-column type="index" width="60">-->
|
|
|
<!--</el-table-column>-->
|
|
|
<el-table-column prop="userId" label="ID" width="100" sortable>
|
|
|
<el-table-column prop="userId" label="ID" width="100" align="center" sortable>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="username" label="账号" width="120" sortable>
|
|
|
<el-table-column prop="username" label="账号" width="120" align="center" sortable>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="realname" label="姓名" width="120" sortable>
|
|
|
<el-table-column prop="realname" label="姓名" width="120" align="center" sortable>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="sex" label="性别" width="100" :formatter="formatSex" sortable>
|
|
|
<el-table-column prop="sex" label="性别" width="100" :formatter="formatSex" align="center" sortable>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="mobilephone" label="电话" width="125">
|
|
|
<el-table-column prop="mobilephone" label="电话" width="130" align="center">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="creattime" label="创建时间" width="170" sortable>
|
|
|
<el-table-column prop="creattime" label="创建时间" width="175" align="center" sortable>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="updatetime" label="更新时间" width="170" sortable>
|
|
|
<el-table-column prop="updatetime" label="更新时间" width="175" align="center" sortable>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="address" label="地址" min-width="180">
|
|
|
<el-table-column prop="address" label="地址" min-width="180" align="center">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="email" label="Email" min-width="180">
|
|
|
<el-table-column prop="email" label="Email" min-width="180" align="center">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="state" label="启用" width="100" :formatter="formatState" sortable>
|
|
|
<el-table-column prop="state" label="启用" width="100" :formatter="formatState" align="center" sortable>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="250" fixed="right" align="center">
|
|
|
<el-table-column label="操作" width="300px" fixed="right" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="small" @click="roleEdit(scope.$index, scope.row)">角色配置</el-button>
|
|
|
<el-button size="small" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
<el-button type="danger" size="small" @click="handleDel(scope.$index, scope.row)">删除</el-button>
|
|
|
<el-button type="primary" icon="el-icon-setting" size="small" @click="roleEdit(scope.$index, scope.row)">角色配置</el-button>
|
|
|
<el-button size="small" type="success" icon="el-icon-check" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
<el-button type="danger" icon="el-icon-delete" size="small" @click="handleDel(scope.$index, scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
<!--工具条-->
|
|
|
<el-col :span="24" class="toolbar">
|
|
|
<el-button type="danger" @click="batchRemove" :disabled="this.sels.length===0">批量删除</el-button>
|
|
|
<el-button type="danger" icon="el-icon-delete" @click="batchRemove" :disabled="this.sels.length===0">批量删除</el-button>
|
|
|
<el-pagination layout="total, prev, pager, next" @current-change="handleCurrentChange" :page-size="10"
|
|
|
:total="total" style="float:right;">
|
|
|
</el-pagination>
|
...
|
...
|
|