Theoretical study on resonant inelastic X-ray scattering in quasi-one-dimensional cuprates