Merge pull request #13285 from dataease/pr@dev-v2_dzz
fix(查询组件): 日期类型校验,日期格式不一致,无法创建查询条件。
This commit is contained in:
commit
4ac696de4e
@ -203,7 +203,7 @@ const componentBackgroundStyle = computed(() => {
|
|||||||
innerPadding,
|
innerPadding,
|
||||||
borderRadius
|
borderRadius
|
||||||
} = config.value.commonBackground
|
} = config.value.commonBackground
|
||||||
const style = {
|
let style = {
|
||||||
padding: innerPadding * deepScale.value + 'px',
|
padding: innerPadding * deepScale.value + 'px',
|
||||||
borderRadius: borderRadius + 'px'
|
borderRadius: borderRadius + 'px'
|
||||||
}
|
}
|
||||||
@ -211,6 +211,19 @@ const componentBackgroundStyle = computed(() => {
|
|||||||
if (backgroundColorSelect && backgroundColor) {
|
if (backgroundColorSelect && backgroundColor) {
|
||||||
colorRGBA = backgroundColor
|
colorRGBA = backgroundColor
|
||||||
}
|
}
|
||||||
|
if (config.value.innerType === 'VQuery') {
|
||||||
|
if (backgroundColorSelect) {
|
||||||
|
style = {
|
||||||
|
padding: innerPadding * deepScale.value + 'px',
|
||||||
|
borderRadius: borderRadius + 'px'
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
style = {
|
||||||
|
padding: 12 * deepScale.value + 'px',
|
||||||
|
borderRadius: '0'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (config.value.innerType === 'VQuery' && backgroundColorSelect) {
|
if (config.value.innerType === 'VQuery' && backgroundColorSelect) {
|
||||||
if (backgroundType === 'outerImage' && typeof outerImage === 'string') {
|
if (backgroundType === 'outerImage' && typeof outerImage === 'string') {
|
||||||
style['background'] = `url(${imgUrlTrans(outerImage)}) no-repeat`
|
style['background'] = `url(${imgUrlTrans(outerImage)}) no-repeat`
|
||||||
|
|||||||
@ -886,7 +886,7 @@ const componentBackgroundStyle = computed(() => {
|
|||||||
borderRadius
|
borderRadius
|
||||||
} = element.value.commonBackground
|
} = element.value.commonBackground
|
||||||
const innerPaddingTarget = ['Group'].includes(element.value.component) ? 0 : innerPadding
|
const innerPaddingTarget = ['Group'].includes(element.value.component) ? 0 : innerPadding
|
||||||
const style = {
|
let style = {
|
||||||
padding: innerPaddingTarget * scale.value + 'px',
|
padding: innerPaddingTarget * scale.value + 'px',
|
||||||
borderRadius: borderRadius + 'px'
|
borderRadius: borderRadius + 'px'
|
||||||
}
|
}
|
||||||
@ -895,6 +895,20 @@ const componentBackgroundStyle = computed(() => {
|
|||||||
colorRGBA = backgroundColor
|
colorRGBA = backgroundColor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (element.value.innerType === 'VQuery') {
|
||||||
|
if (backgroundColorSelect) {
|
||||||
|
style = {
|
||||||
|
padding: innerPadding * scale.value + 'px',
|
||||||
|
borderRadius: borderRadius + 'px'
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
style = {
|
||||||
|
padding: 12 * scale.value + 'px',
|
||||||
|
borderRadius: '0'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (element.value.innerType === 'VQuery' && backgroundColorSelect) {
|
if (element.value.innerType === 'VQuery' && backgroundColorSelect) {
|
||||||
if (backgroundType === 'outerImage' && typeof outerImage === 'string') {
|
if (backgroundType === 'outerImage' && typeof outerImage === 'string') {
|
||||||
style['background'] = `url(${imgUrlTrans(outerImage)}) no-repeat`
|
style['background'] = `url(${imgUrlTrans(outerImage)}) no-repeat`
|
||||||
|
|||||||
@ -266,11 +266,14 @@ const showTypeError = computed(() => {
|
|||||||
ele => checkId === ele.id
|
ele => checkId === ele.id
|
||||||
)
|
)
|
||||||
if (!field) return false
|
if (!field) return false
|
||||||
if (displayTypeField === null) {
|
if (displayTypeField === null && Array.isArray(field.type)) {
|
||||||
displayTypeField = field
|
displayTypeField = field
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) {
|
if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) {
|
||||||
|
if (!Array.isArray(field.type)) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
if (!displayTypeField.type?.length && !field.type?.length) {
|
if (!displayTypeField.type?.length && !field.type?.length) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@ -1243,11 +1246,14 @@ const validate = () => {
|
|||||||
itx => checkId === itx.id
|
itx => checkId === itx.id
|
||||||
)
|
)
|
||||||
if (!field) return false
|
if (!field) return false
|
||||||
if (displayTypeField === null) {
|
if (displayTypeField === null && Array.isArray(field.type)) {
|
||||||
displayTypeField = field
|
displayTypeField = field
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) {
|
if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) {
|
||||||
|
if (!Array.isArray(field.type)) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
if (!displayTypeField.type?.length && !field.type?.length) {
|
if (!displayTypeField.type?.length && !field.type?.length) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
@ -315,6 +315,7 @@ initParams()
|
|||||||
>
|
>
|
||||||
<el-input-number
|
<el-input-number
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
:disabled="!commonBackgroundPop.backgroundColorSelect"
|
||||||
:effect="themes"
|
:effect="themes"
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
size="middle"
|
size="middle"
|
||||||
@ -334,6 +335,7 @@ initParams()
|
|||||||
<el-input-number
|
<el-input-number
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:effect="themes"
|
:effect="themes"
|
||||||
|
:disabled="!commonBackgroundPop.backgroundColorSelect"
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
size="middle"
|
size="middle"
|
||||||
:min="0"
|
:min="0"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user