From c296f2bf59571d9870490be08d8a11023a8d24d7 Mon Sep 17 00:00:00 2001
From: kami <605128600@qq.com>
Date: Sun, 17 Nov 2024 22:38:18 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E7=81=B5=E6=95=8F=E6=84=9F=E7=9F=A5?=
=?UTF-8?q?=E5=A4=A7=E5=B1=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/datav/chart-bar.vue | 3 +-
src/components/model-risk-tree.vue | 4 +-
src/views/datav/CaseVerif.vue | 2 +-
src/views/sensitivePerception/DictContent.vue | 4 +-
src/views/sensitivePerception/RiskClue.vue | 59 +++++++++++++++----
.../sensitivePerception/RiskPersonnel.vue | 48 +++++++++++++--
.../sensitivePerception/RiskScoreRule.vue | 12 ++--
vite.config.ts | 25 +++++++-
8 files changed, 131 insertions(+), 26 deletions(-)
diff --git a/src/components/datav/chart-bar.vue b/src/components/datav/chart-bar.vue
index b2d56f2..e1aa972 100644
--- a/src/components/datav/chart-bar.vue
+++ b/src/components/datav/chart-bar.vue
@@ -5,6 +5,7 @@
\ No newline at end of file
+
diff --git a/src/components/model-risk-tree.vue b/src/components/model-risk-tree.vue
index 025a70f..fba2fbe 100644
--- a/src/components/model-risk-tree.vue
+++ b/src/components/model-risk-tree.vue
@@ -75,7 +75,7 @@ function renderContent(
h(
"span",
{
- title: node.label,
+ title: node.label + '('+node.ruleDesc+')',
},
node.label
)
@@ -131,4 +131,4 @@ function getModelId(arr, node) {
.tree-container {
height: calc(100% - 42px);
}
-
\ No newline at end of file
+
diff --git a/src/views/datav/CaseVerif.vue b/src/views/datav/CaseVerif.vue
index ccf4fc9..02c503d 100644
--- a/src/views/datav/CaseVerif.vue
+++ b/src/views/datav/CaseVerif.vue
@@ -418,4 +418,4 @@ const colors = [
\ No newline at end of file
+
diff --git a/src/views/sensitivePerception/DictContent.vue b/src/views/sensitivePerception/DictContent.vue
index 4768b48..dde8e36 100644
--- a/src/views/sensitivePerception/DictContent.vue
+++ b/src/views/sensitivePerception/DictContent.vue
@@ -43,7 +43,7 @@
-
+
\ No newline at end of file
+
diff --git a/src/views/sensitivePerception/RiskClue.vue b/src/views/sensitivePerception/RiskClue.vue
index 9f5bb6e..5cfdd14 100644
--- a/src/views/sensitivePerception/RiskClue.vue
+++ b/src/views/sensitivePerception/RiskClue.vue
@@ -61,39 +61,43 @@
-
-
+ >
+
+ {{filterJsonData(row)}}
+
+
+
+
-
-
+
+
@@ -146,6 +150,41 @@ function getList() {
});
}
+const filterJsonData = (row) => {
+ if(row.data == undefined) {
+ return ''
+ }
+ let j = JSON.parse(row.data)
+ let str = ''
+ if(j instanceof Array) {
+ j.forEach(item => {
+ str += JSON.stringify(item)+"\n";
+ })
+ }
+ if(j.sourceData != undefined) {
+ j = JSON.parse(row.sourceData)
+ }
+
+ for(let key in j) {
+ if(key == 'eventTime') {
+ continue
+ }
+ if(key == 'idCode') {
+ continue
+ }
+ if(key == 'departId') {
+ continue
+ }
+ if(key == 'personId') {
+ continue
+ }
+ if(key == 'name') {
+ continue
+ }
+ str += j[key]+'\n'
+ }
+}
+
function reset() {
query.value = {};
getList();
@@ -153,4 +192,4 @@ function reset() {
\ No newline at end of file
+
diff --git a/src/views/sensitivePerception/RiskPersonnel.vue b/src/views/sensitivePerception/RiskPersonnel.vue
index b92d19e..faeda70 100644
--- a/src/views/sensitivePerception/RiskPersonnel.vue
+++ b/src/views/sensitivePerception/RiskPersonnel.vue
@@ -167,23 +167,27 @@
{{ item.riskName }}
-
+
-
+ >
+
+ {{filterJsonData(row)}}
+
+
+
@@ -227,6 +231,40 @@ async function handleShowDesc(row) {
personal.value = data;
}
+const filterJsonData = (row) => {
+ if(row.data == undefined) {
+ return ''
+ }
+ try {
+ let j = JSON.parse(row.data)
+ if(j.sourceData != undefined) {
+ j = JSON.parse(row.sourceData)
+ }
+ let str = ''
+ for(let key in j) {
+ if(key == 'eventTime') {
+ continue
+ }
+ if(key == 'idCode') {
+ continue
+ }
+ if(key == 'departId') {
+ continue
+ }
+ if(key == 'personId') {
+ continue
+ }
+ if(key == 'name') {
+ continue
+ }
+ str += j[key]+'\n'
+ }
+ return str
+ } catch (e) {
+ return row.data
+ }
+}
+
function getGender(val) {
if (val == 1) {
return "男";
diff --git a/src/views/sensitivePerception/RiskScoreRule.vue b/src/views/sensitivePerception/RiskScoreRule.vue
index a9a5b75..5d0dbf3 100644
--- a/src/views/sensitivePerception/RiskScoreRule.vue
+++ b/src/views/sensitivePerception/RiskScoreRule.vue
@@ -12,7 +12,7 @@
-
+
@@ -31,7 +31,7 @@
-
+
{
+ getList();
+})
+
const show = ref(false);
const formData = ref({
@@ -293,4 +297,4 @@ async function handleCalculate() {
background-color: #eee;
}
}
-
\ No newline at end of file
+
diff --git a/vite.config.ts b/vite.config.ts
index 8dca79b..61a81ff 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -79,7 +79,30 @@ export default ({ mode }) => {
},
build: {
outDir: 'v2',
- // target: "es2015"
+ sourcemap: false,
+ chunkSizeWarningLimit: 1500,
+ rollupOptions: {
+ output: {
+ entryFileNames: `assets/[name].${new Date().getTime()}.js`,
+ chunkFileNames: `assets/[name].${new Date().getTime()}.js`,
+ assetFileNames: `assets/[name].${new Date().getTime()}.[ext]`,
+ compact: true,
+ manualChunks: {
+ vue: ['vue', 'vue-router'],
+ echarts: ['echarts'],
+ },
+ },
+ },
+ terserOptions: {
+ compress: {
+ drop_console: true,
+ drop_debugger: true,
+ },
+ ie8: true,
+ output: {
+ comments: true,
+ },
+ },
}
})
}
From 417f45a3b52df3d48e152979075207894af78e45 Mon Sep 17 00:00:00 2001
From: kami <605128600@qq.com>
Date: Sun, 17 Nov 2024 22:57:23 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E7=81=B5=E6=95=8F=E6=84=9F=E7=9F=A5?=
=?UTF-8?q?=E5=A4=A7=E5=B1=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/sensitivePerception/RiskClue.vue | 2 +-
src/views/sensitivePerception/RiskPersonnel.vue | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/sensitivePerception/RiskClue.vue b/src/views/sensitivePerception/RiskClue.vue
index 5cfdd14..5ed22d1 100644
--- a/src/views/sensitivePerception/RiskClue.vue
+++ b/src/views/sensitivePerception/RiskClue.vue
@@ -85,7 +85,7 @@
show-overflow-tooltip
>
- {{filterJsonData(row)}}
+ {{row.data}}
diff --git a/src/views/sensitivePerception/RiskPersonnel.vue b/src/views/sensitivePerception/RiskPersonnel.vue
index faeda70..f3cec5d 100644
--- a/src/views/sensitivePerception/RiskPersonnel.vue
+++ b/src/views/sensitivePerception/RiskPersonnel.vue
@@ -184,7 +184,7 @@
show-overflow-tooltip
>
- {{filterJsonData(row)}}
+ {{row.data}}