From cf7d37ccbd67788c73e08010dbe2b1b8ac58b8b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Wed, 6 Aug 2025 15:33:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(bpic=5Feli):=20=E6=B7=BB=E5=8A=A0=E9=A3=8E?= =?UTF-8?q?=E9=99=A9=E7=AD=9B=E6=9F=A5=E7=BB=93=E6=9E=9C=E8=AF=84=E4=BB=B7?= =?UTF-8?q?=E7=9A=84=E8=BE=93=E5=85=A5=E9=AA=8C=E8=AF=81=E5=92=8C=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=B0=83=E6=95=B4-=20=E5=9C=A8=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E4=B8=8B=E6=96=B9=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=B6=88=E6=81=AF=E6=98=BE=E7=A4=BA=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F-=20=E5=AE=9E=E7=8E=B0=E8=AF=84=E8=AE=BA=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E7=9A=84=E9=9D=9E=E7=A9=BA=E5=92=8C=E9=95=BF=E5=BA=A6?= =?UTF-8?q?=E9=AA=8C=E8=AF=81-=20=E4=BF=AE=E6=94=B9=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=A1=86=E4=B8=AD=E7=9A=84=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=96=87=E6=9C=AC=EF=BC=8C=E5=B0=86"=E5=8F=91=E5=B8=83"?= =?UTF-8?q?=E6=94=B9=E4=B8=BA"=E7=A1=AE=E5=AE=9A"=EF=BC=8C"=E5=85=B3?= =?UTF-8?q?=E9=97=AD"=E6=94=B9=E4=B8=BA"=E5=8F=96=E6=B6=88"-=20=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E8=AF=84=E8=AE=BA=E8=BE=93=E5=85=A5=E6=A1=86=E5=92=8C?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/bpic_eli/risk_history.html | 33 ++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/public/bpic_eli/risk_history.html b/public/bpic_eli/risk_history.html index 3df6167..67588f3 100644 --- a/public/bpic_eli/risk_history.html +++ b/public/bpic_eli/risk_history.html @@ -38,6 +38,12 @@ position: relative; } + #error-msg{ + text-align: left; + color:Red; + margin-left: 60px; + } + .main { width: 100%; height: 100%; @@ -616,9 +622,10 @@ +
- - + +
@@ -1171,12 +1178,26 @@ // 保存评论 saveComment: function() { + var error = document.getElementById('error-msg'); + error.innerHTML = ''; var params = { commentContent: document.getElementById('commentText').value, resultId: StateManager.resultId, taCode: StateManager.taCode, isLike: StateManager.isLike }; + + + if(!params.commentContent){ + error.innerHTML = '请输入评价'; + return + } + if(params.commentContent.length>300){ + error.innerHTML = '文字评价支持录入汉字、大写字母、小写字母、数字、符号,不超过300个字,请重新输入'; + return + } + + DOMHandler.setServiceUrl(Config.serviceUrl.updateComment, JSON.stringify(params), function(e) { var result = JSON.parse(e); if(result.content.result === '0'){ @@ -1214,7 +1235,10 @@ if(noNav || noPadding){ commentText.setAttribute('disabled',true) saveBtn.style.display = 'none' - + } + if(commentText.value){ + // commentText.setAttribute('disabled',true) + // saveBtn.style.display = 'none' } }; @@ -1261,6 +1285,9 @@ if(noNav || noPadding){ return false } + + + var dataParams = { taCode: StateManager.taCode, resultId: StateManager.resultId,