In order to reduce the pollution caused by coal-fired generating units during the heating season, and promote the wind power accommodation, an electrical and thermal system dispatch model based on combined heat and power (CHP) with thermal energy storage (TES) and demand response (DR) is proposed. In this model, the emission cost of CO2, SO2, NOx, and the operation cost of desulfurization and denitrification units is considered as environmental cost, which will increase the proportion of the fuel cost in an economic dispatch model. Meanwhile, the fuel cost of generating units, the operation cost and investment cost of thermal energy storage and electrical energy storage, the incentive cost of DR, and the cost of wind curtailment are comprehensively considered in this dispatch model. Then, on the promise of satisfying the load demand, taking the minimum total cost as an objective function, the power of each unit is optimized by a genetic algorithm. Compared with the traditional dispatch model, in which the environmental cost is not considered, the numerical results show that the daily average emissions CO2, SO2, NOx, are decreased by 14,354.35 kg, 55.5 kg, and 47.15 kg, respectively, and the wind power accommodation is increased by an average of 6.56% in a week.