| | |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body"> |
| | | <form class="layui-form layui-col-space5"> |
| | | <#list rowsList as value> |
| | | <#list searchFormRows as value> |
| | | <div class="layui-inline layui-show-xs-block"> |
| | | <#switch value.type> |
| | | <#case "CheckBox"><#include "/admin/form/checkBox.ftl" ><#break> |
| | |
| | | form = layui.form, |
| | | table = layui.table; |
| | | //渲染日期输入框 |
| | | <#list searchForm as row > |
| | | <#if row.type??&&row.type=="Text"&&(row.params.type=="date")> |
| | | <#list searchFormRows as row > |
| | | <#if (row.type=="Text" && row.params.inputType=="DATE")> |
| | | laydate.render({ |
| | | elem: "intput[name=${row.key}]" //指定元素 |
| | | }); |
| | |
| | | layer.msg('已删除!', {icon: 1, time: 1000}); |
| | | }); |
| | | }, |
| | | <#if deleteApi??> |
| | | deleteList: function (ids, success) { |
| | | ksapp.post("${deleteApi}", {ids: JSON.stringify(ids)}, function (e) { |
| | | if (e.code == 0) { |
| | |
| | | }, function (e) { |
| | | }); |
| | | }, |
| | | </#if> |
| | | search: function (params) { |
| | | //数据重载 |
| | | tableIns.reload({ |