mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
fix(clone): 修复一下clone丢失的问题
This commit is contained in:
@@ -81,10 +81,6 @@ export default {
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$log.debug(this.headerActions)
|
||||
this.$log.debug(this.iTableConfig)
|
||||
},
|
||||
methods: {
|
||||
handleSelectionChange(val) {
|
||||
this.selectedRows = val
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
<script>
|
||||
import { GenericListPage } from '@/layout/components'
|
||||
import { DetailFormatter, ActionsFormatter } from '@/components/ListTable/formatters/index'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -14,49 +13,15 @@ export default {
|
||||
return {
|
||||
tableConfig: {
|
||||
url: '/api/v1/assets/admin-users/',
|
||||
columns: [
|
||||
{
|
||||
prop: 'name',
|
||||
label: this.$t('common.Name'),
|
||||
formatter: DetailFormatter,
|
||||
showOverflowTooltip: true,
|
||||
sortable: true,
|
||||
formatterArgs: {
|
||||
route: 'AdminUserDetail'
|
||||
}
|
||||
columns: ['name', 'username', 'assets_amount', 'comment', 'actions'],
|
||||
columnsMeta: {
|
||||
username: {
|
||||
showOverflowTooltip: true
|
||||
},
|
||||
{
|
||||
prop: 'username',
|
||||
label: this.$t('common.Username'),
|
||||
showOverflowTooltip: true,
|
||||
sortable: 'custom'
|
||||
},
|
||||
{
|
||||
prop: 'assets_amount',
|
||||
label: this.$t('assets.Assets'),
|
||||
assets_amount: {
|
||||
width: '80px'
|
||||
},
|
||||
{
|
||||
prop: 'comment',
|
||||
showOverflowTooltip: true,
|
||||
label: this.$t('common.Comment'),
|
||||
sortable: 'custom'
|
||||
},
|
||||
{
|
||||
prop: 'id',
|
||||
align: 'center',
|
||||
label: this.$t('common.Action'),
|
||||
formatter: ActionsFormatter,
|
||||
width: '200px',
|
||||
formatterArgs: {
|
||||
performDelete: ({ row, col }) => {
|
||||
const id = row.id
|
||||
const url = `/api/v1/assets/admin-users/${id}/`
|
||||
return this.$axios.delete(url)
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
updateRoute: 'AdminUserUpdate',
|
||||
headerActions: {
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
<script>
|
||||
import { GenericListPage } from '@/layout/components'
|
||||
import { DetailFormatter, ActionsFormatter } from '@/components/ListTable/formatters/index'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -14,60 +13,21 @@ export default {
|
||||
return {
|
||||
tableConfig: {
|
||||
url: '/api/v1/assets/system-users/',
|
||||
columns: [
|
||||
{
|
||||
prop: 'name',
|
||||
label: this.$t('common.Name'),
|
||||
formatter: DetailFormatter,
|
||||
showOverflowTooltip: true,
|
||||
sortable: true,
|
||||
formatterArgs: {
|
||||
route: 'SystemUserDetail'
|
||||
}
|
||||
columns: ['name', 'username', 'protocol', 'login_mode', 'assets_amount', 'comment', 'actions'],
|
||||
columnsMeta: {
|
||||
username: {
|
||||
showOverflowTooltip: true
|
||||
},
|
||||
{
|
||||
prop: 'username',
|
||||
label: this.$t('common.Username'),
|
||||
showOverflowTooltip: true,
|
||||
sortable: 'custom'
|
||||
},
|
||||
{
|
||||
prop: 'protocol',
|
||||
label: this.$t('assets.Protocol'),
|
||||
sortable: 'custom',
|
||||
protocol: {
|
||||
width: '100px'
|
||||
},
|
||||
{
|
||||
prop: 'login_mode_display',
|
||||
label: this.$t('assets.LoginModel'),
|
||||
login_mode: {
|
||||
width: '120px'
|
||||
},
|
||||
{
|
||||
prop: 'assets_amount',
|
||||
label: this.$t('assets.Assets'),
|
||||
assets_amount: {
|
||||
width: '80px'
|
||||
},
|
||||
{
|
||||
prop: 'comment',
|
||||
showOverflowTooltip: true,
|
||||
label: this.$t('common.Comment')
|
||||
},
|
||||
{
|
||||
prop: 'id',
|
||||
align: 'center',
|
||||
formatter: ActionsFormatter,
|
||||
width: '200px',
|
||||
label: this.$t('common.Action'),
|
||||
updateRoute: 'SystemUserUpdate',
|
||||
formatterArgs: {
|
||||
performDelete: ({ row, col }) => {
|
||||
const id = row.id
|
||||
const url = `/api/v1/assets/system-users/${id}/`
|
||||
return this.$axios.delete(url)
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
headerActions: {
|
||||
hasMoreActions: false,
|
||||
|
||||
Reference in New Issue
Block a user