forked from github/dataease
fix: 查询组件字段切换
This commit is contained in:
parent
abb50f3ead
commit
79f73b0f2e
@ -157,7 +157,6 @@ watch(
|
|||||||
watch(
|
watch(
|
||||||
() => config.value.field.id,
|
() => config.value.field.id,
|
||||||
val => {
|
val => {
|
||||||
console.log('init', 'config.value.field.id')
|
|
||||||
if (!val) return
|
if (!val) return
|
||||||
debounceOptions(1)
|
debounceOptions(1)
|
||||||
}
|
}
|
||||||
@ -166,7 +165,6 @@ watch(
|
|||||||
watch(
|
watch(
|
||||||
() => config.value.optionValueSource,
|
() => config.value.optionValueSource,
|
||||||
val => {
|
val => {
|
||||||
console.log('init', 'config.value.optionValueSource')
|
|
||||||
debounceOptions(val)
|
debounceOptions(val)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -174,7 +172,6 @@ watch(
|
|||||||
watch(
|
watch(
|
||||||
[() => config.value.checkedFields, () => config.value.checkedFieldsMap],
|
[() => config.value.checkedFields, () => config.value.checkedFieldsMap],
|
||||||
() => {
|
() => {
|
||||||
console.log('init', 'config.value.optionValueSource')
|
|
||||||
debounceOptions(config.value.optionValueSource)
|
debounceOptions(config.value.optionValueSource)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -185,13 +182,11 @@ watch(
|
|||||||
watch(
|
watch(
|
||||||
() => config.value.valueSource,
|
() => config.value.valueSource,
|
||||||
() => {
|
() => {
|
||||||
console.log('init', 'config.value.valueSource')
|
|
||||||
config.value.optionValueSource === 2 && debounceOptions(2)
|
config.value.optionValueSource === 2 && debounceOptions(2)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
const setOptions = (num: number) => {
|
const setOptions = (num: number) => {
|
||||||
console.log('init', 'setOptions', num, config.value.optionValueSource)
|
|
||||||
if (num !== config.value.optionValueSource) return
|
if (num !== config.value.optionValueSource) return
|
||||||
const { optionValueSource, checkedFieldsMap, checkedFields, field, valueSource } = config.value
|
const { optionValueSource, checkedFieldsMap, checkedFields, field, valueSource } = config.value
|
||||||
switch (optionValueSource) {
|
switch (optionValueSource) {
|
||||||
|
Loading…
Reference in New Issue
Block a user