Commit b0e43f3a by 曾经

权限配置

parent 03ef7a06
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
</el-select> </el-select>
</el-row> </el-row>
<el-row type="flex" align="middle"> <el-row type="flex" align="middle">
<el-button @click="categoryManage">分类管理</el-button> <el-button @click="categoryManage" v-if="$getButtonLimit($buttonCode.HolidayCategoryManage)" :limit-code='$buttonCode.HolidayCategoryManage'>分类管理</el-button>
<el-button type="primary" @click="addHoliday()">新增节日</el-button> <el-button type="primary" @click="addHoliday()" v-if="$getButtonLimit($buttonCode.AddHoliday)" :limit-code='$buttonCode.AddHoliday'>新增节日</el-button>
</el-row> </el-row>
</el-row> </el-row>
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
<el-table-column label="操作" min-width="110px"> <el-table-column label="操作" min-width="110px">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-row type="flex"> <el-row type="flex">
<el-button type="text" @click="edit(row)">编辑</el-button> <el-button type="text" @click="edit(row)" v-if="$getButtonLimit($buttonCode.EditHoliday)" :limit-code='$buttonCode.EditHoliday'>编辑</el-button>
<el-button type="text" @click="del(row)">删除</el-button> <el-button type="text" @click="del(row)" v-if="$getButtonLimit($buttonCode.DelHoliday)" :limit-code='$buttonCode.DelHoliday'>删除</el-button>
</el-row> </el-row>
</template> </template>
</el-table-column> </el-table-column>
......
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