In this paper, we consider a risk model with two-sided jumps and proportional investment. The upward jumps and downward jumps represent gains and claims, respectively. Suppose the company invests all of its surplus in a certain proportion in two types of investments, one is risk-free (such as bank accounts) and the other is risky (such as stocks). Our aim is to find the optimal admissible strategy (including the optimal dividend rate and the optimal ratio of investment in risky assets), to maximize the dividend value function, and discuss the effects of a number of parameters on dividend payments. Firstly, the HJB equation of the dividend value function is obtained by the stochastic analysis theory and the dynamic programming method, and the optimal admissible strategy is obtained. Since the integro-differential equation satisfied by the dividend value function is difficult to solve, we turn to the sinc numerical method to approximate solve it. Then, the error between the exact solution (ES) and the sinc approximate solution (SA) is analyzed. Finally, the relative error of a special numerical solution and an ES is given, and some examples of sensitivity analysis are discussed. This study provides a theoretical basis for insurance companies to prevent risks better.