| | |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaTimerWindow from '@/views/timer/components/OperaTimerWindow' |
| | | import {runOnceById} from "@/api/timer/timer"; |
| | | import {pauseById, resumeById, runOnceById} from '@/api/timer/timer' |
| | | export default { |
| | | name: 'Devices', |
| | | extends: BaseTable, |
| | |
| | | this.$dialog.actionConfirm('确认暂停该任务吗?') |
| | | .then(() => { |
| | | this.pausing = true |
| | | this.api.paustById(row.id) |
| | | this.api.pauseById(row.id) |
| | | .then(() => { |
| | | this.$message.info('暂停成功') |
| | | this.search() |
| | |
| | | }) |
| | | .catch(() => {}) |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | |
| | | </script> |