fix: bug#10944

This commit is contained in:
xieyonghong 2023-04-24 13:59:51 +08:00
parent 50ba72b1c5
commit 5ac7ff4906
4 changed files with 7 additions and 3 deletions

View File

@ -163,7 +163,6 @@ watchEffect(() => {
const option = getOption(_options, props.value as string, props.valueName) // label
myValue.value = props.value
mySource.value = props.source
console.log(_options, props.value, props.valueName, option)
if (option) {
label.value = option[props.labelName] || option.name
treeOpenKeys.value = openKeysByTree(_options, props.value, props.valueName)
@ -176,6 +175,8 @@ watchEffect(() => {
}
})
</script>
<style scoped lang='less'>

View File

@ -356,7 +356,7 @@ const onDelete = () => {
}
nextTick(() => {
Object.assign(paramsValue, pick(props.value, ['column', 'options', 'termType', 'terms', 'type', 'value', 'metric']))
Object.assign(paramsValue, pick(props.value, ['column', 'options', 'termType', 'terms', 'type', 'value', 'metric', 'key']))
})
</script>

View File

@ -144,6 +144,10 @@ watchEffect(() => {
}
})
onMounted(() => {
console.log('terms-onMounted')
})
</script>
<style scoped lang='less'>

View File

@ -13,7 +13,6 @@
<AIcon type='CloseOutlined' />
</div>
</j-popconfirm>
<j-form-item
:name='["branches", branchName, "when", whenName, "terms", props.name]'
:rules='rules'