浏览代码

add Vben2/src/views/sys/admin/online/online.data.ts.
在线用户显示页面,ts文件

Signed-off-by: UOSCN <323121749@qq.com>

UOSCN 3 年之前
父节点
当前提交
4650fbfc03
共有 1 个文件被更改,包括 51 次插入0 次删除
  1. 51 0
      Vben2/src/views/sys/admin/online/online.data.ts

+ 51 - 0
Vben2/src/views/sys/admin/online/online.data.ts

@@ -0,0 +1,51 @@
+import { BasicColumn } from '/@/components/Table';
+import { FormSchema } from '/@/components/Table';
+
+export const columns: BasicColumn[] = [
+  {
+    title: '账号',
+    dataIndex: 'account',
+    width: 100,
+    align: 'left',
+  },
+  {
+    title: '普通用户',
+    dataIndex: 'name',
+    width: 80,
+  },
+  {
+    title: '登录时间',
+    dataIndex: 'lastTime',
+    width: 100,
+  },
+  {
+    title: '登录IP',
+    dataIndex: 'lastLoginIp',
+    width: 100,
+  },
+  {
+    title: '浏览器',
+    dataIndex: 'lastLoginBrowser',
+    width: 100,
+  },
+  {
+    title: '操作系统',
+    dataIndex: 'lastLoginOs',
+    width: 100,
+  },
+];
+
+export const searchFormSchema: FormSchema[] = [
+  {
+    field: 'startTime',
+    label: '开始时间',
+    component: 'DatePicker',
+    colProps: { span: 8 },
+  },
+  {
+    field: 'endTime',
+    label: '结束时间',
+    component: 'DatePicker',
+    colProps: { span: 8 },
+  },
+];