A capillary electrophoresis apparatus for water sample heavy metal in-situ monitoring comprises a first mini peristaltic pump, a second mini peristaltic pump, a third mini peristaltic pump, a fourth mini peristaltic pump, a first one-way valve, a second one-way valve, a metal tube, a high-voltage-end electrophoresis buffering liquid storage bottle, a waste liquid bottle, a two-way normally-on electromagnetic valve, a crossed four-way buffering liquid storage chamber, a mixing reaction coiler, a capillary tube, a photometric detector and a three-way joint, an electrophoresis high-voltage interface is externally connected with a mini high-voltage power source to serve as an electrode of the electrophoresis separation process, the metal tube serves as another electrode of the electrophoresisseparation process, and the two electrodes form an anode-cathode relationship and form a complete electrophoresis loop, and type of heavy metal and concentration thereof in a solution are determined by analyzing the metal complex solution in the electrophoresis loop through the photometric detector. A detection value of the capillary electrophoresis apparatus is small in deviation relative to a standard value, and the capillary electrophoresis apparatus is high in accuracy, reliability and stability of detection data and has the advantages of low cost, portability, flexibility, easiness in useand high sensitivity.