|
|
|
@ -17,6 +17,7 @@ export const Search: FC<Props> = ({param, setParam}) => { |
|
|
|
|
const [show, setShow] = useState(false) |
|
|
|
|
const [deps, setDeps] = useState<Manage[]>([]) |
|
|
|
|
const [depId, setDepId] = useState<number>(param.dep_id) |
|
|
|
|
const [title, setTitle] = useState(param.title) |
|
|
|
|
|
|
|
|
|
async function getDepList() { |
|
|
|
|
try { |
|
|
|
@ -53,19 +54,21 @@ export const Search: FC<Props> = ({param, setParam}) => { |
|
|
|
|
<> |
|
|
|
|
<View className={styles.searchBox}> |
|
|
|
|
<View className={styles.searchInput}> |
|
|
|
|
<Icon name='search' size={18}/> |
|
|
|
|
<Icon name='search' size={18} color='#909795'/> |
|
|
|
|
<Input |
|
|
|
|
adjustPosition={false} |
|
|
|
|
type='text' |
|
|
|
|
confirmType='search' |
|
|
|
|
placeholder='搜索名称' |
|
|
|
|
placeholder='搜索课程名称' |
|
|
|
|
className='ml-1 flex-1' |
|
|
|
|
value={param.title} |
|
|
|
|
value={title} |
|
|
|
|
onInput={(e) => setTitle(e.detail.value)} |
|
|
|
|
onConfirm={(e) => setParam({ |
|
|
|
|
...param, |
|
|
|
|
title: e.detail.value, |
|
|
|
|
page: 1 |
|
|
|
|
})}/> |
|
|
|
|
})} |
|
|
|
|
/> |
|
|
|
|
</View> |
|
|
|
|
<View onClick={() => setShow(true)}> |
|
|
|
|
<Text>筛选</Text> |
|
|
|
@ -99,7 +102,7 @@ export const Search: FC<Props> = ({param, setParam}) => { |
|
|
|
|
</View>) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
<View className='flex justify-around mt-2'> |
|
|
|
|
<View className='flex justify-around mt-2 align-center'> |
|
|
|
|
<View onClick={() => setShow(false)}> |
|
|
|
|
<MyButton type='default' fillet width={150}>取消</MyButton> |
|
|
|
|
</View> |
|
|
|
|