Browse Source

设备模型问题修复

develop
ljlong_2630 10 months ago
parent
commit
e4c8e7e440
  1. 2
      src/views/model/devicemodel/editModel.vue

2
src/views/model/devicemodel/editModel.vue

@ -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);

Loading…
Cancel
Save