增加前端格式检查配置
This commit is contained in:
@@ -18,7 +18,11 @@ const filters = reactive({
|
||||
biz_type: '',
|
||||
})
|
||||
|
||||
const highRiskCount = computed(() => logs.value.filter((item) => item.action.includes('freeze') || item.action.includes('update')).length)
|
||||
const highRiskCount = computed(
|
||||
() =>
|
||||
logs.value.filter(item => item.action.includes('freeze') || item.action.includes('update'))
|
||||
.length
|
||||
)
|
||||
|
||||
onMounted(loadLogs)
|
||||
|
||||
@@ -81,7 +85,9 @@ function actionType(action: string) {
|
||||
</div>
|
||||
<div class="toolbar-actions">
|
||||
<el-button @click="resetFilters">重置</el-button>
|
||||
<el-button type="primary" :icon="Search" :loading="loading" @click="loadLogs">查询</el-button>
|
||||
<el-button type="primary" :icon="Search" :loading="loading" @click="loadLogs"
|
||||
>查询</el-button
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -101,7 +107,13 @@ function actionType(action: string) {
|
||||
<el-input v-model="filters.actor_id" clearable placeholder="按管理员筛选" />
|
||||
</el-form-item>
|
||||
<el-form-item label="动作">
|
||||
<el-select v-model="filters.action" clearable filterable placeholder="全部动作" class="full-control">
|
||||
<el-select
|
||||
v-model="filters.action"
|
||||
clearable
|
||||
filterable
|
||||
placeholder="全部动作"
|
||||
class="full-control"
|
||||
>
|
||||
<el-option label="冻结用户" value="admin_user.freeze" />
|
||||
<el-option label="解冻用户" value="admin_user.unfreeze" />
|
||||
<el-option label="后台下架商品" value="listing.admin_offline" />
|
||||
@@ -155,9 +167,18 @@ function actionType(action: string) {
|
||||
@page-change="handlePageChange"
|
||||
/>
|
||||
|
||||
<el-dialog :model-value="!!activeLog" title="审计明细" width="720px" @update:model-value="activeLog = null">
|
||||
<el-dialog
|
||||
:model-value="!!activeLog"
|
||||
title="审计明细"
|
||||
width="720px"
|
||||
@update:model-value="activeLog = null"
|
||||
>
|
||||
<div v-if="activeLog" class="dialog-body">
|
||||
<p><strong>{{ activeLog.action }}</strong> · {{ activeLog.biz_type }} #{{ activeLog.biz_id || '-' }}</p>
|
||||
<p>
|
||||
<strong>{{ activeLog.action }}</strong> · {{ activeLog.biz_type }} #{{
|
||||
activeLog.biz_id || '-'
|
||||
}}
|
||||
</p>
|
||||
<p>操作人:{{ actorName(activeLog) }} · IP:{{ activeLog.ip }}</p>
|
||||
<p>User-Agent:{{ activeLog.user_agent }}</p>
|
||||
<div class="code-panel">
|
||||
|
||||
Reference in New Issue
Block a user