Commit 1b7aaa75 authored by co_dengxiongwen's avatar co_dengxiongwen

页面调整

parent 722c46df
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment