Commit 2883197f by liyuhang19990520

更改可视化显示配置

parent 217602b1
......@@ -123,7 +123,7 @@ export default {
label: "中心布局",
layoutName: "center",
layoutClassName: "seeks-layout-center",
distance_coefficient: "0.9",
distance_coefficient: "0.5",
},
],
defaultJunctionPoint: "border",
......@@ -288,7 +288,7 @@ export default {
}
});
seeksRGGraph.graphSetting.layouter.stop();
}, 10);
}, 3000);
}
);
} else {
......@@ -341,14 +341,8 @@ export default {
* @return {*}
*/
createNode(data, boo) {
//先给根节点上色,在管后面的节点
data.forEach((item) => {
if (
item.children &&
Array.isArray(item.children) &&
item.children.length > 0
) {
this.createNode(item.children);
}
if (!this.nodeArr.find((i) => i.id == item.name)) {
let base64 = "data:image/jpg;base64," + item.img;
if (!item.img) base64 = this.selectIcon(item.type, true);
......@@ -367,6 +361,15 @@ export default {
});
}
});
data.forEach((item) => {
if (
item.children &&
Array.isArray(item.children) &&
item.children.length > 0
) {
this.createNode(item.children);
}
});
},
/**
* @description: 处理link
......@@ -384,13 +387,15 @@ export default {
this.createLink(item.children, item.name);
}
if (parentId) {
this.linkArr.push({
from: parentId,
to: item.name,
text: item.value || "",
color: "#1789DB",
fontColor: "#000",
});
if (parentId !== item.name) {
this.linkArr.push({
from: parentId,
to: item.name,
text: item.value || "",
color: "#1789DB",
fontColor: "#000",
});
}
}
});
},
......
/*
* @Author: your name
* @Date: 2021-06-20 11:48:40
* @LastEditTime: 2021-08-27 12:18:30
* @LastEditTime: 2021-08-30 09:12:50
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \control_platform\src\settings.js
......@@ -22,5 +22,5 @@ module.exports = {
// 湖南可视化
BaseURL3: "/hnapi",
// 打包方式阿里云(aly) 和 公安网(gaw)
packType: 'gaw'
packType: 'aly'
}
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