|
|
@ -82,13 +82,15 @@ const defaultExpandedKey = ref([]);
|
|
|
|
function initHandle() {
|
|
|
|
function initHandle() {
|
|
|
|
nextTick(() => {
|
|
|
|
nextTick(() => {
|
|
|
|
const selectedValue = valueId.value;
|
|
|
|
const selectedValue = valueId.value;
|
|
|
|
if(selectedValue !== null && typeof (selectedValue) !== "undefined"){
|
|
|
|
if(selectedValue && selectedValue !== null && typeof (selectedValue) !== "undefined"){
|
|
|
|
const node = proxy.$refs.selectTree.getNode(selectedValue)
|
|
|
|
const node = proxy.$refs.selectTree.getNode(selectedValue)
|
|
|
|
if (node) {
|
|
|
|
if (node) {
|
|
|
|
valueTitle.value = node.data[props.objMap.label]
|
|
|
|
valueTitle.value = node.data[props.objMap.label]
|
|
|
|
proxy.$refs.selectTree.setCurrentKey(selectedValue) // 设置默认选中
|
|
|
|
proxy.$refs.selectTree.setCurrentKey(selectedValue) // 设置默认选中
|
|
|
|
defaultExpandedKey.value = [selectedValue] // 设置默认展开
|
|
|
|
defaultExpandedKey.value = [selectedValue] // 设置默认展开
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
clearHandle()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|