提交 4a523b07 authored 作者: 钟是志's avatar 钟是志

修复控制台warnning

上级 79b7c604
...@@ -75,16 +75,28 @@ export default class QueryItem extends React.Component { ...@@ -75,16 +75,28 @@ export default class QueryItem extends React.Component {
return(<div> <Select onChange={this.changeStringX} return(<div> <Select onChange={this.changeStringX}
value={stringX||"="} value={stringX||"="}
style={{width:100}}> style={{width:100}}>
<Option value="=">等于</Option> <Option value="="
<Option value="<>">不等于</Option> key={'='}
<Option value="IS NOT NULL">不为空</Option> >
<Option value="IS NULL">为空</Option> 等于
</Option>
<Option value="<>" key={'<>'}>
不等于
</Option>
<Option value="IS NOT NULL" key={'IS NOT NULL'}>
不为空
</Option>
<Option value="IS NULL" key={'IS NULL'}>
为空
</Option>
</Select> </Select>
{disabled?"": <span style={{padding: '0px 10px'}}> {disabled?"": <span style={{padding: '0px 10px'}}>
<Select onChange={this.changeNumber} <Select onChange={this.changeNumber}
value={string} value={string}
style={{width:200}}> style={{width:200}}>
{obj.options.map((r)=><Option key={r.v} value={r.v}>{r.l}</Option>)} {obj.options.map((r)=><Option key={r.v} value={r.v}>
{r.l}
</Option>)}
</Select> </Select>
</span>} </span>}
...@@ -98,11 +110,21 @@ export default class QueryItem extends React.Component { ...@@ -98,11 +110,21 @@ export default class QueryItem extends React.Component {
<Select onChange={this.changeStringX} <Select onChange={this.changeStringX}
value={stringX||"="} value={stringX||"="}
style={{width:100}}> style={{width:100}}>
<Option value="=">等于</Option> <Option value="=" key={'='}>
<Option value="!=">不等于</Option> 等于
<Option value="like"></Option> </Option>
<Option value="IS NOT NULL">不为空</Option> <Option value="!=" key={'!='}>
<Option value="IS NULL">为空</Option> 不等于
</Option>
<Option value="like" key={'like'}>
</Option>
<Option value="IS NOT NULL" key={'IS NOT NULL'}>
不为空
</Option>
<Option value="IS NULL" key={''}>
为空
</Option>
</Select> </Select>
{disabled?"": <span style={{padding: '0px 10px'}}> {disabled?"": <span style={{padding: '0px 10px'}}>
<Input onChange={this.changeString} <Input onChange={this.changeString}
...@@ -119,14 +141,30 @@ export default class QueryItem extends React.Component { ...@@ -119,14 +141,30 @@ export default class QueryItem extends React.Component {
return ( <div> <Select onChange={this.changeStringX} return ( <div> <Select onChange={this.changeStringX}
value={stringX||"="} value={stringX||"="}
style={{width:100}}> style={{width:100}}>
<Option value="=">等于</Option> <Option value="=" key={'='}>
<Option value="<>">不等于</Option> 等于
<Option value=">">大于</Option> </Option>
<Option value=">=">大于等于</Option> <Option value="<>" key={'<>'}>
<Option value="<">小于</Option> 不等于
<Option value="<=">小于等于</Option> </Option>
<Option value="IS NOT NULL">不为空</Option> <Option value=">" key={'>'}>
<Option value="IS NULL">为空</Option> 大于
</Option>
<Option value=">=" key={'>='}>
大于等于
</Option>
<Option value="<" key={'<'}>
小于
</Option>
<Option value="<=" key={'<='}>
小于等于
</Option>
<Option value="IS NOT NULL" key={'IS NOT NULL'}>
不为空
</Option>
<Option value="IS NULL" key={'IS NULL'}>
为空
</Option>
</Select> </Select>
{disabled?"": <span style={{padding: '0px 10px'}}> {disabled?"": <span style={{padding: '0px 10px'}}>
<InputNumber onChange={this.changeNumber} <InputNumber onChange={this.changeNumber}
...@@ -142,7 +180,7 @@ export default class QueryItem extends React.Component { ...@@ -142,7 +180,7 @@ export default class QueryItem extends React.Component {
<Select onChange={this.changeStringX} <Select onChange={this.changeStringX}
value={stringX||"="} value={stringX||"="}
style={{width:100}}> style={{width:100}}>
<Option value="="> <Option value="=" key={'='}>
等于 等于
</Option> </Option>
</Select> </Select>
...@@ -151,10 +189,10 @@ export default class QueryItem extends React.Component { ...@@ -151,10 +189,10 @@ export default class QueryItem extends React.Component {
value={string} value={string}
style={{width:200}} style={{width:200}}
> >
<Option value={true}> <Option value={true} key={'true'}>
</Option> </Option>
<Option value={false}> <Option value={false} key={'false'}>
</Option> </Option>
</Select> </Select>
...@@ -166,14 +204,30 @@ export default class QueryItem extends React.Component { ...@@ -166,14 +204,30 @@ export default class QueryItem extends React.Component {
<Select onChange={this.changeStringX} <Select onChange={this.changeStringX}
value={stringX||"="} value={stringX||"="}
style={{width:100}}> style={{width:100}}>
<Option value="=">等于</Option> <Option value="=" key={'='}>
<Option value="<>">不等于</Option> 等于
<Option value=">">大于</Option> </Option>
<Option value=">=">大于等于</Option> <Option value="<>" key={'<>'}>
<Option value="<">小于</Option> 不等于
<Option value="<=">小于等于</Option> </Option>
<Option value="IS NOT NULL">不为空</Option> <Option value=">" key={'>'}>
<Option value="IS NULL">为空</Option> 大于
</Option>
<Option value=">=" key={'>='}>
大于等于
</Option>
<Option value="<" key={'<'}>
小于
</Option>
<Option value="<=" key={'<='}>
小于等于
</Option>
<Option value="IS NOT NULL" key={'IS NOT NULL'}>
不为空
</Option>
<Option value="IS NULL" key={'IS NULL'}>
为空
</Option>
</Select> </Select>
{disabled?"": <span style={{padding: '0px 10px'}}> {disabled?"": <span style={{padding: '0px 10px'}}>
<DatePicker onChange={this.changeDate} <DatePicker onChange={this.changeDate}
......
...@@ -104,16 +104,27 @@ export default class QueryItem extends React.Component { ...@@ -104,16 +104,27 @@ export default class QueryItem extends React.Component {
return(<div> <Select onChange={this.changeStringX} return(<div> <Select onChange={this.changeStringX}
value={stringX||"="} value={stringX||"="}
style={{width:100}}> style={{width:100}}>
<Option value="=">等于</Option> <Option value="=" key={'='}>
<Option value="<>">不等于</Option> 等于
<Option value="IS NOT NULL">不为空</Option> </Option>
<Option value="IS NULL">为空</Option> <Option value="<>" key={'<>'}>
不等于
</Option>
<Option value="IS NOT NULL" key={'IS NOT NULL'}>
不为空
</Option>
<Option value="IS NULL" key={'IS NULL'}>
为空
</Option>
</Select> </Select>
{disabled?"": <span style={{padding: '0px 10px'}}> {disabled?"": <span style={{padding: '0px 10px'}}>
<Select onChange={this.changeNumber} <Select onChange={this.changeNumber}
value={string} value={string}
style={{width:200}}> style={{width:200}}>
{obj.options.map((r)=><Option key={r.v} value={r.v}>{r.l}</Option>)} {obj.options.map((r)=><Option key={r.v}
value={r.v}>
{r.l}
</Option>)}
</Select> </Select>
</span>} </span>}
...@@ -127,11 +138,25 @@ export default class QueryItem extends React.Component { ...@@ -127,11 +138,25 @@ export default class QueryItem extends React.Component {
<Select onChange={this.changeStringX} <Select onChange={this.changeStringX}
value={stringX||"="} value={stringX||"="}
style={{width:100}}> style={{width:100}}>
<Option value="=">等于</Option> <Option value="=" key={'='}>
<Option value="!=">不等于</Option> 等于
<Option value="like"></Option> </Option>
<Option value="IS NOT NULL">不为空</Option> <Option value="!=" key={'!='}>
<Option value="IS NULL">为空</Option> 不等于
</Option>
<Option value="like" key={'link'}>
</Option>
<Option value="IS NOT NULL"
key={'IS NOT NULL'}
>
不为空
</Option>
<Option value="IS NULL"
key={'IS NULL'}
>
为空
</Option>
</Select> </Select>
{disabled?"": <span style={{padding: '0px 10px'}}> {disabled?"": <span style={{padding: '0px 10px'}}>
<Input onChange={this.changeString} <Input onChange={this.changeString}
...@@ -148,14 +173,30 @@ export default class QueryItem extends React.Component { ...@@ -148,14 +173,30 @@ export default class QueryItem extends React.Component {
return ( <div> <Select onChange={this.changeStringX} return ( <div> <Select onChange={this.changeStringX}
value={stringX||"="} value={stringX||"="}
style={{width:100}}> style={{width:100}}>
<Option value="=">等于</Option> <Option value="=" key={'='}>
<Option value="<>">不等于</Option> 等于
<Option value=">">大于</Option> </Option>
<Option value=">=">大于等于</Option> <Option value="<>" key={'<>'}>
<Option value="<">小于</Option> 不等于
<Option value="<=">小于等于</Option> </Option>
<Option value="IS NOT NULL">不为空</Option> <Option value=">" key={'>'}>
<Option value="IS NULL">为空</Option> 大于
</Option>
<Option value=">=" key={'>='}>
大于等于
</Option>
<Option value="<" key={'<'}>
小于
</Option>
<Option value="<=" key={'<='}>
小于等于
</Option>
<Option value="IS NOT NULL" key={'IS NOT NULL'}>
不为空
</Option>
<Option value="IS NULL" key={'IS NULL'}>
为空
</Option>
</Select> </Select>
{disabled?"": <span style={{padding: '0px 10px'}}> {disabled?"": <span style={{padding: '0px 10px'}}>
<InputNumber onChange={this.changeNumber} <InputNumber onChange={this.changeNumber}
...@@ -171,7 +212,7 @@ export default class QueryItem extends React.Component { ...@@ -171,7 +212,7 @@ export default class QueryItem extends React.Component {
<Select onChange={this.changeStringX} <Select onChange={this.changeStringX}
value={stringX||"="} value={stringX||"="}
style={{width:100}}> style={{width:100}}>
<Option value="="> <Option value="=" key={'='}>
等于 等于
</Option> </Option>
</Select> </Select>
...@@ -180,10 +221,14 @@ export default class QueryItem extends React.Component { ...@@ -180,10 +221,14 @@ export default class QueryItem extends React.Component {
value={string} value={string}
style={{width:200}} style={{width:200}}
> >
<Option value={true}> <Option value={true}
key={'true'}
>
</Option> </Option>
<Option value={false}> <Option value={false}
key={'false'}
>
</Option> </Option>
</Select> </Select>
...@@ -195,14 +240,30 @@ export default class QueryItem extends React.Component { ...@@ -195,14 +240,30 @@ export default class QueryItem extends React.Component {
<Select onChange={this.changeStringX} <Select onChange={this.changeStringX}
value={stringX||"="} value={stringX||"="}
style={{width:100}}> style={{width:100}}>
<Option value="=">等于</Option> <Option value="=" key={'='}>
<Option value="<>">不等于</Option> 等于
<Option value=">">大于</Option> </Option>
<Option value=">=">大于等于</Option> <Option value="<>" key={'<>'}>
<Option value="<">小于</Option> 不等于
<Option value="<=">小于等于</Option> </Option>
<Option value="IS NOT NULL">不为空</Option> <Option value=">" key={'>'}>
<Option value="IS NULL">为空</Option> 大于
</Option>
<Option value=">=" key={'>='}>
大于等于
</Option>
<Option value="<" key={'<'}>
小于
</Option>
<Option value="<=" key={'<='}>
小于等于
</Option>
<Option value="IS NOT NULL" key={'IS NOT NULL'}>
不为空
</Option>
<Option value="IS NULL" key={'IS NULL'}>
为空
</Option>
</Select> </Select>
{disabled?"": <span style={{padding: '0px 10px'}}> {disabled?"": <span style={{padding: '0px 10px'}}>
<DatePicker onChange={this.changeDate} <DatePicker onChange={this.changeDate}
......
...@@ -201,7 +201,12 @@ export default class index extends Component { ...@@ -201,7 +201,12 @@ export default class index extends Component {
> >
{ {
selectOne.map(item =>{ selectOne.map(item =>{
return <Option value={item.key}>{item.value}</Option> return <Option
value={item.key}
key={item.key}
>
{item.value}
</Option>
}) })
} }
</Select> </Select>
...@@ -220,7 +225,9 @@ export default class index extends Component { ...@@ -220,7 +225,9 @@ export default class index extends Component {
> >
{ {
selectTwo.map(item =>{ selectTwo.map(item =>{
return <Option value={item.key}>{item.value}</Option> return <Option value={item.key}
key={item.key}
>{item.value}</Option>
}) })
} }
</Select> </Select>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论