fix: 组织管理 详情bug

This commit is contained in:
feng626
2022-03-15 19:44:55 +08:00
parent 7d98bcd9f5
commit 9ae57dba83

View File

@@ -9,9 +9,8 @@
<script>
import { GenericDetailPage, TabPage } from '@/layout/components'
import OrganizationDetail from './OrganizationDetail'
import { getApiPath } from '@/utils/common'
const performDelete = function() {
const url = getApiPath(this)
const url = `${this.url}/${this.$route.params.id}/`
return this.$axios.delete(url)
}
export default {
@@ -33,6 +32,9 @@ export default {
}
],
actions: {
deleteApiUrl: `${this.url}/${this.$route.params.id}/`,
canUpdate: this.$hasPerm('orgs.change_organization'),
canDelete: this.$hasPerm('orgs.delete_organization'),
deleteCallback: function() {
const msg = this.$t('xpack.Organization.DeleteOrgMsg')
const title = this.$t('xpack.Organization.DeleteOrgTitle')