系统设置模块权限修改

This commit is contained in:
熊丽君
2020-12-23 11:52:45 +08:00
parent 9aab7e0540
commit 1ed0e79403
2 changed files with 7 additions and 7 deletions

View File

@ -1,8 +1,8 @@
<template>
<section class="app-container">
<el-row>
<el-button type="primary" icon="el-icon-plus" size="mini" @click="addArea">添加</el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="delArea">批量删除</el-button>
<el-button type="primary" icon="el-icon-plus" size="mini" @click="addArea" v-hasPermi="['system:role:select']">添加</el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="delArea" v-hasPermi="['system:area:remove']">批量删除</el-button>
</el-row>
<el-table :data="tableData" style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55">
@ -15,11 +15,11 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-view" @click="view(scope.row)">查看省份</el-button>
<el-button size="mini" type="text" icon="el-icon-view" @click="view(scope.row)" v-hasPermi="['system:province:area']">查看省份</el-button>
<!-- <el-button size="mini" type="text" icon="el-icon-view" @click="view(scope.row)">查看省份</el-button> -->
<el-button type="primary" icon="el-icon-edit" @click="editArea(scope.row)">修改</el-button>
<el-button type="primary" icon="el-icon-delete" @click="delArea(scope.row)">删除</el-button>
<el-button type="primary" icon="el-icon-delete" @click="delArea(scope.row)" v-hasPermi="['system:area:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
@ -96,7 +96,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="cancel"> </el-button>
<el-button type="primary" @click="submitForm"> </el-button>
<el-button type="primary" @click="submitForm" v-hasPermi="['system:area:save']"> </el-button>
</div>
</el-dialog>
</section>