| | |
| | | }) |
| | | form.render(); |
| | | } else { |
| | | layer.msg(data.msg, {icon: 2, time: 500}); |
| | | layer.msg(data.msg, {icon: 2, time: 2000}); |
| | | } |
| | | }, 'GET'); |
| | | |
| | |
| | | admin.req('api-user/menus/'+obj.data.id+'?tenantId='+tenantId, {}, function (data) { |
| | | layer.closeAll('loading'); |
| | | if (0 === data.code) { |
| | | layer.msg(data.msg, {icon: 1, time: 500}); |
| | | layer.msg(data.msg, {icon: 1, time: 2000}); |
| | | renderTable({tenantId: tenantId}); |
| | | } else { |
| | | layer.msg(data.msg, {icon: 2, time: 500}); |
| | | layer.msg(data.msg, {icon: 2, time: 2000}); |
| | | } |
| | | }, 'DELETE'); |
| | | }); |
| | |
| | | } |
| | | }); |
| | | if (keyword !== '' && searchCount === 0) { |
| | | layer.msg("没有匹配结果", {icon: 5, time: 500}); |
| | | layer.msg("没有匹配结果", {icon: 5, time: 2000}); |
| | | } else { |
| | | treetable.expandAll('#menus-table'); |
| | | } |