iframe 嵌入
cshtml页面:
<div ng-controller="app.report.views.bigCustomer.shunFeng.Report as vm">
<iframe style="height:1000px;width:100%" id="bigCustomer"></iframe>
</div>
js页面 angular写法
(function () {
angular.module('app').controller('app.report.views.bigCustomer.shunFeng.Report', [
'$scope',
function ($scope) {
var userid = abp.session.userId; //获取输入的用户名
var iframe = document.getElementById("bigCustomer");
iframe.src = "{{url}/webroot/decision/view/report?viewlet=bigCustomer.cpt&userid=" + userid +"&__bypagesize__=false"
}
]);
})();

浙公网安备 33010602011771号