提交 95472043 作者: 龚洪江

功能:推荐商品筛选字段添加

上级 678623bf
......@@ -163,7 +163,7 @@ export type addMallGoodsType = InterFunction<goodsItemType, any>;
export type editMallGoodsType = InterFunction<goodsItemType & { id: number }, any>;
//商品-列表(新)
export type listPageGoodsInfoType = InterItemFunction<
{ categoryPrimaryId?: number; tradeName?: string; shelfStatus?: number },
{ categoryPrimaryId?: number; tradeName?: string; shelfStatus?: number; recommend?: number },
(goodsItemType & { id: number })[]
>;
//商城-详情(新)
......
......@@ -106,12 +106,6 @@ function CustomListView() {
// 表格结构
const columns: ColumnsType<TableType[0]> = [
{
title: '用户UID',
dataIndex: 'id',
align: 'center',
width: '100px',
},
{
title: '用户名称',
dataIndex: 'userName',
align: 'center',
......
......@@ -59,6 +59,22 @@ const GoodsList = () => {
type: 'select',
options: [],
},
{
label: '推荐',
placeholder: '请选择推荐状态',
name: 'recommend',
type: 'select',
options: [
{
name: '是',
id: 1,
},
{
name: '否',
id: 0,
},
],
},
]);
const tableColumns: ColumnsType<goodsType[0]> = [
{
......@@ -81,6 +97,12 @@ const GoodsList = () => {
align: 'center',
render: (_text: string, record: goodsType[0]) => getCategoryStr(record),
},
{
title: '是否推荐',
align: 'center',
dataIndex: 'recommend',
render: (text: string) => (text ? '是' : '否'),
},
{ title: '创建时间', align: 'center', dataIndex: 'createTime' },
{
title: '状态',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论