Commit 4f4219c4 authored by 皮倩雯's avatar 皮倩雯

fix: 事件权限

parent 6d63c674
Pipeline #41155 skipped with stages
......@@ -223,18 +223,31 @@ const ChangeAdd = props => {
// 监听分页
const paginationChange = (page, pageSizes) => {
console.log(searchWord)
if(searchWord){
if (keepTabKey == 0) {
getRoles('角色', searchWord, pageSizes, page);
}
if (keepTabKey == 1) {
getRoles('部门', searchWord, pageSizes, page);
}
if (keepTabKey == 2) {
getRoles('站点', searchWord, pageSizes, page);
}
}else{
if (keepTabKey == 0) {
getRoles('角色', '', pageSizes, page);
}
if (keepTabKey == 1) {
getRoles('部门', '', pageSizes, page);
}
if (keepTabKey == 2) {
getRoles('站点', '', pageSizes, page);
}
}
// 分页时清空复选框
setCurrentPage(page);
setPageSize(pageSizes);
if (keepTabKey == 0) {
getRoles('角色', '', pageSizes, page);
}
if (keepTabKey == 1) {
getRoles('部门', '', pageSizes, page);
}
if (keepTabKey == 2) {
getRoles('站点', '', pageSizes, page);
}
setPageSize(pageSizes);
};
// 搜索时获取数据
const sreachRoles = (type, keywords, pageSizes, pageIndex) => {
......@@ -281,6 +294,8 @@ const ChangeAdd = props => {
});
}
setkeepSearchList(data);
setCurrentPage(1)
setTotal(res.data.count);
}
});
};
......@@ -525,6 +540,7 @@ const ChangeAdd = props => {
setCheckedList(checkedListArr);
}, [listSite]);
const handleParChange = key => {
setSearchWord('')
setSearchFlag(0);
setCurrentPage(1);
console.log(key);
......
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