提交 6a47a75b authored 作者: lidongxu's avatar lidongxu

fix(plan): 修改页码配合查询参数不一致问题

上级 9e8287d2
......@@ -812,7 +812,8 @@ const total = ref(0)
const pageNum = ref(1)
const pageSize = ref(10)
// 任务列表
const getPlanList = async () => {
const getPlanList = async (arg) => {
if (arg === 'resetPage') pageNum.value = 1
const res = await getPlanListAPI({
pageNum: pageNum.value,
pageSize: pageSize.value,
......
......@@ -280,7 +280,7 @@ onMounted(async () => {
/************ 数据列表管理 ************/
const getPlanList = () => {
proxy.$refs.effectivePlan.getPlanList()
proxy.$refs.invalidPlan.getPlanList()
proxy.$refs.effectivePlan.getPlanList('resetPage')
proxy.$refs.invalidPlan.getPlanList('resetPage')
}
</script>
\ No newline at end of file
......@@ -203,7 +203,8 @@ const total = ref(0)
const pageNum = ref(1)
const pageSize = ref(10)
// 任务列表
const getPlanList = async () => {
const getPlanList = async (arg) => {
if (arg === 'resetPage') pageNum.value = 1
const res = await getPlanListAPI({
pageNum: pageNum.value,
pageSize: pageSize.value,
......@@ -231,6 +232,7 @@ defineExpose({
})
onMounted(() => {
// 删除任务时,重新请求已删除列表
proxy.eventBus.on('refreshPlanList', getPlanList)
})
onUnmounted(() => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论