d1c52391 by lihua

带出标准类型

1 parent aa10e7b8
......@@ -1132,7 +1132,9 @@ const loadDrawer = async () => {
formTable.value.tableInfo.fields = fields
let currentObj: any = treeInfo.value.currentObj;
formItems.value.forEach(item => {
if (item.field == 'standard') {
if (item.field == 'standardTypeCode') {
item.default = currentObj.rootId || currentObj.value;
} else if (item.field == 'standard') {
item.default = currentObj.standard;
} else if (item.field == "standardName") {
item.default = currentObj.name;
......@@ -1481,11 +1483,13 @@ function initTree () {
subItem.treeLevel = 2
subItem.label = subItem.name
subItem.value = subItem.name
subItem.rootId = item.guid;
if (subItem.children) {
subItem.children.forEach(threeItem => {
threeItem.label = threeItem.name
threeItem.value = threeItem.guid
threeItem.isLeaf = threeItem.isCode
threeItem.rootId = item.guid;
})
}
})
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!