fix
Showing
2 changed files
with
16 additions
and
3 deletions
| ... | @@ -355,10 +355,9 @@ function getDetail () { | ... | @@ -355,10 +355,9 @@ function getDetail () { |
| 355 | if (level >= 3) { | 355 | if (level >= 3) { |
| 356 | fieldsDisabled.value = true | 356 | fieldsDisabled.value = true |
| 357 | } | 357 | } |
| 358 | if ((children && children.length) || data.fieldRSVOS) { | 358 | if ((children && children.length) || isHaveData === 'Y') { |
| 359 | treeSelectDisabled.value = true | 359 | treeSelectDisabled.value = true |
| 360 | } | 360 | } |
| 361 | |||
| 362 | } | 361 | } |
| 363 | }).finally(() => loading.value = false) | 362 | }).finally(() => loading.value = false) |
| 364 | } | 363 | } | ... | ... |
| ... | @@ -106,6 +106,20 @@ function getTree (refresh = false, initLocate = false) { | ... | @@ -106,6 +106,20 @@ function getTree (refresh = false, initLocate = false) { |
| 106 | } | 106 | } |
| 107 | }) | 107 | }) |
| 108 | } | 108 | } |
| 109 | function refreshTree () { | ||
| 110 | treeInfo.value.loading = true; | ||
| 111 | getMetaStandardTree().then((res:any) => { | ||
| 112 | treeInfo.value.loading = false; | ||
| 113 | if (res.code === proxy.$passCode) { | ||
| 114 | let data = res.data || [] | ||
| 115 | data.forEach(item => { | ||
| 116 | item.showEdit = true | ||
| 117 | item.level = 1 | ||
| 118 | }) | ||
| 119 | treeInfo.value.data = data | ||
| 120 | } | ||
| 121 | }) | ||
| 122 | } | ||
| 109 | 123 | ||
| 110 | function deleteTreeNode (guid) { | 124 | function deleteTreeNode (guid) { |
| 111 | deleteMetaStandard([guid]).then((res:any) => { | 125 | deleteMetaStandard([guid]).then((res:any) => { |
| ... | @@ -537,7 +551,7 @@ const viewGraph = () => { | ... | @@ -537,7 +551,7 @@ const viewGraph = () => { |
| 537 | :type="standardDialog.type" | 551 | :type="standardDialog.type" |
| 538 | :guid="standardDialog.guid" | 552 | :guid="standardDialog.guid" |
| 539 | :currentNode="standardDialog.currentNode" | 553 | :currentNode="standardDialog.currentNode" |
| 540 | @success="getTree" | 554 | @success="refreshTree" |
| 541 | /> | 555 | /> |
| 542 | <StandardFieldsDialog | 556 | <StandardFieldsDialog |
| 543 | v-model="standardFieldsDialog.visible" | 557 | v-model="standardFieldsDialog.visible" | ... | ... |
-
Please register or sign in to post a comment