Commit 7770027d by gao_yingdong

共同联系人可视化跳脑图

parent 5f509ba7
...@@ -92,12 +92,8 @@ ...@@ -92,12 +92,8 @@
<p>高危</p> <p>高危</p>
</el-button> </el-button>
</div> </div>
<div class="leftToolbar2" ref="leftToolbar" v-if="showNt"> <div class="leftToolbar3" ref="leftToolbar" v-if="showNt">
<el-button <el-button class="toolBarItem" @click.native="toNt" title="进入脑图">
class="toolBarItem"
@click.native="toDanger"
title="登记为高危人员"
>
<i class="el-icon-picture-outline-round"></i> <i class="el-icon-picture-outline-round"></i>
<p>脑图</p> <p>脑图</p>
</el-button> </el-button>
...@@ -158,6 +154,7 @@ export default { ...@@ -158,6 +154,7 @@ export default {
}, },
data() { data() {
return { return {
objSfhm: {},
g_loading: true, g_loading: true,
demoname: "---", demoname: "---",
activeTabName: "case1", activeTabName: "case1",
...@@ -253,6 +250,7 @@ export default { ...@@ -253,6 +250,7 @@ export default {
//默认配置 //默认配置
layoutsProps(seeksRGGraph) { layoutsProps(seeksRGGraph) {
let _this = this; let _this = this;
debugger;
this.$nextTick(() => { this.$nextTick(() => {
if (_this.nodeClickBoo == true) { if (_this.nodeClickBoo == true) {
let center = _this.graphOptions.layouts[1]; let center = _this.graphOptions.layouts[1];
...@@ -276,6 +274,7 @@ export default { ...@@ -276,6 +274,7 @@ export default {
* @return {*} * @return {*}
*/ */
async setGraphData() { async setGraphData() {
debugger;
var _this = this; var _this = this;
let photoData; //跟节点信息对象 let photoData; //跟节点信息对象
let rootNode = null; //创建根节点对象 let rootNode = null; //创建根节点对象
...@@ -460,11 +459,14 @@ export default { ...@@ -460,11 +459,14 @@ export default {
}); });
} }
}, 0); }, 0);
} else if (this.type == "argxfx" || this.$route.query.type == 'argxfx') { } else if (
this.type == "argxfx" ||
this.$route.query.type == "argxfx"
) {
this.showGang = true; this.showGang = true;
this.showDanger = true; this.showDanger = true;
} else if (this.$router.query.type == 'tonat') this.showNt = true;
this.showNt = true }
} }
); );
} else { } else {
...@@ -516,6 +518,41 @@ export default { ...@@ -516,6 +518,41 @@ export default {
query: { asjbh: this.nodedata.name }, query: { asjbh: this.nodedata.name },
}); });
}, },
toNt() {
debugger
if ( this.objSfhm.name) {
var userInfo = JSON.parse(sessionStorage.getItem("userInfo"));
var idcard = userInfo.identitycard;
var params = {
type: "KyRy",
kybh: this.objSfhm.name,
userId: idcard,
// username: userInfo.userName,
// trueName: userInfo.userName,
// identitycard: userInfo.identitycard,
// unitcode: userInfo.unitcode,
// unitname: userInfo.unitname,
};
this.toDetail(`${this.$baseUrl.alyIP4}/naotuBox`, params);
} else {
this.$message.error('请选择关系人!')
}
},
toDetail(url, PARAMS) {
var temp_form = document.createElement("form");
temp_form.action = url;
temp_form.target = "_blank";
temp_form.method = "post";
temp_form.style.display = "none";
for (var x in PARAMS) {
var opt = document.createElement("textarea");
opt.name = x;
opt.value = PARAMS[x];
temp_form.appendChild(opt);
}
document.body.appendChild(temp_form);
temp_form.submit();
},
/** /**
* @description: 判断高亮 * @description: 判断高亮
* @param {*} * @param {*}
...@@ -704,6 +741,7 @@ export default { ...@@ -704,6 +741,7 @@ export default {
* @return {*} * @return {*}
*/ */
getParams(node, paramsObj) { getParams(node, paramsObj) {
this.objSfhm = node.data;
let obj = new Object(); let obj = new Object();
if (paramsObj) { if (paramsObj) {
for (let key in paramsObj) { for (let key in paramsObj) {
...@@ -722,6 +760,7 @@ export default { ...@@ -722,6 +760,7 @@ export default {
* @return {*} * @return {*}
*/ */
unfoldNode(node) { unfoldNode(node) {
debugger;
let str = this.unfoldXhrStr || this.childrenXhrStr; let str = this.unfoldXhrStr || this.childrenXhrStr;
let obj = this.getParams(node, this.unfoldParams); let obj = this.getParams(node, this.unfoldParams);
//如果点击的是根节点则用初始化接口展开 //如果点击的是根节点则用初始化接口展开
...@@ -1064,4 +1103,51 @@ $marginTop: 308px; ...@@ -1064,4 +1103,51 @@ $marginTop: 308px;
} }
} }
} }
.leftToolbar3 {
cursor: pointer;
width: 42px;
background-color: #fff;
position: absolute;
right: 6px;
top: $marginTop + 458px;
z-index: 99;
border-top: none;
border: #bbbbbb solid 1px;
> .el-button {
padding: 0;
width: 100%;
height: 42px;
border: none;
border-radius: 0;
display: flex;
flex-flow: column;
align-items: center;
justify-content: space-around;
/deep/ {
.el-icon-loading {
position: absolute;
top: 9px;
}
}
i {
color: #999999;
font-size: 18px;
margin-top: 4px;
margin-bottom: 4px;
}
p {
font-size: 12px;
color: #000;
}
&:hover {
background-color: #2e4e8f;
i {
color: #fff;
}
p {
color: #fff !important;
}
}
}
}
</style> </style>
...@@ -175,14 +175,14 @@ export default { ...@@ -175,14 +175,14 @@ export default {
}`; }`;
window.open(path, "_blank"); window.open(path, "_blank");
} else if (item.id == "brainDzajSP") { } else if (item.id == "brainDzajSP") {
let obj = JSON.parse(sessionStorage.getItem("userInfo")); // let obj = JSON.parse(sessionStorage.getItem("userInfo"));
let account = obj.account; // let account = obj.account;
let exStr = Base64.encode(account); // let exStr = Base64.encode(account);
let path = `${this.$baseUrl.alyIP7}/toFzSpJsp?cxrJh=${exStr}`; // let path = `${this.$baseUrl.alyIP7}/toFzSpJsp?cxrJh=${exStr}`;
window.open(path, "_blank"); // window.open(path, "_blank");
// this.$router.pushToTab({ this.$router.pushToTab({
// path: "/queryJz", path: "/queryJz",
// }); });
} else if ( } else if (
item.id == "zcgafx" || item.id == "zcgafx" ||
item.id == "zcajfl" || item.id == "zcajfl" ||
......
...@@ -576,7 +576,7 @@ export default { ...@@ -576,7 +576,7 @@ export default {
name: data.row.id, name: data.row.id,
children: true, children: true,
}, },
nodeClickBoo: false, nodeClickBoo: true,
}; };
sessionStorage.setItem("key", JSON.stringify(obj)); sessionStorage.setItem("key", JSON.stringify(obj));
this.$router.pushToTab({ this.$router.pushToTab({
......
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