mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
合并冲突
This commit is contained in:
342
web/public/config/columnList.js
Normal file
342
web/public/config/columnList.js
Normal file
@@ -0,0 +1,342 @@
|
||||
export const columnList = [
|
||||
{
|
||||
page: 'user',
|
||||
columns: [
|
||||
{
|
||||
title: '用户ID',
|
||||
dataIndex: 'user_id',
|
||||
key: 'user_id',
|
||||
ellipsis: true,
|
||||
filterable: true,
|
||||
fixed: 'left'
|
||||
},
|
||||
{
|
||||
title: '用户名',
|
||||
dataIndex: 'account',
|
||||
key: 'account',
|
||||
filterable: true
|
||||
},
|
||||
{
|
||||
title: '姓名',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
ellipsis: true,
|
||||
filterable: true
|
||||
},
|
||||
{
|
||||
title: '性别',
|
||||
dataIndex: 'gender',
|
||||
key: 'gender',
|
||||
filterable: true,
|
||||
scopedSlots: { customRender: 'gender' }
|
||||
},
|
||||
{
|
||||
title: '年龄',
|
||||
dataIndex: 'age',
|
||||
key: 'age',
|
||||
filterable: true
|
||||
},
|
||||
{
|
||||
title: '手机号',
|
||||
dataIndex: 'phone',
|
||||
key: 'phone',
|
||||
filterable: true
|
||||
},
|
||||
{
|
||||
title: '邮箱',
|
||||
dataIndex: 'email',
|
||||
key: 'email',
|
||||
filterable: true
|
||||
},
|
||||
{
|
||||
title: '角色ID',
|
||||
dataIndex: 'role_id',
|
||||
key: 'role_id',
|
||||
filterable: true
|
||||
},
|
||||
{
|
||||
title: '角色名称',
|
||||
dataIndex: 'role_name',
|
||||
key: 'role_name',
|
||||
filterable: true
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'operate',
|
||||
key: 'operate',
|
||||
scopedSlots: { customRender: 'action' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
page: 'menu',
|
||||
columns: [
|
||||
{
|
||||
title: '菜单名称',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
ellipsis: true,
|
||||
filterable: true,
|
||||
fixed: 'left'
|
||||
},
|
||||
{
|
||||
title: '菜单路由',
|
||||
dataIndex: 'route',
|
||||
key: 'route',
|
||||
filterable: true
|
||||
},
|
||||
{
|
||||
title: '顺序',
|
||||
dataIndex: 'seq',
|
||||
align: 'center',
|
||||
key: 'seq',
|
||||
ellipsis: true,
|
||||
width: 120,
|
||||
|
||||
filterable: true
|
||||
},
|
||||
{
|
||||
title: '图标',
|
||||
dataIndex: 'icon',
|
||||
align: 'center',
|
||||
key: 'icon',
|
||||
width: 120,
|
||||
scopedSlots: { customRender: 'icon' }
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
dataIndex: 'createTime',
|
||||
key: 'createTime',
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
filterable: true,
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
title: '更新时间',
|
||||
dataIndex: 'updateTime',
|
||||
key: 'updateTime',
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
filterable: true,
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'operate',
|
||||
key: 'operate',
|
||||
scopedSlots: { customRender: 'action' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
page: 'role',
|
||||
columns: [
|
||||
{
|
||||
title: '角色名称',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
ellipsis: true,
|
||||
filterable: true,
|
||||
width: 180,
|
||||
|
||||
fixed: 'left'
|
||||
},
|
||||
{
|
||||
title: '角色类型',
|
||||
dataIndex: 'type',
|
||||
key: 'type',
|
||||
width: 120,
|
||||
|
||||
scopedSlots: { customRender: 'type' }
|
||||
},
|
||||
{
|
||||
title: '描述',
|
||||
dataIndex: 'desc',
|
||||
align: 'center',
|
||||
key: 'desc',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: '权限名称',
|
||||
dataIndex: 'permissions',
|
||||
align: 'center',
|
||||
key: 'permissions',
|
||||
width: 180,
|
||||
|
||||
ellipsis: true,
|
||||
scopedSlots: { customRender: 'permissions' }
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
dataIndex: 'createTime',
|
||||
key: 'createTime',
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
filterable: true,
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
title: '更新时间',
|
||||
dataIndex: 'updateTime',
|
||||
key: 'updateTime',
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
filterable: true,
|
||||
width: 180
|
||||
},
|
||||
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'operate',
|
||||
scopedSlots: { customRender: 'action' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
page: 'permission',
|
||||
columns: [
|
||||
{
|
||||
title: '权限名称',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
ellipsis: true,
|
||||
filterable: true,
|
||||
fixed: 'left',
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
title: '描述',
|
||||
dataIndex: 'desc',
|
||||
key: 'desc'
|
||||
},
|
||||
{
|
||||
title: '是否可查询',
|
||||
dataIndex: 'isQuery',
|
||||
key: 'isQuery',
|
||||
align: 'center',
|
||||
width: 120,
|
||||
scopedSlots: { customRender: 'isQuery' }
|
||||
},
|
||||
{
|
||||
title: '是否可编辑',
|
||||
dataIndex: 'isControl',
|
||||
align: 'center',
|
||||
key: 'isEdit',
|
||||
width: 120,
|
||||
scopedSlots: { customRender: 'isEdit' }
|
||||
},
|
||||
{
|
||||
title: '是否可控制',
|
||||
dataIndex: 'isEdit',
|
||||
align: 'center',
|
||||
key: 'isEdit',
|
||||
key: 'isControl',
|
||||
width: 120,
|
||||
scopedSlots: { customRender: 'isControl' }
|
||||
},
|
||||
|
||||
{
|
||||
title: '创建时间',
|
||||
dataIndex: 'createTime',
|
||||
key: 'createTime',
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
filterable: true,
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
title: '更新时间',
|
||||
dataIndex: 'updateTime',
|
||||
key: 'updateTime',
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
filterable: true,
|
||||
width: 180
|
||||
},
|
||||
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'operate',
|
||||
scopedSlots: { customRender: 'action' }
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
export const options = [
|
||||
{
|
||||
title: '基础信息',
|
||||
icon: 'icon-xinxi',
|
||||
list: [
|
||||
{
|
||||
label: '名称',
|
||||
value: '',
|
||||
key: 'name',
|
||||
type: 'input'
|
||||
},
|
||||
{
|
||||
label: '账户类型',
|
||||
value: undefined,
|
||||
// dataIndex: 'type',
|
||||
key: 'type',
|
||||
type: 'select',
|
||||
list: [
|
||||
{
|
||||
label: '虚拟账户',
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
label: '卡账户',
|
||||
value: 1
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
label: '账号',
|
||||
value: [],
|
||||
key: 'code',
|
||||
type: 'input'
|
||||
},
|
||||
{
|
||||
label: '用户',
|
||||
value: undefined,
|
||||
// dataIndex: 'userId',
|
||||
key: 'userId',
|
||||
type: 'select',
|
||||
list: []
|
||||
},
|
||||
{
|
||||
label: '余额',
|
||||
value: '',
|
||||
key: 'money',
|
||||
type: 'input',
|
||||
inputType: 'number'
|
||||
},
|
||||
{
|
||||
label: '账户状态',
|
||||
value: '',
|
||||
key: 'status',
|
||||
type: 'select',
|
||||
list: [
|
||||
{
|
||||
label: '正常',
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
label: '注销',
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
label: '异常',
|
||||
value: 9
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
ruleForm: {
|
||||
// selectTableData: [],
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user