管理员列表优化,权限优化
This commit is contained in:
@@ -27,7 +27,7 @@ export function delRole(pram) {
|
||||
|
||||
export function getInfo(pram) {
|
||||
const data = {
|
||||
id: pram.id
|
||||
ids: pram.id
|
||||
}
|
||||
return request({
|
||||
url: '/admin/system/role/info',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getRoleById(pram) {
|
||||
const data = { id: pram.id }
|
||||
const data = { ids: pram.roles }
|
||||
return request({
|
||||
url: '/admin/system/role/info',
|
||||
method: 'GET',
|
||||
|
||||
@@ -66,7 +66,6 @@
|
||||
handleSetVisitChart() {
|
||||
this.myChart = echarts.init(document.getElementById(this.echarts))
|
||||
let option = null
|
||||
console.log(this.echartsTitle)
|
||||
if (this.echartsTitle === 'circle') {
|
||||
option = {
|
||||
tooltip: {
|
||||
|
||||
@@ -79,13 +79,12 @@ const actions = {
|
||||
reject('getInfo: roles must be a non-null array!')
|
||||
}
|
||||
|
||||
// commit('SET_ROLES', roles)
|
||||
commit('SET_ROLES', ['admin'])
|
||||
commit('SET_ROLES', roles)
|
||||
// commit('SET_ROLES', ['admin'])
|
||||
commit('SET_NAME', account)
|
||||
// commit('SET_AVATAR', avatar)
|
||||
commit('SET_AVATAR', 'http://kaifa.crmeb.net/system/images/admin_logo.png')
|
||||
commit('SET_INTRODUCTION', 'CRMEB admin')
|
||||
data.roles = 'admin'
|
||||
resolve(data)
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
|
||||
@@ -12,16 +12,6 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-select v-model="listPram.isDel" placeholder="删除状态" clearable class="selWidth">
|
||||
<el-option
|
||||
v-for="item in constants.deletedOrNormal"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-select v-model="listPram.status" placeholder="状态" clearable class="selWidth">
|
||||
<el-option
|
||||
@@ -59,7 +49,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="最后登录时间" prop="lastTime" min-width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.updateTime | filterEmpty }}</span>
|
||||
<span>{{ scope.row.lastTime | filterEmpty }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="最后登录IP" prop="lastIp" min-width="150">
|
||||
@@ -129,7 +119,6 @@ export default {
|
||||
listPram: {
|
||||
account: null,
|
||||
addTime: null,
|
||||
isDel: null, // false=正常,true=已删除,数据库逻辑删除
|
||||
lastIp: null,
|
||||
lastTime: null,
|
||||
level: null,
|
||||
|
||||
Reference in New Issue
Block a user