|
|
|
|
@ -61,39 +61,43 @@
|
|
|
|
|
<el-table-column |
|
|
|
|
label="发生时间" |
|
|
|
|
prop="eventTime" |
|
|
|
|
width="180" |
|
|
|
|
width="160" |
|
|
|
|
/> |
|
|
|
|
<el-table-column |
|
|
|
|
label="姓名" |
|
|
|
|
prop="name" |
|
|
|
|
width="150" |
|
|
|
|
width="120" |
|
|
|
|
/> |
|
|
|
|
<el-table-column |
|
|
|
|
label="身份证号码" |
|
|
|
|
prop="idCode" |
|
|
|
|
width="180" |
|
|
|
|
width="170" |
|
|
|
|
show-overflow-tooltip |
|
|
|
|
/> |
|
|
|
|
<el-table-column |
|
|
|
|
label="风险因素" |
|
|
|
|
prop="riskReason" |
|
|
|
|
width="100" |
|
|
|
|
show-overflow-tooltip |
|
|
|
|
/> |
|
|
|
|
<el-table-column |
|
|
|
|
label="风险内容" |
|
|
|
|
prop="thingDesc" |
|
|
|
|
show-overflow-tooltip |
|
|
|
|
/> |
|
|
|
|
<el-table-column label="操作" width="180"> |
|
|
|
|
> |
|
|
|
|
<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-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"> |
|
|
|
|
@ -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(); |
|
|
|
|
|