Files
orico-officialWebsite-ts-admin/src/views/bannerManagement/class/constant/edit.ts

86 lines
1.8 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;
}
export const EDIT_FORM_DATA: FormItem[] = [
{
prop: "name",
placeholder: "请输入",
type: "input",
label: " Banner分类名称: "
},
{
prop: "unique_label",
placeholder: "请输入",
type: "input",
label: "唯一标识符: "
},
{
prop: "recommend",
placeholder: "请输入",
type: "radio",
label: "首页推荐: ",
options: [
{
label: "是",
value: 1
},
{
label: "否",
value: 0
}
]
},
{
prop: "at_platform",
placeholder: "请输入",
type: "radio",
label: "显示端口: ",
options: [
{
label: "PC端",
value: "pc"
},
{
label: "移动端",
value: "mobile"
}
]
},
{
prop: "desc",
placeholder: "请输入",
type: "textarea",
label: "描述: "
}
];
export const EDIT_RULE_FORM = {
videoName: "",
videoType: "",
videoSort: 1,
recommend: "",
videoDescribe: "",
link: "",
SEOTitle: "",
SEOKeywords: "",
SEODescribe: ""
};
// editRuleForm: {},
//editFormData: [],