Go to file
WangJiaLiang 4fed57c237 修改了Readme 2023-01-12 20:44:10 +00:00
public first commit 2023-01-12 15:46:04 +00:00
src 修改了Readme 2023-01-12 20:44:10 +00:00
.gitignore first commit 2023-01-12 15:46:04 +00:00
README.md 修改了Readme 2023-01-12 20:44:10 +00:00
package-lock.json first commit 2023-01-12 15:46:04 +00:00
package.json first commit 2023-01-12 15:46:04 +00:00

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

    增加图片上传组件