🖼️style(ui): Optimize the styles in the search modal of the detail page in the dashboard
This commit is contained in:
@@ -109,7 +109,6 @@ const PageLayout = () => {
|
|||||||
left: 0,
|
left: 0,
|
||||||
top: '56px',
|
top: '56px',
|
||||||
zIndex: 99,
|
zIndex: 99,
|
||||||
background: 'var(--semi-color-bg-1)',
|
|
||||||
border: 'none',
|
border: 'none',
|
||||||
paddingRight: '0',
|
paddingRight: '0',
|
||||||
height: 'calc(100vh - 56px)',
|
height: 'calc(100vh - 56px)',
|
||||||
|
|||||||
@@ -1528,5 +1528,6 @@
|
|||||||
"豆包": "Doubao",
|
"豆包": "Doubao",
|
||||||
"系统公告": "System Notice",
|
"系统公告": "System Notice",
|
||||||
"今日关闭": "Close Today",
|
"今日关闭": "Close Today",
|
||||||
"关闭公告": "Close Notice"
|
"关闭公告": "Close Notice",
|
||||||
|
"搜索条件": "Search Conditions"
|
||||||
}
|
}
|
||||||
@@ -26,6 +26,7 @@ import { VChart } from '@visactor/react-vchart';
|
|||||||
import {
|
import {
|
||||||
API,
|
API,
|
||||||
isAdmin,
|
isAdmin,
|
||||||
|
isMobile,
|
||||||
showError,
|
showError,
|
||||||
timestamp2string,
|
timestamp2string,
|
||||||
timestamp2string1,
|
timestamp2string1,
|
||||||
@@ -538,14 +539,12 @@ const Detail = (props) => {
|
|||||||
icon={<IconSearch />}
|
icon={<IconSearch />}
|
||||||
onClick={showSearchModal}
|
onClick={showSearchModal}
|
||||||
className="bg-green-500 text-white hover:bg-green-600 !rounded-full"
|
className="bg-green-500 text-white hover:bg-green-600 !rounded-full"
|
||||||
size="large"
|
|
||||||
/>
|
/>
|
||||||
<IconButton
|
<IconButton
|
||||||
icon={<IconRefresh />}
|
icon={<IconRefresh />}
|
||||||
onClick={refresh}
|
onClick={refresh}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
className="bg-blue-500 text-white hover:bg-blue-600 !rounded-full"
|
className="bg-blue-500 text-white hover:bg-blue-600 !rounded-full"
|
||||||
size="large"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -557,37 +556,40 @@ const Detail = (props) => {
|
|||||||
onOk={handleSearchConfirm}
|
onOk={handleSearchConfirm}
|
||||||
onCancel={handleCloseModal}
|
onCancel={handleCloseModal}
|
||||||
closeOnEsc={true}
|
closeOnEsc={true}
|
||||||
width={700}
|
size={isMobile() ? 'full-width' : 'small'}
|
||||||
centered
|
centered
|
||||||
>
|
>
|
||||||
<Form ref={formRef} layout='vertical' className="w-full">
|
<Form ref={formRef} layout='vertical' className="w-full">
|
||||||
<Form.DatePicker
|
<Form.DatePicker
|
||||||
field='start_timestamp'
|
field='start_timestamp'
|
||||||
label={t('起始时间')}
|
label={t('起始时间')}
|
||||||
className="w-full mb-4"
|
className="w-full mb-2 !rounded-lg"
|
||||||
initValue={start_timestamp}
|
initValue={start_timestamp}
|
||||||
value={start_timestamp}
|
value={start_timestamp}
|
||||||
type='dateTime'
|
type='dateTime'
|
||||||
name='start_timestamp'
|
name='start_timestamp'
|
||||||
|
size='large'
|
||||||
onChange={(value) => handleInputChange(value, 'start_timestamp')}
|
onChange={(value) => handleInputChange(value, 'start_timestamp')}
|
||||||
/>
|
/>
|
||||||
<Form.DatePicker
|
<Form.DatePicker
|
||||||
field='end_timestamp'
|
field='end_timestamp'
|
||||||
label={t('结束时间')}
|
label={t('结束时间')}
|
||||||
className="w-full mb-4"
|
className="w-full mb-2 !rounded-lg"
|
||||||
initValue={end_timestamp}
|
initValue={end_timestamp}
|
||||||
value={end_timestamp}
|
value={end_timestamp}
|
||||||
type='dateTime'
|
type='dateTime'
|
||||||
name='end_timestamp'
|
name='end_timestamp'
|
||||||
|
size='large'
|
||||||
onChange={(value) => handleInputChange(value, 'end_timestamp')}
|
onChange={(value) => handleInputChange(value, 'end_timestamp')}
|
||||||
/>
|
/>
|
||||||
<Form.Select
|
<Form.Select
|
||||||
field='data_export_default_time'
|
field='data_export_default_time'
|
||||||
label={t('时间粒度')}
|
label={t('时间粒度')}
|
||||||
className="w-full mb-4"
|
className="w-full mb-2 !rounded-lg"
|
||||||
initValue={dataExportDefaultTime}
|
initValue={dataExportDefaultTime}
|
||||||
placeholder={t('时间粒度')}
|
placeholder={t('时间粒度')}
|
||||||
name='data_export_default_time'
|
name='data_export_default_time'
|
||||||
|
size='large'
|
||||||
optionList={[
|
optionList={[
|
||||||
{ label: t('小时'), value: 'hour' },
|
{ label: t('小时'), value: 'hour' },
|
||||||
{ label: t('天'), value: 'day' },
|
{ label: t('天'), value: 'day' },
|
||||||
@@ -599,10 +601,11 @@ const Detail = (props) => {
|
|||||||
<Form.Input
|
<Form.Input
|
||||||
field='username'
|
field='username'
|
||||||
label={t('用户名称')}
|
label={t('用户名称')}
|
||||||
className="w-full mb-4"
|
className="w-full mb-2 !rounded-lg"
|
||||||
value={username}
|
value={username}
|
||||||
placeholder={t('可选值')}
|
placeholder={t('可选值')}
|
||||||
name='username'
|
name='username'
|
||||||
|
size='large'
|
||||||
onChange={(value) => handleInputChange(value, 'username')}
|
onChange={(value) => handleInputChange(value, 'username')}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user