amis icon indicating copy to clipboard operation
amis copied to clipboard

保存查询页面的查询条件后,条件回显的问题

Open diabloyong opened this issue 6 years ago • 3 comments

image 如上图,我将查询的条件保存到数据库,下车进入页面的时候,条件并不会显示我保存的条件

diabloyong avatar Jun 09 '20 08:06 diabloyong

你提交的数据和初始化返回的数据格式一致就行

2betop avatar Jun 09 '20 08:06 2betop

你提交的数据和初始化返回的数据格式一致就行

第一个红条的代码 { "type": "combo", "multiple": true, "name": "events", "label": "漏斗步骤", "controls": [ { "type": "select", "name": "event_id", "required": true, "placeholder": "请添加事件/功能步骤", "searchable": true, "source": "get:/option/event/list", } ] }, 保存的结果是: "events":"[{"event_id":10466},{"event_id":10467}]"} 我查库后端代码返回是用PageNoSizeResult[xxxx] ,xxxx:应该是什么类型

diabloyong avatar Jun 09 '20 09:06 diabloyong

可以通过在 form 上加 debug: true 查看数据,保证一致就行

nwind avatar Sep 22 '21 08:09 nwind