Skip to content

Commit 49dbfd0

Browse files
committed
【功能优化】全局:接入访问日志的操作信息
1 parent 06750bf commit 49dbfd0

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/utils/dict.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export const DICT_TYPE = {
1616
SYSTEM_ROLE_TYPE: 'system_role_type',
1717
SYSTEM_DATA_SCOPE: 'system_data_scope',
1818
SYSTEM_NOTICE_TYPE: 'system_notice_type',
19-
SYSTEM_OPERATE_TYPE: 'system_operate_type',
2019
SYSTEM_LOGIN_TYPE: 'system_login_type',
2120
SYSTEM_LOGIN_RESULT: 'system_login_result',
2221
SYSTEM_SMS_CHANNEL_CODE: 'system_sms_channel_code',
@@ -39,6 +38,7 @@ export const DICT_TYPE = {
3938
INFRA_CODEGEN_FRONT_TYPE: 'infra_codegen_front_type',
4039
INFRA_CODEGEN_SCENE: 'infra_codegen_scene',
4140
INFRA_FILE_STORAGE: 'infra_file_storage',
41+
INFRA_OPERATE_TYPE: 'infra_operate_type',
4242

4343
// ========== BPM 模块 ==========
4444
BPM_MODEL_CATEGORY: 'bpm_model_category',

src/views/infra/apiAccessLog/index.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@
7070
<span>{{ scope.row.resultCode === 0 ? '成功' : '失败(' + scope.row.resultMsg + ')' }}</span>
7171
</template>
7272
</el-table-column>
73+
<el-table-column label="操作模块" align="center" prop="operateModule" width="180" />
74+
<el-table-column label="操作名" align="center" prop="operateName" width="180" />
75+
<el-table-column label="操作类型" align="center" prop="operateType">
76+
<template #default="scope">
77+
<dict-tag :type="DICT_TYPE.INFRA_OPERATE_TYPE" :value="scope.row.operateType" />
78+
</template>
79+
</el-table-column>
7380
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
7481
<template v-slot="scope">
7582
<el-button size="mini" type="text" icon="el-icon-view" @click="handleView(scope.row,scope.index)"
@@ -101,6 +108,11 @@
101108
<div v-if="form.resultCode === 0">正常</div>
102109
<div v-else-if="form.resultCode > 0">失败 | {{ form.resultCode }} || {{ form.resultMsg}}</div>
103110
</el-form-item>
111+
<el-form-item label="操作模块:">{{ form.operateModule }}</el-form-item>
112+
<el-form-item label="操作名:">{{ form.operateName }}</el-form-item>
113+
<el-form-item label="操作类型:">
114+
<dict-tag :type="DICT_TYPE.INFRA_OPERATE_TYPE" :value="form.operateType"/>
115+
</el-form-item>
104116
</el-col>
105117
</el-row>
106118
</el-form>

0 commit comments

Comments
 (0)