|
@@ -42,7 +42,7 @@
|
|
|
</a-button>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
- <a-select
|
|
|
+ <!-- <a-select
|
|
|
showSearch
|
|
|
placeholder="选择一个关系类"
|
|
|
style="width:200px;"
|
|
@@ -55,19 +55,19 @@
|
|
|
>
|
|
|
<a-popover placement="left">
|
|
|
<template slot="content">
|
|
|
- <div>起点:{{item.startEntCls&&item.startEntCls.entClsName}}</div>
|
|
|
+ <div>起点:{{item.startName}}</div>
|
|
|
<div>关系类:{{item.relClsName}}</div>
|
|
|
- <div>终点:{{item.endEntCls&&item.endEntCls.entClsName}}</div>
|
|
|
+ <div>终点:{{item.endName}}</div>
|
|
|
<div v-for="(p,i) in attrList" :key="i">属性:{{p.attrClsName}}</div>
|
|
|
</template>
|
|
|
<span
|
|
|
@mouseenter="enter(item)"
|
|
|
@mouseleave="leave()"
|
|
|
>
|
|
|
- {{item.startEntCls&&item.startEntCls.entClsName}}->{{item.relClsName}}->{{item.endEntCls&&item.endEntCls.entClsName}}</span>
|
|
|
+ {{item.startName}}->{{item.relClsName}}->{{item.endName}}</span>
|
|
|
</a-popover>
|
|
|
</a-select-option>
|
|
|
- </a-select>
|
|
|
+ </a-select> -->
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</div>
|
|
@@ -180,7 +180,7 @@ export default {
|
|
|
* @param value
|
|
|
*/
|
|
|
handleChange(name) {
|
|
|
- getAllRelationClassListByName(name).then(data => {
|
|
|
+ getAllRelationClassListByName(name,false).then(data => {
|
|
|
//参数为空,获取所有的列表
|
|
|
this.filterRelationList = data.records;
|
|
|
});
|
|
@@ -190,11 +190,13 @@ export default {
|
|
|
},
|
|
|
getRelationCls() {
|
|
|
this.$open('getRelationClsListModal', {}, function (data) {
|
|
|
+ debugger;
|
|
|
if (data) {
|
|
|
+ this.relClsName = data
|
|
|
this.selectedRelCls = data
|
|
|
- getAllRelationClassListByName(data).then(data => {
|
|
|
+ getAllRelationClassListByName(data,false).then(data => {
|
|
|
//参数为空,获取所有的列表
|
|
|
- this.filterRelationList = data.records;
|
|
|
+ this.filterRelationList = data.rows;
|
|
|
});
|
|
|
}
|
|
|
})
|
|
@@ -210,6 +212,7 @@ export default {
|
|
|
return result;
|
|
|
},
|
|
|
async handleOk(e) {
|
|
|
+ debugger;
|
|
|
let result = await this.getFormData(); // this是当前组件的this, 'form'此表单的名称,一定要是字符串
|
|
|
const endID = this.EntityClassNode && this.EntityClassNode.entClsID;
|
|
|
const relClsID = this.selectRelationValue;
|