mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-13 12:26:07 +00:00
fix: 修改云任务执行权限控制
This commit is contained in:
parent
1d594fc594
commit
a93ecac15c
@ -44,7 +44,7 @@ export default {
|
|||||||
title: vm.$t('xpack.Execute'),
|
title: vm.$t('xpack.Execute'),
|
||||||
name: 'execute',
|
name: 'execute',
|
||||||
type: 'info',
|
type: 'info',
|
||||||
can: () => vm.$hasPerm('xpack.change_syncinstancetask'),
|
can: () => vm.$hasPerm('xpack.add_syncinstancetaskexecution'),
|
||||||
callback: function(data) {
|
callback: function(data) {
|
||||||
this.$axios.get(`/api/v1/xpack/cloud/sync-instance-tasks/${data.row.id}/run/`).then(res => {
|
this.$axios.get(`/api/v1/xpack/cloud/sync-instance-tasks/${data.row.id}/run/`).then(res => {
|
||||||
openTaskPage(res['task'])
|
openTaskPage(res['task'])
|
||||||
|
Loading…
Reference in New Issue
Block a user