| | |
| | | export default { |
| | | name: "SettingBox", |
| | | props: { |
| | | device: { |
| | | type: Object, |
| | | }, |
| | | id: {}, |
| | | }, |
| | | created() { |
| | | let mins = []; |
| | |
| | | if (this.every === "close") { |
| | | this.cronText = ""; |
| | | const res = await setRestartTask({ |
| | | ip: this.device.ip, |
| | | port: this.device.port, |
| | | nodeId: this.id, |
| | | task: "", |
| | | }); |
| | | if (res.success) { |
| | |
| | | " " + |
| | | obj.week; |
| | | const res = await setRestartTask({ |
| | | ip: this.device.ip, |
| | | port: this.device.port, |
| | | nodeId: this.id, |
| | | task: this.cronText, |
| | | }); |
| | | |
| | |
| | | }, |
| | | async getTask() { |
| | | const res = await getRestartTask({ |
| | | ip: this.device.ip, |
| | | port: this.device.port, |
| | | nodeId: this.id, |
| | | userId: JSON.parse(sessionStorage.getItem("userInfo")).id, |
| | | }); |
| | | this.rebootCron = res.data; |
| | | this.resolveExp(); |