mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-23 09:26:24 +00:00
仪表盘通过选项卡查看页面,页面无数据 #2539
This commit is contained in:
parent
0f117e8055
commit
96546362a2
@ -2,21 +2,29 @@ Template.creator_tab_iframe.helpers
|
||||
subsReady: ->
|
||||
return Steedos.subsBootstrap.ready()
|
||||
url: ->
|
||||
currentTabId = Session.get("tab_name")
|
||||
currentAppMenus = Creator.getAppMenus()
|
||||
if currentAppMenus && currentAppMenus.length
|
||||
currentMenu = currentAppMenus.find (menu)->
|
||||
return menu.id == currentTabId
|
||||
if currentMenu
|
||||
return Creator.getAppMenuUrlForInternet currentMenu
|
||||
return Template.instance().iframeUrl.get()
|
||||
|
||||
Template.creator_tab_iframe.events
|
||||
|
||||
Template.creator_tab_iframe.onCreated ->
|
||||
this.iframeUrl = new ReactiveVar("")
|
||||
|
||||
Template.creator_tab_iframe.onRendered ->
|
||||
# 去除客户端右击事件
|
||||
Steedos.forbidNodeContextmenu window, "#app_iframe"
|
||||
self = this
|
||||
this.autorun ->
|
||||
self.iframeUrl.set("")
|
||||
currentTabId = Session.get("tab_name")
|
||||
currentAppMenus = Creator.getAppMenus()
|
||||
url = ""
|
||||
if currentAppMenus && currentAppMenus.length
|
||||
currentMenu = currentAppMenus.find (menu)->
|
||||
url = menu.id == currentTabId
|
||||
if currentMenu
|
||||
url = Creator.getAppMenuUrlForInternet currentMenu
|
||||
Meteor.defer ()->
|
||||
self.iframeUrl.set(url)
|
||||
|
||||
Template.creator_tab_iframe.onDestroyed ->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user