Former-commit-id: f2e6447a9a1d1e7906d71b2795bb54ba458cc0bc Former-commit-id: 036bc081b2d6b3f244da352fe9719785f39a0cf0TSXN
parent
85c3d0e05a
commit
0082905b4e
Binary file not shown.
@ -0,0 +1,35 @@
|
|||||||
|
<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/site/UpdateTimer')
|
||||||
|
.then(function (response) {
|
||||||
|
Swal.fire({ title: '操作完成', timer: 1500 });
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
Swal.fire({ title: '操作失败', timer: 1500 });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
beforeDestroy: function () {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
Loading…
Reference in new issue