From c10375fed2524858c07f8fe8c531e1e8bcb4dde8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com>
Date: Wed, 14 Dec 2022 18:46:42 +0800
Subject: [PATCH] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E6=96=B0?=
=?UTF-8?q?=E5=A2=9E=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0=E6=9F=A5=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/monitor/operlog/index.vue | 75 +++++++++++++++++++----------
1 file changed, 50 insertions(+), 25 deletions(-)
diff --git a/src/views/monitor/operlog/index.vue b/src/views/monitor/operlog/index.vue
index 64d104c..f0a8ee1 100644
--- a/src/views/monitor/operlog/index.vue
+++ b/src/views/monitor/operlog/index.vue
@@ -17,13 +17,17 @@
+
+
+
@@ -44,40 +48,49 @@
导出
-
+
-
+
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+
{{ scope.row.elapsed }} ms
-
-
+
+
{{ scope.row.operTime }}
+
+
+
+
@@ -172,7 +185,8 @@ const state = reactive({
title: undefined,
operName: undefined,
businessType: undefined,
- status: undefined
+ status: undefined,
+ operParam: undefined
},
options: {
//业务类型(0其它 1新增 2修改 3删除)选项列表 格式 eg:{ dictLabel: '标签', dictValue: '0'}
@@ -180,6 +194,25 @@ const state = reactive({
statusOptions: []
}
})
+const columns = ref([
+ { visible: true, prop: 'operId', label: '操作id' },
+ { visible: true, prop: 'title', label: '系统模块' },
+ { visible: true, prop: 'businessType', label: '业务类型' },
+ { visible: true, prop: 'requestMethod', label: '请求方式' },
+ // { visible: true, prop: 'operatorType', label: '操作类型' },
+ { visible: true, prop: 'operName', label: '操作人员' },
+ // { visible: true, prop: 'deptName', label: '部门' },
+ // { visible: true, prop: 'operUrl', label: '请求地址' },
+ { visible: true, prop: 'operIP', label: '请求IP' },
+ { visible: true, prop: 'status', label: '操作状态' },
+ { visible: true, prop: 'operLocation', label: '操作人地址' },
+ { visible: true, prop: 'operTime', label: '操作时间' },
+ { visible: false, prop: 'method', label: '操作方法' },
+ { visible: false, prop: 'operParam', label: '请求参数' },
+ { visible: false, prop: 'jsonResult', label: '返回结果' },
+ { visible: false, prop: 'errorMsg', label: '错误信息' },
+ { visible: false, prop: 'elapsed', label: '操作用时' }
+])
const { form, queryParams, options } = toRefs(state)
var dictParams = [
{ dictType: 'sys_oper_type', columnName: 'businessTypeOptions' },
@@ -294,16 +327,8 @@ function handleExport() {
cancelButtonText: '取消',
type: 'warning'
})
- .then(() => {
- exportOperlog(queryParams.value).then((response) => {
- const { code, data } = response
- if (code == 200) {
- proxy.$modal.msgSuccess('导出成功')
- proxy.download(data.path)
- } else {
- proxy.$modal.msgError('导出失败')
- }
- })
+ .then(async () => {
+ await proxy.downFile('/monitor/OperLog/export', { ...queryParams.value })
})
}
handleQuery()