To add on to Bingwen's post it's very important to distinguish the fact that partial pressure is not the same as the vapor pressure and that each law is looking at mole fraction in a different phase.
Partial pressure is simply the pressure exerted by one gas species in a mixture of gases. It is dependent only on the mole fraction of that species in the gas phase.
Vapor pressure by definition is the pressure of the vapor phase when the number of moles of that substance evaporating into the vapor phase is equal to the number of moles condensing into the condensed phase.
What Raoult's law allows you to do is calculate the partial vapor pressure of each component in a mixture. This is dependent on what the component is and how much of it there is in the condensed phase. After you get the partial vapor pressures of every component in the mixture then assuming the vapor phase you are looking it behaves like an ideal gas Dalton's law can be used to determine the total pressure of the vapor phase in that system.