Compare commits

...

3 Commits

Author SHA1 Message Date
老广
49bdd98812 Merge pull request #561 from jumpserver/pr@v2.6@fix_remove_unuse_func
fix: 移除未使用的函数
2021-01-06 14:07:46 +08:00
Orange
743c2ee6e9 fix: 移除未使用的函数 2020-12-21 10:24:11 +00:00
Orange
9d70eecee0 feat: 添加资产编号字段 2020-12-21 14:39:02 +08:00
2 changed files with 1 additions and 20 deletions

View File

@@ -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: {

View File

@@ -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>