| | |
| | | statusCode: 200 |
| | | }, |
| | | done: function(res, curr, count) { |
| | | console.log(res) |
| | | if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | |
| | | var countDom = $('#count'); |
| | | |
| | | function save() { |
| | | console.log(countDom.val()) |
| | | if (countDom.val() < 1) { |
| | | return; |
| | | } |
| | |
| | | countDom.val(countDom.val() - 1); |
| | | } |
| | | </script> |
| | | </html> |
| | | </html> |
| | |
| | | form.val('detail', mData); |
| | | // 表单提交事件 |
| | | form.on('submit(editSubmit)', function (data) { |
| | | data.field.parentId = insXmSel.getValue('valueStr'); |
| | | data.field.resourceId = insXmSel.getValue('valueStr'); |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/resource/"+(mData?'update':'add')+"/auth", |
| | |
| | | layer.close(dIndex); |
| | | layer.msg(res.msg, {icon: 1}); |
| | | insTb.refresh(); |
| | | setTimeout(function () { |
| | | insTb.expand(data.field.resourceId); |
| | | }, 200) |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | }else { |