Showing
1 changed file
with
2 additions
and
2 deletions
@@ -60,7 +60,7 @@ | @@ -60,7 +60,7 @@ | ||
60 | }); | 60 | }); |
61 | 61 | ||
62 | const validateRepeat = (value: StructRecord, valueList: StructRecord[]) => { | 62 | const validateRepeat = (value: StructRecord, valueList: StructRecord[]) => { |
63 | - return valueList.filter((item) => item.identifier === value.identifier).length > 1; | 63 | + return valueList.filter((item) => item.identifier === value.identifier).length >= 1; |
64 | }; | 64 | }; |
65 | 65 | ||
66 | const handleSubmit = async () => { | 66 | const handleSubmit = async () => { |
@@ -78,7 +78,7 @@ | @@ -78,7 +78,7 @@ | ||
78 | createMessage.error('存在一致的标识符'); | 78 | createMessage.error('存在一致的标识符'); |
79 | return; | 79 | return; |
80 | } | 80 | } |
81 | - | 81 | + console.log({ value, valueList: props.valueList }); |
82 | emit('submit', unref(modalReceiveRecord).mode, cloneDeep(value)); | 82 | emit('submit', unref(modalReceiveRecord).mode, cloneDeep(value)); |
83 | closeModal(); | 83 | closeModal(); |
84 | } catch (error) {} | 84 | } catch (error) {} |