Commit 28e355452c06eb097e93f414223e22d2cd3c6fa4
1 parent
d847a83f
perf: scheduled tasks if job groub is report will hidden edit button
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | ... | @@ -27,7 +27,7 @@ |
| 27 | 27 | icon: 'clarity:note-edit-line', |
| 28 | 28 | auth: 'api:yt:schedule:update', |
| 29 | 29 | onClick: handleCreateOrEdit.bind(null, record), |
| 30 | - ifShow: record.status === 0, | |
| 30 | + ifShow: record.status === 0 && EJobGroup.REPORT !== record.jobGroup, | |
| 31 | 31 | }, |
| 32 | 32 | { |
| 33 | 33 | label: '删除', |
| ... | ... | @@ -104,6 +104,7 @@ |
| 104 | 104 | import { useDrawer } from '/@/components/Drawer'; |
| 105 | 105 | import { Authority } from '/@/components/Authority'; |
| 106 | 106 | import { useMessage } from '/@/hooks/web/useMessage'; |
| 107 | + import { EJobGroup } from './config.data'; | |
| 107 | 108 | |
| 108 | 109 | const disabledSwitch = ref(false); |
| 109 | 110 | const { createMessage } = useMessage(); | ... | ... |