The invention discloses a moisture-proof electric power cabinet based on an electric control system, and belongs to the technical field of electric power cabinets. The moisture-proof electric power cabinet based on the electric control system comprises a cabinet body, wherein the upper end of the cabinet body is fixedly connected with a top plate, the front end of the cabinet body is hinged with acabinet door, the cabinet door is provided with a window hole, an observation window is installed in the window hole, the left and right ends of the cabinet body are respectively provided with air vents, each air vent is internally provided with U-shaped baffle plates, the outer end of each U-shaped baffle plate is provided with a plurality of uniformly distributed ventilation holes, the lower side of each U-shaped baffle plate is provided with a sliding rail which is fixedly connected with the inner wall of the cabinet body, the upper end of each sliding rail is slidably connected with a sliding block, the sliding block is fixedly connected with the lower end of the corresponding U-shaped baffle plate, the U-shaped baffle plate is inserted with a dehumidification pad, the upper side of the dehumidification pad is provided with an electric push rod, the electric push rod is fixedly connected with the cabinet body, and the mutually approaching ends of the electric push rod and the dehumidification pad are fixedly connected with magnets, thereby being capable of realizing ventilation and heat dissipation, and reducing the moisture in the humid air in the electric power cabinet.