Commit 778b72c8f2212b96aeb244c9b3ddf6a5ccb04e13

Authored by zhaofeng
1 parent 7a03dbfa

delets

src/pages/finance/FinanceInvestor/components/Filter.tsx
@@ -8,26 +8,11 @@ const { Option } = Select; @@ -8,26 +8,11 @@ const { Option } = Select;
8 const Search = Input.Search; 8 const Search = Input.Search;
9 9
10 export default function AccountList() { 10 export default function AccountList() {
11 - // const { setVisible, setParams, innerParams, dealerLoading, dealerList } = useStore();  
12 const { triggerModal, brands, financeList, setInvestList, companys, dealers } = useStore(); 11 const { triggerModal, brands, financeList, setInvestList, companys, dealers } = useStore();
13 - // investList,  
14 - // setInvestList,  
15 // 存储删选条件 12 // 存储删选条件
16 const [filterParams, setFilterParams] = useState({}); 13 const [filterParams, setFilterParams] = useState({});
17 14
18 - console.log("投资主体11列表", financeList);  
19 -  
20 - // function searchType(accountType: number) {  
21 - // setParams({ accountType }, true);  
22 - // }  
23 -  
24 - // _onSelectSubject;  
25 - // const fetchListByName = debounce(value => {  
26 - // setParams({ keywords: value }, true);  
27 - // }, 500);  
28 -  
29 useEffect(() => { 15 useEffect(() => {
30 - console.log("筛选参数filterParams", filterParams);  
31 let originList = financeList; 16 let originList = financeList;
32 let res = []; 17 let res = [];
33 if (filterParams.brandId) { 18 if (filterParams.brandId) {
@@ -41,7 +26,6 @@ export default function AccountList() { @@ -41,7 +26,6 @@ export default function AccountList() {
41 if (filterParams.includeId) { 26 if (filterParams.includeId) {
42 //删选包含商家 includeId 27 //删选包含商家 includeId
43 originList = originList.filter((item) => item.includeDealers?.find((y) => y.id === filterParams.includeId)); 28 originList = originList.filter((item) => item.includeDealers?.find((y) => y.id === filterParams.includeId));
44 - console.log("筛选输入:", originList);  
45 } 29 }
46 if (filterParams.creditDealerId) { 30 if (filterParams.creditDealerId) {
47 //删选授信商家 creditDealerId 31 //删选授信商家 creditDealerId