|
|
@@ -9,7 +9,7 @@
|
|
|
<div class="sm-panel rightWrap" v-show="showInter" :class="fold ? 'HideRight' : ''">
|
|
|
<div v-loading="graloading">
|
|
|
<div class="sm-panel-header">
|
|
|
- <span>实体关系</span>
|
|
|
+ <span>{{nowObj.entityname}}实体关系</span>
|
|
|
<span class="closeBtn gxfoldBtn" :class="`el-icon-s-${fold ? '' : 'un'}fold`" @click="fold = !fold"></span>
|
|
|
<span class="closeBtn" @click="HideGraph">×</span>
|
|
|
</div>
|
|
|
@@ -140,6 +140,7 @@ export default {
|
|
|
methods: {
|
|
|
showlist(data) {
|
|
|
this.$refs.list.show(data)
|
|
|
+ this.showInter = false
|
|
|
},
|
|
|
click(params) {
|
|
|
if (this.oldclick.length && this.oldclick[this.oldclick.length - 1].id == params.data.id) return
|
|
|
@@ -148,7 +149,7 @@ export default {
|
|
|
this.getRelationship(params.data)
|
|
|
},
|
|
|
rightClick(params) {
|
|
|
- this.nowObj = params.data
|
|
|
+ this.nowObj = params.data.data
|
|
|
},
|
|
|
mouseout() { },
|
|
|
checkChange(obj, checked) {
|
|
|
@@ -213,7 +214,7 @@ export default {
|
|
|
getData({ entityid: obj.id || obj.entityid }).then((res) => {
|
|
|
if (res.statuscode == 200) {
|
|
|
// if (type == 'infoto' || type == 'fly') {
|
|
|
- this.nowObj = res;
|
|
|
+ this.nowObj = res.data;
|
|
|
this[type](isl);
|
|
|
// }
|
|
|
if(type == 'infoto') {this.fly(true)}
|
|
|
@@ -275,11 +276,12 @@ export default {
|
|
|
fly(islist) {
|
|
|
if (islist) {
|
|
|
removeGeoJSON('enitylist')
|
|
|
+ this.nowgeoId && removeGeoJSON(this.nowgeoId)
|
|
|
} else {
|
|
|
this.nowgeoId && removeGeoJSON(this.nowgeoId)
|
|
|
- this.nowgeoId = 'h' + this.nowObj.data.entityid
|
|
|
+ this.nowgeoId = 'h' + this.nowObj.entityid
|
|
|
}
|
|
|
- this.nowObj.data.geom.forEach(item => {
|
|
|
+ this.nowObj.geom.forEach(item => {
|
|
|
loadGeoJSON(item.siweigeomewkt, islist?"#ff0000":'#2DBDFF', { isfly: true }, (data) => {
|
|
|
data.name = islist?'enitylist':this.nowgeoId
|
|
|
});
|
|
|
@@ -288,8 +290,8 @@ export default {
|
|
|
infoto() {
|
|
|
this.jbxxData=[]
|
|
|
this.showinfo = true;
|
|
|
- Object.keys(this.nowObj.data).forEach((key) => {
|
|
|
- this.jbxxData.push({ name: key, value: this.nowObj.data[key], });
|
|
|
+ Object.keys(this.nowObj).forEach((key) => {
|
|
|
+ this.jbxxData.push({ name: key, value: this.nowObj[key], });
|
|
|
});
|
|
|
}
|
|
|
},
|