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

218 lines
4.5 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;
placeholder1?: any;
prop1?: any;
}
export const EDIT_FORM_DATA: FormItem[] = [
{
prop: "title",
placeholder: "请输入",
type: "input",
label: "Banner名称: "
},
{
prop: "title_txt_color",
placeholder: "填写RGB值",
type: "input",
label: "文字颜色: "
},
{
prop: "type",
placeholder: "请输入",
type: "radio",
label: "前台显示: ",
options: [
{
label: "显示图片",
value: "image"
},
{
label: "显示视频",
value: "video"
}
]
},
{
prop: "status",
placeholder: "",
type: "radio",
label: "是否启用: ",
options: [
{
label: "是",
value: 1
},
{
label: "否",
value: -1
}
]
},
{
prop: "image",
type: "upImg",
label: "Banner图片: "
},
{
prop: "banner_id",
placeholder: "请选择",
type: "select",
label: "Banner分类: ",
options: []
},
{
prop: "rel_prod_cate_id",
placeholder: "请选择",
type: "treeSelect",
label: "相关分类: ",
options: []
},
{
prop: "sort",
placeholder: "请输入",
type: "inputNumber",
label: "Banner排序: "
},
{
prop: "link",
placeholder: "请输入",
type: "treeSelectInput",
label: "链接地址: ",
placeholder1: "请选择",
prop1: "link_to",
options: []
},
{
prop: "desc",
placeholder: "请输入",
type: "WangEditor",
label: "Banner描述: "
},
{
prop: "desc_txt_color",
placeholder: "填写RGB值",
type: "input",
label: "描述颜色: "
}
];
export const EDIT_FORM_DATA1: FormItem[] = [
{
prop: "title",
placeholder: "请输入",
type: "input",
label: "Banner名称: "
},
{
prop: "title_txt_color",
placeholder: "填写RGB值",
type: "input",
label: "文字颜色: "
},
{
prop: "type",
placeholder: "请输入",
type: "radio",
label: "前台显示: ",
options: [
{
label: "显示图片",
value: "image"
},
{
label: "显示视频",
value: "video"
}
]
},
{
prop: "status",
placeholder: "",
type: "radio",
label: "是否启用: ",
options: [
{
label: "是",
value: 1
},
{
label: "否",
value: 0
}
]
},
{
prop: "image",
type: "upImg",
label: "Banner图片: "
},
{
prop: "banner_id",
placeholder: "请选择",
type: "select",
label: "Banner分类: ",
options: []
},
{
prop: "sort",
placeholder: "请输入",
type: "inputNumber",
label: "Banner排序: "
},
// {
// prop: "link",
// placeholder: "请输入",
// type: "inputSelect",
// label: "链接地址: ",
// placeholder1: "请选择",
// prop1: "link_type",
// options: []
// },
{
prop: "video",
type: "video",
label: "视频文件: ",
fileList: []
},
{
prop: "desc",
placeholder: "请输入",
type: "textarea",
label: "Banner描述: "
},
{
prop: "desc_txt_color",
placeholder: "填写RGB值",
type: "input",
label: "描述颜色: "
}
];
export const EDIT_RULE_FORM = {
type: "image",
sort: 1
};
// editRuleForm: {},
//editFormData: [],