EasyUI中开始是加载查询条件参数

queryParams: { "pid": programeid },//通过queryParams向后台传参数

具体例子如:

$("#td").datagrid({
                url: '@Url.Action("ListFunction")',
                fitColumns: true,
                fit: true,
                rownumber: true,
                pagination: true,
                singleSelect: true,
                pageSize: 10,
                toolbar: "#toolbar",
                onClickRow: onClickRow,
                queryParams: { "pid": programeid },//通过queryParams向后台传参数
                columns: [[
                { field: 'fid', title: '编号', width: 50, hidden: true },
                { field: 'pid', title: '程序编号', width: 50 },
                { field: 'fname', title: '功能编号', width: 50, editor: { type: 'validatebox', options: { required: true } } },
                { field: 'ctrname', title: '控制器', width: 50, editor: 'text' },
                { field: 'actname', title: '动作', width: 50, editor: 'text' },
                { field: 'detail', title: '功能描述', width: 100, editor: 'text' },
                { field: 'ispublic', title: '是否共用', width: 50, editor: { type: 'checkbox', options: { on: '是', off: '否' } } },
                { field: 'type', title: '基本权限', width: 50, editor: { type: 'checkbox', options: { on: '是', off: '否' } } },
                {
                    field: 'kinds', title: '类型', width: 50, formatter: format, editor: {
                        type: 'combobox', options: {
                            data: [{
                                "id": "1",
                                "text": "函数"
                            }, {
                                "id": "2",
                                "text": "按钮函数"
                            }, {
                                "id": "3",
                                "text": "按钮"
                            }],
                            valueField: 'id',
                            textField: 'text',
                            editable: false
                        }
                    }
                }
                ]]
            })

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值