feat(user): 新增用户管理功能

- 添加用户列表页面,包含搜索、分页等功能
- 实现用户状态切换和详情查看功能
- 新增用户选择组件,用于选择用户
- 优化表格组件,支持自定义列和操作
- 添加面包屑组件,用于展示导航路径
This commit is contained in:
2025-04-28 17:57:16 +08:00
parent 749d285a0d
commit e0868a10af
17 changed files with 1132 additions and 46 deletions

View File

@@ -1,3 +1,5 @@
import {getDict} from '@/utils/dictionary'
export let userStatus = await getDict('user-status')
export const ORDER_SEARCH_CONFIG = [
{
type: 'input',
@@ -16,7 +18,53 @@ export const ORDER_SEARCH_CONFIG = [
rangeSeparator: '-'
},
]
// 经费申请列表
export const USER_SEARCH_CONFIG = [
{
type: 'input',
prop:'name',
label: '用户名称',
placeholder: '请输入',
},
{
type: 'select',
prop:'status',
label: '状态',
placeholder: '请选择',
children:{
list: [
{
label: '全部',
value: ''
},
...userStatus
]
},
}
]
export const ARTICLE_SEARCH_CONFIG = [
{
type: 'input',
prop:'name',
label: '名称',
placeholder: '请输入',
},
{
type: 'select',
prop:'status',
label: '状态',
placeholder: '请选择',
children:{
list: [
{
label: '全部',
value: ''
},
...userStatus
]
},
}
]
// 订单列表
export const ORDER_TABLE_CONFIG = {
index: true,
schemes: [
@@ -48,6 +96,56 @@ export const ORDER_TABLE_CONFIG = {
prop: 'order_type'
}
},
{
attrs: {
label: '状态',
prop: 'status',
align: 'center'
},
slot: 'status'
},{
attrs: {
label: '创建时间',
prop: 'CreatedAt',
align: 'center'
},
slot: 'CreatedAt'
},{
attrs: {
label: '更新时间',
prop: 'UpdatedAt',
align: 'center'
},
slot: 'UpdatedAt'
},
{
attrs: {
label: '操作',
prop: 'operate',
align: 'center'
},
slot: 'operate'
}
]
}
// 用户列表
export const USER_TABLE_CONFIG = {
index: true,
schemes: [
{
attrs: {
label: 'ID',
prop: 'order_no',
align: 'center'
}
},
{
attrs: {
label: '名称',
prop: 'name',
align: 'center'
}
},
{
attrs: {
label: '状态',
@@ -78,3 +176,52 @@ export const ORDER_TABLE_CONFIG = {
}
]
}
// 文章列表
export const ARTICLE_TABLE_CONFIG = {
index: true,
schemes: [
{
attrs: {
label: '封面',
prop: 'coverImg',
align: 'center'
},
slot: 'coverImg'
},
{
attrs: {
label: '名称',
prop: 'title',
align: 'center'
}
},{
attrs: {
label: '价格',
prop: 'price',
align: 'center'
}
},{
attrs: {
label: '创建时间',
prop: 'CreatedAt',
align: 'center'
},
slot: 'CreatedAt'
},{
attrs: {
label: '更新时间',
prop: 'UpdatedAt',
align: 'center'
},
slot: 'UpdatedAt'
},
{
attrs: {
label: '操作',
prop: 'operate',
align: 'center'
},
slot: 'operate'
}
]
}