|
|
@ -20,20 +20,38 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<!-- <el-table-column type="index" width="55"> </el-table-column>
|
|
|
|
<!-- <el-table-column type="index" width="55"> </el-table-column>
|
|
|
|
<el-table-column type="selection" width="55"> </el-table-column> -->
|
|
|
|
<el-table-column type="selection" width="55"> </el-table-column> -->
|
|
|
|
<el-table-column label="用户名" show-overflow-tooltip prop="userName" ></el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column label="角色" show-overflow-tooltip prop="role" >
|
|
|
|
label="用户名"
|
|
|
|
<template slot-scope="scope">{{ scope.row.role == 1 ? '管理员' : '用户' }}</template>
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
prop="userName"
|
|
|
|
|
|
|
|
></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="角色" show-overflow-tooltip prop="role">
|
|
|
|
|
|
|
|
<template slot-scope="scope">{{
|
|
|
|
|
|
|
|
scope.row.role == 1 ? "管理员" : "用户"
|
|
|
|
|
|
|
|
}}</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="创建时间" show-overflow-tooltip prop="createTime" >
|
|
|
|
<el-table-column
|
|
|
|
<template slot-scope="scope">{{ $moment(scope.row.createTime).format("yy-MM-DD HH:mm:ss") }}</template>
|
|
|
|
label="创建时间"
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
prop="createTime"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">{{
|
|
|
|
|
|
|
|
$moment(scope.row.createTime).format("yy-MM-DD HH:mm:ss")
|
|
|
|
|
|
|
|
}}</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column fixed="right" label="操作" width="200">
|
|
|
|
<el-table-column fixed="right" label="操作" width="200">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
@click.native.stop="handleResive(scope.row)"
|
|
|
|
@click.native.stop="handleResive(scope.row)"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
>修改</el-button>
|
|
|
|
>修改</el-button
|
|
|
|
<el-button type="text" class="deleteText" @click.native.stop="handleDelete(scope.row)" >删除</el-button>
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
class="deleteText"
|
|
|
|
|
|
|
|
@click.native.stop="handleDelete(scope.row)"
|
|
|
|
|
|
|
|
>删除</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
@ -61,7 +79,7 @@ import { getUserList, delUserApi } from "@/utils/api/index";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
addUser
|
|
|
|
addUser,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -130,7 +148,11 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.$message({ type: "info", message: "已取消删除" });
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
showClose: true,
|
|
|
|
|
|
|
|
type: "info",
|
|
|
|
|
|
|
|
message: "已取消删除",
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//点击分页
|
|
|
|
//点击分页
|
|
|
|