|
@@ -125,12 +125,13 @@ export default {
|
|
|
const treedata = res.data;
|
|
|
const processedData = this.processTreeData(treedata);
|
|
|
this.parentOpt = processedData;
|
|
|
-
|
|
|
- // Automatically handle the first layer of children where codeType === "field"
|
|
|
- const firstLayer = this.findFirstFieldLayer(processedData);
|
|
|
- if (firstLayer) {
|
|
|
- this.parentChange(firstLayer);
|
|
|
- }
|
|
|
+ this.defaultdata = res.data[0];
|
|
|
+ this.parentChange( this.defaultdata);
|
|
|
+ // const firstLayer = this.findFirstFieldLayer(processedData);
|
|
|
+ // if (firstLayer) {
|
|
|
+ // this.parentChange( this.defaultdata);
|
|
|
+ // }
|
|
|
+
|
|
|
},
|
|
|
//过滤数据
|
|
|
processTreeData(treeData) {
|