带出标准类型
Showing
1 changed file
with
5 additions
and
1 deletions
| ... | @@ -1132,7 +1132,9 @@ const loadDrawer = async () => { | ... | @@ -1132,7 +1132,9 @@ const loadDrawer = async () => { |
| 1132 | formTable.value.tableInfo.fields = fields | 1132 | formTable.value.tableInfo.fields = fields |
| 1133 | let currentObj: any = treeInfo.value.currentObj; | 1133 | let currentObj: any = treeInfo.value.currentObj; |
| 1134 | formItems.value.forEach(item => { | 1134 | formItems.value.forEach(item => { |
| 1135 | if (item.field == 'standard') { | 1135 | if (item.field == 'standardTypeCode') { |
| 1136 | item.default = currentObj.rootId || currentObj.value; | ||
| 1137 | } else if (item.field == 'standard') { | ||
| 1136 | item.default = currentObj.standard; | 1138 | item.default = currentObj.standard; |
| 1137 | } else if (item.field == "standardName") { | 1139 | } else if (item.field == "standardName") { |
| 1138 | item.default = currentObj.name; | 1140 | item.default = currentObj.name; |
| ... | @@ -1481,11 +1483,13 @@ function initTree () { | ... | @@ -1481,11 +1483,13 @@ function initTree () { |
| 1481 | subItem.treeLevel = 2 | 1483 | subItem.treeLevel = 2 |
| 1482 | subItem.label = subItem.name | 1484 | subItem.label = subItem.name |
| 1483 | subItem.value = subItem.name | 1485 | subItem.value = subItem.name |
| 1486 | subItem.rootId = item.guid; | ||
| 1484 | if (subItem.children) { | 1487 | if (subItem.children) { |
| 1485 | subItem.children.forEach(threeItem => { | 1488 | subItem.children.forEach(threeItem => { |
| 1486 | threeItem.label = threeItem.name | 1489 | threeItem.label = threeItem.name |
| 1487 | threeItem.value = threeItem.guid | 1490 | threeItem.value = threeItem.guid |
| 1488 | threeItem.isLeaf = threeItem.isCode | 1491 | threeItem.isLeaf = threeItem.isCode |
| 1492 | threeItem.rootId = item.guid; | ||
| 1489 | }) | 1493 | }) |
| 1490 | } | 1494 | } |
| 1491 | }) | 1495 | }) | ... | ... |
-
Please register or sign in to post a comment