修改TableAction

This commit is contained in:
陈红丽 2024-07-29 17:07:12 +08:00
parent 7122d4ebdd
commit 12b5fec18c
2 changed files with 2 additions and 3 deletions

View File

@ -27,7 +27,7 @@
<el-dropdown v-if="dropDownActions && getDropdownList.length" @command="select">
<template #dropdown>
<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 }}
</el-dropdown-item>
</el-dropdown-menu>

View File

@ -117,14 +117,13 @@ const selectionData = ref([])
type: 'danger',
onClick: handleDelete.bind(null, record),
// :
auth: ['sys:job:update'],
auth: ['sys:job:delete'],
},
],
dropDownActions: [
{
label: '执行一次',
key: 'runOnce',
disabled:true,
auth: ['sys:job:runOnce'],
ifShow: () => {
return record.row.status==2;