mirror of
https://github.com/jumpserver/lina.git
synced 2025-11-07 09:58:38 +00:00
Compare commits
3 Commits
pr@v3@fixe
...
v2.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
49bdd98812 | ||
|
|
743c2ee6e9 | ||
|
|
9d70eecee0 |
@@ -24,7 +24,7 @@ export default {
|
||||
},
|
||||
fields: [
|
||||
[this.$t('common.Basic'), ['hostname', 'ip', 'platform']],
|
||||
[this.$t('assets.Hardware'), ['vendor', 'model', 'cpu_model', 'memory', 'disk_info', 'disk_total']],
|
||||
[this.$t('assets.Hardware'), ['vendor', 'model', 'number', 'cpu_model', 'memory', 'disk_info', 'disk_total']],
|
||||
[this.$t('assets.Os'), ['sn', 'os', 'os_version', 'os_arch']]
|
||||
],
|
||||
fieldsMeta: {
|
||||
|
||||
@@ -30,25 +30,6 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
},
|
||||
mounted() {
|
||||
this.getNodeList()
|
||||
},
|
||||
methods: {
|
||||
getNodeList() {
|
||||
this.$axios.get(
|
||||
`/api/v1/assets/system-users-nodes-relations/?systemuser=${this.object.id}&draw=1&limit=15&offset=0`
|
||||
).then(data => {
|
||||
for (const x in data.results) {
|
||||
this.nodeRelationConfig.hasObjectsId.push(data.results[x].node)
|
||||
this.nodeRelationConfig.hasObjects.push({
|
||||
value: data.results[x].node,
|
||||
label: data.results[x].node_display
|
||||
})
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user