df8cf022 by fanguang Committed by lihua

fix

1 parent d2c5940e
......@@ -355,10 +355,9 @@ function getDetail () {
if (level >= 3) {
fieldsDisabled.value = true
}
if ((children && children.length) || data.fieldRSVOS) {
if ((children && children.length) || isHaveData === 'Y') {
treeSelectDisabled.value = true
}
}
}).finally(() => loading.value = false)
}
......
......@@ -106,6 +106,20 @@ function getTree (refresh = false, initLocate = false) {
}
})
}
function refreshTree () {
treeInfo.value.loading = true;
getMetaStandardTree().then((res:any) => {
treeInfo.value.loading = false;
if (res.code === proxy.$passCode) {
let data = res.data || []
data.forEach(item => {
item.showEdit = true
item.level = 1
})
treeInfo.value.data = data
}
})
}
function deleteTreeNode (guid) {
deleteMetaStandard([guid]).then((res:any) => {
......@@ -537,7 +551,7 @@ const viewGraph = () => {
:type="standardDialog.type"
:guid="standardDialog.guid"
:currentNode="standardDialog.currentNode"
@success="getTree"
@success="refreshTree"
/>
<StandardFieldsDialog
v-model="standardFieldsDialog.visible"
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!