Commit d8f1f387 authored by liqin's avatar liqin 💬

放开权限按钮

parent d8e8fd06
......@@ -48,10 +48,10 @@
<el-table-column label="操作" header-align="center" align="center" width="230">
<template slot-scope="scope">
<el-button-group >
<el-button title="编辑" size="mini" :disabled="scope.row.id == '1' || scope.row.id == '2'|| scope.row.id == '3'|| scope.row.id == '4'|| scope.row.id == '5'" type="text" @click="openEdit(scope.row)">编辑&nbsp;|&nbsp;</el-button>
<el-button title="权限分配" :disabled="scope.row.id == '1' || scope.row.id == '2'|| scope.row.id == '3'|| scope.row.id == '4'|| scope.row.id == '5'" type="text" size="mini" @click="allocate(scope.row)">权限分配&nbsp;|&nbsp;</el-button>
<el-button title="菜单分配" :disabled="scope.row.id == '1' || scope.row.id == '2'|| scope.row.id == '3'|| scope.row.id == '4'|| scope.row.id == '5'" type="text" size="mini" @click="munuAllocate(scope.row)">菜单分配&nbsp;|&nbsp;</el-button>
<el-button title="删除" :disabled="scope.row.id == '1' || scope.row.id == '2'|| scope.row.id == '3'|| scope.row.id == '4'|| scope.row.id == '5'" type="text" size="mini" @click="handleDelete(scope.row)">删除 </el-button>
<el-button title="编辑" size="mini" type="text" @click="openEdit(scope.row)">编辑&nbsp;|&nbsp;</el-button>
<el-button title="权限分配" size="mini" type="text" @click="allocate(scope.row)">权限分配&nbsp;|&nbsp;</el-button>
<el-button title="菜单分配" type="text" size="mini" @click="munuAllocate(scope.row)">菜单分配&nbsp;|&nbsp;</el-button>
<el-button title="删除" type="text" size="mini" @click="handleDelete(scope.row)">删除</el-button>
</el-button-group>
</template>
</el-table-column>
......@@ -66,9 +66,9 @@
</el-pagination>
</div>
<!--新建弹框-->
<el-dialog title="新建" :visible.sync="FormVisible2" :before-close="close2">
<el-dialog title="新建" :visible.sync="FormVisible2" :before-close="close2">
<div class="form_box">
<el-form :model="roleform" ref="roleform" :rules="rules2" >
<el-form :model="roleform" ref="roleform" :rules="rules2" >
<el-form-item label="角色名称:" prop="name" :label-width="formLabelWidth">
<el-input v-model="roleform.name" size="small" clearable auto-complete="off" placeholder="请输入您的角色名称"
onkeyup="this.value=this.value.replace(/^ +| +$/g,'')"></el-input>
......
......@@ -46,8 +46,8 @@
<el-table-column label="操作" header-align="center" align="center" width="190">
<template slot-scope="scope">
<el-button-group>
<el-button title="编辑" :disabled="scope.row.id == '1'" size="mini" type="text" @click="openEdit(scope.row)">编辑&nbsp;|&nbsp;</el-button>
<el-button title="删除" :disabled="scope.row.id == '1'" type="text" size="mini" @click="handleDelete(scope.row)">删除&nbsp;|&nbsp;</el-button>
<el-button title="编辑" size="mini" type="text" @click="openEdit(scope.row)">编辑&nbsp;|&nbsp;</el-button>
<el-button title="删除" size="mini" type="text" @click="handleDelete(scope.row)">删除&nbsp;|&nbsp;</el-button>
<el-button title="密码重置" type="text" size="mini" @click="resetPassWord(scope.row)">密码重置</el-button>
</el-button-group>
</template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment