Browse Source

feat: 客户来源参数设置

outaozhen 3 years ago
parent
commit
f6dfce2cc2
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/pages/Business/Contact/index.tsx

+ 4 - 5
src/pages/Business/Contact/index.tsx

@@ -69,7 +69,7 @@ const Contact: React.FC = () => {
     visible: false,
     type: modalType.CREATE
   })
-  console.log(state.clientSourceList)
+  // console.log(state.clientSourceList)
 
   const onSelect = (menuId: string) => {
     setState({ ...state, menuId })
@@ -182,10 +182,10 @@ const Contact: React.FC = () => {
     if (!department.length) {
       fetchDepartment()
     }
-    if (state.id) {
-      tryGetClientSourceList(state.id)
+    if (state.menuId === 2) {
+      tryGetClientSourceList()
     }
-  }, [state.id])
+  }, [state.menuId])
   const mainColumns: ColumnsType<API.BusinessgroupItem> = [
     {
       dataIndex: 'name',
@@ -310,7 +310,6 @@ const Contact: React.FC = () => {
                 dataSource={state.clientSourceList}
                 bordered
                 rowKey={row => row.id}
-                params={{ msgType: 'notification' }}
               />
             </>
           ) : null}