2025-03-26
This commit is contained in:
187
src/views/bannerManagement/list/constant/edit.ts
Normal file
187
src/views/bannerManagement/list/constant/edit.ts
Normal file
@@ -0,0 +1,187 @@
|
||||
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: "image",
|
||||
type: "upImg",
|
||||
label: "Banner图片: "
|
||||
},
|
||||
|
||||
{
|
||||
prop: "banner_id",
|
||||
placeholder: "请选择",
|
||||
type: "select",
|
||||
label: "Banner分类: ",
|
||||
options: [
|
||||
{
|
||||
value: "1",
|
||||
label: "Level one 1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
prop: "sort",
|
||||
placeholder: "请输入",
|
||||
type: "inputNumber",
|
||||
label: "Banner排序: "
|
||||
},
|
||||
{
|
||||
prop: "link",
|
||||
placeholder: "请输入",
|
||||
type: "treeSelectInput",
|
||||
label: "链接地址: ",
|
||||
placeholder1: "请选择",
|
||||
prop1: "link_to",
|
||||
options: []
|
||||
},
|
||||
|
||||
{
|
||||
prop: "desc",
|
||||
placeholder: "请输入",
|
||||
type: "textarea",
|
||||
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: "image",
|
||||
type: "upImg",
|
||||
label: "Banner图片: "
|
||||
},
|
||||
|
||||
{
|
||||
prop: "banner_id",
|
||||
placeholder: "请选择",
|
||||
type: "select",
|
||||
label: "Banner分类: ",
|
||||
options: [
|
||||
{
|
||||
value: "1",
|
||||
label: "Level one 1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
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: [],
|
||||
Reference in New Issue
Block a user