echarts关系图 拖动节点固定位置 this.echartInstance.on(‘mouseup’,params=>{ if(params.dataType==‘node’){ //注意,fiexed=true(固定位置),不能在初始化中使用,会报错,所以nodes数据不要缓存 this.option.seried[0].data[params.dataIndex].fixed=true; this.echartInstance.setOption(this.option) } })