|
|
|
@ -20,13 +20,16 @@
|
|
|
|
|
<div class="avue-crud__header"> |
|
|
|
|
<!-- 头部左侧按钮模块 --> |
|
|
|
|
<div class="avue-crud__left"> |
|
|
|
|
<el-button type="primary" @click="AddCategory"> |
|
|
|
|
<el-button type="primary" @click="AddCategory" v-if="PermissionButton.classify_add"> |
|
|
|
|
<el-icon><Plus /></el-icon>新 增</el-button |
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
<el-button type="primary" @click="BatchDelete" icon="Delete"> |
|
|
|
|
<el-button type="primary" @click="BatchDelete" icon="Delete" v-if="PermissionButton.classify_delete"> |
|
|
|
|
批量删除</el-button |
|
|
|
|
> |
|
|
|
|
<el-button class="el_view" type="primary" @click="BatchDelete" v-if="PermissionButton.classify_view"> |
|
|
|
|
查看</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<!-- 头部右侧按钮模块 --> |
|
|
|
|
<div class="avue-crud__right"> |
|
|
|
@ -153,6 +156,18 @@ const columnList = ref([]); //列表配置
|
|
|
|
|
const newlyAdded = ref(false); //新增弹窗 |
|
|
|
|
const loadingAddPopup = ref(false); //弹窗加载 |
|
|
|
|
const selectionList = ref([]); //选中数据 |
|
|
|
|
const $useStore = useStore(); |
|
|
|
|
const accessControl = $useStore.getters.permission; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const PermissionButton = computed(() => { |
|
|
|
|
return { |
|
|
|
|
classify_add: accessControl.classify_add, //新增 |
|
|
|
|
classify_delete:accessControl.classify_delete, //删除 |
|
|
|
|
classify_view:accessControl.classify_view, //查看 |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
console.log(accessControl,'角色权限'); |
|
|
|
|
const onLoad = () => { |
|
|
|
|
let data = { |
|
|
|
|
current: current.value, |
|
|
|
@ -371,4 +386,7 @@ function ProhibitSelection(val,index){
|
|
|
|
|
.maboxhi { |
|
|
|
|
height: 700px !important; |
|
|
|
|
} |
|
|
|
|
.el_view{ |
|
|
|
|
display: none; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|