mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-23 13:43:51 +08:00
隐藏页面上的用户密码显示;增加删除管理员功能
This commit is contained in:
parent
b9745c34de
commit
645c26cdbc
@ -11,31 +11,31 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="URI" show-overflow-tooltip>
|
||||
<el-table-column label="请求接口" show-overflow-tooltip>
|
||||
<template scope="scope">
|
||||
<span>{{ scope.row.requestUri}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" label="IP">
|
||||
<el-table-column align="center" label="IP地址">
|
||||
<template scope="scope">
|
||||
<span>{{scope.row.remoteAddr}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" label="METHOD">
|
||||
<el-table-column align="center" label="请求方式">
|
||||
<template scope="scope">
|
||||
<span>{{scope.row.method}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" label="PARAMS" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="传入参数" show-overflow-tooltip>
|
||||
<template scope="scope">
|
||||
<span>{{scope.row.params}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" label="TIME">
|
||||
<el-table-column align="center" label="请求时间">
|
||||
<template scope="scope">
|
||||
<span>{{scope.row.time}}</span>
|
||||
</template>
|
||||
|
@ -26,11 +26,11 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" label="密码" show-overflow-tooltip>
|
||||
<template scope="scope">
|
||||
<span>{{scope.row.password}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!--<el-table-column align="center" label="密码" show-overflow-tooltip>-->
|
||||
<!--<template scope="scope">-->
|
||||
<!--<span>{{scope.row.password}}</span>-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
|
||||
<el-table-column align="center" label="角色">
|
||||
<template scope="scope">
|
||||
@ -55,6 +55,9 @@
|
||||
<el-button v-if="sys_user_upd" size="small" type="success"
|
||||
@click="handleUpdate(scope.row)">编辑
|
||||
</el-button>
|
||||
<el-button v-if="sys_user_del" size="small" type="danger"
|
||||
@click="deletes(scope.row)">删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@ -96,7 +99,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { fetchList, getObj, addObj, putObj } from '@/api/user'
|
||||
import { fetchList, getObj, addObj, putObj, delObj } from '@/api/user'
|
||||
import { roleList } from '@/api/role'
|
||||
import waves from '@/directive/waves/index.js' // 水波纹指令
|
||||
import { parseTime } from '@/utils'
|
||||
@ -272,6 +275,30 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
deletes(row) {
|
||||
this.$confirm('此操作将永久删除该用户(用户名:' + row.username + '), 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
delObj(row.userId).then(() => {
|
||||
this.getList()
|
||||
this.$notify({
|
||||
title: '成功',
|
||||
message: '删除成功',
|
||||
type: 'success',
|
||||
duration: 2000
|
||||
})
|
||||
}).cache(() => {
|
||||
this.$notify({
|
||||
title: '失败',
|
||||
message: '删除失败',
|
||||
type: 'error',
|
||||
duration: 2000
|
||||
})
|
||||
})
|
||||
})
|
||||
},
|
||||
resetTemp() {
|
||||
this.form = {
|
||||
id: undefined,
|
||||
|
Loading…
Reference in New Issue
Block a user