Files
orico-officialWebsite-ts-admin/src/views/articleManagement/list/constant/edit.ts

129 lines
2.7 KiB
TypeScript

interface FormItem {
prop: string;
label?: string;
placeholder?: string;
type: string;
isCopy?: boolean;
optionProps?: any;
startPlaceholder?: string;
endPlaceholder?: string;
options?: any;
isArray?: boolean;
startDate?: string; //开始时间(传入后台需要的参数)
endDate?: string; //结束时间(传入后台需要的参数)
startProp?: string;
endProp?: string;
isInteger?: boolean;
disabled?: boolean;
fileList?: any;
prompt?: any;
}
export const EDIT_FORM_DATA: FormItem[] = [
{
prop: "title",
placeholder: "请输入",
type: "input",
label: "文章名称: "
},
{
prop: "category_id1",
placeholder: "请选择",
type: "treeSelect",
label: "文章分类: ",
options: []
},
{
prop: "sort",
placeholder: "请输入",
type: "inputNumber",
label: "文章排序: "
},
{
prop: "recommend",
placeholder: "请选择",
type: "radio",
label: "首页推荐: ",
options: [
{
label: "是",
value: 1
},
{
label: "否",
value: 0
}
]
},
// {
// prop: "is_show1",
// placeholder: "",
// type: "radio",
// label: "是否启用: ",
// options: [
// {
// label: "是",
// value: 1
// },
// {
// label: "否",
// value: 0
// }
// ]
// },
{
prop: "link",
placeholder: "请输入",
type: "input",
label: "跳转链接: "
},
{
prop: "desc",
placeholder: "请输入",
type: "textarea",
label: "文章描述: "
},
{
prop: "release_time",
placeholder: "请选择",
type: "datetime",
label: "发布时间: "
},
{
prop: "image",
type: "upImg",
label: "封面图: ",
prompt: "图片尺寸320x320"
},
{
prop: "seo_title",
placeholder: "请输入",
type: "input",
label: "SEO标题: "
},
{
prop: "seo_keywords",
placeholder: "请输入",
type: "input",
label: "SEO关键词: "
},
{
prop: "seo_desc",
placeholder: "请输入",
type: "input",
label: "SEO描述: "
}
];
export const EDIT_RULE_FORM = {
category_id: "",
title: "",
image: "",
link: "",
sort: 1,
desc: "",
content: "",
recommend: 1,
release_time: ""
};