From e0c223d9e3529871ce1f2a9072bf7a4f7318c3fa 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, 2 Mar 2022 21:21:59 +0800
Subject: [PATCH] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E6=96=B0=E5=A2=9E=E4=B8=9A=E5=8A=A1=E7=B1=BB=E5=9E=8B?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ZR.Vue/src/views/monitor/operlog/index.vue | 37 ++++++++++++----------
1 file changed, 21 insertions(+), 16 deletions(-)
diff --git a/ZR.Vue/src/views/monitor/operlog/index.vue b/ZR.Vue/src/views/monitor/operlog/index.vue
index 71c07e4..8cdc070 100644
--- a/ZR.Vue/src/views/monitor/operlog/index.vue
+++ b/ZR.Vue/src/views/monitor/operlog/index.vue
@@ -9,7 +9,7 @@
-
+
@@ -42,9 +42,13 @@
-
+
-
+
+
+
+
+
@@ -63,7 +67,7 @@
- {{ parseTime(scope.row.operTime) }}
+ {{ scope.row.operTime }}
@@ -92,7 +96,9 @@
{{ form.method }}
- {{ typeFormat(form) }}
+
+
+
{{ form.operParam }}
@@ -149,9 +155,9 @@ export default {
// 是否显示弹出层
open: false,
// 类型数据字典
- typeOptions: [],
- // 类型数据字典
statusOptions: [],
+ // 业务类型(0其它 1新增 2修改 3删除)选项列表 格式 eg:{ dictLabel: '标签', dictValue: '0'}
+ businessTypeOptions: [],
// 日期范围
dateRange: [],
// 表单参数
@@ -169,11 +175,14 @@ export default {
},
created() {
this.getList();
- this.getDicts("sys_oper_type").then((response) => {
- this.typeOptions = response.data;
- });
- this.getDicts("sys_common_status").then((response) => {
- this.statusOptions = response.data;
+ var dictParams = [
+ { dictType: "sys_oper_type", columnName: "businessTypeOptions" },
+ { dictType: "sys_common_status", columnName: "statusOptions" },
+ ];
+ this.getDicts(dictParams).then((response) => {
+ response.data.forEach((element) => {
+ this[element.columnName] = element.list;
+ });
});
},
methods: {
@@ -197,10 +206,6 @@ export default {
statusFormat(row, column) {
return this.selectDictLabel(this.statusOptions, row.status);
},
- // 操作日志类型字典翻译
- typeFormat(row, column) {
- return this.selectDictLabel(this.typeOptions, row.businessType);
- },
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;