import { getNodeFullName } from '@/utils/index.js'
//传入对象和id
this.GetSubJson(this.resourceTreeData, this.materialsInStockData.resourceId)
GetSubJson(jsonData, destID) {
for (var i = 0; i < jsonData.length; i++) {
if (jsonData[i].id == destID){
this.materialsInStockData.resourceName= getNodeFullName(jsonData[i]);//jsonData[i].name
return
}
else {
if (jsonData[i].hasOwnProperty("children")) {
this.GetSubJson(jsonData[i].children, destID);
}
}
}
},