| | |
| | | FormComponentImg formComponentImg = (FormComponentImg) component; |
| | | params.put("width", formComponentImg.getWidth() == null ? -1 : formComponentImg.getWidth()); |
| | | params.put("height", formComponentImg.getHeight() == null ? -1 : formComponentImg.getHeight()); |
| | | params.put("uploadApi", formComponentImg.getApi().getPath()); |
| | | if (formComponentImg.getApi().getParams() != null) { |
| | | List<KeyValue> list = new ArrayList<>(); |
| | | for (Iterator<String> its = formComponentImg.getApi().getParams().keySet().iterator(); its.hasNext(); ) { |
| | | String key = its.next(); |
| | | list.add(new KeyValue(key, formComponentImg.getApi().getParams().get(key) + "")); |
| | | if( formComponentImg.getApi()!=null) { |
| | | params.put("uploadApi", formComponentImg.getApi().getPath()); |
| | | if (formComponentImg.getApi().getParams() != null) { |
| | | List<KeyValue> list = new ArrayList<>(); |
| | | for (Iterator<String> its = formComponentImg.getApi().getParams().keySet().iterator(); its.hasNext(); ) { |
| | | String key = its.next(); |
| | | list.add(new KeyValue(key, formComponentImg.getApi().getParams().get(key) + "")); |
| | | } |
| | | params.put("uploadApiParams", list); |
| | | } |
| | | params.put("uploadApiParams", list); |
| | | } |
| | | } else if (component instanceof FormComponentSwitch) { |
| | | rowData.setType(Switch.class.getSimpleName()); |