🎨 完善订单页面和文章页

This commit is contained in:
2025-09-01 22:36:18 +08:00
parent 7b9a4f5dc1
commit 9bf02628eb
7 changed files with 862 additions and 159 deletions

View File

@@ -3,16 +3,102 @@ export let userStatus = await getDict('user-status')
export const ORDER_SEARCH_CONFIG = [
{
type: 'input',
prop:'orderId',
prop:'order_no',
label: '订单号',
placeholder: '请输入',
placeholder: '请输入订单号',
},
{
type: 'input',
prop:'title',
label: '商品名称',
placeholder: '请输入商品名称',
},
{
type: 'input',
prop:'name',
label: '用户姓名',
placeholder: '请输入用户姓名',
},
{
type: 'select',
prop:'order_type',
label: '订单类型',
placeholder: '请选择订单类型',
children:{
list: [
{
label: '全部',
value: ''
},
{
label: '课程',
value: 1
},
{
label: 'VIP',
value: 2
}
]
},
},
{
type: 'select',
prop:'pay_type',
label: '支付方式',
placeholder: '请选择支付方式',
children:{
list: [
{
label: '全部',
value: ''
},
{
label: '微信',
value: 1
},
{
label: '支付宝',
value: 2
},
{
label: '余额',
value: 3
}
]
},
},
{
type: 'select',
prop:'status',
label: '订单状态',
placeholder: '请选择订单状态',
children:{
list: [
{
label: '全部',
value: ''
},
{
label: '未付款',
value: 1
},
{
label: '已付款',
value: 2
},
{
label: '已过期',
value: 3
}
]
},
},
{
type: 'daterange',
prop: 'times',
label: '申请时间',
label: '创建时间',
valueFormat: 'YYYY-MM-DD',
placeholder: '请选择申请时间',
placeholder: '请选择创建时间',
startPlaceholder: '开始日期',
endPlaceholder: '结束日期',
rangeSeparator: '-'
@@ -92,26 +178,40 @@ export const USER_SEARCH_CONFIG = [
export const ARTICLE_SEARCH_CONFIG = [
{
type: 'input',
prop:'name',
label: '名称',
placeholder: '请输入',
prop:'title',
label: '文章标题',
placeholder: '请输入文章标题',
},
{
type: 'select',
prop:'status',
label: '状态',
placeholder: '请选择',
prop:'categoryId',
label: '文章分类',
placeholder: '请选择分类',
children:{
list: [
{
label: '全部',
value: ''
},
...userStatus
}
]
},
}
},
{
type: 'select',
prop:'teacherId',
label: '讲师',
placeholder: '请选择讲师',
children:{
list: [
{
label: '全部',
value: ''
}
]
},
},
]
// 订单列表
export const ORDER_TABLE_CONFIG = {
index: true,
@@ -126,6 +226,13 @@ export const ORDER_TABLE_CONFIG = {
{
attrs: {
label: '商品名称',
prop: 'title',
align: 'center'
}
},
{
attrs: {
label: '用户姓名',
prop: 'name',
align: 'center'
}
@@ -134,37 +241,41 @@ export const ORDER_TABLE_CONFIG = {
attrs: {
label: '价格',
align: 'center',
prop: 'price'
prop: 'price',
slot: 'price'
}
},
{
attrs: {
label: '类型',
label: '订单类型',
align: 'center',
prop: 'order_type'
prop: 'order_type',
slot: 'order_type'
}
},
{
attrs: {
label: '状态',
label: '支付方式',
align: 'center',
prop: 'pay_type',
slot: 'pay_type'
}
},
{
attrs: {
label: '订单状态',
prop: 'status',
align: 'center'
},
slot: 'status'
},{
align: 'center',
slot: 'status'
}
},
{
attrs: {
label: '创建时间',
prop: 'CreatedAt',
align: 'center'
},
slot: 'CreatedAt'
},{
attrs: {
label: '更新时间',
prop: 'UpdatedAt',
align: 'center'
},
slot: 'UpdatedAt'
align: 'center',
slot: 'CreatedAt'
}
},
{
attrs: {
@@ -264,24 +375,35 @@ export const ARTICLE_TABLE_CONFIG = {
},
{
attrs: {
label: '名称',
label: '标题',
prop: 'title',
align: 'center'
}
},{
},
{
attrs: {
label: '讲师',
prop: 'teacherName',
align: 'center'
}
},
{
attrs: {
label: '价格',
prop: 'price',
align: 'center'
}
},{
},
slot: 'price'
},
{
attrs: {
label: '创建时间',
prop: 'CreatedAt',
label: '是否免费',
prop: 'isFree',
align: 'center'
},
slot: 'CreatedAt'
},{
slot: 'isFree'
},
{
attrs: {
label: '更新时间',
prop: 'UpdatedAt',