update style

This commit is contained in:
tangjiang 2019-12-11 16:37:47 +08:00
parent 6079c657d3
commit 3d8d6a8e67
3 changed files with 7 additions and 5 deletions

View File

@ -39,7 +39,7 @@
right: 0; right: 0;
bottom: 0; bottom: 0;
content: ''; content: '';
background: rgba(0,0,0,0.3); background: rgba(0,0,0,.6);
} }
.video_img{ .video_img{
position: absolute; position: absolute;

View File

@ -1541,7 +1541,9 @@
} }
// 根据更新后的option重新画图 // 根据更新后的option重新画图
function redrawGraph() { function redrawGraph() {
$('.fixed-left').css({left: 0}); $('.fixed-left').css({left: 0}).addClass('collpased');
$('.screen-btn').css({left: '360px'});
$('.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);

View File

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2019-12-11 09:17:17 * @Date: 2019-12-11 09:17:17
* @LastEditors: tangjiang * @LastEditors: tangjiang
* @LastEditTime: 2019-12-11 16:00:21 * @LastEditTime: 2019-12-11 16:37:08
*/ */
$(document).ready(function () { $(document).ready(function () {
@ -26,7 +26,7 @@ $(document).ready(function () {
// 点击地图时,调用此方法 // 点击地图时,调用此方法
function showOrHideSlider () { function showOrHideSlider () {
if ($('.fixed-left').hasClass('collpased')) { if ($('.fixed-left').hasClass('collpased')) {
$('.fixed-left').css({ left: '-400px'}).removeClass('collpased'); $('.fixed-left').css({ left: '-400px'}).removeClass('collpased').removeClass('active');
$('.left_echart').css({left: '-400px'}); $('.left_echart').css({left: '-400px'});
$('.screen-btn').css({left: '-50px'}); $('.screen-btn').css({left: '-50px'});
// $('.map_header').css({left: 0}); // $('.map_header').css({left: 0});
@ -35,7 +35,7 @@ $(document).ready(function () {
} else { } else {
$('.fixed-left').css({ left: '0px' }).addClass('collpased'); $('.fixed-left').css({ left: '0px' }).addClass('collpased');
$('.left_echart').css({left: '0px'}); $('.left_echart').css({left: '0px'});
$('.screen-btn').css({ left: '370px' }); $('.screen-btn').css({ left: '360px' });
// $('.map_header').css({left: '400px'}); // $('.map_header').css({left: '400px'});
// $('.collpase-icon').remove('icon-shouqi').add('icon-zhankai'); // $('.collpase-icon').remove('icon-shouqi').add('icon-zhankai');
} }