bug:国内标准法规,编辑页面,应去掉被引用标准字段
This commit is contained in:
@@ -218,6 +218,20 @@
|
||||
this.isShowSelect = !this.isShowSelect;
|
||||
}
|
||||
},
|
||||
// 递归
|
||||
getTreeData(data) {
|
||||
// 循环遍历json数据
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
if (data[i].children.length < 1) {
|
||||
// children若为空数组,则将children设为undefined
|
||||
delete data[i].children
|
||||
} else {
|
||||
// children若不为空数组,则继续 递归调用 本方法
|
||||
this.getTreeData(data[i].children)
|
||||
}
|
||||
}
|
||||
return data
|
||||
},
|
||||
// 节点选中状态发生变化时的回调
|
||||
handleCheckChange () {
|
||||
var checkedKeys = this.$refs.tree.getCheckedKeys(); // 所有被选中的节点的 key 所组成的数组数据
|
||||
|
||||
Reference in New Issue
Block a user