按钮控件点击一下出现弹窗,下面是点击后的JavaScript脚本,模板数据集中有数据,但是弹窗显示"未找到企业画像数据",获取数据集这两行代码有什么问题吗?// 窗口尺寸设置 var w = 650; var h = 450; // 获取下拉框的值 var 投标公司 = _g().getWidgetByName("投标公司").getValue(); // 直接获取数据集数据 var result = FR.remoteEvaluate('data("企业印象")'); var 企业画像 = result && result.length > 0 && result[0] && result[0][0] ? result[0][0] : "未找到企业画像数据"; // 创建显示内容的div var $content = $("<div>").css({ "padding": "20px", "font-family": "microsoft yahei", "font-size": "14px", "line-height": "1.6", "color": "#000000" }); // 添加企业画像内容 $content.append($("<div>").text(企业画像).css({ "margin-top": "10px", "white-space": "pre-wrap" })); // 对话框配置 var o = { title: 投标公司 + "企业印象", width: w, height: h }; // 弹出对话框 FR.showDialog(o.title, o.width, o.height, $content, o); // 设置对话框样式 setTimeout(function() { $(".fr-core-panel-header.fr-core-panel-style-blue.fr-core-window-header").css('background', '#159D73'); $(".fr-core-panel-title").css({ "color": "#ffffff", "font-family": "microsoft yahei", "font-size": "14px" }); }, 100); |