File was renamed from src/pages/maintain/views/restartSettings.vue |
| | |
| | | <template>
|
| | | <div class="restart">
|
| | | <div class="restart" |
| | | v-loading="loading"
|
| | | :element-loading-text="loadingText"
|
| | | >
|
| | | <div class="restart-set">
|
| | | <div class="t">重启设置</div>
|
| | |
|
| | |
| | | getDevInfo,
|
| | | getRebootTask,
|
| | | setRebootTask,
|
| | | fileUpload,
|
| | | doUpgrade,
|
| | | deleteDate,
|
| | | } from "@/api/system";
|
| | | export default {
|
| | | data() {
|
| | |
| | | timer: null,
|
| | | probeSum: 0,
|
| | | cronText: "",
|
| | | loading:false,
|
| | | cronValueObj: {
|
| | | min: "*",
|
| | | hour: "*",
|
| | |
| | | return arr;
|
| | | },
|
| | | },
|
| | | components: {},
|
| | | mounted() {
|
| | | this.getRebootCron();
|
| | | },
|
| | |
| | | cancelButtonClass: "comfirm-class-cancle",
|
| | | confirmButtonClass: "comfirm-class-sure",
|
| | | }).then(() => {
|
| | | // this.loading = true;
|
| | | // this.loadingText = "智能计算节点正在重启,请耐心等待..."
|
| | | this.loading = true;
|
| | | this.loadingText = "智能计算节点正在重启,请耐心等待..."
|
| | | |
| | | rebootServer()
|
| | | .then((rsp) => {
|
| | | this.probeServer(this.reLogin);
|
| | | })
|
| | | .catch((err) => {
|
| | | if (err.status == 400) {
|
| | | // this.loading = false;
|
| | | this.loading = false;
|
| | | this.$notify({
|
| | | type: "error",
|
| | | message: "重启计算节点失败",
|