|
@@ -173,7 +173,16 @@ export default {
|
|
"level": 1,
|
|
"level": 1,
|
|
"sonRelationId": 17,
|
|
"sonRelationId": 17,
|
|
"isExpanded": false
|
|
"isExpanded": false
|
|
- }],
|
|
|
|
|
|
+ }, //{
|
|
|
|
+ // "conceptId": 516,
|
|
|
|
+ // "conceptName": "疾病相关经典病例",
|
|
|
|
+ // "nodeList": [],
|
|
|
|
+ // "libType": [411],
|
|
|
|
+ // "level": 1,
|
|
|
|
+ // "sonRelationId": 17,
|
|
|
|
+ // "isExpanded": false
|
|
|
|
+ //}
|
|
|
|
+ ],
|
|
"level": 0,
|
|
"level": 0,
|
|
"isExpanded": false
|
|
"isExpanded": false
|
|
},
|
|
},
|
|
@@ -216,6 +225,7 @@ export default {
|
|
let item = JSON.parse(tmp)
|
|
let item = JSON.parse(tmp)
|
|
item.level = 0
|
|
item.level = 0
|
|
item.isExpanded = false
|
|
item.isExpanded = false
|
|
|
|
+ console.log(item.nodeList);
|
|
item.nodeList = this.IteraNodeList(item.nodeList, [], 1)
|
|
item.nodeList = this.IteraNodeList(item.nodeList, [], 1)
|
|
let arr = []
|
|
let arr = []
|
|
arr[0] = item
|
|
arr[0] = item
|
|
@@ -279,6 +289,7 @@ export default {
|
|
IteraNodeList(nodeList, nodeListResult, type, level = 1) {
|
|
IteraNodeList(nodeList, nodeListResult, type, level = 1) {
|
|
this.level= level + 1
|
|
this.level= level + 1
|
|
for(let i = 0; i <nodeList.length; i++) {
|
|
for(let i = 0; i <nodeList.length; i++) {
|
|
|
|
+ //console.log(nodeList[i]);
|
|
let newChild;
|
|
let newChild;
|
|
if(type == '0') { //添加的时候保存所有的id列表
|
|
if(type == '0') { //添加的时候保存所有的id列表
|
|
newChild = {conceptId: nodeList[i].conceptId,libType:nodeList[i].libType, relationId: 17,nodeList:[],sonRelationId: 17, isExpanded:false}
|
|
newChild = {conceptId: nodeList[i].conceptId,libType:nodeList[i].libType, relationId: 17,nodeList:[],sonRelationId: 17, isExpanded:false}
|