mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-24 05:50:06 +00:00
fix: 全局组织禁用批量更新和从节点移除
This commit is contained in:
@@ -227,7 +227,7 @@ export default {
|
||||
{
|
||||
name: 'updateSelected',
|
||||
title: this.$t('common.updateSelected'),
|
||||
can: ({ selectedRows }) => selectedRows.length > 0,
|
||||
can: ({ selectedRows }) => selectedRows.length > 0 && !this.$store.getters.currentOrgIsRoot,
|
||||
callback: ({ selectedRows, reloadTable }) => {
|
||||
vm.updateSelectedDialogSetting.dialogSetting.dialogVisible = true
|
||||
vm.updateSelectedDialogSetting.selectedRows = selectedRows
|
||||
@@ -240,7 +240,7 @@ export default {
|
||||
if (!this.$route.query.node) {
|
||||
return false
|
||||
}
|
||||
return selectedRows.length > 0
|
||||
return selectedRows.length > 0 && !this.$store.getters.currentOrgIsRoot
|
||||
},
|
||||
callback: function({ selectedRows, reloadTable }) {
|
||||
const assetsId = []
|
||||
|
||||
@@ -63,7 +63,7 @@ export default {
|
||||
this.$axios.delete(`/api/v1/xpack/cloud/sync-instance-tasks/${this.object.id}/released-assets/`).then(
|
||||
res => {
|
||||
this.$message.success(this.$t('common.deleteSuccessMsg'))
|
||||
this.$refs.GenericListTable.reloadTable()
|
||||
this.$refs.GenericListTable.$refs.ListTable.reloadTable()
|
||||
}
|
||||
).catch(() => {
|
||||
this.$message.error(this.$t('common.deleteErrorMsg'))
|
||||
|
||||
Reference in New Issue
Block a user