| | |
| | | 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], |
| | |
| | | }); |
| | | form.on('submit(forEditSubmit)', function () { |
| | | console.log(formDesIdx.getHtmlData()); |
| | | return false; |
| | | 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) { |