| | |
| | | |
| | | class SettingForm extends Component { |
| | | static propTpyes = { |
| | | dict: PropTypes.object, // 字典项 |
| | | menuId: PropTypes.string, // 菜单Id |
| | | setting: PropTypes.object, // 数据源配置 |
| | | columns: PropTypes.array, // 列设置 |
| | |
| | | |
| | | rules.push({ |
| | | required: true, |
| | | message: this.props.dict['form.required.input'] + '内部函数!' |
| | | message: '请输入内部函数!' |
| | | }, { |
| | | pattern: _patten, |
| | | message: formRule.func.innerMessage |
| | |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: this.props.dict['form.required.input'] + '表名!' |
| | | message: '请输入表名!' |
| | | }, |
| | | { |
| | | max: 50, |
| | |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: this.props.dict['form.required.select'] + '接口类型!' |
| | | message: '请选择接口类型!' |
| | | }, |
| | | ] |
| | | })( |
| | |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: this.props.dict['form.required.input'] + '接口地址!' |
| | | message: '请输入接口地址!' |
| | | }, |
| | | ] |
| | | })(<TextArea rows={2}/>)} |