diff --git a/src/components/gird/main.js b/src/components/gird/main.js index d739ea73..86e7af24 100644 --- a/src/components/gird/main.js +++ b/src/components/gird/main.js @@ -176,9 +176,9 @@ export default class menu extends React.Component { this.setState({ allChecked: e.target.checked }) - + let tableData = _.map(this.state.tableData, (item) => { - return (item.checked = e.target.checked) + return (item.checked = e.target.checked&&!item.disabled) }) this.setState({ tableData: this.state.tableData