选择提醒按条件显示

This commit is contained in:
lyp 2024-12-24 16:18:18 +08:00
parent 9f24a01b1a
commit 382d5ac63b

View File

@ -992,7 +992,8 @@ export default function Index() {
<div className="left" >
<div className='mediaBox' style={{
// height: '15px', width: '230px',
background: 'white' }}></div>
background: 'white'
}}></div>
<MenuWithTopButton
button={projMenu.button}
list={projMenu.list}
@ -1324,38 +1325,42 @@ export default function Index() {
/>
<Select
allowClear
value={projRemindId}
style={{ height: '31px', width: '130px', marginLeft: 20, display: showSearchBox ? 'block' : 'none' }}
onChange={(value: string) => {
// console.log(`selected ${value}`);
setprojRemindId(value)
// alert(`selected ${value}`)
// lyp
<div style={{
display:remindTagArray.length > 0 ? 'block' : 'none',
}}>
<Select
allowClear
value={projRemindId}
style={{ height: '31px', width: '130px', marginLeft: 20, display: showSearchBox ? 'block' : 'none' }}
onChange={(value: string) => {
// console.log(`selected ${value}`);
setprojRemindId(value)
// alert(`selected ${value}`)
// lyp
nav('/home', {
state: {
keyword: keywords,
type: type,
chargeAdditionals: chargeAdditionals,
tagDataId: tagDataId,
authorId: authorId,
payStatus: payStatus,
projRemindId: value
}
})
nav('/home', {
state: {
keyword: keywords,
type: type,
chargeAdditionals: chargeAdditionals,
tagDataId: tagDataId,
authorId: authorId,
payStatus: payStatus,
projRemindId: value
}
})
}}
options={
}}
options={
remindTagArray
}
remindTagArray
}
placeholder={'选择提醒'}
placeholder={'选择提醒'}
/>
/>
</div>
<Select
allowClear
value={payStatus}