| | |
| | | Server.call("root/system/saveBtnAndTab", param_, function(result) { |
| | | if(result.success){ |
| | | me.roleRefresh(param_.roleId, function(){ |
| | | me.onRefreshCacheByPageId(me.pageid) |
| | | me.$message({ |
| | | message: '保存成功', |
| | | type: 'success' |
| | |
| | | me.savebt = false; |
| | | }); |
| | | }, |
| | | |
| | | onRefreshCacheByPageId(PageId, callback) { |
| | | var me = this; |
| | | let param_ = { |
| | | page_id: PageId |
| | | } |
| | | Server.call("root/system/reloadMenuByPage", param_, function(result) { |
| | | if (result.success) { |
| | | if (callback) { |
| | | callback() |
| | | } |
| | | else { |
| | | console.log("刷新页面"); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | // 刷新缓存 |
| | | roleRefresh(roleId, callback) { |
| | | var me = this; |