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;