File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ const cmdb_en = {
230230 attributeAssociationTip6 : 'Cannot be deleted again.' ,
231231 attributeAssociationTip7 : '1. The attribute value types of the source model and target model must be consistent.' ,
232232 attributeAssociationTip8 : '2. One To Many: Source model can select multiple value attributes' ,
233+ attributeAssociationTip9 : '3. Many To Many: Either the source model or the target model can be a multi-valued attribute.' ,
233234 show : 'show attribute' ,
234235 setAsShow : 'Set as show attribute' ,
235236 cancelSetAsShow : 'Cancel show attribute' ,
Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ const cmdb_zh = {
230230 attributeAssociationTip6 : '不可再删除' ,
231231 attributeAssociationTip7 : '1. 源模型和目标模型的属性值类型必须保持一致' ,
232232 attributeAssociationTip8 : '2. 一对多:源模型可选多值属性' ,
233+ attributeAssociationTip9 : '3. 多对多:源模型和目标模型其中任何一个可为多值属性' ,
233234 show : '展示属性' ,
234235 setAsShow : '设置为展示属性' ,
235236 cancelSetAsShow : '取消设置为展示属性' ,
Original file line number Diff line number Diff line change 5555 <div >{{ $t('cmdb.ciType.attributeAssociationTip1') }}</div >
5656 <div >{{ $t('cmdb.ciType.attributeAssociationTip7') }}</div >
5757 <div >{{ $t('cmdb.ciType.attributeAssociationTip8') }}</div >
58+ <div >{{ $t('cmdb.ciType.attributeAssociationTip9') }}</div >
5859 </template >
5960 <a ><a-icon type =" question-circle" /></a >
6061 </a-tooltip >
228229 <template #extra >
229230 <div >{{ $t('cmdb.ciType.attributeAssociationTip7') }}</div >
230231 <div >{{ $t('cmdb.ciType.attributeAssociationTip8') }}</div >
232+ <div >{{ $t('cmdb.ciType.attributeAssociationTip9') }}</div >
231233 </template >
232234 <a-row
233235 v-for =" item in modalAttrList"
@@ -652,7 +654,8 @@ export default {
652654 const constraintValue = Number (constraint ?? this .form .getFieldValue (' constraint' ))
653655 if (
654656 (constraintValue === 0 && type === ' child' ) ||
655- constraintValue === 1
657+ constraintValue === 1 ||
658+ (constraintValue === 2 && relationAttr? .is_list )
656659 ) {
657660 return filterAttrs .filter ((attr ) => ! attr .is_list )
658661 }
Original file line number Diff line number Diff line change 6767 <template #extra >
6868 <div >{{ $t('cmdb.ciType.attributeAssociationTip7') }}</div >
6969 <div >{{ $t('cmdb.ciType.attributeAssociationTip8') }}</div >
70+ <div >{{ $t('cmdb.ciType.attributeAssociationTip9') }}</div >
7071 </template >
7172 <a-row
7273 v-for =" item in modalAttrList"
@@ -387,7 +388,8 @@ export default {
387388 const constraintValue = Number (this .form .getFieldValue (' constraint' ))
388389 if (
389390 (constraintValue === 0 && type === ' child' ) ||
390- constraintValue === 1
391+ constraintValue === 1 ||
392+ (constraintValue === 2 && relationAttr? .is_list )
391393 ) {
392394 return filterAttrs .filter ((attr ) => ! attr .is_list )
393395 }
Original file line number Diff line number Diff line change 4343 <div >{{ $t('cmdb.ciType.attributeAssociationTip1') }}</div >
4444 <div >{{ $t('cmdb.ciType.attributeAssociationTip7') }}</div >
4545 <div >{{ $t('cmdb.ciType.attributeAssociationTip8') }}</div >
46+ <div >{{ $t('cmdb.ciType.attributeAssociationTip9') }}</div >
4647 </template >
4748 <a ><a-icon type =" question-circle" /></a >
4849 </a-tooltip >
@@ -327,7 +328,8 @@ export default {
327328 const constraintValue = Number (constraint)
328329 if (
329330 (constraintValue === 0 && type === ' child' ) ||
330- constraintValue === 1
331+ constraintValue === 1 ||
332+ (constraintValue === 2 && relationAttr? .is_list )
331333 ) {
332334 return filterAttrs .filter ((attr ) => ! attr .is_list )
333335 }
You can’t perform that action at this time.
0 commit comments