Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
energyai_vue
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
葛齐林
energyai_vue
Commits
1b7aaa75
Commit
1b7aaa75
authored
Apr 09, 2021
by
co_dengxiongwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面调整
parent
722c46df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
page.vue
src/pages/eq/hall/page.vue
+24
-6
No files found.
src/pages/eq/hall/page.vue
View file @
1b7aaa75
...
...
@@ -32,7 +32,7 @@
:key=
"item.id"
:class=
"[
item.id == currentId ? 'isActive' : '',
item.icon
,
item.icon
]"
>
<!--
<img
:src=
"item.src"
alt=
""
/>
-->
...
...
@@ -56,7 +56,7 @@
:picker-options=
"
{
start: '00:00',
step: '00:15',
end: '24:00'
,
end: '24:00'
}"
>
</el-time-select>
...
...
@@ -68,15 +68,16 @@
start: '00:00',
step: '00:15',
end: '24:00',
minTime: formData.startTime
,
minTime: formData.startTime
}"
>
</el-time-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"mini"
>
设置定时
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"setSendTime"
>
设置定时
</el-button
>
</el-form-item>
</el-col>
</el-row>
</el-form>
...
...
@@ -223,11 +224,28 @@ export default {
statusHandle
()
{},
handleSwitch
(
state
)
{
this
.
formData
.
saving
=
state
},
// 设置定时任务
setSendTime
()
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/equipment/timedTask'
),
method
:
'post'
,
params
:
this
.
$http
.
adornParams
({
id
:
''
,
startTime
:
this
.
formData
.
startTime
,
endTime
:
this
.
formData
.
endTime
,
status
:
1
})
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$message
.
success
(
'开启定时任务成功'
)
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.hall
{
height
:
100%
;
.el-input__inner
{
...
...
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