自己操作

master
lion 2 years ago
parent 4fe7fdce1e
commit 59f4a66da5

@ -24,7 +24,7 @@
<template v-slot:btns>
<el-table-column fixed="right" label="操作" width="260" header-align="center">
<template slot-scope="scope">
<div v-if="scope.row.jilurenyuan==authName">
<div v-if="scope.row.jilurenyuan==authName||roleName=='系统管理员'">
<Button type="primary" size="small" style="margin-left: 10px;" @click="editorChuku(scope.row.id,'editor')"></Button>
<Button v-if='scope.row.zhuangtai===""' type="primary" size="small" style="margin-left: 10px;" @click="editorChuku(scope.row.id,'outbounds')"></Button>
<Button v-if='scope.row.zhuangtai===""' type="primary" size="small" style="margin-left: 10px;" @click="tofollow(scope.row.id,scope.row)"></Button>
@ -87,7 +87,8 @@
},
loading:false,
userName:'',
authName:'',
authName:'',
roleName:'',
select: {
pageSize: 10,
pageIndex: 1,
@ -162,6 +163,11 @@
const res = await JSON.parse(getWzglUser())
this.userName = res.username
this.authName = res.name
for(var k of res.role){
if(k.name=='系统管理员'){
this.roleName = k.name
}
}
},
async getindex() {
this.loading = true

@ -24,7 +24,7 @@
<template v-slot:btns>
<el-table-column fixed="right" label="操作" width="260" header-align="center">
<template slot-scope="scope">
<div v-if="scope.row.jingbanren==authName">
<div v-if="scope.row.jingbanren==authName||roleName=='系统管理员'">
<Button type="primary" size="small" @click="editorRuku(scope.row.id,'editor')"></Button>
<!-- <Button type="primary" size="small" @click="editorActivity(scope.row.id,'editor')"></Button>
<Button style="margin-left: 10px;" type="primary" size="small" @click="checkActivity(scope.row.id)"></Button>
@ -73,6 +73,7 @@
data() {
return {
authName:'',
roleName:'',
loading:false,
select: {
pageSize: 10,
@ -152,7 +153,14 @@
methods: {
async getUserName(){
const res = JSON.parse(getWzglUser())
console.log("res",res)
for(var k of res.role){
if(k.name=='系统管理员'){
this.roleName = k.name
}
}
this.authName = res.name
},
async getindex() {
this.loading = true

Loading…
Cancel
Save