Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9ebdc621
authored
May 26, 2025
by
Apple\Apple
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🖼
️style(ui): Optimize the styles in the search modal of the detail page in the dashboard
parent
793ac963
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
web/src/components/PageLayout.js
+0
-1
web/src/i18n/locales/en.json
+3
-1
web/src/pages/Detail/index.js
+10
-7
No files found.
web/src/components/PageLayout.js
View file @
9ebdc621
...
@@ -109,7 +109,6 @@ const PageLayout = () => {
...
@@ -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)'
,
...
...
web/src/i18n/locales/en.json
View file @
9ebdc621
...
@@ -1528,5 +1528,6 @@
...
@@ -1528,5 +1528,6 @@
"豆包"
:
"Doubao"
,
"豆包"
:
"Doubao"
,
"系统公告"
:
"System Notice"
,
"系统公告"
:
"System Notice"
,
"今日关闭"
:
"Close Today"
,
"今日关闭"
:
"Close Today"
,
"关闭公告"
:
"Close Notice"
"关闭公告"
:
"Close Notice"
,
"搜索条件"
:
"Search Conditions"
}
}
\ No newline at end of file
web/src/pages/Detail/index.js
View file @
9ebdc621
...
@@ -26,6 +26,7 @@ import { VChart } from '@visactor/react-vchart';
...
@@ -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) => {
...
@@ -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) => {
...
@@ -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) => {
...
@@ -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'
)}
/
>
/
>
)}
)}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment