| | |
| | | }) |
| | | |
| | | let _actions = config.action.filter(item => item.position === 'toolbar') |
| | | let _operation = config.action.filter(item => item.position === 'grid') |
| | | // let _operation = config.action.filter(item => item.position === 'grid') |
| | | |
| | | if (_operation.length > 0) { |
| | | _columns.push({ |
| | | Align: 'center', |
| | | uuid: Utils.getuuid(), |
| | | IsSort: 'false', |
| | | Width: 120, |
| | | type: 'operation', |
| | | style: 'button', |
| | | label: this.state.dict['main.column.operation'], |
| | | operations: _operation |
| | | }) |
| | | } |
| | | // if (_operation.length > 0) { |
| | | // _columns.push({ |
| | | // Align: 'center', |
| | | // uuid: Utils.getuuid(), |
| | | // IsSort: 'false', |
| | | // Width: 120, |
| | | // type: 'action', |
| | | // style: 'button', |
| | | // label: this.state.dict['main.column.operation'], |
| | | // operations: _operation |
| | | // }) |
| | | // } |
| | | |
| | | this.setState({ |
| | | config: config, |