You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.0 KiB
35 lines
1.0 KiB
<template>
|
|
<layout :htmltitle="title">
|
|
<div class="row overlay-wrapper">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<button class="btn btn-success" @click="updateTimer">更新定时器</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</layout>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
data: function () {
|
|
return {
|
|
title: '运维',
|
|
}
|
|
},
|
|
mounted: function () {
|
|
},
|
|
methods: {
|
|
updateTimer: function () {
|
|
axios.post(this.baseUrl + '/IoTCenter/api/v1/api/UpdateTimer')
|
|
.then(function (response) {
|
|
Swal.fire({ title: '操作完成', timer: 1500 });
|
|
})
|
|
.catch(function (error) {
|
|
Swal.fire({ title: '操作失败', timer: 1500 });
|
|
});
|
|
}
|
|
},
|
|
beforeDestroy: function () {
|
|
}
|
|
}
|
|
</script> |