|
|
@@ -17,6 +17,9 @@
|
|
|
<div slot="tags">
|
|
|
</div>
|
|
|
<div slot="customOperation" >
|
|
|
+ <el-popconfirm title="确定复制当前角色吗?" @confirm="copyRow()">
|
|
|
+ <el-button slot="reference" v-if="tool.checkAuth($route.name,'copy')" class="inline-16" size="mini">复 制</el-button>
|
|
|
+ </el-popconfirm>
|
|
|
<el-popconfirm title="确定删除当前角色吗?" @confirm="deleteRow()">
|
|
|
<el-button slot="reference" v-if="tool.checkAuth($route.name,'delete')" class="inline-16" size="mini">删 除</el-button>
|
|
|
</el-popconfirm>
|
|
|
@@ -103,6 +106,26 @@ export default {
|
|
|
res.data.apps[0]?this.appoptionselect(res.data.apps[0]):''
|
|
|
this.changeDataStructure()
|
|
|
},
|
|
|
+ async copyRow () {
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ id:20230508130402,
|
|
|
+ content: {
|
|
|
+ roleid:this.$route.query.id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,() => {
|
|
|
+ this.$store.dispatch('changeDetailDrawer',false)
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$router.push({
|
|
|
+ path:'/roleDetail',
|
|
|
+ query:{
|
|
|
+ id:res.data.roleid
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.$store.dispatch('changeDetailDrawer',true)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
changeDataStructure() {
|
|
|
this.mainAreaData = [
|
|
|
{
|