A series of indoline-sulfonamide compounds is disclosed. The formula of indoline-sulfonamide compounds is shown as formula (I). In formula (I), R1 is H or halogen; R2 is Ar, Ar—C(O)—, Ar—CH2—, Ar—SO2—, Ar—O—C(O),