|
|
@ -357,10 +357,8 @@ const vertexDefines = [ |
|
|
size: [120, 60], |
|
|
size: [120, 60], |
|
|
}, |
|
|
}, |
|
|
getLabel: (value: any) => { |
|
|
getLabel: (value: any) => { |
|
|
console.log('getLabel', value); |
|
|
|
|
|
if (value.resourceAbstractIds && value.resourceAbstractIds.length > 0) { |
|
|
if (value.resourceAbstractIds && value.resourceAbstractIds.length > 0) { |
|
|
const resourceAbstracts = findResourceAbstractByIds(value.resourceAbstractIds); |
|
|
const resourceAbstracts = findResourceAbstractByIds(value.resourceAbstractIds); |
|
|
console.log(resourceAbstracts.length); |
|
|
|
|
|
if (resourceAbstracts && resourceAbstracts.length > 0) { |
|
|
if (resourceAbstracts && resourceAbstracts.length > 0) { |
|
|
const result = []; |
|
|
const result = []; |
|
|
for (const element of resourceAbstracts) { |
|
|
for (const element of resourceAbstracts) { |
|
|
@ -372,7 +370,6 @@ const vertexDefines = [ |
|
|
return ''; |
|
|
return ''; |
|
|
}, |
|
|
}, |
|
|
getValue: (dom: any) => { |
|
|
getValue: (dom: any) => { |
|
|
console.log('getValue'); |
|
|
|
|
|
if (dom) { |
|
|
if (dom) { |
|
|
const resourceAbstracts = Tools.json2Object(dom.getAttribute('resourceAbstracts')); |
|
|
const resourceAbstracts = Tools.json2Object(dom.getAttribute('resourceAbstracts')); |
|
|
if (resourceAbstracts && resourceAbstracts.length > 0) { |
|
|
if (resourceAbstracts && resourceAbstracts.length > 0) { |
|
|
@ -391,7 +388,6 @@ const vertexDefines = [ |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
setValue: (dom: any, value: any) => { |
|
|
setValue: (dom: any, value: any) => { |
|
|
console.log('setValue'); |
|
|
|
|
|
if (value.resourceAbstractIds && value.resourceAbstractIds.length > 0) { |
|
|
if (value.resourceAbstractIds && value.resourceAbstractIds.length > 0) { |
|
|
const resourceAbstracts = findResourceAbstractByIds(value.resourceAbstractIds); |
|
|
const resourceAbstracts = findResourceAbstractByIds(value.resourceAbstractIds); |
|
|
if (resourceAbstracts && resourceAbstracts.length > 0) { |
|
|
if (resourceAbstracts && resourceAbstracts.length > 0) { |
|
|
@ -407,6 +403,7 @@ const vertexDefines = [ |
|
|
}, |
|
|
}, |
|
|
getFormFields: () => { |
|
|
getFormFields: () => { |
|
|
return [ |
|
|
return [ |
|
|
|
|
|
/* |
|
|
{ |
|
|
{ |
|
|
name: 'resourceAbstractIds2', |
|
|
name: 'resourceAbstractIds2', |
|
|
label: $t('re.graph.vertex.resourceAbstracts.entity.resourceAbstractIds'), |
|
|
label: $t('re.graph.vertex.resourceAbstracts.entity.resourceAbstractIds'), |
|
|
@ -451,6 +448,7 @@ const vertexDefines = [ |
|
|
editor: {}, |
|
|
editor: {}, |
|
|
onAfterEditorDataSubmit: (args: any) => {}, |
|
|
onAfterEditorDataSubmit: (args: any) => {}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
*/ |
|
|
{ |
|
|
{ |
|
|
name: 'resourceAbstractIds', |
|
|
name: 'resourceAbstractIds', |
|
|
label: $t('re.graph.vertex.resourceAbstracts.entity.resourceAbstractIds'), |
|
|
label: $t('re.graph.vertex.resourceAbstracts.entity.resourceAbstractIds'), |
|
|
|