Compare commits

..

No commits in common. '417f45a3b52df3d48e152979075207894af78e45' and 'da7b3edf07e7ace5f14372a5cd96219920038e5d' have entirely different histories.

  1. 3
      src/components/datav/chart-bar.vue
  2. 4
      src/components/model-risk-tree.vue
  3. 2
      src/views/datav/CaseVerif.vue
  4. 4
      src/views/sensitivePerception/DictContent.vue
  5. 59
      src/views/sensitivePerception/RiskClue.vue
  6. 48
      src/views/sensitivePerception/RiskPersonnel.vue
  7. 12
      src/views/sensitivePerception/RiskScoreRule.vue
  8. 25
      vite.config.ts

3
src/components/datav/chart-bar.vue

@ -5,7 +5,6 @@
</div>
<div>
<div
class="flex v-center bar-item wrap between"
v-for="item in data"
:size="size"
@ -191,4 +190,4 @@ function getColor(val) {
}
}
}
</style>
</style>

4
src/components/model-risk-tree.vue

@ -75,7 +75,7 @@ function renderContent(
h(
"span",
{
title: node.label + '('+node.ruleDesc+')',
title: node.label,
},
node.label
)
@ -131,4 +131,4 @@ function getModelId(arr, node) {
.tree-container {
height: calc(100% - 42px);
}
</style>
</style>

2
src/views/datav/CaseVerif.vue

@ -659,4 +659,4 @@ const colors = [
<!-- :option="jjjgPieOption"-->
<!-- autoresize-->
<!--/>-->
<!--</datav-tab-item>-->
<!--</datav-tab-item>-->

4
src/views/sensitivePerception/DictContent.vue

@ -43,7 +43,7 @@
</div>
</header>
<div class="table-container">
<el-table :data="dictContents" row-key="id" :default-expand-all="false">
<el-table :data="dictContents" row-key="id">
<el-table-column
label="问题条目"
prop="name"
@ -312,4 +312,4 @@ async function handleCalculate() {
background-color: #eee;
}
}
</style>
</style>

59
src/views/sensitivePerception/RiskClue.vue

@ -61,43 +61,39 @@
<el-table-column
label="发生时间"
prop="eventTime"
width="160"
width="180"
/>
<el-table-column
label="姓名"
prop="name"
width="120"
width="150"
/>
<el-table-column
label="身份证号码"
prop="idCode"
width="170"
width="180"
show-overflow-tooltip
/>
<el-table-column
label="风险因素"
prop="riskReason"
width="100"
show-overflow-tooltip
/>
<el-table-column
label="风险内容"
prop="thingDesc"
show-overflow-tooltip
>
<template #default="{ row }">
<span style="white-space: pre-wrap;">{{row.data}}</span>
</template>
</el-table-column>
<!-- <el-table-column label="操作" width="180">-->
<!-- <template #default="{ row }">-->
/>
<el-table-column label="操作" width="180">
<template #default="{ row }">
<!-- <el-button
type="primary"
link
@click="handleShowDetail(row)"
>查看详情</el-button
> -->
<!-- </template>-->
<!-- </el-table-column>-->
</template>
</el-table-column>
</el-table>
</div>
<div class="flex end mt-8">
@ -150,41 +146,6 @@ 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();
@ -192,4 +153,4 @@ function reset() {
</script>
<style lang="scss" scoped>
</style>
</style>

48
src/views/sensitivePerception/RiskPersonnel.vue

@ -167,27 +167,23 @@
<div>
<span class="text-primary">{{ item.riskName }}</span>
</div>
<el-table :data="item.clues" max-height="300">
<el-table :data="item.clues">
<el-table-column
label="发生时间"
prop="eventTime"
width="160"
width="180"
/>
<el-table-column
label="风险因素"
prop="riskReason"
width="160"
show-overflow-tooltip
/>
<el-table-column
label="风险内容"
prop="thingDesc"
show-overflow-tooltip
>
<template #default="{ row }">
<span style="white-space: pre-wrap;">{{row.data}}</span>
</template>
</el-table-column>
<el-table-column width="80" label="分值" prop="score" />
/>
<el-table-column label="分值" prop="score" />
</el-table>
</div>
</div>
@ -231,40 +227,6 @@ 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 "男";

12
src/views/sensitivePerception/RiskScoreRule.vue

@ -12,7 +12,7 @@
</div>
<div style="width: 50%">
<el-row>
</el-row>
</div>
</div>
@ -31,7 +31,7 @@
</div>
</header>
<div class="table-container">
<el-table ref="tableRef" :default-expand-all="false" :data="scoreRules" :expand-row-keys="[]" :tree-props="{children: 'children',hasChildren: 'hasChildren'}" row-key="id">
<el-table :data="scoreRules" row-key="id">
<el-table-column
label="问题条目"
prop="riskName"
@ -202,11 +202,7 @@ function getList() {
treeOptions.value[0].children = data;
});
}
onMounted(() => {
getList();
})
getList();
const show = ref(false);
const formData = ref({
@ -297,4 +293,4 @@ async function handleCalculate() {
background-color: #eee;
}
}
</style>
</style>

25
vite.config.ts

@ -79,30 +79,7 @@ export default ({ mode }) => {
},
build: {
outDir: 'v2',
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,
},
},
// target: "es2015"
}
})
}

Loading…
Cancel
Save