有会写js的大佬么

js传参,是弹对话框的。


var org_id = this.options.form.getWidgetByName("org_id").getValue();

var community_id = this.options.form.getWidgetByName("community_id").getValue();

var building_id = this.options.form.getWidgetByName("building_id").getValue();

var resident_code = this.options.form.getWidgetByName("resident_code").getValue();

var charge_item = this.options.form.getWidgetByName("charge_item").getValue();

var belong_years_start = this.options.form.getWidgetByName("belong_years_start").getValue();

var belong_years_end = this.options.form.getWidgetByName("belong_years_end").getValue();

var receivable_time_start = this.options.form.getWidgetByName("receivable_time_start").getValue();

var receivable_time_end = this.options.form.getWidgetByName("receivable_time_end").getValue();

FR.showIframeDialog({

url:"report?viewlet=/应收费用明细表V3.0_收费项目汇总.cpt&org_id="+org_id+"&community_id="+community_id+"&building_id="+building_id+"&resident_code="+resident_code+"&resident_code="+resident_code+"&charge_item="+charge_item+"&belong_years_start="+belong_years_start+"&belong_years_end="+belong_years_end+"&receivable_time_start="+receivable_time_start+"&receivable_time_end="+receivable_time_end,

title:"汇总",

width:600,

height:300

})

选几个可以 ,但是复选框全选的话,就会报错,URL太长了

image.png

需要Post传参,不会写js


free_zz 发布于 2019-11-29 14:46
1min目标场景问卷 立即参与
回答问题
悬赏:6 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
1
fofantasyLv5初级互助
发布于2019-11-29 15:17(编辑于 2019-11-29 15:22)
var org_id = this.options.form.getWidgetByName("org_id").getValue();
var community_id = this.options.form.getWidgetByName("community_id").getValue();
var building_id = this.options.form.getWidgetByName("building_id").getValue();
var resident_code = this.options.form.getWidgetByName("resident_code").getValue();
var charge_item = this.options.form.getWidgetByName("charge_item").getValue();
var belong_years_start = this.options.form.getWidgetByName("belong_years_start").getValue();
var belong_years_end = this.options.form.getWidgetByName("belong_years_end").getValue();
var receivable_time_start = this.options.form.getWidgetByName("receivable_time_start").getValue();
var receivable_time_end = this.options.form.getWidgetByName("receivable_time_end").getValue();
var Width = 600;
var Height = 300;
var url = FR.cjkEncode("${servletURL}?viewlet=应收费用明细表V3.0_收费项目汇总.cpt");

FR.doHyperlinkByPost({
	url: url,
	title: '汇总',
	feature: "width=" + Width + ",height=" + Height + ",",
	para: {
		org_id:org_id,
		community_id:community_id,
		building_id:building_id,
		resident_code:resident_code,
		charge_item:charge_item,
		belong_years_start:belong_years_start,
		belong_years_end:belong_years_end,
		receivable_time_start:receivable_time_start,
		receivable_time_end:receivable_time_end		
	},
	target: '_dialog'
});


最佳回答
1
18038635057Lv4初级互助
发布于2019-11-29 14:55

你弹出新报表可以这样

image.png

  • free_zz free_zz(提问者) 我这个是参数面板的按钮点击事件,不能弄超级链接的
    2019-11-29 14:57 
  • 18038635057 18038635057 回复 free_zz(提问者) 你加一个参数 para:{org_id:org_id.............},看行不行
    2019-11-29 15:04 
  • 孤陌 孤陌 回复 free_zz(提问者) 用POST 传参
    2019-11-29 15:05 
  • 5关注人数
  • 500浏览人数
  • 最后回答于:2019-11-29 15:22
    请选择关闭问题的原因
    确定 取消
    返回顶部