|
|
||
|---|---|---|
| public | ||
| src | ||
| .gitignore | ||
| README.md | ||
| package-lock.json | ||
| package.json | ||
README.md
EVA Form
EVA 对外表单填报系统 用于精品活动/纳新报名页
可接受自定义参数生成表格
API LIST
问题格式
- methods:get
- url:/api/forminfo/{router}
{
code:200,
data:{
formname:"EVA",
question:[
{
type: "input", //输入框
title: "blank1",// label
placeholder: "placeholder1",//文本框提示语
message: "please input the blank",//未填写提交 报错提示语
style: { width: "200px" },
},
{
type: "radio",//选择题
title: "radio1",//label
options: ["option1", "option2", "option3"],//选项
message: "please select one option",
},
{
type: "textarea",//长文本输入框
title: "textarea1",
placeholder: "text area placeholder1",//文本框提示语
message: "please input the text area",
style: { width: "400px" },
rows: 4,//行数
}
]
}
}
答案提交
-
methods:post
-
url: /api/formsubmit/{router}
-
post格式
{ "title":value, //title是之前题目生成时传的title "title":value, //value根据题目类型而定 可能是string number boolean "title":value, }TODO
增加图片上传组件