38 lines
751 B
TypeScript
38 lines
751 B
TypeScript
import { FormType } from "@/components/form/interface";
|
|
import { UserDataType } from "@/model/userModel";
|
|
import { ColumnsType } from "antd/lib/table";
|
|
export const columns: ColumnsType<UserDataType> = [
|
|
{
|
|
title: "分类名称",
|
|
dataIndex: "name",
|
|
},
|
|
{
|
|
title: "分类描述",
|
|
dataIndex: "desc",
|
|
},
|
|
];
|
|
|
|
export const defaultConfig = [
|
|
{
|
|
type: FormType.input,
|
|
label: "分类名称",
|
|
name: "name",
|
|
value: "",
|
|
rules: [{ required: true, message: "请输入仓库名称!" }],
|
|
},
|
|
{
|
|
type: FormType.select,
|
|
label: "上级分类",
|
|
name: "pid",
|
|
value: 0,
|
|
selectUrl:"suppliesCat/list",
|
|
|
|
},
|
|
{
|
|
type: FormType.input,
|
|
label: "分类描述",
|
|
name: "desc",
|
|
value: "",
|
|
},
|
|
];
|