|
@@ -190,10 +190,10 @@ import api from '@api/icss.js';
|
|
for(let i = 0; i <nodeList.length; i++) {
|
|
for(let i = 0; i <nodeList.length; i++) {
|
|
let newChild;
|
|
let newChild;
|
|
if(type == '0') { //添加的时候保存所有的id列表
|
|
if(type == '0') { //添加的时候保存所有的id列表
|
|
- newChild = {conceptId: nodeList[i].conceptId, relationId: 17,nodeList:[]}
|
|
|
|
|
|
+ newChild = {conceptId: nodeList[i].conceptId, relationId: 17,nodeList:[],sonRelationId: 17}
|
|
} else if(type == '1') { //修改的时候添加层级
|
|
} else if(type == '1') { //修改的时候添加层级
|
|
const item = JSON.parse(JSON.stringify(nodeList[i]))
|
|
const item = JSON.parse(JSON.stringify(nodeList[i]))
|
|
- newChild = Object.assign(item, {level: level, nodeList: []})
|
|
|
|
|
|
+ newChild = Object.assign(item, {level: level, nodeList: [],sonRelationId: 17})
|
|
} else if(type == '2') { //移除节点的时候同时移除节点(搜索时排除的id列表)
|
|
} else if(type == '2') { //移除节点的时候同时移除节点(搜索时排除的id列表)
|
|
newChild = nodeList[i].conceptId
|
|
newChild = nodeList[i].conceptId
|
|
}
|
|
}
|
|
@@ -242,7 +242,7 @@ import api from '@api/icss.js';
|
|
this.list = JSON.parse(JSON.stringify(this.list))
|
|
this.list = JSON.parse(JSON.stringify(this.list))
|
|
}else {
|
|
}else {
|
|
const data = this.operaList
|
|
const data = this.operaList
|
|
- const newChild = Object.assign({}, item, {nodeList: [], level: data.level+1, conceptId: item.conceptId, conceptNameType: item.conceptNameType, relationId: 17});
|
|
|
|
|
|
+ const newChild = Object.assign({}, item, {nodeList: [], level: data.level+1, conceptId: item.conceptId, conceptNameType: item.conceptNameType, relationId: 17,sonRelationId: 17});
|
|
// const newChild = { id: id++, label: 'nodeList', level: data.level+1, children: [] };
|
|
// const newChild = { id: id++, label: 'nodeList', level: data.level+1, children: [] };
|
|
if (!data.nodeList) {
|
|
if (!data.nodeList) {
|
|
this.$set(data, 'nodeList', []);
|
|
this.$set(data, 'nodeList', []);
|