系统设置模块权限修改
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user