Disclosed is a method for optimizing braking force distribution of an integrated braking system of a commercial vehicle according to working conditions. The method for optimizing braking force distribution of a front axle friction brake, a rear axle friction brake and an eddy current retarder is provided for the commercial vehicle equipped with an air pressure electric control braking system and the eddy current retarder, and the difference of the requirements of the emergency braking working condition, the long slope downhill braking working condition and other ordinary braking working conditions for the braking response speed, the braking distance, the brake temperature and the friction liner abrasion uniformity is taken into consideration, so that different control targets and different braking force distribution strategies are adopted according to different braking working conditions. The method has the advantages that the braking response speed of the braking system is increased, the temperature rise of the brakes under the downhill working condition is reduced, the service life of each friction liner is prolonged, accidents are avoided, the safety under various braking working conditions is improved, the service life of each friction brake and the service life of the eddy current retarder are prolonged, the maintenance frequency is reduced, and the economical performance is improved.