|
@ -59,6 +59,8 @@ |
|
|
</svg> |
|
|
</svg> |
|
|
</div> |
|
|
</div> |
|
|
<div class="page_wrap"> |
|
|
<div class="page_wrap"> |
|
|
|
|
|
<div class="btn mb" @click="exportAudit">导出审计</div> |
|
|
|
|
|
|
|
|
<el-pagination |
|
|
<el-pagination |
|
|
background |
|
|
background |
|
|
layout="prev, pager, next" |
|
|
layout="prev, pager, next" |
|
@ -81,12 +83,13 @@ |
|
|
|
|
|
|
|
|
<script setup> |
|
|
<script setup> |
|
|
import { ref, onMounted } from 'vue' |
|
|
import { ref, onMounted } from 'vue' |
|
|
import { useWebSocketStore, useAuditStore } from '@/store' |
|
|
|
|
|
import { getUserBehaviorRecordDescJSON } from '@/mock/command' |
|
|
|
|
|
|
|
|
import { useWebSocketStore, useAuditStore, useSettingStore } from '@/store' |
|
|
|
|
|
import { getUserBehaviorRecordDescJSON, exportUserBehaviorRecordJSON } from '@/mock/command' |
|
|
import moment from 'moment' |
|
|
import moment from 'moment' |
|
|
|
|
|
|
|
|
const webSocketStore = useWebSocketStore() |
|
|
const webSocketStore = useWebSocketStore() |
|
|
const auditStore = useAuditStore() |
|
|
const auditStore = useAuditStore() |
|
|
|
|
|
const settingStore = useSettingStore() |
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
// 读取全部审计记录 需要分页 |
|
|
// 读取全部审计记录 需要分页 |
|
@ -99,6 +102,12 @@ const handleCurrentPageChange = page => { |
|
|
webSocketStore.sendCommandMsg(getUserBehaviorRecordDescJSON(page - 1, 6)) |
|
|
webSocketStore.sendCommandMsg(getUserBehaviorRecordDescJSON(page - 1, 6)) |
|
|
auditStore.updateAuditLoading(true) |
|
|
auditStore.updateAuditLoading(true) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const exportAudit = () => { |
|
|
|
|
|
settingStore.updateExportText('导出审计中') |
|
|
|
|
|
settingStore.updateExportLoading(true) |
|
|
|
|
|
webSocketStore.sendCommandMsg(exportUserBehaviorRecordJSON) |
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
@ -187,7 +196,7 @@ const handleCurrentPageChange = page => { |
|
|
padding-right: 32px; |
|
|
padding-right: 32px; |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
justify-content: flex-end; |
|
|
|
|
|
|
|
|
justify-content: space-between; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.wrapper { |
|
|
.wrapper { |
|
@ -215,4 +224,20 @@ const handleCurrentPageChange = page => { |
|
|
white-space: nowrap; |
|
|
white-space: nowrap; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
.btn { |
|
|
|
|
|
background: #06518b; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
width: 147px; |
|
|
|
|
|
height: 30px; |
|
|
|
|
|
border-radius: 30px; |
|
|
|
|
|
font-family: Source Han Sans CN; |
|
|
|
|
|
font-size: 20px; |
|
|
|
|
|
font-weight: normal; |
|
|
|
|
|
line-height: normal; |
|
|
|
|
|
letter-spacing: 0.1em; |
|
|
|
|
|
color: #ffffff; |
|
|
|
|
|
margin-left: 32px; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |