The invention relates to a pipe type variable-damping filter provided with multiple holes with different parameters and applied to the opening of a hydraulic pump. The pipe type variable-damping filter provided with the multiple holes with different parameters and applied to the opening of the hydraulic pump is composed of a main shell, a small linear motor, a sliding baffle, a first sealing ring, a second sealing ring and an oil cavity shell, wherein a rectangular flange is arranged on the main shell, the oil cavity shell is installed on the rectangular flange of the main shell, a cuboid oil cavity is formed by the oil cavity shell and the main shell, the five oil damping holes are formed in the middle of the upper portion of the main shell in the oil cavity and are arranged in the axial direction of the filter, the distances between the oil damping holes are the same, the diameters of the holes become larger gradually, the small linear motor is installed on the main shell, a stretching-out shaft of the small linear motor is hinged to a push rod of the sliding baffle, a round channel is formed in the side wall of the main shell, the push rod of the sliding baffle penetrates through the channel, a circulating hole is formed in the sliding baffle, the diameter of the circulating hole is the same as that of the biggest oil damping hole in the main shell, and the small linear motor is controlled through a current amplifier and a control amplifier. By the adoption of the pipe type variable-damping filter provided with the multiple holes with different parameters and applied to the opening of the hydraulic pump, the range of the damping frequency can be widened.