mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-14 04:45:42 +00:00
perf: 主机硬件信息
This commit is contained in:
parent
d3f4c62550
commit
42b89944df
@ -23,14 +23,8 @@ export default {
|
|||||||
nodes: nodesInitial
|
nodes: nodesInitial
|
||||||
},
|
},
|
||||||
fields: [
|
fields: [
|
||||||
[this.$t('common.Basic'), [
|
[this.$t('common.Basic'), ['name', 'address']],
|
||||||
'name', 'ip', 'platform', 'number'
|
[this.$t('assets.Hardware'), ['info']]
|
||||||
]],
|
|
||||||
[this.$t('assets.Hardware'), [
|
|
||||||
'vendor', 'model', 'sn', 'cpu_model', 'cpu_count', 'cpu_cores',
|
|
||||||
'cpu_vcpus', 'memory', 'disk_total'
|
|
||||||
]],
|
|
||||||
[this.$t('assets.Os'), ['os', 'os_version', 'os_arch']]
|
|
||||||
],
|
],
|
||||||
fieldsMeta: {
|
fieldsMeta: {
|
||||||
platform: {
|
platform: {
|
||||||
@ -44,58 +38,15 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
vendor: {
|
info: {
|
||||||
el: {
|
fields: [
|
||||||
type: `input`
|
'vendor', 'model', 'sn', 'cpu_model', 'cpu_count',
|
||||||
}
|
'cpu_cores', 'cpu_vcpus', 'memory', 'disk_total',
|
||||||
},
|
'distribution', 'distribution_version', 'arch'
|
||||||
model: {
|
]
|
||||||
el: {
|
|
||||||
type: `input`
|
|
||||||
}
|
|
||||||
},
|
|
||||||
cpu_model: {
|
|
||||||
el: {
|
|
||||||
type: `input`
|
|
||||||
}
|
|
||||||
},
|
|
||||||
memory: {
|
|
||||||
el: {
|
|
||||||
type: `input`
|
|
||||||
}
|
|
||||||
},
|
|
||||||
disk_info: {
|
|
||||||
el: {
|
|
||||||
type: `input`
|
|
||||||
}
|
|
||||||
},
|
|
||||||
disk_total: {
|
|
||||||
el: {
|
|
||||||
type: `input`
|
|
||||||
}
|
|
||||||
},
|
|
||||||
sn: {
|
|
||||||
el: {
|
|
||||||
type: `input`
|
|
||||||
}
|
|
||||||
},
|
|
||||||
os: {
|
|
||||||
el: {
|
|
||||||
type: `input`
|
|
||||||
}
|
|
||||||
},
|
|
||||||
os_version: {
|
|
||||||
el: {
|
|
||||||
type: `input`
|
|
||||||
}
|
|
||||||
},
|
|
||||||
os_arch: {
|
|
||||||
el: {
|
|
||||||
type: `input`
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
url: '/api/v1/assets/assets/',
|
url: '/api/v1/assets/hosts/',
|
||||||
updateSuccessNextRoute: { name: 'AssetList' },
|
updateSuccessNextRoute: { name: 'AssetList' },
|
||||||
createSuccessNextRoute: { name: 'AssetList' },
|
createSuccessNextRoute: { name: 'AssetList' },
|
||||||
objectDetailRoute: { name: 'AssetDetail' }
|
objectDetailRoute: { name: 'AssetDetail' }
|
||||||
|
Loading…
Reference in New Issue
Block a user