| | |
| | | <div style="height: 90%; width: 100%;" id="formDesigner"></div> |
| | | <hr> |
| | | <div class="layui-form-item text-right" style="padding-right: 25px"> |
| | | <button class="layui-btn generateHtml" lay-filter="forEditSubmit" lay-submit>保存</button> |
| | | <button class="layui-btn" lay-filter="forEditSubmit" lay-submit>保存</button> |
| | | <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button> |
| | | </div> |
| | | </script> |
| | |
| | | var insTb = table.render({ |
| | | elem: '#planTypeTable', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: baseUrl+'/planType/list/auth', |
| | | url: baseUrl+'/planType/page/auth', |
| | | page: true, |
| | | limit: 16, |
| | | limits: [16, 30, 50, 100, 200, 500], |
| | |
| | | elem:'#formDesigner' |
| | | }); |
| | | form.on('submit(forEditSubmit)', function () { |
| | | console.log(formDesIdx.getHtmlData()); |
| | | let loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/planType/update/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: { |
| | | id: data.id, |
| | | data: JSON.stringify(formDesIdx.getData()) |
| | | data: JSON.stringify(formDesIdx.getData()), |
| | | html: formDesIdx.getHtmlData() |
| | | }, |
| | | method: 'POST', |
| | | success: function (res) { |