From 8d5185d51c0072d76f1bba8ea0bfb9914ad43221 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 2 Mar 2022 11:07:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=BA=E5=91=98=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=BB=84=E4=BB=B6=E5=BC=82=E6=AD=A5=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=90=8E=E6=8F=8F=E8=BF=B0=E6=96=87=E5=AD=97?= =?UTF-8?q?=E6=9C=AA=E9=9A=90=E8=97=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- o2web/source/x_component_process_Xform/Org.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/o2web/source/x_component_process_Xform/Org.js b/o2web/source/x_component_process_Xform/Org.js index 597c37c427..53c5329d0c 100644 --- a/o2web/source/x_component_process_Xform/Org.js +++ b/o2web/source/x_component_process_Xform/Org.js @@ -598,9 +598,18 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg = new Class( this.fireEvent("loadSelector", [selector]) }, selectOnClose: function(){ - v = this._getBusinessData(); + var v = this._getBusinessData(); if (!v || !v.length) if (this.descriptionNode) this.descriptionNode.setStyle("display", "block"); }, + checkDescription: function(){ + if (!this.descriptionNode)return; + var v = this._getBusinessData(); + if (!v || !v.length){ + this.descriptionNode.setStyle("display", "block"); + }else{ + this.descriptionNode.setStyle("display", "none"); + } + }, /** * @summary 弹出选择界面. @@ -1314,6 +1323,8 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg = new Class( this.node.store("data", values); this._setBusinessData(values); + this.checkDescription(); + if (this.json.isInput){ if (this.combox){ -- GitLab