| | |
| | | <el-select |
| | | v-model="every" |
| | | placeholder="请选择" |
| | | popper-class="industrySelect" |
| | | popper-class="equipmentSelect" |
| | | > |
| | | <el-option |
| | | v-for="item in periodOptions" |
| | |
| | | <el-select |
| | | v-model="cronValueObj.week" |
| | | placeholder="请选择" |
| | | popper-class="industrySelect" |
| | | popper-class="equipmentSelect" |
| | | > |
| | | <el-option |
| | | v-for="item in weeks" |
| | |
| | | <el-select |
| | | v-model="cronValueObj.day" |
| | | placeholder="请选择" |
| | | popper-class="industrySelect" |
| | | popper-class="equipmentSelect" |
| | | > |
| | | <el-option |
| | | v-for="item in days" |
| | |
| | | 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(); |
| | |
| | | right: 20px; |
| | | bottom: 20px; |
| | | display: flex; |
| | | justify-content: end; |
| | | justify-content: flex-end; |
| | | text-align: center; |
| | | line-height: 40px; |
| | | |
| | |
| | | </style> |
| | | |
| | | <style lang="scss"> |
| | | .industrySelect.el-select-dropdown.el-popper { |
| | | .equipmentSelect.el-select-dropdown.el-popper { |
| | | margin: 0; |
| | | |
| | | .el-scrollbar { |