Commit ea599ed4 authored by cxr's avatar cxr

bug(cxr): 区域现货缺陷

parent 3edf914a
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
v-model:current="page" v-model:current="page"
simple simple
:total="total" :total="total"
@change="pageChange"
> >
<template #itemRender="{ type, originalElement }"> <template #itemRender="{ type, originalElement }">
<a-button size="small" v-if="type === 'prev'">上一页</a-button> <a-button size="small" v-if="type === 'prev'">上一页</a-button>
...@@ -384,6 +385,7 @@ ...@@ -384,6 +385,7 @@
if (res.success) { if (res.success) {
peopleData.value = res.data.filter((item) => item.type == 1); peopleData.value = res.data.filter((item) => item.type == 1);
rootData.value = res.data.filter((item) => item.type == 0); rootData.value = res.data.filter((item) => item.type == 0);
getTableDate();
} else { } else {
peopleData.value = []; peopleData.value = [];
rootData.value = []; rootData.value = [];
...@@ -397,7 +399,12 @@ ...@@ -397,7 +399,12 @@
}, },
}); });
}; };
//分页
const pageChange = (pageNo: any, pageSize: any) => {
console.log(pageNo, pageSize);
page.value = pageNo;
getTableDate();
};
//过滤搜索 //过滤搜索
const filterOption = (input: string, option: any) => { const filterOption = (input: string, option: any) => {
return option.key.toLowerCase().indexOf(input.toLowerCase()) >= 0; return option.key.toLowerCase().indexOf(input.toLowerCase()) >= 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment