From 073d35c14e5be7dcd099ec5fb2ad62f275eba22d Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Tue, 10 Dec 2024 09:06:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A3=8E=E9=99=A9=E6=95=B4=E6=94=B9=E5=88=86?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bns/js/supplement/child/risk_rect_detail.js | 2 +- bns/js/supplement/risk_rect_list.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bns/js/supplement/child/risk_rect_detail.js b/bns/js/supplement/child/risk_rect_detail.js index c4dfe8a..40a24b0 100644 --- a/bns/js/supplement/child/risk_rect_detail.js +++ b/bns/js/supplement/child/risk_rect_detail.js @@ -39,7 +39,7 @@ function getTypeDetails() { $('#rectTime').val(recDate); let rectImgPath = obj.rectImgPath; let html = ''; - if (rectImgPath.length > 0) { + if (rectImgPath && rectImgPath.length > 0) { $.each(rectImgPath, function (index, item) { let path = photoUrl + item + '?token=' + token; html += '' diff --git a/bns/js/supplement/risk_rect_list.js b/bns/js/supplement/risk_rect_list.js index 7e60505..e4838b7 100644 --- a/bns/js/supplement/risk_rect_list.js +++ b/bns/js/supplement/risk_rect_list.js @@ -232,6 +232,9 @@ function getReqParams(page, limit, type) { function queryTable(type) { if (type === 2) { $('#proName').val(''); + $('#riskLevel').val(''); + $('#isRect').val(''); + layui.form.render(); } let pattern = new RegExp("[%_<>]"); if (pattern.test($("#proName").val())) {