From 55ef0b7ebbfeb9fdc6098a5d6867e82d02773b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=95=E4=BB=99?= <2248263994@qq.com> Date: Tue, 27 Sep 2022 16:09:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=20=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E5=8A=A8=E7=94=BB=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lpro/src/main/webapp/page/visual/js/cfg.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lpro/src/main/webapp/page/visual/js/cfg.js b/lpro/src/main/webapp/page/visual/js/cfg.js index 8089734..0a2c1ac 100644 --- a/lpro/src/main/webapp/page/visual/js/cfg.js +++ b/lpro/src/main/webapp/page/visual/js/cfg.js @@ -344,6 +344,7 @@ var cfg = { // 增加切换复原属性 边框和形状 app.columnVal = obj.attr("border") ; app.shape = obj.attr("shape") ; + app.isDisableAnimation = obj.attr("enableAnimation")==="true"?false:true; break ; case '8': case '9': @@ -843,6 +844,7 @@ function initSensorLiquidChart(){ current_edit_obj.attr("enableAnimation",true); current_edit_obj.attr("shape","container"); current_edit_obj.attr("border",0); + current_edit_obj.attr("max",max); var bai = 0.5; var siz = 20; option = { @@ -923,11 +925,14 @@ function ableLiquidFillAnimation(nodeId,chart){ }] }); },2000) + current_edit_obj.attr('enableAnimation',true); intervalIdBynodeId.set(nodeId,intervalId); } // 禁止水变化 function disableLiquidFillAnimation(nodeId){ let intervalId=intervalIdBynodeId.get(nodeId); + var current_edit_obj = cfg.current_edit_obj; + current_edit_obj.attr('enableAnimation',false); clearInterval(intervalId); } // 更新Charts属性