From 2191f733e33dc3612dd613c6ecdaef6e97f0c768 Mon Sep 17 00:00:00 2001 From: cdswyda Date: Tue, 14 Sep 2021 15:59:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(dataVerificationCtrl):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E9=95=BF=E5=BA=A6=E9=AA=8C=E8=AF=81=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E9=80=89=E9=A1=B9=E6=97=B6=20=E4=B8=8B=E9=9D=A2?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E4=B8=8D=E5=88=87=E6=8D=A2=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/dataVerificationCtrl.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/controllers/dataVerificationCtrl.js b/src/controllers/dataVerificationCtrl.js index afa97a5..fc26db9 100644 --- a/src/controllers/dataVerificationCtrl.js +++ b/src/controllers/dataVerificationCtrl.js @@ -582,6 +582,19 @@ const dataVerificationCtrl = { $("#luckysheet-dataVerification-dialog .show-box-item-number .input2").show(); } }); + // 文本长度选择变化 + $(document).off("change.textLengthSelect").on("change.textLengthSelect", "#data-verification-textLength-select", function(e) { + $("#luckysheet-dataVerification-dialog .show-box-item-textLength .input").hide(); + + let value = this.value; + + if(value == 'bw' || value == 'nb'){ + $("#luckysheet-dataVerification-dialog .show-box-item-textLength .input1").show(); + } + else{ + $("#luckysheet-dataVerification-dialog .show-box-item-textLength .input2").show(); + } + }); $(document).off("change.dateSelect").on("change.dateSelect", "#data-verification-date-select", function(e) { $("#luckysheet-dataVerification-dialog .show-box-item-date .input").hide();