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 7d085f2..703c5a2 100644 --- a/src/views/datav/CaseVerif.vue +++ b/src/views/datav/CaseVerif.vue @@ -659,4 +659,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..5ed22d1 100644 --- a/src/views/sensitivePerception/RiskClue.vue +++ b/src/views/sensitivePerception/RiskClue.vue @@ -61,39 +61,43 @@ - - - + +
@@ -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..f3cec5d 100644 --- a/src/views/sensitivePerception/RiskPersonnel.vue +++ b/src/views/sensitivePerception/RiskPersonnel.vue @@ -167,23 +167,27 @@
{{ item.riskName }}
- + - + > + + +
@@ -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, + }, + }, } }) }