| | |
| | | max: 200, |
| | | editable: true, |
| | | width: '25%' |
| | | }, |
| | | { |
| | | title: '取绝对值', |
| | | dataIndex: 'abs', |
| | | inputType: 'select', |
| | | editable: true, |
| | | required: false, |
| | | width: '25%', |
| | | render: (text) => { |
| | | if (text === 'true') { |
| | | return '是' |
| | | } else { |
| | | return '否' |
| | | } |
| | | }, |
| | | options: [ |
| | | {value: 'true', text: '是'}, |
| | | {value: 'false', text: '否'} |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | |
| | | |
| | | _verify.enable = _verify.enable || 'false' |
| | | _verify.columns = _verify.columns || [] |
| | | |
| | | // 同步显示列 |
| | | // if (!_verify.columns || _verify.columns.length === 0) { |
| | | // _verify.columns = [] |
| | | // config.columns.forEach(item => { |
| | | // if (!item.field) return |
| | | |
| | | // _verify.columns.push({ |
| | | // Column: item.field, |
| | | // Text: item.label, |
| | | // Width: 20, |
| | | // uuid: Utils.getuuid() |
| | | // }) |
| | | // }) |
| | | // } |
| | | |
| | | if (card.intertype !== 'system') { |
| | | _verify.enable = 'false' |
| | |
| | | return |
| | | } |
| | | values.uuid = Utils.getuuid() |
| | | values.abs = 'false' |
| | | verify.columns.push(values) |
| | | |
| | | this.setState({ |
| | |
| | | Column: item.field, |
| | | Text: item.label, |
| | | Width: 20, |
| | | abs: 'false', |
| | | uuid: Utils.getuuid() |
| | | }) |
| | | }) |