From 13909c99e368788a94a48753dc9f76e40a992cd6 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期一, 29 七月 2024 15:21:06 +0800
Subject: [PATCH] #
---
zy-asrs-admin/src/views/system/operationRecord/index.vue | 174 ++++++++++++++++++++++++++++++++--------------------------
1 files changed, 96 insertions(+), 78 deletions(-)
diff --git a/zy-asrs-admin/src/views/system/operationRecord/index.vue b/zy-asrs-admin/src/views/system/operationRecord/index.vue
index e041f71..d235645 100644
--- a/zy-asrs-admin/src/views/system/operationRecord/index.vue
+++ b/zy-asrs-admin/src/views/system/operationRecord/index.vue
@@ -6,6 +6,7 @@
import { logout } from '@/config.js';
import EditView from './edit.vue'
import { formatMessage } from '@/utils/localeUtils.js';
+import useTableSearch from '@/utils/tableUtils.jsx';
const context = getCurrentInstance()?.appContext.config.globalProperties;
const router = useRouter();
@@ -19,85 +20,102 @@
let tableData = ref([]);
getPage();
+const {
+ getColumnSearchProps,
+} = useTableSearch();
+
const columns = [
- {
- title: formatMessage('db.sys_operation_record.namespace', '鍚嶇О绌洪棿'),
- dataIndex: 'namespace',
- width: 140,
- ellipsis: true,
- },
- {
- title: formatMessage('db.sys_operation_record.url', '鎺ュ彛鍦板潃'),
- dataIndex: 'url',
- width: 140,
- ellipsis: true,
- },
- {
- title: formatMessage('db.sys_operation_record.appkey', '骞冲彴瀵嗛挜'),
- dataIndex: 'appkey',
- width: 140,
- ellipsis: true,
- },
- {
- title: formatMessage('db.sys_operation_record.timestamp', '鏃堕棿鎴�'),
- dataIndex: 'timestamp',
- width: 140,
- ellipsis: true,
- },
- {
- title: formatMessage('db.sys_operation_record.client_ip', '瀹㈡埛绔疘P'),
- dataIndex: 'clientIp',
- width: 140,
- ellipsis: true,
- },
- {
- title: formatMessage('db.sys_operation_record.request', '璇锋眰鍐呭'),
- dataIndex: 'request',
- width: 140,
- ellipsis: true,
- },
- {
- title: formatMessage('db.sys_operation_record.response', '鍝嶅簲鍐呭'),
- dataIndex: 'response',
- width: 140,
- ellipsis: true,
- },
- {
- title: formatMessage('db.sys_operation_record.spend_time', '娑堣�楁椂闂�'),
- dataIndex: 'spendTime',
- width: 140,
- ellipsis: true,
- },
- {
- title: formatMessage('db.sys_operation_record.err', '寮傚父鍐呭'),
- dataIndex: 'err',
- width: 140,
- ellipsis: true,
- },
- {
- title: formatMessage('db.sys_operation_record.result', '缁撴灉'),
- dataIndex: 'result$',
- width: 140,
- ellipsis: true,
- },
- {
- title: formatMessage('db.sys_operation_record.user_id', '鐢ㄦ埛'),
- dataIndex: 'userId$',
- width: 140,
- ellipsis: true,
- },
- {
- title: formatMessage('db.sys_operation_record.create_time', '娣诲姞鏃堕棿'),
- dataIndex: 'createTime$',
- width: 140,
- ellipsis: true,
- },
- {
- title: formatMessage('db.sys_operation_record.memo', '澶囨敞'),
- dataIndex: 'memo',
- width: 140,
- ellipsis: true,
- },
+ {
+ title: formatMessage('db.sys_operation_record.namespace', '鍚嶇О绌洪棿'),
+ dataIndex: 'namespace',
+ width: 140,
+ ellipsis: true,
+ ...getColumnSearchProps('namespace'),
+ },
+ {
+ title: formatMessage('db.sys_operation_record.url', '鎺ュ彛鍦板潃'),
+ dataIndex: 'url',
+ width: 140,
+ ellipsis: true,
+ ...getColumnSearchProps('url'),
+ },
+ {
+ title: formatMessage('db.sys_operation_record.appkey', '骞冲彴瀵嗛挜'),
+ dataIndex: 'appkey',
+ width: 140,
+ ellipsis: true,
+ ...getColumnSearchProps('appkey'),
+ },
+ {
+ title: formatMessage('db.sys_operation_record.timestamp', '鏃堕棿鎴�'),
+ dataIndex: 'timestamp',
+ width: 140,
+ ellipsis: true,
+ ...getColumnSearchProps('timestamp'),
+ },
+ {
+ title: formatMessage('db.sys_operation_record.client_ip', '瀹㈡埛绔疘P'),
+ dataIndex: 'clientIp',
+ width: 140,
+ ellipsis: true,
+ ...getColumnSearchProps('clientIp'),
+ },
+ {
+ title: formatMessage('db.sys_operation_record.request', '璇锋眰鍐呭'),
+ dataIndex: 'request',
+ width: 140,
+ ellipsis: true,
+ ...getColumnSearchProps('request'),
+ },
+ {
+ title: formatMessage('db.sys_operation_record.response', '鍝嶅簲鍐呭'),
+ dataIndex: 'response',
+ width: 140,
+ ellipsis: true,
+ ...getColumnSearchProps('response'),
+ },
+ {
+ title: formatMessage('db.sys_operation_record.spend_time', '娑堣�楁椂闂�'),
+ dataIndex: 'spendTime',
+ width: 140,
+ ellipsis: true,
+ ...getColumnSearchProps('spendTime'),
+ },
+ {
+ title: formatMessage('db.sys_operation_record.err', '寮傚父鍐呭'),
+ dataIndex: 'err',
+ width: 140,
+ ellipsis: true,
+ ...getColumnSearchProps('err'),
+ },
+ {
+ title: formatMessage('db.sys_operation_record.result', '缁撴灉'),
+ dataIndex: 'result$',
+ width: 140,
+ ellipsis: true,
+ ...getColumnSearchProps('result$'),
+ },
+ {
+ title: formatMessage('db.sys_operation_record.user_id', '鐢ㄦ埛'),
+ dataIndex: 'userId$',
+ width: 140,
+ ellipsis: true,
+ ...getColumnSearchProps('userId$'),
+ },
+ {
+ title: formatMessage('db.sys_operation_record.create_time', '娣诲姞鏃堕棿'),
+ dataIndex: 'createTime$',
+ width: 140,
+ ellipsis: true,
+ ...getColumnSearchProps('createTime$'),
+ },
+ {
+ title: formatMessage('db.sys_operation_record.memo', '澶囨敞'),
+ dataIndex: 'memo',
+ width: 140,
+ ellipsis: true,
+ ...getColumnSearchProps('memo'),
+ },
{
title: formatMessage('common.operation', '鎿嶄綔'),
--
Gitblit v1.9.1