Browse Source

字段校验规则禁止搜索

1178232204@qq.com 3 years ago
parent
commit
004a4ac759
2 changed files with 5 additions and 4 deletions
  1. 1 0
      src/components/FieldProblem/index.js
  2. 4 4
      src/components/FieldRules/addRules.js

+ 1 - 0
src/components/FieldProblem/index.js

@@ -162,6 +162,7 @@ function FieldProblem() {
                     form={form}
                     name="normal_login"
                     onFinish={onFinish}
+                    initialValues={{isSolved:'',type:''}}
                 >
                     <Row gutter={24}>
                         <Col span={6} key={0}>

+ 4 - 4
src/components/FieldRules/addRules.js

@@ -214,7 +214,7 @@ function ContentForm(props) {
                                     <div className='item'>
                                         <div className='item-box'>
                                             <Form.Item label="表名称(中文)" rules={[{ required: true }]} style={{ width: '50%' }} name={['columnList', i, 'tableCname']} labelAlign="right" >
-                                                <Select showSearch allowClear onChange={tablechange} style={{ width: 160 }} placeholder="请选择">
+                                                <Select allowClear onChange={tablechange} style={{ width: 160 }} placeholder="请选择">
                                                     {tableList.map((item) => {
                                                         return (
                                                             <Option value={item.tableCname} key={item.index}>{item.tableCname}</Option>
@@ -223,7 +223,7 @@ function ContentForm(props) {
                                                 </Select>
                                             </Form.Item>
                                             <Form.Item label="表名称(英文)" rules={[{ required: true }]} name={['columnList', i, 'tableEname']} labelAlign="right">
-                                                <Select showSearch allowClear onChange={tablechange} style={{ width: 160 }} placeholder="请选择" >
+                                                <Select allowClear onChange={tablechange} style={{ width: 160 }} placeholder="请选择" >
                                                     {tableList.map((item) => {
                                                         return (
                                                             <Option value={item.tableEname} key={item.index}>{item.tableEname}</Option>
@@ -234,7 +234,7 @@ function ContentForm(props) {
                                         </div>
                                         <div className='item-box'>
                                             <Form.Item label="字段名称(中文)" rules={[{ required: true }]} style={{ width: '50%' }} name={['columnList', i, 'columnCname']} labelAlign="right">
-                                                <Select showSearch allowClear style={{ width: 160 }} placeholder="请选择" disabled={isChange}>
+                                                <Select allowClear style={{ width: 160 }} placeholder="请选择" disabled={isChange}>
                                                     {colList.map((item) => {
                                                         return (
                                                             <Option value={item.columnCname} key={item.columnCname}>{item.columnCname}</Option>
@@ -243,7 +243,7 @@ function ContentForm(props) {
                                                 </Select>
                                             </Form.Item>
                                             <Form.Item label="字段名称(英文)" rules={[{ required: true }]} name={['columnList', i, 'columnEname']} labelAlign="right">
-                                                <Select showSearch allowClear style={{ width: 160 }} placeholder="请选择" disabled={isChange}>
+                                                <Select allowClear style={{ width: 160 }} placeholder="请选择" disabled={isChange}>
                                                     {colList.map((item) => {
                                                         return (
                                                             <Option value={item.columnEname} key={item.columnEname}>{item.columnEname}</Option>