ui-grid second col可以根据first col的值判断编辑与否
ui-grid second col can edit or not judge by first col 's value
enter image description here
1.The请求天气'tax_amount'栏是否需要填写由第一栏决定:'tax_type',
例如:tax_type = 1,tax_amount 可以编辑,
tax_type = 2,tax_amount无法编辑。
ui-grid 可以执行此请求uirement 吗?
cellEditableCondition: 函数 ($scope) {
如果($scope.row.entity.bill_type_id === 'aaa'){
return 是的
} 别的 {
return 错误
}
},
解决了!
enter image description here
1.The请求天气'tax_amount'栏是否需要填写由第一栏决定:'tax_type', 例如:tax_type = 1,tax_amount 可以编辑, tax_type = 2,tax_amount无法编辑。
ui-grid 可以执行此请求uirement 吗?
cellEditableCondition: 函数 ($scope) { 如果($scope.row.entity.bill_type_id === 'aaa'){ return 是的 } 别的 { return 错误 } },
解决了!