mirror of https://github.com/veops/cmdb.git
Merge branch 'master' of github.com:veops/cmdb
This commit is contained in:
commit
cd70b16eb3
|
@ -453,9 +453,11 @@ class AutoDiscoveryCICRUD(DBMixin):
|
|||
|
||||
relation_adts = AutoDiscoveryCIType.get_by(type_id=adt.type_id, adr_id=None, to_dict=False)
|
||||
for r_adt in relation_adts:
|
||||
if r_adt.relation and ci_id is not None:
|
||||
ad_key, cmdb_key = None, {}
|
||||
if not r_adt.relation or ci_id is None:
|
||||
continue
|
||||
for ad_key in r_adt.relation:
|
||||
if not adc.instance.get(ad_key):
|
||||
continue
|
||||
cmdb_key = r_adt.relation[ad_key]
|
||||
query = "_type:{},{}:{}".format(cmdb_key.get('type_name'), cmdb_key.get('attr_name'),
|
||||
adc.instance.get(ad_key))
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<a-card :bordered="false">
|
||||
<div class="action-btn">
|
||||
<a-button @click="handleCreate" type="primary" style="margin-bottom: 15px">新增关系类型</a-button>
|
||||
<a-button @click="handleCreate" type="primary" style="margin-bottom: 15px;">新增关系类型</a-button>
|
||||
</div>
|
||||
<vxe-table
|
||||
ref="relationTypeTable"
|
||||
|
@ -122,7 +122,6 @@ export default {
|
|||
if ($event.keyCode === 13) {
|
||||
const $table = this.$refs.relationTypeTable
|
||||
$table.clearActived()
|
||||
this.handleEditClose({ row: value.row })
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue