修改TableAction
This commit is contained in:
parent
7122d4ebdd
commit
12b5fec18c
@ -27,7 +27,7 @@
|
|||||||
<el-dropdown v-if="dropDownActions && getDropdownList.length" @command="select">
|
<el-dropdown v-if="dropDownActions && getDropdownList.length" @command="select">
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<el-dropdown-item v-for="item in getDropdownList" :command="item.key" :key="item.key">
|
<el-dropdown-item v-for="item in getDropdownList" :command="item.key" :key="item.key" :disabled="item.disabled">
|
||||||
{{ item.label }}
|
{{ item.label }}
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
|
@ -117,14 +117,13 @@ const selectionData = ref([])
|
|||||||
type: 'danger',
|
type: 'danger',
|
||||||
onClick: handleDelete.bind(null, record),
|
onClick: handleDelete.bind(null, record),
|
||||||
// 根据权限控制是否显示: 有权限,会显示,支持多个
|
// 根据权限控制是否显示: 有权限,会显示,支持多个
|
||||||
auth: ['sys:job:update'],
|
auth: ['sys:job:delete'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
dropDownActions: [
|
dropDownActions: [
|
||||||
{
|
{
|
||||||
label: '执行一次',
|
label: '执行一次',
|
||||||
key: 'runOnce',
|
key: 'runOnce',
|
||||||
disabled:true,
|
|
||||||
auth: ['sys:job:runOnce'],
|
auth: ['sys:job:runOnce'],
|
||||||
ifShow: () => {
|
ifShow: () => {
|
||||||
return record.row.status==2;
|
return record.row.status==2;
|
||||||
|
Loading…
Reference in New Issue
Block a user