补充清除搜索条件
This commit is contained in:
parent
8b6428fcff
commit
97308b06e9
@ -79,7 +79,7 @@ export default function Index() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 选择的标签
|
// 选择的标签
|
||||||
const [tagCor, setTagCor] = useState('')
|
const [tagCor, setTagCor] = useState<string | null>(null)
|
||||||
|
|
||||||
|
|
||||||
// 选项数组
|
// 选项数组
|
||||||
@ -266,6 +266,7 @@ export default function Index() {
|
|||||||
setcorrectionNumType(null)
|
setcorrectionNumType(null)
|
||||||
setcorrectionType(null)
|
setcorrectionType(null)
|
||||||
setcorrectionApplyStatus(null)
|
setcorrectionApplyStatus(null)
|
||||||
|
setTagCor(null)
|
||||||
}
|
}
|
||||||
const nav = useNavigate();
|
const nav = useNavigate();
|
||||||
const [searchParams] = useSearchParams();
|
const [searchParams] = useSearchParams();
|
||||||
@ -1335,10 +1336,10 @@ export default function Index() {
|
|||||||
/>
|
/>
|
||||||
<Select
|
<Select
|
||||||
allowClear
|
allowClear
|
||||||
// value={tagDataId}
|
value={tagDataId}
|
||||||
style={{ height: '31px', width: '130px', marginLeft: 20, display: showSearchBox ? 'block' : 'none' }}
|
style={{ height: '31px', width: '130px', marginLeft: 20, display: showSearchBox ? 'block' : 'none' }}
|
||||||
onChange={(value: string) => {
|
onChange={(value: string) => {
|
||||||
// console.log(`selected ${value}`);
|
console.log(`selected ${value}`);
|
||||||
// const [part1, part2] = value.split(':');
|
// const [part1, part2] = value.split(':');
|
||||||
// console.log('part1:', part1);
|
// console.log('part1:', part1);
|
||||||
// console.log('part2:', part2);
|
// console.log('part2:', part2);
|
||||||
@ -1634,7 +1635,7 @@ export default function Index() {
|
|||||||
allowClear
|
allowClear
|
||||||
/>
|
/>
|
||||||
<Select
|
<Select
|
||||||
// value={correctionApplyStatus}
|
value={tagCor}
|
||||||
style={{ height: '31px', width: '120px', marginLeft: 10 }}
|
style={{ height: '31px', width: '120px', marginLeft: 10 }}
|
||||||
onChange={(value: string) => {
|
onChange={(value: string) => {
|
||||||
setTagCor(value)
|
setTagCor(value)
|
||||||
|
Loading…
Reference in New Issue
Block a user