amis icon indicating copy to clipboard operation
amis copied to clipboard

请问我这个表单项填了,提交时,为什么HTTP请求参数和我修改的表单项不一样呢?

Open icodingx opened this issue 6 years ago • 2 comments

@2betop 麻烦帮我看看 , 感谢!

"drawer": {
  "title": "数据定义", "resizable": true, "size": "lg", "position": "right", "body": {
    "type": "form", "mode": "horizontal", "initApi":{"url": "/biz/ds/#pid/#id/datasets/${dsid}", "method": "get", "sendOn": "dsid"}, "api": {"url": "/biz/ds/#pid/#id/datasets", "method": "post", "data": {"&": "$$"}},
    "controls": [
      {"type": "input-group", "label": "数据源", "inline": true, "controls": [
        {"type": "select", "name": "dsid", "source":"/biz/ds/#pid/list"}         
      ]},
      {"type": "fieldSet","title": "数据表","collapsable": true,"collapsed": true,"controls": [
        {"type": "combo", "name": "datasets", "multiple": true,"multiLine": true, "controls": [
          {"type": "hidden", "name": "id"},{"type": "input-group", "inline": true, "controls": [
            {"type": "text","name": "name", "placeholder": "名称"}, 
            {"type": "text","name": "remark", "placeholder": "代码"},
            {"type": "select","visibleOn": "dsid && id > 0", "name": "act", "options": [{"label": "重建", "value": "1"},{"label": "删除", "value": "2"}]}]}, 
            {"name": "createStatement", "type": "sql-editor", "label": "SQL"} ]}]}
    ]
  }

icodingx avatar Mar 20 '20 03:03 icodingx

而且还是有的表单项一致,有的不一致,太奇怪了

icodingx avatar Mar 20 '20 04:03 icodingx

不清楚问题是啥,可以在 form 上加 debug 看看

nwind avatar Sep 22 '21 08:09 nwind