bootstrapTable 着色使用
来源:互联网 发布:centos ifconfig 编辑:程序博客网 时间:2024/06/05 14:55
bootstrapTable 着色使用
干货
rowStyle: function (row, index) { //这里有5个取值代表5中颜色['active', 'success', 'info', 'warning', 'danger']; var strclass = ""; if (row.dataMode == "Y") { var thisRow = row.id; //接口上报行 var targetRow = thisRow+":a";//系统计算行 var thisRow = $("#mDataTables").bootstrapTable('getRowByUniqueId', thisRow); var targetRow = $("#mDataTables").bootstrapTable('getRowByUniqueId', targetRow); if(checkAllData(thisRow,targetRow)){ strclass = ""; } else { strclass = 'danger'; } } else { return {}; } return { classes: strclass }}/*** 校验两行相同的两行数据是否匹配,匹配返回真,不匹配返回假*/function checkAllData(thisRow,targetRow) { var result = false; if(thisRow.loanCustomers == targetRow.loanCustomers &&thisRow.loanAmountNumber == targetRow.loanAmountNumber &&thisRow.cumulativeNumber == targetRow.cumulativeNumber &&thisRow.loanAmounts == targetRow.loanAmounts &&thisRow.cumulativeDischarge == targetRow.cumulativeDischarge &&thisRow.loanBalance == targetRow.loanBalance &&thisRow.loanBalanceNumber == targetRow.loanBalanceNumber &&thisRow.singleMaximumAmount == targetRow.singleMaximumAmount &&thisRow.averageRate == targetRow.averageRate &&thisRow.validContracts == targetRow.validContracts){ result = true; } return result;}
阅读全文
0 0
- bootstrapTable 着色使用
- BootstrapTable使用
- bootstrapTable 使用范例
- bootstrapTable的使用
- bootstrapTable使用例子
- 关于BootstrapTable的使用
- bootstrapTable
- Bootstrap结合BootstrapTable的使用
- bootstrapTable 插件使用注意点
- bootstrapTable refresh 方法使用简单举例
- 基于SSH的BootstrapTable插件使用小记
- bootstrapTable和mui中表格的使用
- 使用存储着色器
- 使用着色器
- 使用 BootstrapTable 实现数据的分页显示(一)
- 使用 BootstrapTable 实现数据的分页显示(二)
- 【第一篇】搞定BootstrapTable(后端使用SpringMVC+Hibernate)
- 【第二篇】 搞定BootstrapTable(后端使用SpringMVC+Hibernate)
- 《算法导论》学习笔记之Chapter13红黑树
- 第八周【项目2
- 比起日本无人机,这才是拯救加班狗的正确方式
- 看完《寻梦环游记》,40岁的我哭的像个小孩
- .Net Timers
- bootstrapTable 着色使用
- 基于opengl的地图渲染引擎设计与实现
- grep常见用法
- HDU1028
- 数据结构第十周项目(一)——验证算法(四)
- 选择时间 小时:分钟
- IT的道德与伦理
- MySQL (10)MySQL优化
- ValueError: not enough values to unpack (expected 2, got 1)