mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 14:25:23 +00:00
fix: 去除批量移除, 去除简单写法
This commit is contained in:
@@ -37,7 +37,6 @@ export default {
|
||||
actions: {
|
||||
prop: '',
|
||||
formatterArgs: {
|
||||
hasClone: true,
|
||||
performDelete: function({ row, col, cellValue, reload }) {
|
||||
this.$axios.delete(
|
||||
`/api/v1/applications/applications/${row.id}/`
|
||||
|
@@ -29,7 +29,6 @@ export default {
|
||||
actions: {
|
||||
prop: '',
|
||||
formatterArgs: {
|
||||
hasClone: true,
|
||||
performDelete: function({ row, col, cellValue, reload }) {
|
||||
this.$axios.delete(
|
||||
`/api/v1/applications/applications/${row.id}/`
|
||||
|
@@ -34,7 +34,6 @@ export default {
|
||||
},
|
||||
actions: {
|
||||
formatterArgs: {
|
||||
hasClone: true,
|
||||
onUpdate: ({ row }) => {
|
||||
vm.$router.push({ name: 'RemoteAppUpdate', params: { id: row.id }, query: { type: row.type }})
|
||||
},
|
||||
|
@@ -49,7 +49,6 @@ export default {
|
||||
formatter: ActionsFormatter,
|
||||
width: '200px',
|
||||
formatterArgs: {
|
||||
hasClone: true,
|
||||
performDelete: ({ row, col }) => {
|
||||
const id = row.id
|
||||
const url = `/api/v1/assets/admin-users/${id}/`
|
||||
|
@@ -48,6 +48,7 @@ export default {
|
||||
},
|
||||
headerActions: {
|
||||
hasSearch: true,
|
||||
hasBulkDelete: false,
|
||||
createRoute: {
|
||||
name: 'CommandFilterRulesCreate',
|
||||
query: {
|
||||
|
@@ -57,7 +57,6 @@ export default {
|
||||
formatter: ActionsFormatter,
|
||||
width: '200px',
|
||||
formatterArgs: {
|
||||
hasClone: true,
|
||||
performDelete: ({ row, col }) => {
|
||||
const id = row.id
|
||||
const url = `/api/v1/assets/cmd-filters/${id}/`
|
||||
|
@@ -39,7 +39,6 @@ export default {
|
||||
label: this.$t('assets.Action'),
|
||||
width: '200px',
|
||||
formatterArgs: {
|
||||
hasClone: true,
|
||||
performDelete: ({ row, col }) => {
|
||||
const id = row.id
|
||||
const url = `/api/v1/assets/labels/${id}/`
|
||||
|
@@ -44,7 +44,6 @@ export default {
|
||||
formatter: ActionsFormatter,
|
||||
width: '200px',
|
||||
formatterArgs: {
|
||||
hasClone: true,
|
||||
canDelete: (row, vaule) => {
|
||||
return !row.internal
|
||||
},
|
||||
@@ -67,6 +66,7 @@ export default {
|
||||
hasRefresh: false,
|
||||
hasSearch: false,
|
||||
hasMoreActions: false,
|
||||
hasBulkDelete: false,
|
||||
createRoute: 'PlatformCreate'
|
||||
}
|
||||
}
|
||||
|
@@ -60,7 +60,6 @@ export default {
|
||||
label: this.$t('common.Action'),
|
||||
updateRoute: 'SystemUserUpdate',
|
||||
formatterArgs: {
|
||||
hasClone: true,
|
||||
performDelete: ({ row, col }) => {
|
||||
const id = row.id
|
||||
const url = `/api/v1/assets/system-users/${id}/`
|
||||
|
@@ -72,11 +72,6 @@ export default {
|
||||
activeTab: 'RemoteAppPermissionRemoteApp'
|
||||
}
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
formatterArgs: {
|
||||
hasClone: true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user