#
Junjie
2024-07-16 83f7f6af91c922b1efe612f115b7b6ac82d6150b
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'),
  },
  {