| | |
| | | inputType: 'input', |
| | | editable: true, |
| | | unique: true, |
| | | width: '20%' |
| | | width: '25%' |
| | | }, |
| | | { |
| | | title: this.props.dict['model.name'], |
| | | dataIndex: 'Text', |
| | | inputType: 'input', |
| | | editable: true, |
| | | width: '20%' |
| | | width: '25%' |
| | | }, |
| | | { |
| | | title: this.props.dict['model.form.columnWidth'], |
| | |
| | | min: 5, |
| | | max: 200, |
| | | editable: true, |
| | | width: '20%' |
| | | width: '25%' |
| | | }, |
| | | { |
| | | title: '类型', |
| | | dataIndex: 'type', |
| | | inputType: 'select', |
| | | editable: true, |
| | | required: false, |
| | | width: '20%', |
| | | render: (text) => { |
| | | if (text === 'image') { |
| | | return '图片' |
| | | } else { |
| | | return '文本' |
| | | } |
| | | }, |
| | | options: [ |
| | | {value: 'text', text: '文本'}, |
| | | {value: 'image', text: '图片'} |
| | | ] |
| | | }, |
| | | // { |
| | | // title: '类型', |
| | | // dataIndex: 'type', |
| | | // inputType: 'select', |
| | | // editable: true, |
| | | // required: false, |
| | | // width: '20%', |
| | | // render: (text) => { |
| | | // if (text === 'image') { |
| | | // return '图片' |
| | | // } else { |
| | | // return '文本' |
| | | // } |
| | | // }, |
| | | // options: [ |
| | | // {value: 'text', text: '文本'}, |
| | | // {value: 'image', text: '图片'} |
| | | // ] |
| | | // }, |
| | | { |
| | | title: '取绝对值', |
| | | dataIndex: 'abs', |
| | | inputType: 'select', |
| | | editable: true, |
| | | required: false, |
| | | width: '20%', |
| | | width: '25%', |
| | | render: (text) => { |
| | | if (text === 'true') { |
| | | return '是' |
| | |
| | | if (card.intertype !== 'system') { |
| | | _verify.enable = 'false' |
| | | } |
| | | if (_verify.columns[0] && !_verify.columns[0].type) { |
| | | _verify.columns = _verify.columns.map(col => { |
| | | col.type = col.type || 'text' |
| | | return col |
| | | }) |
| | | } |
| | | // if (_verify.columns[0] && !_verify.columns[0].type) { |
| | | // _verify.columns = _verify.columns.map(col => { |
| | | // col.type = col.type || 'text' |
| | | // return col |
| | | // }) |
| | | // } |
| | | |
| | | let defaultscript = '' |
| | | if (!_verify.script && card.intertype === 'system') { |
| | |
| | | Text: item.label, |
| | | Width: 20, |
| | | abs: 'false', |
| | | type: 'text', |
| | | // type: 'text', |
| | | uuid: Utils.getuuid() |
| | | }) |
| | | }) |