angular+NG-ZORRO如何实现table点击获得选中得行id

  1. 添加html

          

          

              

                  

                      

                      

                          {{l('ClearEmpty')}}

                      

                      

                      

                          {{l('Refresh')}}

                      

                  

              

          

 

  1.  Ts

 submitForm(): void {

    const selectCount = this.selectedDataItems.length;

    if (selectCount <= 0) {

abp.message.warn(this.l('PleaseSelectAtLeastOneItem'));

return;

    }

    let mormalFormalListIds = [];

    this.selectedDataItems.forEach(item => {

      mormalFormalListIds.push(item.id);

    })

 

你可能感兴趣的:(Angular,ng-zorro)