+
+
+
+
{{ item.source.name }}
+
{{ item.dropDown?.name }}
+
+
- showFieldDialog(item, 'dropDown')" />
+
+ showFieldDialog(item, 'dropDown')" />
+ item.dropDown = undefined" />
+
@@ -193,7 +203,7 @@ export default defineComponent({
const updateSelectField = (f: any, item: any, index: number, keyName: 'source' | 'dropDown') => {
const [selected] = f.value;
const isDuplicate = data.fieldList.some((field, idx) =>
- idx !== index && field[keyName]?.code === selected.code
+ idx !== index && (field[keyName]?.code === selected.code || field[keyName]?.label === selected.label)
);
if (isDuplicate) {