| | |
| | | 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(); |
| | |
| | | let tableData = ref([]); |
| | | getPage(); |
| | | |
| | | const { |
| | | getColumnSearchProps, |
| | | } = useTableSearch(); |
| | | |
| | | const columns = [ |
| | | { |
| | | title: formatMessage('db.sys_user_login.user_id', '用户'), |
| | | dataIndex: 'userId$', |
| | | width: 140, |
| | | ...getColumnSearchProps('userId$'), |
| | | }, |
| | | { |
| | | title: formatMessage('db.sys_user_login.token', '密钥'), |
| | | dataIndex: 'token', |
| | | width: 140, |
| | | ellipsis: true, |
| | | ...getColumnSearchProps('token'), |
| | | }, |
| | | { |
| | | title: formatMessage('db.sys_user_login.ip', '登录ip'), |
| | | dataIndex: 'ip', |
| | | width: 140, |
| | | ...getColumnSearchProps('ip'), |
| | | }, |
| | | { |
| | | title: formatMessage('db.sys_user_login.type', '类型'), |
| | | dataIndex: 'type$', |
| | | width: 140, |
| | | ...getColumnSearchProps('type$'), |
| | | }, |
| | | { |
| | | title: formatMessage('db.sys_user_login.create_time', '添加时间'), |
| | | dataIndex: 'createTime$', |
| | | width: 140, |
| | | ...getColumnSearchProps('createTime$'), |
| | | }, |
| | | { |
| | | title: formatMessage('db.sys_user_login.system', '登录系统'), |
| | | dataIndex: 'system', |
| | | width: 140, |
| | | ...getColumnSearchProps('system'), |
| | | }, |
| | | { |
| | | title: formatMessage('db.sys_user_login.memo', '备注'), |
| | | dataIndex: 'memo', |
| | | width: 140, |
| | | ...getColumnSearchProps('memo'), |
| | | }, |
| | | |
| | | { |