update style

This commit is contained in:
tangjiang 2019-12-19 11:32:28 +08:00
parent 7e814a1b9d
commit d32e74b8d9
3 changed files with 13 additions and 11 deletions

View File

@ -168,7 +168,7 @@
.left_echart{ .left_echart{
position: fixed !important; position: fixed !important;
height: 60%; height: 60%;
left: 0; left: -100%;
top: 0; top: 0;
width: 400px; width: 400px;
z-index: 50; z-index: 50;

View File

@ -659,10 +659,12 @@ myChart.setOption(option);
myChart.on('brushselected', renderBrushed); myChart.on('brushselected', renderBrushed);
// myChart.on('focusnodeadjacency', renderFocusNodeJacency); // myChart.on('focusnodeadjacency', renderFocusNodeJacency);
myChart.on('click', function (params) { myChart.on('click', function (params) {
// renderFocusNodeJacency(params); $('.fixed-left').css({left: 0}).addClass('collpased');
// renderBrushed(); // $('.screen-btn').css({left: '360px'});
// renderBrushed(params); if (!$('.fixed-left').hasClass('active')) {
console.log(params); $('.screen-btn').css({left: '360px'});
}
$('.collpase-icon').addClass('icon-shouqi').removeClass('icon-zhankai');
const {seriesId, seriesIndex, seriesName, dataIndex, data, value } = params; const {seriesId, seriesIndex, seriesName, dataIndex, data, value } = params;
myChart.dispatchAction({ myChart.dispatchAction({
type: 'focusNodeAdjacency', type: 'focusNodeAdjacency',

View File

@ -163,12 +163,12 @@
// 根据更新后的option重新画图 // 根据更新后的option重新画图
function redrawGraph() { function redrawGraph() {
$('.fixed-left').css({left: 0}).addClass('collpased'); // $('.fixed-left').css({left: 0}).addClass('collpased');
// $('.screen-btn').css({left: '360px'}); // // $('.screen-btn').css({left: '360px'});
if (!$('.fixed-left').hasClass('active')) { // if (!$('.fixed-left').hasClass('active')) {
$('.screen-btn').css({left: '360px'}); // $('.screen-btn').css({left: '360px'});
} // }
$('.collpase-icon').addClass('icon-shouqi').removeClass('icon-zhankai'); // $('.collpase-icon').addClass('icon-shouqi').removeClass('icon-zhankai');
optionGraph.series[0].data = Object.values(currentGraph.nodes); optionGraph.series[0].data = Object.values(currentGraph.nodes);
optionGraph.series[0].links = Object.values(currentGraph.links); optionGraph.series[0].links = Object.values(currentGraph.links);
myChartGraph.setOption(optionGraph); myChartGraph.setOption(optionGraph);