|
@ -418,7 +418,16 @@ const validateNotRepetition = (data) => { |
|
|
|
|
|
|
|
|
const detailValidate = (formType, data) => { |
|
|
const detailValidate = (formType, data) => { |
|
|
let tag = true |
|
|
let tag = true |
|
|
existValue.value.forEach((item) => { |
|
|
const array = ref([]) |
|
|
|
|
|
if (data.id) { |
|
|
|
|
|
array.value = existValue.value.filter((item) => { |
|
|
|
|
|
return data?.id != item.id |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
array.value =existValue.value |
|
|
|
|
|
} |
|
|
|
|
|
console.log(44,array.value) |
|
|
|
|
|
array.value.forEach((item) => { |
|
|
if (data.dictionaryValue == item.dictionaryValue) { |
|
|
if (data.dictionaryValue == item.dictionaryValue) { |
|
|
message.warning('选定集字典项不能重复!') |
|
|
message.warning('选定集字典项不能重复!') |
|
|
tag = false |
|
|
tag = false |
|
|