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