你在报表块初始化事件,写下面js,可以鼠标悬浮显示报表块
var th = this;
setTimeout(function() {
$("div[widgetName^=REPORT0]").hover(function() {
th.options.form.getWidgetByName('report1').setVisible(true);
},
function() {
th.options.form.getWidgetByName('report1').setVisible(false);
}
)
}, 100)