| | |
| | | |
| | | if (appType === 'mob') { |
| | | group.fields.forEach(f => { |
| | | if (f.field && ['select', 'text', 'number'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { |
| | | if (f.field && ['select', 'text', 'number', 'textarea'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { |
| | | fields.push(f) |
| | | } |
| | | }) |
| | | } else { |
| | | group.fields.forEach(f => { |
| | | if (f.field && ['select', 'link', 'text', 'number'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { |
| | | if (f.field && ['select', 'link', 'text', 'number', 'textarea'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { |
| | | fields.push(f) |
| | | } |
| | | }) |
| | |
| | | |
| | | if (appType === 'mob') { |
| | | config.subcards[0].fields.forEach(f => { |
| | | if (f.field && ['select', 'text', 'number'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { |
| | | if (f.field && ['select', 'text', 'number', 'textarea'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { |
| | | fields.push(f) |
| | | } |
| | | }) |
| | | } else { |
| | | config.subcards[0].fields.forEach(f => { |
| | | if (f.field && ['select', 'link', 'text', 'number'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { |
| | | if (f.field && ['select', 'link', 'text', 'number', 'textarea'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') { |
| | | fields.push(f) |
| | | } |
| | | }) |
| | |
| | | margin-right: 5px; |
| | | } |
| | | .ant-input-affix-wrapper { |
| | | width: calc(100% - 140px); |
| | | max-width: 130px; |
| | | width: calc(100% - 120px); |
| | | max-width: 150px; |
| | | margin-top: -2px; |
| | | float: right; |
| | | input { |
| | | border-radius: 20px; |
| | | // border: 1px solid #e9e9e9; |
| | | height: 30px; |
| | | } |
| | | } |
| | |
| | | </Form.Item> |
| | | </Col> */} |
| | | <Col span={24}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="对话框在仅有一个可输入表单(非隐藏、非只读的文本或数字)时有效。"> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | 显示方式 |
| | | </Tooltip> |
| | | }> |
| | | <Form.Item label="显示方式"> |
| | | {getFieldDecorator('display', { |
| | | initialValue: display || 'modal' |
| | | })( |
| | |
| | | <Modal |
| | | title="修改菜单" |
| | | visible={this.state.handleMVisible} |
| | | width={600} |
| | | width={700} |
| | | onOk={this.memuSubmit} |
| | | confirmLoading={this.state.loading} |
| | | onCancel={() => {this.setState({handleMVisible: false})}} |
| | |
| | | <Modal |
| | | title="修改菜单" |
| | | visible={thdVisible} |
| | | width={600} |
| | | width={700} |
| | | onOk={this.thdSubmit} |
| | | confirmLoading={loading} |
| | | onCancel={() => {this.setState({thdVisible: false})}} |
| | |
| | | message: '地址最长为1024个字符!' |
| | | } |
| | | ] |
| | | })(<TextArea rows={2} />)} |
| | | })(<TextArea rows={3} />)} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | </Row> |
| | |
| | | <Modal |
| | | title="添加菜单" |
| | | visible={this.state.addVisible} |
| | | width={600} |
| | | width={700} |
| | | onOk={this.memuSubmit} |
| | | confirmLoading={loading} |
| | | onCancel={() => {this.setState({addVisible: false})}} |