easyui的自定义行工具栏
来源:互联网 发布:徐海乔演过哪些网络剧 编辑:程序博客网 时间:2024/05/07 01:43
$("#tt").datagrid({ url : basePath +'companywebInfo/queryAllCompanyInfo.htm', title : "企业渠道管理", pageSize : 5, pageList : [ 5, 10, 15, 20, 30 ], pagination : true, border : false, loadMsg : '请稍后,正在加载.....', idField : "id", columns : [ [ {field : "name", align : 'center', title : "企业名称", width : 250 }, {field : "phone", align : 'center', title : "联系方式", width : 90 }, /* {field : "integrate", align : 'center', title : "企业积分", width : 90 }, */ {field : "address", align : 'center', title : "公司地址", width : 300 }, {field : "industry", align : 'center', title : "所属行业", width : 150 }, { field : "serverphone", align : 'center', title : "企业邮箱", width : 200 }, { field : "verificationStatus", align : 'center', title : "验证审核状态", width : 90, formatter : function(value, row, index) { switch(value){ case "1": return "未通过"; case "2": return "已通过"; } } }, {field : "dd", align : 'center', title : "操作", width : 150, formatter : function(value, row, index) { var btn = '<a name="'+row.id+'" class="editcls" onclick="setChanne(this);" style="color: #FF0000" href="javascript:void(0)">设置渠道</a>'; var btn2 = '<a name="'+row.id+'" class="editcls2" onclick="cancelChanne(this);" style="color: #FF0000" href="javascript:void(0)">取消渠道</a>'; return btn+"/"+btn2; } } ]] });//设置渠道 function setChanne (obj){ //获取name值 var id = $(obj).attr("name"); sendAjax(id,"3"); } //取消渠道 function cancelChanne(obj){ //获取name值 var id = $(obj).attr("name"); sendAjax(id,"1"); }
0 0
- easyui的自定义行工具栏
- 自定义行间距 多行输出 解决DrawText 无法自定义行间距的问题
- GridView插入自定义行
- jqxGrid自定义行编辑器
- 零件库的族添加自定义行
- 计算label自定义行间距字间距,计算自定义行间距字间距的高度
- easyui treegrid根据条件定义行样式
- Dev GridControl 自定义行颜色
- 自定义行转定函数wm_concat应用(PLS-00530)
- 使用Spread Studio for .NET自定义行和列的数量
- 分享一个菜鸟级别的FMTextView 图文排版,支持两端对齐,自定义行高等
- DataGridView自定义行样式和行标题
- DataGridView自定义行样式和行标题
- JSF中为dataTable组件指定自定义行样式
- DataGridView自定义行样式和行标题
- [转]iOS UILabel自定义行间距时获取高度
- Sybase15实现 自定义行转列函数
- DataGridView 自定义行样式和行标题
- Javascript是单线程的深入分析
- exec与match方法的比较
- leetcode---Valid Parentheses
- BigDecimal
- Oracle:Start with connect by prior 递归
- easyui的自定义行工具栏
- 第8章 浏览器对象
- 从Docker容器内拷贝文件到主机上
- arcgis api
- Kotlin简介
- 【leetcode】9. Palindrome Number
- BZOJ3673&BZOJ3674 可持久化并查集及加强版
- 安卓drawable和mipmap
- DIV CSS 鼠标事件