<el-table-column type="selection" width="40" align="center" v-if="auth('productCategory:batchDelete') || auth('productCategory:export')" />
v-if="auth('productCategory:batchDelete') || auth('productCategory:export')"
: 这是一个Vue.js指令,用于条件渲染。只有当满足以下任一条件时,才会显示这一列:auth('productCategory:batchDelete')
返回true
:表示当前用户有批量删除产品类别的权限。auth('productCategory:export')
返回true
:表示当前用户有导出产品类别的权限。
技术交流qq群:143280841