From 05e1996bf755af45579610dcafbc6e77c668f5af Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 4 Nov 2020 10:48:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=B8=AD=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E8=A7=86=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- o2web/source/x_component_query_Query/Statement.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/o2web/source/x_component_query_Query/Statement.js b/o2web/source/x_component_query_Query/Statement.js index d1afda7120..f27d1d465b 100644 --- a/o2web/source/x_component_query_Query/Statement.js +++ b/o2web/source/x_component_query_Query/Statement.js @@ -573,7 +573,10 @@ MWF.xApplication.query.Query.Statement.Item = new Class({ }, getText : function(c, k, td){ var path = c.path, code = c.code, obj = this.data; - if( path && path!=="$all") { + if( !path ){ + return "" + }else if( path === "$all" ){ + }else{ var pathList = path.split("."); for (var i = 0; i < pathList.length; i++) { var p = pathList[i]; @@ -585,9 +588,6 @@ MWF.xApplication.query.Query.Statement.Item = new Class({ break; } } - }else if( path === "$all" ){ - }else{ - return ""; } if( code && code.trim())obj = this.view.Macro.exec( code, {"value": obj, "data": this.data, "entry": c, "node" : td, "json" : c, "row" : this}); -- GitLab