fix(查询组件): 日期类型校验,日期格式不一致,无法创建查询条件。
This commit is contained in:
parent
0d068b1b79
commit
59f72ec85b
@ -266,11 +266,14 @@ const showTypeError = computed(() => {
|
||||
ele => checkId === ele.id
|
||||
)
|
||||
if (!field) return false
|
||||
if (displayTypeField === null) {
|
||||
if (displayTypeField === null && Array.isArray(field.type)) {
|
||||
displayTypeField = field
|
||||
return false
|
||||
}
|
||||
if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) {
|
||||
if (!Array.isArray(field.type)) {
|
||||
return false
|
||||
}
|
||||
if (!displayTypeField.type?.length && !field.type?.length) {
|
||||
return false
|
||||
}
|
||||
@ -1243,11 +1246,14 @@ const validate = () => {
|
||||
itx => checkId === itx.id
|
||||
)
|
||||
if (!field) return false
|
||||
if (displayTypeField === null) {
|
||||
if (displayTypeField === null && Array.isArray(field.type)) {
|
||||
displayTypeField = field
|
||||
return false
|
||||
}
|
||||
if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) {
|
||||
if (!Array.isArray(field.type)) {
|
||||
return false
|
||||
}
|
||||
if (!displayTypeField.type?.length && !field.type?.length) {
|
||||
return false
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user