Commit ce889955 authored by 皮倩雯's avatar 皮倩雯

fix: '日志管理筛选条件'

parent 18362731
Pipeline #75652 waiting for manual action with stages
......@@ -74,7 +74,8 @@ const LogCenter = () => {
setCurrentPage(res.data.pageIndex);
let arr1 = res.data.list.map(item => item.code);
arr1 = arr1.filter((value, index) => arr1.indexOf(value) === index);
setLoginCodeFilters(arr1.map(item => ({ text: item, value: item })));
// setLoginCodeFilters(arr1.map(item => ({ text: item, value: item })));
setLoginCodeFilters([{ text: '成功', value: 0 }, { text: '失败', value: '-' }]);
let arr2 = res.data.list.map(item => item.statusCode);
arr2 = arr2.filter((value, index) => arr2.indexOf(value) === index);
setLoginStateCodeFilters(arr2.map(item => ({ text: item, value: item })));
......@@ -134,7 +135,8 @@ const LogCenter = () => {
width: 100,
align: 'center',
filters: loginCodeFilters,
onFilter: (value, record) => record.code === value,
// onFilter: (value, record) => record.code === value,
onFilter: (value, record) => record.code.toString().indexOf(value) === 0,
filteredValue,
render: record => {
if (record === 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