Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
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
b95a2b97
authored
Feb 27, 2025
by
alwayssuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: home 1
parent
1b9a3dd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/views/iot/home/index.vue
+5
-5
No files found.
src/views/iot/home/index.vue
View file @
b95a2b97
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
<div
class=
"flex items-center justify-between"
>
<div
class=
"flex items-center justify-between"
>
<span
class=
"text-base font-medium text-gray-600"
>
上下行消息量统计
</span>
<span
class=
"text-base font-medium text-gray-600"
>
上下行消息量统计
</span>
<div
class=
"flex items-center space-x-2"
>
<div
class=
"flex items-center space-x-2"
>
<el-radio-group
v-model=
"timeRange"
size=
"small"
@
change=
"handleTimeRangeChange"
>
<el-radio-group
v-model=
"timeRange"
@
change=
"handleTimeRangeChange"
>
<el-radio-button
label=
"1h"
>
最近1小时
</el-radio-button>
<el-radio-button
label=
"1h"
>
最近1小时
</el-radio-button>
<el-radio-button
label=
"24h"
>
最近24小时
</el-radio-button>
<el-radio-button
label=
"24h"
>
最近24小时
</el-radio-button>
<el-radio-button
label=
"7d"
>
近一周
</el-radio-button>
<el-radio-button
label=
"7d"
>
近一周
</el-radio-button>
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
<el-date-picker
<el-date-picker
v-model=
"dateRange"
v-model=
"dateRange"
type=
"datetimerange"
type=
"datetimerange"
size=
"small"
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始时间"
start-placeholder=
"开始时间"
end-placeholder=
"结束时间"
end-placeholder=
"结束时间"
...
@@ -159,12 +159,12 @@ import { Icon } from '@/components/Icon'
...
@@ -159,12 +159,12 @@ import { Icon } from '@/components/Icon'
/** IoT 首页 */
/** IoT 首页 */
defineOptions
({
name
:
'IotHome'
})
defineOptions
({
name
:
'IotHome'
})
const
timeRange
=
ref
(
'
24h'
)
// 默认选择最近24小时
const
timeRange
=
ref
(
'
7d'
)
// 修改默认选择为近一周
const
dateRange
=
ref
<
[
Date
,
Date
]
|
null
>
(
null
)
const
dateRange
=
ref
<
[
Date
,
Date
]
|
null
>
(
null
)
const
queryParams
=
reactive
({
const
queryParams
=
reactive
({
startTime
:
undefined
as
number
|
undefined
,
startTime
:
Date
.
now
()
-
7
*
24
*
60
*
60
*
1000
,
// 设置默认开始时间为7天前
endTime
:
undefined
as
number
|
undefined
endTime
:
Date
.
now
()
// 设置默认结束时间为当前时间
})
})
echarts
.
use
([
echarts
.
use
([
...
...
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