Commit 3289dafb by lp784568205

修改组件代码,新增一些关系图页面

parent bc99d9da
......@@ -1022,7 +1022,7 @@ export default {
}
post(this.propCxUrl, formDatas).then((response) => {
if (response.code == 200) {
if (self.pageBs != "ztsjfxtj") {
if (self.pageBs == "bshcb") {
response.data.data.forEach((item) => {
item.children = [];
item.xszmc = `${item.cbajAjmc}`;
......@@ -1040,7 +1040,8 @@ export default {
self.tPage = Math.ceil(
response.data.iTotalRecords / self.page_size
);
} else {
}
if(self.pageBs == "ztsjfxtj"){
if (response.data.rows.length == 0) {
this.$message.error("暂无数据显示");
}
......@@ -1140,11 +1141,9 @@ export default {
handler(val) {
if (val == 0 && this.pageBs == "dnabzcbxs") {
this.propdefaultFormThead = [...this.cxDefaultFormThead];
this.propCxUrl = this.cxUrl;
this.doQuery("yes");
} else if (val == 1 && this.pageBs == "dnabzcbxs") {
this.propdefaultFormThead = [...this.cxDefaultFormTheads];
this.propCxUrl = this.childrenUrl;
this.doQuery("yes");
}
},
......
......@@ -80,4 +80,12 @@ export default [{
},
component: () => import("@/views/relationGraph/ceshi.vue")
},
{
path: "/ceshi2",
name: "ceshi2",
meta: {
title: '关系图'
},
component: () => import("@/views/relationGraph/ceshi2.vue")
},
];
\ No newline at end of file
<!--
* @Author: your name
* @Date: 2021-06-22 17:44:35
* @LastEditTime: 2021-11-29 13:30:29
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\echarts\index.vue
-->
<template>
<div id="echarts">
<RelationalGraph
:childrenXhrStr="childrenXhrStr"
:photoXhrObject="photoXhrObject"
:params="params"
:nodedata="nodedata"
:nodeClickBoo="nodeClickBoo"
:unfoldXhrStr="unfoldXhrStr"
:unfoldParams="unfoldParams"
:highLightArr="highLightArr"
:type="type"
@contextmenu="contextmenu"
/>
</div>
</template>
<script>
import GraphEcharts from "@/components/ksh/MoreDataGraphEchartsCopy.vue";
import RelationalGraph from "@/components/ksh/RelationalGraph.vue";
//base64加密方法
// import base from "@/utils/base64";
export default {
components: {
GraphEcharts,
RelationalGraph,
},
created() {
this.key = this.$route.query.key;
if (localStorage.getItem(this.key)) {
sessionStorage.setItem(this.key, localStorage.getItem(this.key));
}
localStorage.removeItem(this.key);
let routeData = JSON.parse(sessionStorage.getItem(this.key));
this.childrenXhrStr = routeData?.childrenXhrStr;
this.nodeClickBoo = routeData?.nodeClickBoo;
this.nodedata = routeData?.nodedata;
this.params = routeData?.params;
this.type = routeData?.type;
this.photoXhrObject = routeData?.photoXhrObject;
this.unfoldXhrStr = routeData?.unfoldXhrStr;
this.unfoldParams = routeData?.unfoldParams;
this.highLightArr = routeData?.highLightArr;
// console.log(this.highLightArr)
this.title = this.$route.query.title;
},
data() {
return {
data: [],
childrenData: [],
params: "",
nodedata: "",
childrenXhrStr: "",
nodeClickBoo: "",
key: "",
unfoldXhrStr: "",
unfoldParams: "",
highLightArr: [],
type: "",
};
},
methods: {
contextmenu(node) {
let _this = this;
},
filterCode(val) {
switch (val) {
case "phone":
return "001";
case "car":
return "005";
case "qq":
return "002";
case "wechat":
return "003";
case "imsi":
return "006";
case "imei":
return "007";
}
},
},
mounted() {
document.title = this.title;
},
};
</script>
<style scoped lang="scss">
#echarts{
width: 100%;
height: 100vh;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment