fix: 去除批量移除, 去除简单写法

This commit is contained in:
Orange
2020-12-17 14:53:04 +08:00
committed by Jiangjie.Bai
parent d6f9df277e
commit 73bb854ebb
10 changed files with 2 additions and 13 deletions

View File

@@ -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}/`

View File

@@ -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}/`

View File

@@ -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 }})
},

View File

@@ -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}/`

View File

@@ -48,6 +48,7 @@ export default {
},
headerActions: {
hasSearch: true,
hasBulkDelete: false,
createRoute: {
name: 'CommandFilterRulesCreate',
query: {

View File

@@ -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}/`

View File

@@ -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}/`

View File

@@ -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'
}
}

View File

@@ -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}/`

View File

@@ -72,11 +72,6 @@ export default {
activeTab: 'RemoteAppPermissionRemoteApp'
}
}
},
actions: {
formatterArgs: {
hasClone: true
}
}
}
},