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