|
@@ -1,16 +1,16 @@
|
|
<!--合规性分析-->
|
|
<!--合规性分析-->
|
|
<template>
|
|
<template>
|
|
<div class="ghzc basicGeographic" :class="!fold ? 'HideLeft' : ''">
|
|
<div class="ghzc basicGeographic" :class="!fold ? 'HideLeft' : ''">
|
|
- <!-- @detail="detail" @checkChange="checkChange" -->
|
|
|
|
|
|
+ <!-- @detail="getGraph" @checkChange="checkChange" -->
|
|
<EntityManage class="innerContainer leftPane" @showlist="showlist"></EntityManage>
|
|
<EntityManage class="innerContainer leftPane" @showlist="showlist"></EntityManage>
|
|
<div>
|
|
<div>
|
|
</div>
|
|
</div>
|
|
- <List class="innerContainer bottomPane" v-drag ref="list" @click="getData" @graph="detail"></List>
|
|
|
|
|
|
+ <List class="innerContainer bottomPane" v-drag ref="list" @click="getDatas" @graph="getGraph" @close="removeGeoJSON('enitylist')"></List>
|
|
<div class="sm-panel rightWrap" v-show="showInter" :class="fold ? 'HideRight' : ''">
|
|
<div class="sm-panel rightWrap" v-show="showInter" :class="fold ? 'HideRight' : ''">
|
|
<div v-loading="graloading">
|
|
<div v-loading="graloading">
|
|
<div class="sm-panel-header">
|
|
<div class="sm-panel-header">
|
|
<span>实体关系</span>
|
|
<span>实体关系</span>
|
|
- <span class="closeBtn foldBtn" :class="`el-icon-s-${fold ? '' : 'un'}fold`" @click="fold = !fold"></span>
|
|
|
|
|
|
+ <span class="closeBtn gxfoldBtn" :class="`el-icon-s-${fold ? '' : 'un'}fold`" @click="fold = !fold"></span>
|
|
<span class="closeBtn" @click="HideGraph">×</span>
|
|
<span class="closeBtn" @click="HideGraph">×</span>
|
|
</div>
|
|
</div>
|
|
<custom-form ref="formRef" :model="pageObj" :config="gxConfig">
|
|
<custom-form ref="formRef" :model="pageObj" :config="gxConfig">
|
|
@@ -135,7 +135,7 @@ export default {
|
|
},
|
|
},
|
|
created() { },
|
|
created() { },
|
|
mounted() {
|
|
mounted() {
|
|
- // this.detail({ entityid: 'MA1001NE103K10350XXXXXXXXXXXXXXX2203020000', entityname: '科尔沁北路' })//MA1001NE103K103501004XXXXXXXXXXX2203040000
|
|
|
|
|
|
+ // this.getGraph({ entityid: 'MA1001NE103K10350XXXXXXXXXXXXXXX2203020000', entityname: '科尔沁北路' })//MA1001NE103K103501004XXXXXXXXXXX2203040000
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
showlist(data) {
|
|
showlist(data) {
|
|
@@ -152,10 +152,10 @@ export default {
|
|
},
|
|
},
|
|
mouseout() { },
|
|
mouseout() { },
|
|
checkChange(obj, checked) {
|
|
checkChange(obj, checked) {
|
|
- if (checked) this.getData(obj)
|
|
|
|
|
|
+ if (checked) this.getDatas(obj)
|
|
else removeGeoJSON(`2wentity${obj.id}`)
|
|
else removeGeoJSON(`2wentity${obj.id}`)
|
|
},
|
|
},
|
|
- detail(obj) {
|
|
|
|
|
|
+ getGraph(obj) {
|
|
this.showInter = true
|
|
this.showInter = true
|
|
this.graphdata = []
|
|
this.graphdata = []
|
|
this.gralinks = []
|
|
this.gralinks = []
|
|
@@ -164,6 +164,7 @@ export default {
|
|
this.oldclick = []
|
|
this.oldclick = []
|
|
this.addOld({ name: obj.entityname, id: obj.entityid, category: 0, data: obj })
|
|
this.addOld({ name: obj.entityname, id: obj.entityid, category: 0, data: obj })
|
|
this.getRelationship(obj)
|
|
this.getRelationship(obj)
|
|
|
|
+ this.getDatas(obj,'fly')
|
|
},
|
|
},
|
|
HideGraph() {
|
|
HideGraph() {
|
|
this.showInter = false
|
|
this.showInter = false
|
|
@@ -208,20 +209,21 @@ export default {
|
|
this.pageObj = { query_data: '', query_links: '' }
|
|
this.pageObj = { query_data: '', query_links: '' }
|
|
this.$refs.graphEchart.setOptions(this.graphdata, this.gralinks, categors);
|
|
this.$refs.graphEchart.setOptions(this.graphdata, this.gralinks, categors);
|
|
},
|
|
},
|
|
- getData(obj, type) {
|
|
|
|
|
|
+ getDatas(obj, type) {
|
|
getData({ entityid: obj.id || obj.entityid }).then((res) => {
|
|
getData({ entityid: obj.id || obj.entityid }).then((res) => {
|
|
if (res.statuscode == 200) {
|
|
if (res.statuscode == 200) {
|
|
- if (type == 'infoto' || type == 'fly') {
|
|
|
|
|
|
+ // if (type == 'infoto' || type == 'fly') {
|
|
this.nowObj = res;
|
|
this.nowObj = res;
|
|
- this[type]();
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- //#facd91
|
|
|
|
- res.data.geom.forEach(item => {
|
|
|
|
- loadGeoJSON(item.siweigeomewkt, "#55A1E3", { isfly: true }, (data) => {
|
|
|
|
- data.name = `2wentity${obj.id}`;
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
|
|
+ this[type](true);
|
|
|
|
+ // }
|
|
|
|
+ if(type == 'infoto') {this.fly(true)}
|
|
|
|
+ // else
|
|
|
|
+ // //#facd91
|
|
|
|
+ // res.data.geom.forEach(item => {
|
|
|
|
+ // loadGeoJSON(item.siweigeomewkt, "#55A1E3", { isfly: true }, (data) => {
|
|
|
|
+ // data.name = `2wentity${obj.id}`;
|
|
|
|
+ // });
|
|
|
|
+ // });
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -270,16 +272,21 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- fly() {
|
|
|
|
- this.nowgeoId && removeGeoJSON(this.nowgeoId)
|
|
|
|
- this.nowgeoId = 'h' + this.nowObj.data.entityid
|
|
|
|
|
|
+ fly(islist) {
|
|
|
|
+ if (islist) {
|
|
|
|
+ removeGeoJSON('enitylist')
|
|
|
|
+ } else {
|
|
|
|
+ this.nowgeoId && removeGeoJSON(this.nowgeoId)
|
|
|
|
+ this.nowgeoId = 'h' + this.nowObj.data.entityid
|
|
|
|
+ }
|
|
this.nowObj.data.geom.forEach(item => {
|
|
this.nowObj.data.geom.forEach(item => {
|
|
loadGeoJSON(item.siweigeomewkt, "#ff0000", { isfly: true }, (data) => {
|
|
loadGeoJSON(item.siweigeomewkt, "#ff0000", { isfly: true }, (data) => {
|
|
- data.name = this.nowgeoId
|
|
|
|
|
|
+ data.name = islist?'enitylist':this.nowgeoId
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
infoto() {
|
|
infoto() {
|
|
|
|
+ this.jbxxData=[]
|
|
this.showinfo = true;
|
|
this.showinfo = true;
|
|
Object.keys(this.nowObj.data).forEach((key) => {
|
|
Object.keys(this.nowObj.data).forEach((key) => {
|
|
this.jbxxData.push({ name: key, value: this.nowObj.data[key], });
|
|
this.jbxxData.push({ name: key, value: this.nowObj.data[key], });
|
|
@@ -309,7 +316,7 @@ export default {
|
|
transition-property: right, background;
|
|
transition-property: right, background;
|
|
transition-duration: 0.5s, 1s;
|
|
transition-duration: 0.5s, 1s;
|
|
|
|
|
|
- .foldBtn {
|
|
|
|
|
|
+ .gxfoldBtn {
|
|
right: 40px;
|
|
right: 40px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -317,7 +324,7 @@ export default {
|
|
.HideRight {
|
|
.HideRight {
|
|
right: -40% !important;
|
|
right: -40% !important;
|
|
|
|
|
|
- .foldBtn {
|
|
|
|
|
|
+ .gxfoldBtn {
|
|
right: 100%;
|
|
right: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -354,8 +361,8 @@ export default {
|
|
|
|
|
|
.bottomPane {
|
|
.bottomPane {
|
|
width: calc(100% - 40px);
|
|
width: calc(100% - 40px);
|
|
- height: 600px;
|
|
|
|
- top: calc(100% - 620px);
|
|
|
|
|
|
+ height: 330px;
|
|
|
|
+ top: calc(100% - 350px);
|
|
left: 20px;
|
|
left: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|