mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 19:35:24 +00:00
Merge pull request #2214 from jumpserver/pr@v3@domian_add_node
perf: domian add node
This commit is contained in:
@@ -15,7 +15,7 @@ export default {
|
||||
initial: {
|
||||
},
|
||||
fields: [
|
||||
[this.$t('common.Basic'), ['name', 'assets', 'comment']]
|
||||
[this.$t('common.Basic'), ['name', 'nodes', 'assets', 'comment']]
|
||||
],
|
||||
fieldsMeta: {
|
||||
assets: {
|
||||
@@ -25,6 +25,17 @@ export default {
|
||||
el: {
|
||||
value: []
|
||||
}
|
||||
},
|
||||
nodes: {
|
||||
el: {
|
||||
value: [],
|
||||
ajax: {
|
||||
url: '/api/v1/assets/nodes/',
|
||||
transformOption: (item) => {
|
||||
return { label: item.full_value, value: item.id }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -15,14 +15,17 @@ export default {
|
||||
tableConfig: {
|
||||
url: '/api/v1/assets/domains/',
|
||||
columns: [
|
||||
'name', 'asset_count', 'application_count', 'gateway_count', 'date_created',
|
||||
'name', 'node_count', 'asset_count', 'application_count', 'gateway_count', 'date_created',
|
||||
'comment', 'org_name', 'actions'
|
||||
],
|
||||
columnsShow: {
|
||||
min: ['name', 'actions'],
|
||||
default: ['name', 'asset_count', 'application_count', 'gateway_count', 'comment', 'actions']
|
||||
default: ['name', 'node_count', 'asset_count', 'application_count', 'gateway_count', 'comment', 'actions']
|
||||
},
|
||||
columnsMeta: {
|
||||
node_count: {
|
||||
label: this.$t('assets.Node')
|
||||
},
|
||||
asset_count: {
|
||||
label: this.$t('assets.Assets')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user