A data transmission method, comprising: receiving, by a terminal, first indication information and second indication information, wherein the first indication information is used to indicate at least one group of resources, the at least one group of resources corresponds to at least one group of antenna ports or at least one group of codewords, each group of antenna ports comprises at least one antenna port, the second indication information is used to indicate quasi-co-location QCL configuration information of the at least one group of antenna ports corresponding to the at least one group of codewords, one group of antenna ports or one group of codewords corresponds to one group of QCL configuration information, and the QCL configuration information is used to determine a QCL relationship between antenna ports; and determining, by the terminal, the at least one group of resources based on the first indication information and the second indication information, wherein the determining, by the terminal, the at least one group of resources based on the first indication information and the second indication information comprises: determining, by the terminal, a first scheduling unit of the at least one group of resources based on the QCL configuration information indicated by the second indication information; and determining, by the terminal, the at least one group of resources based on the first scheduling unit and the first indication information, wherein the first scheduling unit enables the terminal to determine a decipher manner of the first indication information, so as to determine the at least one group of resources, wherein the determining, by the terminal, a first scheduling unit of the at least one group of resources based on the QCL configuration information indicated by the second indication information comprises: determining, by the terminal based on a quantity k of groups of the QCL configuration information indicated by the second indication information, that the first scheduling unit is a size of k times a second scheduling unit, wherein k is an integer greater than or equal to 1, and the k groups of the QCL configuration information are different from each other, and wherein the second scheduling unit is a resource block group, RBG, or a resource block, RB, or another predefined scheduling granularity. receiving, by a terminal, first indication information and second indication information, wherein the first indication information is used to indicate at least one group of resources, the at least one group of resources corresponds to at least one group of antenna ports or at least one group of codewords, each group of antenna ports comprises at least one antenna port, the second indication information is used to indicate quasi-co-location QCL configuration information of the at least one group of antenna ports corresponding to the at least one group of codewords, one group of antenna ports or one group of codewords corresponds to one group of QCL configuration information, and the QCL configuration information is used to determine a QCL relationship between antenna ports; and determining, by the terminal, the at least one group of resources based on the first indication information and the second indication information, wherein the determining, by the terminal, the at least one group of resources based on the first indication information and the second indication information comprises: determining, by the terminal, a first scheduling unit of the at least one group of resources based on the QCL configuration information indicated by the second indication information; and determining, by the terminal, the at least one group of resources based on the first scheduling unit and the first indication information, wherein the first scheduling unit enables the terminal to determine a decipher manner of the first indication information, so as to determine the at least one group of resources, determining, by the terminal, a first scheduling unit of the at least one group of resources based on the QCL configuration information indicated by the second indication information; and determining, by the terminal, the at least one group of resources based on the first scheduling unit and the first indication information, wherein the first scheduling unit enables the terminal to determine a decipher manner of the first indication information, so as to determine the at least one group of resources, wherein the determining, by the terminal, a first scheduling unit of the at least one group of resources based on the QCL configuration information indicated by the second indication information comprises: determining, by the terminal based on a quantity k of groups of the QCL configuration information indicated by the second indication information, that the first scheduling unit is a size of k times a second scheduling unit, wherein k is an integer greater than or equal to 1, and the k groups of the QCL configuration information are different from each other, and wherein the second scheduling unit is a resource block group, RBG, or a resource block, RB, or another predefined scheduling granularity. determining, by the terminal based on a quantity k of groups of the QCL configuration information indicated by the second indication information, that the first scheduling unit is a size of k times a second scheduling unit, wherein k is an integer greater than or equal to 1, and the k groups of the QCL configuration information are different from each other, and wherein the second scheduling unit is a resource block group, RBG, or a resource block, RB, or another predefined scheduling granularity.