extjs表格底部增加多个菜单统计

说明

  • tbar代表顶部工具条
  • bbar表示底部工具条

构建

  • 初始化时,增加工具条,注意xtype类型,要平铺,不然文字多了会撑不下
initComponent : function() {
		this.store = this.createStore();
		this.sm = this.createSm();
		this.createLinks();
		this.cm = this.createCM();
		this.tbar = this.createTopBar();
		this.bbar = {  
	            xtype: 'container',  
	            ytype: 'container', 
	            items: [this.createBottomBar(),this.createBottomBar1()]  
	    };
		this.grid = this.createGrid();
	},
  • 写具体的底部工具条方法
 createBottomBar:function() {
    	var extBottomBar = new Ext.Toolbar();
    	Ext.Ajax.request({
			url : this.checkUrl,
			async:false,
			params : {"type1":"06","type2":"07"},
			scope : this,
			success : function(res) {
				var rec = Ext.decode(res.responseText);
				extBottomBar.add('-','正回购到期还款:', "共"+rec.count+"笔,已调拨"+rec.ydb+"笔,未调拨"+rec.wdb+"笔;合计金额:"+rec.countMoney+"元,已调拨"+rec.ydbMoney+"元,未调拨"+rec.wdbMoney+"元");
			}
		});
    	return extBottomBar;
	},
	createBottomBar1:function() {
		var extBottomBar = new Ext.Toolbar();
    	Ext.Ajax.request({
			url : this.checkUrl,
			async:false,
			params : {"type1":"15","type2":"16"},
			scope : this,
			success : function(res) {
				var rec = Ext.decode(res.responseText);
				extBottomBar.add('-','逆回购拆出付款:', "共"+rec.count+"笔,已调拨"+rec.ydb+"笔,未调拨"+rec.wdb+"笔;合计金额:"+rec.countMoney+"元,已调拨"+rec.ydbMoney+"元,未调拨"+rec.wdbMoney+"元");
			}
		});
    	return extBottomBar;
	},
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值