From c084cbd9cb7324d2e03205b32e24368123c7ddca Mon Sep 17 00:00:00 2001
From: dalong306 <304592994@qq.com>
Date: Sat, 2 Apr 2022 16:43:34 +0800
Subject: [PATCH] =?UTF-8?q?risk=20=E6=96=87=E4=BB=B6=E4=B8=8B=E8=BD=BD?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 2 +-
src/main/ui/static/analysis/risk_business.js | 9 +++++++++
.../ui/static/analysis/templates/audit_material.html | 6 +++---
3 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 0b591e0ae..8ac66875d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
4.0.0
manage
- 2.4.13
+ 2.4.14
UTF-8
2.4.0
diff --git a/src/main/ui/static/analysis/risk_business.js b/src/main/ui/static/analysis/risk_business.js
index 5737d7d47..c6d2503c7 100644
--- a/src/main/ui/static/analysis/risk_business.js
+++ b/src/main/ui/static/analysis/risk_business.js
@@ -677,9 +677,18 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
$scope.riskMaterial.material.forEach(element => {
if (element.file) {
element.file.forEach((item, index) => {
+ var type =item.indexOf('type');
+ console.log("====>type:"+type)
+ if(type>=0){
+ var fileObj= JSON.parse(item);
+ element.file[index] = { isImg: fileObj.isImg, type: fileObj.type, src: fileObj.src }
+ console.log("====>fileType:"+fileObj.type)
+ console.log("====>flag:"+fileObj.isImg)
+ }else{
const fileType = item.substring(item.lastIndexOf('.')).toLowerCase()
const flag = reg.test(item.substring(item.lastIndexOf('.')).toLowerCase())
element.file[index] = { isImg: flag, type: fileType, src: item }
+ }
})
}
})
diff --git a/src/main/ui/static/analysis/templates/audit_material.html b/src/main/ui/static/analysis/templates/audit_material.html
index 4619fa055..53a10ca5b 100644
--- a/src/main/ui/static/analysis/templates/audit_material.html
+++ b/src/main/ui/static/analysis/templates/audit_material.html
@@ -54,9 +54,9 @@