From 83f7f6af91c922b1efe612f115b7b6ac82d6150b Mon Sep 17 00:00:00 2001 From: Junjie <540245094@qq.com> Date: 星期二, 16 七月 2024 09:55:08 +0800 Subject: [PATCH] # --- zy-asrs-admin/src/views/system/host/index.vue | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/zy-asrs-admin/src/views/system/host/index.vue b/zy-asrs-admin/src/views/system/host/index.vue index d653ffd..6c0f732 100644 --- a/zy-asrs-admin/src/views/system/host/index.vue +++ b/zy-asrs-admin/src/views/system/host/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,31 +20,40 @@ let tableData = ref([]); getPage(); +const { + getColumnSearchProps, +} = useTableSearch(); + const columns = [ { title: formatMessage('db.sys_host.name', '鍚嶇О'), dataIndex: 'name', width: 140, + ...getColumnSearchProps('name'), }, { title: formatMessage('db.sys_host.status', '鐘舵��'), dataIndex: 'status$', width: 140, + ...getColumnSearchProps('status$'), }, { title: formatMessage('db.sys_host.create_time', '娣诲姞鏃堕棿'), dataIndex: 'createTime$', width: 140, + ...getColumnSearchProps('createTime$'), }, { title: formatMessage('db.sys_host.update_time', '淇敼鏃堕棿'), dataIndex: 'updateTime$', width: 140, + ...getColumnSearchProps('updateTime$'), }, { title: formatMessage('db.sys_host.memo', '澶囨敞'), dataIndex: 'memo', width: 140, + ...getColumnSearchProps('memo'), }, { -- Gitblit v1.9.1