|
@@ -18,15 +18,15 @@
|
|
<li
|
|
<li
|
|
v-for="item in conceptList"
|
|
v-for="item in conceptList"
|
|
class="conceptItem ellipsis"
|
|
class="conceptItem ellipsis"
|
|
- :title="item.nameAndType"
|
|
|
|
|
|
+ :title="item.conceptNameType"
|
|
@click="selectConcept(item)"
|
|
@click="selectConcept(item)"
|
|
- :key="item.id">
|
|
|
|
- {{item.nameAndType}}
|
|
|
|
|
|
+ :key="item.conceptId">
|
|
|
|
+ {{item.conceptNameType}}
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
- <el-tree
|
|
|
|
|
|
+ <div class="tree">
|
|
|
|
+ <el-tree
|
|
:data="list"
|
|
:data="list"
|
|
show-checkbox
|
|
show-checkbox
|
|
:props="defaultProps"
|
|
:props="defaultProps"
|
|
@@ -54,7 +54,9 @@
|
|
</el-button>
|
|
</el-button>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
- </el-tree>
|
|
|
|
|
|
+ </el-tree>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
<div class="btn">
|
|
<div class="btn">
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
@@ -208,12 +210,12 @@ import api from '@api/icss.js';
|
|
|
|
|
|
const param = {
|
|
const param = {
|
|
"name": this.conceptText,
|
|
"name": this.conceptText,
|
|
- "isMedical": 1,
|
|
|
|
- "isConcept": 1,
|
|
|
|
"excludedConceptIds": this.excludedConceptIds,
|
|
"excludedConceptIds": this.excludedConceptIds,
|
|
|
|
+ "relationId": 17,
|
|
|
|
+ "relationPosition": 1,
|
|
}
|
|
}
|
|
|
|
|
|
- api.getAllConcept(param).then((res) => {
|
|
|
|
|
|
+ api.getConceptInfoAssay(param).then((res) => {
|
|
const { data } = res
|
|
const { data } = res
|
|
if(data.code == '0') {
|
|
if(data.code == '0') {
|
|
this.conceptList = data.data
|
|
this.conceptList = data.data
|
|
@@ -222,11 +224,11 @@ import api from '@api/icss.js';
|
|
},
|
|
},
|
|
selectConcept(item) {
|
|
selectConcept(item) {
|
|
if(this.addLevel == 0) {
|
|
if(this.addLevel == 0) {
|
|
- this.list.push(Object.assign({}, item, {nodeList: [], level: 0, conceptId: item.id, conceptNameType: item.nameAndType, sonRelationId: 17}))
|
|
|
|
|
|
+ this.list.push(Object.assign({}, item, {nodeList: [], level: 0, conceptId: item.conceptId, conceptNameType: item.conceptNameType, sonRelationId: 17}))
|
|
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.id, conceptNameType: item.nameAndType, relationId: 17});
|
|
|
|
|
|
+ const newChild = Object.assign({}, item, {nodeList: [], level: data.level+1, conceptId: item.conceptId, conceptNameType: item.conceptNameType, relationId: 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', []);
|
|
@@ -279,6 +281,9 @@ import api from '@api/icss.js';
|
|
.addMedicalMultRelationWrapper {
|
|
.addMedicalMultRelationWrapper {
|
|
height: calc(100% - 70px);
|
|
height: calc(100% - 70px);
|
|
}
|
|
}
|
|
|
|
+.tree {
|
|
|
|
+ margin-bottom: 230px;
|
|
|
|
+}
|
|
.contents {
|
|
.contents {
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|