|
@ -471,7 +471,7 @@ function getTreeselect() { |
|
|
devicemodelOptions.value = []; |
|
|
devicemodelOptions.value = []; |
|
|
const data = { id: 0, modelName: '顶级节点', children: [] }; |
|
|
const data = { id: 0, modelName: '顶级节点', children: [] }; |
|
|
const parentData = response.data.filter(item => { |
|
|
const parentData = response.data.filter(item => { |
|
|
return (item.modelTypeId == '1'); |
|
|
return (item.modelTypeId == 'model_group'); |
|
|
}); |
|
|
}); |
|
|
data.children = proxy.handleTree(parentData, "id", "pid"); |
|
|
data.children = proxy.handleTree(parentData, "id", "pid"); |
|
|
devicemodelOptions.value.push(data); |
|
|
devicemodelOptions.value.push(data); |
|
|