| | |
| | | <!-- 分页 --> |
| | | <Pagination |
| | | :total="total" |
| | | v-model:page="queryParams.pageNo" |
| | | v-model:limit="queryParams.pageSize" |
| | | v-model:page="queryParams.page" |
| | | v-model:limit="queryParams.limit" |
| | | @pagination="getList" |
| | | /> |
| | | </ContentWrap> |
| | |
| | | import * as ScheduleJobApi from '@/api/job' |
| | | import ScheduleJobForm from './ScheduleJobForm.vue' |
| | | |
| | | defineOptions({name: 'DataSchedule'}) |
| | | defineOptions({name: 'Job'}) |
| | | |
| | | const message = useMessage() // 消息弹窗 |
| | | const {t} = useI18n() // 国际化 |
| | |
| | | const total = ref(0) // 列表的总页数 |
| | | const list = ref([]) // 列表的数据 |
| | | const queryParams = reactive({ |
| | | pageNo: 1, |
| | | pageSize: 10, |
| | | page: 1, |
| | | limit: 10, |
| | | name: undefined, |
| | | address: undefined |
| | | }) |
| | |
| | | const getList = async () => { |
| | | loading.value = true |
| | | try { |
| | | debugger |
| | | const page = await ScheduleJobApi.getScheduleJobPage(queryParams) |
| | | list.value = page.list |
| | | total.value = page.total |
| | |
| | | |
| | | /** 搜索按钮操作 */ |
| | | const handleQuery = () => { |
| | | queryParams.pageNo = 1 |
| | | queryParams.page = 1 |
| | | getList() |
| | | } |
| | | |