提交 f585fd1a authored 作者: quanlili's avatar quanlili

修改默认图

上级 0b239307
......@@ -77,6 +77,20 @@ export function importOrganizationAPI(data) { //导入机构实体
data
})
}
export function importTimerAPI(data) { //导入时间实体
return request({
url: `${requestPath.resource}/participle/save/time`,
method: 'post',
data
})
}
export function addEntityAPI(data) { //新增实体
return request({
url: `${requestPath.resource}/participle/save/entity`,
method: 'post',
data
})
}
export function backDetialAPI(params) { //回显实体
return request({
url: `${requestPath.resource}/participle/entity`,
......
......@@ -260,7 +260,10 @@ let relateOptaion={
}
},
tooltip: {
//formatter: '{b}'
// formatter: function(params,a,b,c){
// //return params.data.target+">"+params.data.source+":"+params.data.value
// console.log(params.data,'777777')
// }
},
toolbox: {
show: true,
......@@ -344,11 +347,12 @@ let relateOptaion={
],
roam: true,
nodeScaleRatio: 0, //鼠标漫游缩放时节点的相应缩放比例,当设为0时节点不随着鼠标的缩放而缩放
focusNodeAdjacency: false, //是否在鼠标移到节点上的时候突出显示节点以及节点的边和邻接节点。
focusNodeAdjacency: true, //是否在鼠标移到节点上的时候突出显示节点以及节点的边和邻接节点。
lineStyle: {
normal: {
// text: relarr[i],
color: 'source'
//color: 'source'
color:'#DCDFE6'
}
},
label: {
......@@ -361,10 +365,10 @@ let relateOptaion={
fontSize: "12" //字体大小
},
formatter: function(params) {
return params.data.showName //此处为label转换 并转换颜色
return params.data.showName //此处为label转换 并转换颜色
},
fontSize: 18,
fontStyle: '600',
//fontStyle: '600',
}
},
edgeLabel: {
......@@ -642,13 +646,19 @@ export default {
name: '',
type: 'wordCloud',
shape: 'circle',
size: ['80%', '80%'],
textRotation: [0, 45, 90, -45],
textPadding: 0,
autoSize: {
enable: true,
minSize: 14
},
// size: ['80%', '80%'],
// sizeRange:[12,50],
// rotationRange:[0,0],
// gridSize:[12,50],
// textRotation: [0, 45, 90, -45],
// textPadding: 0,
// autoSize: {
// enable: true,
// minSize: 14
// },
rotationRange: [0,0],
sizeRange: [12, 50],
gridSize: 20,
textStyle: {
normal: {
fontFamily: 'sans-serif',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论