@(KNB架构)
欢迎关注作者博客
简书传送门
需求
- 详情页实现自定义功能,可自行拖拽编辑内容;
- 列表页面可自定义搜索功能
- 多表业务关联
不规则json模板:
{
"id": "1",
"title": "手术记录",
"name": "",
"describe": "请填写手术记录",
"questions": [{
"a0": "a0",
"id": 0,
"name": "a0",
"type": 0,
"input": "a0-input",
"title": "question1-术前诊断1",
"answer": [{
"id": 0,
"a0-0": "a0-0",
"name": "a0-0",
"type": 0,
"input": "question1-answer-a0-a0-0",
"title": "question1-answer-术前诊断",
"content": "sdsd",
"describe": "question1-answer-手术前的检查",
"ischecked": 0,
"locationinput": "questions[0].answer[0].input",
"locationdescribe": "questions[0].answer[0].describe",
"locationtitle": "questions[0].answer[0].title",
"locationcontent": "questions[0].answer[0].content"
},
{
"id": 0,
"a0-0": "a0-0",
"name": "a0-0",
"type": 0,
"input": "question1-answer-a0-a0-0",
"title": "question1-answer-术前诊断",
"content": "sdsd",
"describe": "question1-answer-手术前的检查",
"ischecked": 0,
"locationinput": "questions[0].answer[1].input",
"locationdescribe": "questions[0].answer[1].describe",
"locationtitle": "questions[0].answer[1].title",
"locationcontent": "questions[0].answer[1].content"
}
],
"writeOr": 0,
"describe": "question1-手术前的检查1",
"locationinput": "questions[0].input",
"locationdescribe": "questions[0].describe",
"locationtitle": "questions[0].title",
"locationcontent": "questions[0].content"
},
{
"a0": "a0",
"id": 0,
"name": "a0",
"type": 0,
"input": "a0-input",
"title": "question1-术前诊断1",
"answer": [{
"id": 0,
"a0-0": "a0-0",
"name": "a0-0",
"type": 0,
"input": "question1-answer-a0-a0-0",
"title": "question1-answer-术前诊断",
"content": "sdsd",
"describe": "question1-answer-手术前的检查",
"ischecked": 0,
"locationinput": "questions[1].answer[0].input",
"locationdescribe": "questions[1].answer[0].describe",
"locationtitle": "questions[1].answer[0].title",
"locationcontent": "questions[1].answer[0].content"
},
{
"id":