ui-grid second col可以编辑或不通过first col的值来判断

时间:2017-11-18 08:58:57

标签: javascript angularjs angular ui-grid

enter image description here

1.请求是天气的税收'列需要填写或不由第一列决定:' tax_type', 例如:tax_type = 1,tax_amount可以编辑,      tax_type = 2,tax_amount无法编辑。

ui-grid可以满足这个要求吗?

1 个答案:

答案 0 :(得分:0)

cellEditableCondition:function($ scope){                                 if($ scope.row.entity.bill_type_id ==='aaa'){                                     返回true                                 } else {                                     返回false                                 }                             },

它解决了!