| | |
| | | static propTpyes = { |
| | | node: PropTypes.any, |
| | | data: PropTypes.any, |
| | | orgs: PropTypes.array |
| | | orgs: PropTypes.array, |
| | | handleSubmit: PropTypes.func |
| | | } |
| | | |
| | | state = { |
| | |
| | | nodetype = 'start' |
| | | } else if (node.mknode === 'end') { |
| | | nodetype = 'end' |
| | | } else if (node.mknode === 'endEdge') { |
| | | nodetype = 'endEdge' |
| | | // } else if (node.mknode === 'endEdge') { |
| | | // nodetype = 'endEdge' |
| | | } else if (node.mknode === 'startEdge') { |
| | | nodetype = 'startEdge' |
| | | } |
| | |
| | | } |
| | | ] |
| | | })( |
| | | <InputNumber readOnly={nodetype !== 'node' && nodetype !== 'edge' && nodetype !== 'end'} precision={0}/> |
| | | <InputNumber readOnly={nodetype === 'start' || nodetype === 'startEdge'} precision={0} onPressEnter={() => this.props.handleSubmit()}/> |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | |
| | | {getFieldDecorator('statusName', { |
| | | initialValue: data.statusName || '' |
| | | })( |
| | | <Input placeholder="" autoComplete="off"/> |
| | | <Input autoComplete="off" onPressEnter={() => this.props.handleSubmit()}/> |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | |
| | | {getFieldDecorator('sign', { |
| | | initialValue: data.sign || '' |
| | | })( |
| | | <Input placeholder="" autoComplete="off"/> |
| | | <Input autoComplete="off" onPressEnter={() => this.props.handleSubmit()}/> |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | |
| | | {getFieldDecorator('matchVal', { |
| | | initialValue: data.matchVal || '' |
| | | })( |
| | | <Input placeholder="" autoComplete="off"/> |
| | | <Input autoComplete="off" onPressEnter={() => this.props.handleSubmit()}/> |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |